inverse properties in JSON-LD

Hi all,

is there any plan in JSON-LD to provide a way to declare an *incoming*
arc, for example

  {
    "@subject": "#me",
    "http://xmlns.com/foaf/0.1/member": {
       "@inverse": "http://univ-lyon1.fr/#this"
    }
  }

producing the following triple

  <http://univ-lyon1.fr/#this>
     <http://xmlns.com/foaf/0.1/member> <#me> .


This would prove very useful with a coercion rule, as I would (much!)
rather write:

  {
    "@context": {
      "foaf:": "http://xmlns.com/foaf/0.1/",
      "memberOf": "http://xmlns.com/foaf/0.1/member",
      "@coerce": {
        "@inverse": "memberOf"
      }
    }

    "@type": "foaf:Person",
    "foaf:name": "Pierre-Antoine Champin",
    "memberOf": [
      "http://univ-lyon1.fr/#this", "http://liris.cnrs.fr/#this"
    ]
  }

(with the context possibly kept off-band) than write:

  {
    "@context": {
      "foaf:": "http://xmlns.com/foaf/0.1/",
      "@coerce": {
        "@iri": "foaf:member"
      }
    }
    "@subject": [
      {
        "@subject: "_:me",
        "@type": "foaf:Person",
        "foaf:name": "Pierre-Antoine Champin",
      },
      {
        "@subject: "http://univ-lyon1.fr/#this",
        "foaf:member": "_:me"
      },
      {
        "@subject: "http://liris.cnrs.fr/#this",
        "foaf:member": "_:me"
      }
    ]
  }


pa


PS: as I see it, "@inverse" would imply "@iri", as the subject of a
triple has to be an IRI in RDF.

Received on Monday, 3 October 2011 10:58:07 UTC