Skip to content

Instantly share code, notes, and snippets.

Created August 15, 2016 16:59
Show Gist options
  • Save anonymous/3dc07c8a249b409475e04db8479ae288 to your computer and use it in GitHub Desktop.
Save anonymous/3dc07c8a249b409475e04db8479ae288 to your computer and use it in GitHub Desktop.
JSON-LD Playground:

This gist was automatically created by the JSON-LD Playground. You can see it loaded there by visiting:

http://json-ld.org/playground#/gist/<gist id>
{
"@context": {
"dc": "http://purl.org/dc/elements/1.1/",
"ex": "http://example.org/vocab#"
},
"@type": "ex:Library",
"ex:contains": {
"@type": "ex:Book",
"ex:contains": {
"@type": "ex:Chapter"
}
}
}
{
"@context": {
"dc": "http://purl.org/dc/elements/1.1/",
"ex": "http://example.org/vocab#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"ex:contains": {
"@type": "@id"
}
},
"@graph": [
{
"@id": "http://example.org/library",
"@type": "ex:Library",
"ex:contains": "http://example.org/library/the-republic"
},
{
"@id": "http://example.org/library/the-republic",
"@type": "ex:Book",
"dc:creator": "Plato",
"dc:title": "The Republic",
"ex:contains": "http://example.org/library/the-republic#introduction"
},
{
"@id": "http://example.org/library/the-republic#introduction",
"@type": "ex:Chapter",
"dc:description": "An introductory chapter on The Republic.",
"dc:title": "The Introduction"
}
]
}
{
"@context": {
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
"playground": "http://json-ld.org/playground#",
"description": "rdfs:label",
"startTab": "playground:startTab",
"copyContext": "playground:copyContext",
"markup": {
"@id": "playground:markup",
"@type": "@id"
},
"context": {
"@id": "playground:context",
"@type": "@id"
},
"frame": {
"@id": "playground:frame",
"@type": "@id"
}
},
"description": "",
"startTab": "tab-framed",
"copyContext": false,
"markup": "./markup.jsonld",
"frame": "./frame.jsonld"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment