Skip to content

Instantly share code, notes, and snippets.

@justin2004
Last active April 26, 2023 16:52
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 justin2004/d87995124e1cc44df5072181ecacc526 to your computer and use it in GitHub Desktop.
Save justin2004/d87995124e1cc44df5072181ecacc526 to your computer and use it in GitHub Desktop.
Stardog -- remote jsonld context bug?
justin@parens:/tmp$ cat a.json
{ "@context":"http://18.221.230.193:9090/some.json",
"title": "the world according to garp",
"writer":"john irving",
"ical:date": "some date here",
"@type":"book"
}
justin@parens:/tmp$ curl 'http://18.221.230.193:9090/some.json'
{
"@context": {
"ical": "http://www.w3.org/2002/12/cal/ical#",
"xsd": "http://www.w3.org/2001/XMLSchema#",
"title": {
"@id": "ical:title",
"@type": "xsd:string"
},
"writer": {
"@id": "http://www.w3.org/2002/12/cal/ical#writer",
"@type": "xsd:string"
}
}
}
justin@parens:/tmp$ ~/Downloads/apache-jena-4.7.0/bin/riot --syntax=jsonld --formatted=turtle a.json
[ a <file:///tmp/book> ;
<http://www.w3.org/2002/12/cal/ical#date>
"some date here" ;
<http://www.w3.org/2002/12/cal/ical#title>
"the world according to garp" ;
<http://www.w3.org/2002/12/cal/ical#writer>
"john irving"
] .
_:b0 a <http://api.stardog.com/book> ;
<ical:date> "some date here" .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment