Skip to content

Instantly share code, notes, and snippets.

@HughP
Forked from edsu/context.json
Created April 19, 2017 04:59
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 HughP/bf89416ae95ecd63c9d5e188f86d3672 to your computer and use it in GitHub Desktop.
Save HughP/bf89416ae95ecd63c9d5e188f86d3672 to your computer and use it in GitHub Desktop.
A strawman example of encoding a Dublin Core Application Profile as JSON-LD context object.
{
"@id": "http://example.com/app-profile.json",
"@context": {
"title": "http://purl.org/dc/terms/title",
"description": "http://purl.org/dc/terms/description",
"creator": "http://purl.org/dc/terms/creator"
},
"title": "JSON-LD Dublin Core Application Profile",
"description": "This is an example of a Dublin Core Application Profile as a JSON-LD. The point is to demonstrate that a JSON-LD context document could contain metadata. If it is desirable to annotate the use of particular properties they could theoretically fit into @graph using existing or a new DCAP vocabulary, etc.",
"creator": "http://twitter.com/edsu",
"@graph": [
... add any details here about how particular properties are being used ...
]
}
{
"@context": "http://example.com/app-profile.json",
"@id": "http://example.com/item/123",
"title": "Awesome resource metadata",
"description": "This is an item description that references the app profile using JSON-LD context.",
...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment