- From: Markus Lanthaler <markus.lanthaler@gmx.net>
- Date: Sun, 11 May 2014 21:39:17 +0200
- To: <public-linked-json@w3.org>
On Sunday, May 11, 2014 9:31 AM, john.walker wrote: > Hi Markus, > > I get the same error. > > For example JSON-LD input like this: > > { > "@context": { > "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": "@type" > }, > "@graph": [ > { > "@id": "http://example.com/conceptSchemes/myTree", > "http://www.w3.org/1999/02/22-rdf-syntax-ns#type": { > "@id": "http://www.w3.org/2004/02/skos/core#ConceptScheme" Oh yeah.. that's of course problematic because values of @type have to be strings or array of strings. [...] > As mentioned the simplest approach seems to be to ensure "@type" is used in the > JSON-LD input document. Sure.. if you can, that's the way to "fix" this. A compliant JSON-LD "RDF Serializer/Deserializer" [1] does that by default [2] so it would be reasonable to file a bug report if your tool doesn't do that. [1] http://www.w3.org/TR/json-ld-api/#conformance [2] http://www.w3.org/TR/json-ld-api/#serialize-rdf-as-json-ld-algorithm -- Markus Lanthaler @markuslanthaler
Received on Sunday, 11 May 2014 19:39:41 UTC