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

Re: Relative IRI in @context?

From: Stian Soiland-Reyes <soiland-reyes@cs.manchester.ac.uk>
Date: Tue, 5 Aug 2014 10:28:33 +0100
Message-ID: <CAPRnXtk+Jh=j2YY8PYOxsfrt9_bAkeNR6N9BAL6OotaoqGJSTw@mail.gmail.com>
To: Markus Lanthaler <markus.lanthaler@gmx.net>
Cc: JSON-LD <public-linked-json@w3.org>
Agreed, this also makes it rather easy to work locally with json-ld
files that are hosted on a bog-standard Apache directory set-up.

On 4 August 2014 22:24, Markus Lanthaler <markus.lanthaler@gmx.net> wrote:
> 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

Stian Soiland-Reyes, myGrid team
School of Computer Science
The University of Manchester
http://soiland-reyes.com/stian/work/ http://orcid.org/0000-0001-9842-9718
Received on Tuesday, 5 August 2014 09:29:26 UTC

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