Re: Relative URI Handling in JSON-LD

On 9/27/17 8:26 PM, Kingsley Idehen wrote:
> On 9/27/17 4:47 PM, Gregg Kellogg wrote:
>> JSON-LD will require expanded IRIs to be absolute (as does an N-Triples transformation of Turtle). The “base”: “” overrides to document location, and inhibits the creation of absolute IRIs. While you should be able to do this, the result won’t be valid expanded JSON-LD or RDF.
>>
>> Gregg
> Gregg,
>
> Okay, so what about the following which also doesn't work (note same
> approach works for @id key where value is "#BrewEats":
>
> {
>   "@context":
>   {
>      "schema": "http://schema.org/",
>     "@base": "#" 
>   },
>     "@id": "#BrewEats",
>     "@type": "schema:Restaurant",
>     "schema:name": "Brew Eats",
>     "databaseId": "23987520"
> }
>
>
> [1]
> http://kingsley.idehen.net/DAV/home/kidehen/Public/Linked%20Data%20Documents/Nanotations/basic-test2.txt
> -- updated test doc reflecting the example above.
>
> Kingsley 

Hi Gregg and others,

I guess the conclusion right now is that JSON-LD doesn't support use
relative URIs for identifying relations (keys in JSON), based on my
example above? Basically, that there is no heuristic that would result
in pattern "{document-url}#databaseid" from my examples at:

http://kingsley.idehen.net/DAV/home/kidehen/Public/Linked%20Data%20Documents/Nanotations/basic-test2.txt


Kingsley
>
>
>> On Sep 27, 2017, at 1:20 PM, Kingsley Idehen <kidehen@openlinksw.com> wrote:
>>> All,
>>>
>>> Can anyone shed light on the ability to use relative HTTP URIs to
>>> identify relations (keys in json parlance) via JSON-LD [1] ?
>>>
>>> I have an RDF-Turtle example that I am struggling to replicate in JSON-LD.
>>>
>>> Links:
>>>
>>> [1] https://twitter.com/kidehen/status/913134180317515777 -- depicts the
>>> dilemma I've encountered
>>>
>>> [2]
>>> http://kingsley.idehen.net/DAV/home/kidehen/Public/Linked%20Data%20Documents/Nanotations/basic-test2.txt
>>> -- sample
>>>
>>> -- 
>>> 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
>>>
>>>

-- 
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 Monday, 2 October 2017 11:23:01 UTC