W3C home > Mailing lists > Public > public-lod@w3.org > October 2017

Re: Relative URI Handling in JSON-LD

From: Kingsley Idehen <kidehen@openlinksw.com>
Date: Tue, 10 Oct 2017 09:11:43 -0400
To: Gregg Kellogg <gregg@greggkellogg.net>
Cc: "public-linked-json@w3.org" <public-linked-json@w3.org>, public-lod@w3.org
Message-ID: <d2d030e0-e43f-a4a5-66c7-ba04a47196ef@openlinksw.com>
On 9/29/17 7:47 PM, Gregg Kellogg wrote:
> So, “@base”: “#” should be supported, and you’re likely seeing an untested corner-case in jsonld.js. Note, however, that expanded form is intended to make the terms in a document unambiguous:
>
>> Expansion has two important goals: removing any contextual information from the document, and ensuring all values are represented in a regular form. These goals are accomplished by expanding all properties to absolute IRIs and by expressing all values in arrays in expanded form. 
>> Note that in the output above all context definitions have been removed, all terms and compact IRIs have been expanded to absolute IRIs, and all JSON-LD values are expressed in arrays in expanded form.
> So, in your case “@base”: “#” should work, but “@vocab” will never be treated as document relative. This should be true for the TR as well as the CG Draft. I’m sure this was considered for the TR, but failed to pass muster. (see, for example #26 [3]).
>
> [1] https://json-ld.org/spec/latest/json-ld/#context-definitions
> [2] https://json-ld.org/spec/latest/json-ld-api/#expansion
> [3] https://github.com/json-ld/json-ld.org/issues/26
>

So do I conclude that "@base": "#" should work and issues I am having
are related to JSON-LD parser bugs?

-- 
Regards,

Kingsley Idehen	      
Founder & CEO 
OpenLink Software   (Home Page: http://www.openlinksw.com)

Weblogs (Blogs):
Legacy Blog: http://www.openlinksw.com/blog/~kidehen/
Blogspot Blog: http://kidehen.blogspot.com
Medium Blog: https://medium.com/@kidehen

Profile Pages:
Pinterest: https://www.pinterest.com/kidehen/
Quora: https://www.quora.com/profile/Kingsley-Uyi-Idehen
Twitter: https://twitter.com/kidehen
Google+: https://plus.google.com/+KingsleyIdehen/about
LinkedIn: http://www.linkedin.com/in/kidehen

Web Identities (WebID):
Personal: http://kingsley.idehen.net/public_home/kidehen/profile.ttl#i
        : http://id.myopenlink.net/DAV/home/KingsleyUyiIdehen/Public/kingsley.ttl#this




Received on Tuesday, 10 October 2017 13:12:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 10 October 2017 13:12:40 UTC