- From: Markus Lanthaler <markus.lanthaler@gmx.net>
- Date: Wed, 18 May 2016 22:35:45 +0200
- To: "'Jim Balhoff'" <balhoff@gmail.com>, <public-linked-json@w3.org>
On 17 Mai 2016 at 21:12, Jim Balhoff wrote:
>> On May 17, 2016, at 2:13 PM, Gregg Kellogg <gregg@greggkellogg.net> wrote:
>>
>> On May 16, 2016, at 17:57, Jim Balhoff <balhoff@gmail.com> wrote:
>>>
>>> "Please note that the @base will be ignored if used in external contexts."
>>> http://www.w3.org/TR/json-ld/#base-iri
>>
>> Yes, that's correct, as it doesn't make sense for a single external context to resolve relative
> IRIs for every document using it.
>
> Okay, that makes sense. Although the JSON-LD Playground does seem to resolve relative
> IRIs using an @base found in an external context.
That's a bug. Step 3.4 in the context processing algorithm [1] is quite clear about this:
3.4) If context has an @base key and remote contexts is empty, i.e.,
the currently being processed context is not a remote context:
Cheers,
Markus
[1] http://www.w3.org/TR/json-ld-api/#context-processing-algorithm
--
Markus Lanthaler
@markuslanthaler
Received on Wednesday, 18 May 2016 20:36:16 UTC