W3C home > Mailing lists > Public > public-linked-json@w3.org > August 2013

JSON Schema (json-schema.org) support?

From: Edwin Shao <eshao@eshao.es>
Date: Thu, 15 Aug 2013 18:54:42 +0800
Message-ID: <CAD+_UwXfAE9-aFfFSh7o5wUMo1xWgGjA=BejFrFDh=6E7SJ+Ow@mail.gmail.com>
To: public-linked-json@w3.org
It strikes me that JSON-LD and JSON Schema are quite complementary. The
first provides context, metadata, and a standard graph traversal mechanism.
The second provides a way to describe and validate a given JSON object.

What is the canonical or recommended way in a JSON document with JSON-LD
properties to refer to the location of a JSON Schema document that
validates it?

For example:

  @id: "http://example.com/eshao",
  @context: "http://example.com/Person.jsonld",
  @schema: "http://example.com/Person_schema.json",
  name: "Edwin",

If there is no canonical way currently (which seems to be the case), I
would suggest including one in the upcoming spec, perhaps creating a new
@schema keyword.

Thanks for your help and attention.

- Edwin
Received on Thursday, 15 August 2013 14:24:14 UTC

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