Monday, June 3, 2013

Schema.org and JSON-LD

We'd like to take a minute to share our enthusiasm for some recent work at W3C: JSON-LD.

Schema.org is all about shared vocabulary - it helps integrate data across applications, Web sites and data formats. We are adding JSON-LD to the list of formats we recommend for use with schema.org, alongside Microdata and RDFa - each has strengths and weaknesses for different usage scenarios.

In HTML, schema.org descriptions can be written using markup attributes in HTML (i.e. RDFa and Microdata). However there are often cases when data is exchanged in pure JSON or as JSON within HTML. W3C's work on JSON-LD provides mechanisms for interpreting structured data in JSON that promotes interoperability with other data formats. We believe it provides value for developers and publishers, and improves the flow of information between JSON and other environments.

There are some technical details to work through on how exactly schema.org terms are defined for JSON-LD usage, but it is already clear that JSON-LD is a useful contribution to structured data sharing in the Web. Many thanks to the hardworking W3C community for creating the specification.

2 comments:

  1. Dan,

    What about adding support for Turtle? It's embeddable using SCRIPT tag (I couldn't type the actual HTML tag in to this post) just like JSON-LD.

    Kingsley

    ReplyDelete
  2. Those who understand what Turtle is and have use for it, will already know that schema.org data will work perfectly fine there. For now the focus here is on schema.org as it shows up in formats that mainstream Web developers and publishers are already deeply familiar with (HTML-based markup; JSON). Turtle is yet another fine way of exchanging RDF-shaped graph data, alongside NTriples, RDF/XML and others. It would be good to show some general examples of how schema.org-based data can work with off-the-shelf RDF tooling.

    ReplyDelete

Note: Only a member of this blog may post a comment.