Re: [whatwg] Was is considered to use JSON-LD instead of creating application/microdata+json?

On Thu, 9 Aug 2012, Markus Lanthaler wrote:
> >
> > The only reason there's a MIME type at all (rather than just using 
> > JSON's directly) was to enable filtering of copy-and-paste and 
> > drag-and-drop payloads; would JSON-LD enable that also?
> 
> Sure, I see no reason why not.

Could you give an example of how? I don't understand how it would work if 
we re-use an an existing MIME type. If you have any concrete examples I 
could look at that would be ideal.


> > That seems like it is strictly more complicated (trivially so, but 
> > still). What is the advantage?
> 
> Well, I would say there are several advantages. First of all, JSON-LD is 
> more flexible and expressive.

More flexible and expressive than what?


> It has support for string internationalization, data typing, lists etc.

How would this manifest itself in this context? Are you suggesting that we 
should change the microdata to JSON serialisation rules somehow?

 
> It also allows to distinguish between IRIs and literals (which isn't the 
> case for application/microdata+json) which is important for Linked Data 
> application.

Could you give an example of how this would help an application?

It would help if you described what precise changes you would like to see 
to the algorithms, so that I better understood the implications here.


> Secondly, there is an API for JSON-LD to reframe [1] a document into a 
> shape that might be easier to work with in a web app (I think that's the 
> whole point of microdata+json or am I wrong?).

I don't understand what this means.


> Other API calls allow e.g. to convert to and from RDF [2]. If you are 
> interested, there is an online JSON-LD playground [3] where you can play 
> with the various API calls. Last but not least it would also make web 
> developers life easier if there are fewer formats to support/learn.

Currently, the data is just stored as JSON, it's not a new format. It's 
only a new MIME type to allow easier filtering in the drag-and-drop API.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'

Received on Thursday, 9 August 2012 14:53:16 UTC