W3C home > Mailing lists > Public > public-linked-json@w3.org > April 2012

JSON as JSON-LD

From: <mark@coactus.com>
Date: Mon, 16 Apr 2012 17:07:19 -0400
Message-ID: <CALcoZiquPjUojeYG+bmwxex=LWQGrne=Vew6ns7MSNdivJ0aHA@mail.gmail.com>
To: public-linked-json@w3.org
Hey everyone,

I managed to convince the RDF WG of the value of the following idea
back in 2003 for RDF/XML, and wanted to try again now for JSON-LD.

The idea was that some existing XML documents should be able to be
interpreted as RDF/XML.  So this;

<Person xmlns="something">
  <Name>Mark</Name>
  <City>Ottawa</Name>
</Person>

means the same thing as if it were wrapped in rdf:RDF.

I had a look at the spec, and AFAICT (by looking at the spec, but also
playing in the playground), this isn't the case with JSON-LD, i.e. the
following JSON isn't also JSON-LD;

{"name":"Mark","city":"Ottawa"}

Is there a reason why this isn't already the case? I'm still quite new
to JSON-LD and don't have a feel for some of its goals, but as a new
user, this would simplify things for me. And as I mentioned to the RDF
WG, it's also a terrific tool in explaining the value of JSON-LD and
also in aiding in migration from JSON to JSON-LD.

I should mention that despite using JSON-LD, I'm *not* using RDF, so
I'm not at all concerned about the fact that "name" and "city" aren't
grounded. I understand that will be a concern for others, but it would
be nice if I weren't required to care about it ;-)

Mark.
Received on Monday, 16 April 2012 21:07:50 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 16:25:36 GMT