Re: Hydra Core namespace URI / @context ?

On 11/12/2014 08:12 PM, ☮ elf Pavlik ☮ wrote:
> On 11/12/2014 06:17 PM, Hendy Irawan wrote:
> Hi Hendry,
Sorry for typo Hendy :S

> 
> To my understanding
> 
>> In the Hydra spec I see hydra being represented as:
>>
>> 1. "@context": {
>>   "hydra": "http://www.w3.org/ns/hydra/core#",
> namespace / prefix in *local* context so hydra:foo will extend to
> http://www.w3.org/ns/hydra/core#
http://www.w3.org/ns/hydra/core#foo

> 
>>
>> 2. "@context": "http://www.w3.org/ns/hydra/context.jsonld",
> here we have *remote* context, processor may need to do HTTP request
> with Content-Type application/ld+json to get it and then process document
> 
>>
>> 3. "@id": "http://www.w3.org/ns/hydra/core",
> URI of hydra core vocabulary itself (!= jsonld context, since any other
> RDF serialization can use it)
for prefix you need trailing # so hydra:foo doesn't end up as
http://www.w3.org/ns/hydra/corefoo, but if you need to make statement
about vocabulary itself you use it without trailing #

Received on Wednesday, 12 November 2014 19:19:53 UTC