-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Description
For a JSON-LD document to be accessible on the Web of Data, it must expose directly to its URL.
Currently meta, entities and id keys are exposed, which break the direct parsing of the document.
Example:
$ curl -s https://www.communecter.org/api/organization/get/id/55cf123fe41d7544778b1451/?format=schema | jq .
{
"meta": {
"limit": 1
},
"entities": {
"55cf123fe41d7544778b1451": {
"@context": "http://schema.org",
"@type": "Organization",
"id": "https://www.communecter.org/data/get/type/organizations/id/55cf123fe41d7544778b1451/format/schema",
"name": "Géo Organique",
"address": {
"@type": "PostalAddress",
"@id": "https://www.communecter.org/data/get/type/city/insee/63456/format/schema",
"addressLocality": "VICHEL",
"postalCode": "63340",
"streetAddress": "12, chemin du Busquet"
},
"email": "geo@spatiogis.fr",
"url": "http://wiki.cheznous.coop/geoorganique"
}
}
}
which should only read as
$ curl -s https://www.communecter.org/api/organization/get/id/55cf123fe41d7544778b1451/?format=schema | jq ".entities | to_entries[].value"
{
"@context": "http://schema.org",
"@type": "Organization",
"id": "https://www.communecter.org/data/get/type/organizations/id/55cf123fe41d7544778b1451/format/schema",
"name": "Géo Organique",
"address": {
"@type": "PostalAddress",
"@id": "https://www.communecter.org/data/get/type/city/insee/63456/format/schema",
"addressLocality": "VICHEL",
"postalCode": "63340",
"streetAddress": "12, chemin du Busquet"
},
"email": "geo@spatiogis.fr",
"url": "http://wiki.cheznous.coop/geoorganique"
}
Metadata
Metadata
Assignees
Labels
No labels