- From: Rob Sanderson via GitHub <sysbot+gh@w3.org>
- Date: Fri, 10 Jul 2015 21:42:12 +0000
- To: public-annotation@w3.org
@dret asked: >because i am OCD: is there even a well-defined model for what a "RDF view" of some JSON-LD is if there is an implicit context, but the JSON-LD inlines or references a context with conflicting definitions? Yes, any subsequent @context definitions override and previously encountered ones. As a JSON object cannot have the same key twice, there's no collisions where the order of keys would matter. For example: ``` { "@context": {"label": "rdfs:label", "related": "dc:relation"}, "label": "This label is rdfs:label", "related": { "@context": {"label": "dc:title"}, "label": "This label is dc:title" } } ``` And in the JSON-LD playground: http://tinyurl.com/pr4dtgf An outstanding issue is that in the expansion/compaction routines, the context nodes are lost. Compaction can only take a single context statement which is applied at the top level, so the above structure is, unfortunately, not round-trip capable in the JSON-LD 1.0 API. See: https://lists.w3.org/Archives/Public/public-linked-json/2014Jul/0030.html and: https://github.com/json-ld/json-ld.org/issues/356 -- GitHub Notif of comment by azaroth42 See https://github.com/w3c/web-annotation/issues/52#issuecomment-120536314
Received on Friday, 10 July 2015 21:42:13 UTC