Compacted JSON-LD
In this section, the JSON-LD playground tool can be used to replay the examples below.
The initial JSON content can be retreived using
curl -X 'GET' \
'https://w3id.org/cde/admin-loc/v1.0/country/IT' \
-H 'accept: application/ld+json'
Compacted without context
| {
"@id": "did:web:w3id.org:cde:object/admin-loc/d27451228a48e1ac238cbbf78519c317adda74b96656ed505b4cb7313b37fb94",
"@type": [
"https://w3id.org/cde/admin-loc/v1.0/#AdministrativeLocation",
"https://w3id.org/cde/fedid/v1.0/#FederatedObject"
],
"http://www.w3.org/2000/01/rdf-schema#label": "\"Italie\"@fr",
"https://w3id.org/cde/admin-loc/v1.0/#iso316613": "ITA",
"https://w3id.org/cde/fedid/v1.0/#belongsToDomain": "did:web:CDE",
"https://w3id.org/cde/fedid/v1.0/#hasFederatedId": {
"@id": "did:web:w3id.org:cde:object/fedid/ad3f11069923d6fd9ae7a4944916efef774ed94bd80cd906ed2e2b307733742b"
}
}
|
Compacted with context
The https://w3id.org/cde/admin-loc/v1.0/context.json context is added on line 2.
| {
"@context": "https://w3id.org/cde/admin-loc/v1.0/context.json",
"id": "did:web:w3id.org:cde:object/admin-loc/d27451228a48e1ac238cbbf78519c317adda74b96656ed505b4cb7313b37fb94",
"@type": [
"AdministrativeLocation",
"FederatedObject"
],
"hasLabel": "\"Italie\"@fr",
"iso316613": "ITA",
"belongsToDomain": "did:web:CDE",
"hasFederatedId": "did:web:w3id.org:cde:object/fedid/ad3f11069923d6fd9ae7a4944916efef774ed94bd80cd906ed2e2b307733742b"
}
|