Re: Reference @context via URL with something with type @id

I'm not sure if I understand enough to answer the first question.

As to the second, I thought this was the "correct practice" in the SemWeb
world?
http://www.w3.org/TR/cooluris/#r303gendocument

Although I'm not using a 303 redirect yet.

D.

On Mon, Jun 8, 2015 at 5:14 PM, Melvin Carvalho <melvincarvalho@gmail.com>
wrote:

>
>
> On 8 June 2015 at 22:11, David Janes <davidjanes@davidjanes.com> wrote:
>
>> Sorry for the lengthiness of this email, but I think I've got it down to
>> the minimal data to understand:
>>
>> Consider the following JSON-LD
>>
>> {
>>   "@context": [
>>     "https://iotdb.org/pub/iot",
>>     {
>>     "@vocab": "https://iotdb.org/pub/iot#"
>>     },
>>     {
>>       "model": { "@type": "@id" }
>>     }
>>   ],
>>   "@id":
>> "/api/things/urn:iotdb:thing:REST:20b2c3ca712e8b0031debf3453cc75d1:rest-color-light",
>>   "model":
>> "/api/things/urn:iotdb:thing:REST:20b2c3ca712e8b0031debf3453cc75d1:rest-color-light/model"
>> }
>>
>>
>> This converts to the following nquads, exactly as expected
>>
>> </api/things/urn:iotdb:thing:REST:20b2c3ca712e8b0031debf3453cc75d1:rest-color-light>
>> <https://iotdb.org/pub/iot#model>
>> </api/things/urn:iotdb:thing:REST:20b2c3ca712e8b0031debf3453cc75d1:rest-color-light/model>
>> .
>>
>>
>> BUT the fact that
>>
>> "model": { "@type": "@id" }
>>
>>
>>  is _already_ defined in "https://iotdb.org/pub/iot" (go look at "
>> https://iotdb.org/pub/iot.jsonld). So my understanding is we shouldn't
>> have to explicitly spell that out here. But when I do:
>>
>> {
>>   "@context": [
>>     "https://iotdb.org/pub/iot",
>>     {
>>     "@vocab": "https://iotdb.org/pub/iot#"
>>     }
>>   ],
>>   "@id":
>> "/api/things/urn:iotdb:thing:REST:20b2c3ca712e8b0031debf3453cc75d1:rest-color-light",
>>   "model":
>> "/api/things/urn:iotdb:thing:REST:20b2c3ca712e8b0031debf3453cc75d1:rest-color-light/model"
>> }
>>
>>
>> We get
>>
>> </api/things/urn:iotdb:thing:REST:20b2c3ca712e8b0031debf3453cc75d1:rest-color-light>
>> <https://iotdb.org/pub/iot#model>
>> "/api/things/urn:iotdb:thing:REST:20b2c3ca712e8b0031debf3453cc75d1:rest-color-light/model"
>> .
>>
>>
>> Note that the last bit is not in angle brackets, it's a string not an @id.
>>
>> Thoughts?
>>
>
> Is your remote context being pulled in to the processor?
>
> I'd also personally avoid redirects like the plauge, they can be quite
> hard to debug.
>
>
>

Received on Monday, 8 June 2015 21:20:18 UTC