Re: Express Offers/Credentials as JSON-LD in HTML pages

You got it.

On 01/16/2015 12:43 PM, Steven Rowat wrote:
> 
> a) JSON-LD can be used as a markup for ANY web page, just in the same
> way as RDFa or Microdata. That a single web page describing a single
> book still has valid JSON-LD 'data', and the book's name, authors,
> [price, eventually], etc etc are all expressible though JSON-LD. ?

Yes.

> 
> b) That this addition of JSON-LD to any given web page can be done
> INSTEAD of Microdata or RDFa -- that it will fulfill all their functions
> (and more) and so they aren't required; it isn't necessary to do both. ?

Yes. You can still do both if you want, though.

> 
> c) JSON-LD can be added IN A BLOCK, outside the existing HTML code (for
> example in the header), as opposed to Microdata and RDFa which
> (painfully) have to be added within the HTML code, line by line. This
> would be a major advantage in most situations (especially for
> retro-fitting existing web pages, but even for building new ones), over
> Microdata and RDFa.  ?

Yes.

> 
> And finally one possible disadvantage:
> 
> d) JSON-LD's block of code must REPEAT the content of the web page in
> any data that it uses to define that content itself, whereas Microdata
> and RDFa are only written around the existing content and so there's no
> repetition. Thus in some cases, where the entire content of, say, a
> story or a review or a blog, is being specified by the JSON-LD (for some
> reason), then it must be doubled. ?

Yes.


-- 
Dave Longley
CTO
Digital Bazaar, Inc.

Received on Friday, 16 January 2015 21:28:48 UTC