Skip to content

Instantly share code, notes, and snippets.

@hubgit
Forked from anonymous/README.md
Created May 11, 2017 09:40
Show Gist options
  • Save hubgit/0597fb877b6446d3c4758635c7d9aa4d to your computer and use it in GitHub Desktop.
Save hubgit/0597fb877b6446d3c4758635c7d9aa4d to your computer and use it in GitHub Desktop.
JSON-LD Playground:
{
"@type": "http://example.org/vocab#Library"
}
{
"@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