RE: Inverse properties in JSON-LD

Hi David,

we have been discussing inverse properties in various contexts but decided
to not support them in JSON-LD 1.0. We tried to avoid micro-syntaxes such as
"^parent" whenever possible. So if we would be going to support it would
probably look more like this:

{
  "@context": [
    "http://json-ld.org/contexts/person.jsonld",
    {
      "children": { "@rev": "parent", "@type": "@id" }  
    }
  },
  "@id": "http://dbpedia.org/resource/John_Lennon",
  "name": "John Lennon",
  "born": "1940-10-09",
  "children": "http://dbpedia.org/resource/Sean_Lennon"
}


The example above overlays a local context over the remote context
"person.jsonld" and defines children to be the reverse of parent. It's
values are type-coerced to @id so that they are interpreted as IRIs.


Cheers,
Markus


--
Markus Lanthaler
@markuslanthaler



> -----Original Message-----
From: David Rogers [mailto:david.rogers@bbc.co.uk] 
Sent: Tuesday, February 19, 2013 12:35 PM
To: public-linked-json@w3.org
Subject: Inverse properties in JSON-LD

Hello,

I was wondering if inverse properties have been considered for JSON-LD?

e.g.

{
  "@context": "http://json-ld.org/contexts/person.jsonld",
  "@id": "http://dbpedia.org/resource/John_Lennon",
  "name": "John Lennon",
  "born": "1940-10-09",
  "^parent": "http://dbpedia.org/resource/Sean_Lennon" <-- Sean is John’s
son
}

Where a symbol, such as ‘^’ indicates that the property is inverse of the
stated property.

Many thanks,

Dave Rogers 
 

http://www.bbc.co.uk
This e-mail (and any attachments) is confidential and may contain personal
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance
on it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this. 

Received on Wednesday, 20 February 2013 14:21:21 UTC