Skip to content

Instantly share code, notes, and snippets.

Created November 4, 2015 05:54
Show Gist options
  • Save anonymous/0b07d129703003c46a35 to your computer and use it in GitHub Desktop.
Save anonymous/0b07d129703003c46a35 to your computer and use it in GitHub Desktop.
JSON-LD Playground: custom attributes

custom attributes

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": [
"https://raw.githubusercontent.com/dret/I-D/master/http-problem-rdf/http-problem-context.jsonld",
{
"balance": "https://example.com/probs#balance",
"accounts": {
"@id": "https://example.com/probs#accounts",
"@type": "@id"
}
}
],
"type": "https://example.com/probs/out-of-credit",
"title": "You do not have enough credit.",
"detail": "Your current balance is 30, but that costs 50.",
"instance": "/account/12345/msgs/abc",
"balance": 30,
"accounts": [
"/account/12345",
"/account/67890"
]
}
{
"@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": "custom attributes",
"startTab": "tab-compacted",
"copyContext": false,
"markup": "./markup.jsonld",
"context": "./context.jsonld"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment