Closed philarcher closed 3 years ago
We don't feel liking re-opening the can of worms of whether it should or should not be possible to use the IANA-registered link relation types as URIs for use in semantic web applications.
The proposal is:
https://www.iana.org/assignments/relation/
in the JSON context. @mnot, please let us know if not OK.
It's http
in JSON-LD 1.1 because we inherited it from JSON-LD 1.0. Manu Sporny might recall if there was discussion about http/https at that point, not sure that it's especially relevant to this work however.
Ah - if it's defined by JSON-LD, not this spec, never mind. Using IANA URLs without consulting IANA is pretty naughty of JSON-LD, though...
On 2021-09-23 02:32, Mark Nottingham wrote:
Ah - if it's defined by JSON-LD, not this spec, never mind. Using IANA URLs without consulting IANA is pretty naughty of JSON-LD, though...
we're most definitely not defining it.
the RDF community has been struggling a long time with their constraint that identifiers must be URIs, whereas many IANA-managed identifiers are are just strings.
you might remember the discussions for RFC 5988/8288 which ended up with nothing because it was (too) hard to come to a solution that both works for the web and the semantic web.
Err, to clarify which URI I was talking about http://www.w3.org/ns/json-ld#context
is from JSON-LD 1.0 and continued in 1.1.
I think the proposal to avoid the IANA relations in the JSON-LD context appendix is the easiest route, per @hvdsomp and @dret.
I'd like to add a clarification:
http://www.iana.org/assignments/relation/
is in no way used/introduced in any JSON-LD specificationAs proposed above, in order to avoid using the IANA URI http://www.iana.org/assignments/relation/
, the JSON-LD example of Appendix A will be replaced by one that does not rely on IANA-registered link relation types.
Having said that, I do want to express that I find it very regrettable that no mechanism exists to express IANA-registered link relation types as HTTP URIs. Having such a mechanism would be beneficial for interoperability between semantic and non-semantic applications. Direct results of not having such a mechanism:
first
, last
, prev
, next
, will continue to be redefined as HTTP URIs in semantic ontologies as happened recently again in the W3C DCAT v3 specification, see e.g. https://www.w3.org/TR/vocab-dcat-3/#Property:resource_firstAnd in elsewhere in the W3C context, ActivityStreams also mapped 5988 links into its ontology: https://www.w3.org/TR/activitystreams-core/#link
I'll discuss an example Linkset and context file with @hvdsomp and @dret offline. The example in my little Linkset visualization library demo at https://gs1.github.io/linkset/ is probably the best one I have to hand. It deliberately uses various features of Linkset. However, things like our link rel types of gs1:defaultLink and gs1:defaultLinkMulti are probably ones you don't want in this example but they can easily be stripped out.
I'm working to get our JSON-LD context file in place in its permanent URI - something that is proving more difficult than you'd imagine. It doesn't create URIs out of IANA link relations but I'm with @hvdsomp - it's a shame the situation is as it is on this one. Our link relations types are explicitly defined as RDF properties precisely so that our resolver service and its Linksets form a Linked Data node. Anyway, that's by the by...
The ActivityStreams link example 14 indeed adds more reasons why work on a JSON-LD context file is really needed. See also the Playground version of the string literals popping up in the resulting graph https://tinyurl.com/4r7jm4b3
Is everyone else happy with the revised version on this issue? (I am)
For completeness of this thread, I want to add that the issue with expressing IANA-registered link relation types as HTTP URIs was also discussed in https://github.com/mnot/I-D/issues/140 and would likely also pop up in relation to https://github.com/protocol-registries/link-relations/issues/25
Closing. Addressed in https://www.ietf.org/archive/id/draft-ietf-httpapi-linkset-04.html
Mark's final comment https://mailarchive.ietf.org/arch/msg/httpapi/gv9uqyD8Fv96P-_ip9LWIiCqALM/ is
The link relation type of http://www.w3.org/ns/json-ld#context is defined in W3C's JSON-LD 1.1 spec so it's out of our control here. See https://www.w3.org/TR/json-ld/#interpreting-json-as-json-ld. I wasn't involved in this work so I can't comment on why it's http and not https. Gregg Kellogg would know.