W3C home > Mailing lists > Public > public-linked-json@w3.org > August 2014

RE: Relative IRI in @context?

From: Markus Lanthaler <markus.lanthaler@gmx.net>
Date: Mon, 4 Aug 2014 23:24:00 +0200
To: "'JSON-LD'" <public-linked-json@w3.org>
Message-ID: <092501cfb02a$6969a540$3c3cefc0$@gmx.net>
On 4 Aug 2014 at 23:15, David I. Lehn wrote:
> On Mon, Aug 4, 2014 at 3:53 PM, Markus Lanthaler
> <markus.lanthaler@gmx.net> wrote:
>> I personally would consider this to be a bug in jsonld.js' CLI tool. I think
>> it should establish the base IRI of the document itself instead of having to
>> do it explicitly as Gregg described:
>> 
>>>     jsonld --uri 'file:/"`pwd` input.jsonld
>> 
>> Dave?
>> 
> 
> The jsonld tool commands have a standard --base option.  Run commands
> with --help to see that and other options.  If the input looks like a
> URL it defaults to that, else the empty string.  I think I did that on
> purpose but at the moment I can't remember the reasoning.

Makes sense, yeah. However, just specifying a file name is, in a sense, also specifying a (relative) URL. So I think the base should be set to that file:// URL by default as suggested by Gregg. It's similar to opening a local file in a web browser.


--
Markus Lanthaler
@markuslanthaler
Received on Monday, 4 August 2014 21:24:31 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:42 UTC