This gist was automatically created by the JSON-LD Playground. You can see it loaded there by visiting: http://json-ld.org/playground/#/gist/1857597f2bbdc06525e3
-
-
Save dschulten/1857597f2bbdc06525e3 to your computer and use it in GitHub Desktop.
JSON-LD Playground: custom attributes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@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" | |
] | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@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