Nested property mapping in @context

For example I'd like to have this JSON-LD:

{
  "urn:foo#value": "Car",
  "urn:foo#children": [
    {"urn:bar#value": "George"},
    {"urn:bar#value": "Stacy"}
  ]
}

Be compacted to just:

{
  "@context": ???,
  "value": "Car",
  "children": [
    {"value": "George"},
    {"value": "Stacy"}
  ]
}

So my problem is:
1. There are two "value", mapped to different LD URIs (urn:foo# and
urn:bar#). But they are in different level. I want both to use the
shortened "value", not "valueA" and "valueB".
2. I'd like to have only a single @context in the document, which covers
both "value"s.

Is this possible?

Thank you.


Hendy Irawan - on Twitter <http://twitter.com/hendybippo> - on LinkedIn
<http://id.linkedin.com/in/hendyirawan>
Web Developer | Bippo Indonesia <http://www.bippo.co.id/> | Akselerator
Bisnis | Bandung

Received on Tuesday, 25 November 2014 03:23:38 UTC