Closed garpinc closed 2 years ago
Sorry, this is difficult to try to reproduce what you're trying to do. Best would be to use a site such as https://json-ld.org/playground and put a link to illustrate the problem. However, it does not accept any input other than JSON-LD, so you may need to use something like my own http://rdf.greggkellogg.net/distiller to transform the TriG into expanded JSON-LD, and then compact with your context. Or, you can do the whole transformation there, but it doesn't currently provide you with a simple link to paste here.
But, I note that the context you're using contains a set of URLs that don't actually seem to dereference to valid JSON-LD contexts.
Input RDF:
post json-ld:
if you see under list of property "defaultNamedGraph"
why does it have no type and why does this have wrong type
So I'm wondering why the inconsistency....
Also in this particular use case "http://cambridgesemantics.com/Graphmart/0c09fdcc39d047ddbcf1961bf425f423" is typed "http://cambridgesemantics.com/ontologies/Graphmarts#Graphmart" as well as NamedGraph although that's not reflected in the above data but "defaultNamedGraph" is typed NamedGraph. I'm not sure if there is a way to direct the serialization to force the type. Is there...
The options for this serialization are embed always...