Skip to content

Instantly share code, notes, and snippets.

@jmandel
Created November 9, 2011 01:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jmandel/1350019 to your computer and use it in GitHub Desktop.
Save jmandel/1350019 to your computer and use it in GitHub Desktop.
jsonld data
{
"@context": {
"@coerce": {
"ex:contains": "@iri"
},
"dc": "http://purl.org/dc/elements/1.1/",
"ex": "http://example.org/vocab#",
"xsd": "http://www.w3.org/2001/XMLSchema#"
},
"@subject": [
{
"@subject": "http://example.org/library3",
"@type": "ex:Library",
"ex:contains": "http://example.org/library/the-republic"
},
{
"@subject": "http://example.org/library2",
"@type": "ex:Library",
"ex:contains": "http://example.org/library/the-republic"
},
{
"@subject": "http://example.org/library0",
"@type": "ex:Library",
"ex:contains": [
"http://example.org/library/alice-in-wonderland", "http://example.org/library/the-republic"]
},
{
"@subject": "http://example.org/library/alice-in-wonderland",
"@type": ["ex:Book"],
"dc:creator": "Carroll",
"dc:title": "Alice in Wonderland"
},
{
"@subject": "http://example.org/library/the-republic",
"@type": ["ex:Book", "ex:Tome"],
"dc:creator": "Plato",
"dc:title": "The Republic",
"ex:contains": "http://example.org/library/the-republic#introduction"
}, {
"@subject": "http://example.org/library/the-republic#introduction",
"@type": "ex:Chapter",
"dc:description": "An introductory chapter on The Republic.",
"dc:title": "The Introduction"
}]
}
[
{
"@context": {
"dc": "http://purl.org/dc/elements/1.1/",
"ex": "http://example.org/vocab#"
},
"@type": "ex:Book"
}, {
"@context": {
"dc": "http://purl.org/dc/elements/1.1/",
"ex": "http://example.org/vocab#"
},
"@type": "ex:Library",
"ex:contains": [
{
"@type": "ex:Book",
"@embed": true
}]
}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment