Re: Relative IRI in @context?

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