Content-type: text/html Downes.ca ~ Stephen's Web ~ JSON Schema, Schema.org, JSON-LD: What's the Difference?

Stephen Downes

Knowledge, Learning, Community

While I was studying the article I mentioned the other day on adding structured data to Canada.ca web pages I noticed the use of '@type' in the JSON example. Today I say the same sort of thing in an example on the ODRL mailing list. It's not JSON itself, of course, it's JSON Linked Data (JSON-LD). OK, I knew about that, but what's the '@type' notation? Well, JSON-LD is designed to be compatible with RDF, and the '@' symbol is used to point to schemas as defined (usually) at schema.org. So, for example, if we have "@type": "Hotel" then what we mean is 'Hotel' as defined by https://schema.org/Hotel. This article explains all that (and I found it surprisingly hard to find when I was searching).

Today: 3 Total: 1125 [Direct link] [Share]


Stephen Downes Stephen Downes, Casselman, Canada
stephen@downes.ca

Copyright 2024
Last Updated: Apr 26, 2024 2:16 p.m.

Canadian Flag Creative Commons License.

Force:yes