Skip to content

Instantly share code, notes, and snippets.

@fils
Last active September 2, 2020 14:34
Show Gist options
  • Save fils/1cb963811f0cf0631a3835ed1aa59547 to your computer and use it in GitHub Desktop.
Save fils/1cb963811f0cf0631a3835ed1aa59547 to your computer and use it in GitHub Desktop.
How to point to multiple catalogs via schema.org
{
"@id": "http://foo.org/id/doc/1",
"@context": "https://schema.org/",
"@type": "ItemList",
"url": "http://en.wikipedia.org/wiki/Billboard_200",
"name": "Top music artists",
"description": "The artists with most cumulative weeks at number one according to Billboard 200",
"itemListElement": [
{
"@id": "http://foo.org/id/doc/1/li1",
"@type": "ListItem",
"position": 1,
"item": {
"@id": "http://foo.org/id/doc/1/li1/dc1",
"@type": "DataCatalog",
"name": "dc1",
"url" : "http://opencoredata.org/dc/1"
}
},
{
"@id": "http://foo.org/id/doc/1/li2",
"@type": "ListItem",
"position": 2,
"item": {
"@id": "http://foo.org/id/doc/1/li1/dc2",
"@type": "DataCatalog",
"name": "dc2",
"url" : "http://opencoredata.org/dc/2"
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment