W3C home > Mailing lists > Public > public-linked-json@w3.org > November 2014

Nested property mapping in @context

From: Hendy Irawan <ceefour666@gmail.com>
Date: Tue, 25 Nov 2014 10:23:12 +0700
Message-ID: <CAAZLYptkzDY0y0Yr+E_3ZKQv6X-kVOgmC1+UpwudGhJc61jV+Q@mail.gmail.com>
To: Linked JSON <public-linked-json@w3.org>
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
Web Developer | Bippo Indonesia <http://www.bippo.co.id/> | Akselerator
Bisnis | Bandung
Received on Tuesday, 25 November 2014 03:23:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 16:18:42 UTC