JSON-LD and JSON-Schema linkage

ALCON,

This has been asked before several times, but the answers always seem to
get muddled down and lost in semantics (which is what we’re doing here, so
I get it….).

For reference:

https://github.com/json-ld/json-ld.org/commit/019de59e296c39d7b5c0298d49d95b
99fceb294a

So there is a JSON-Schema document to validate ANY JSON-LD document against
to make sure that it’s a valid JSON-LD document.  Awesome!

Now, if I have a http://schema.org/Person, and an associated JSON-Schema
document that defines the fields associated with Person, how do I add a URL
to the associated JSON-LD document to reference that schema?

My specific use case is to generate JSON-LD documents from NIEM instances,
then create JSON-Schema documents for each persistence engine (database,
file system, etc) that will store the instances, and embed within the
JSON-Schema documents themselves the metadata required to create the
tables.  Basically an Schema->SQL engine (another ORM!), but entirely based
on the JSON-LD and JSON-Schema specs.

-TJ

Received on Tuesday, 24 October 2017 22:55:52 UTC