Open gklyne opened 5 years ago
Discussions with the JSON-LD team have confirmed by interpretation.
See thread starting at: https://lists.w3.org/Archives/Public/public-json-ld-wg/2019Jun/0006.html
Especially: https://lists.w3.org/Archives/Public/public-json-ld-wg/2019Jun/0010.html
thanks for this Graham – on the move and will check it out soon
kg
On 6/14/19, 1:48 PM, "Graham Klyne" notifications@github.com wrote:
Discussions with the JSON-LD team have confirmed by interpretation.
See thread starting at: https://lists.w3.org/Archives/Public/public-json-ld-wg/2019Jun/0006.html
Especially: https://lists.w3.org/Archives/Public/public-json-ld-wg/2019Jun/0010.html
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or mute the thread.
I think the use of
@type
in the JSON-LD context definition is questionable. Unfortunately, I'm finding the JSON-LD spec is not very clear about this: my claim is based mainly on the fact that I can't find any usage in the JSON-LD spec that corresponds with what I'm seeing here.I'll pick on one example to illustrate. In the context file, we have:
Corresponding example data would be:
It seems clear to me that the value of the timespan (object of the
lpo:timespan
property) here is what JSON-LD calls a node object, rather than a value object. (JSON-LD value objects correspond to RDF literal nodes.)But, as far as I can tell, when
@type
is used in a context expanded-term-definition, it indicates that the corresponding value is to be interpreted as a literal of the indicated type.The usage here appears to be trying to associate a node object with an associated
rdf:type
value, which is not how I think JSON-LD works.If I'm interpreting the intent correctly, I think the the context description for
timespans
should be:which says the
timespans
values are node objects, and says nothing about the RDF types of those nodes.This is all confusing because the
@type
keyword can be used to indicate the type of a node object in the data (as opposed to the context). e.g. Specifying the Type.Apart from the examples, the best evidence I can find in the JSON-LD spec supporting my claim is this:
See also:
There are several other definitions in the context file that exhibit the same concern.