RE: JSON LD EBNF

On Monday, December 09, 2013 9:02 PM, Mark Hapner wrote:
> Another question ...
>
> In Sec 8.7 
>
> 'If the expanded term definition contains the @id keyword, its
> value MUST be null, an absolute IRI, a blank node identifier, a
> compact IRI, a term, or a keyword.'
>
> What keyword can be a value of an @id expanded def property and
> what would it mean? Does this also apply to the value of an @reverse
> member?

It can be any keyword expect @context. You can use it to alias keywords.
Typically however you wouldn't use expanded term definitions to do so as you
can't set a type or container doing so.

Here's an example of how @id can be aliased using expanded term definitions:

{
  "@context": {
    "id": { "@id": "@id" }
  },
  "id": "http://me.markus-lanthaler.com/",
  "name": "Markus"
}

This doesn't apply to @reverse.


--
Markus Lanthaler
@markuslanthaler

Received on Monday, 9 December 2013 21:35:57 UTC