r/semanticweb • u/[deleted] • Aug 10 '13
json-ld is unnecessary
http://iamshane.com/articles/2013/8/8/1/json-ld-is-an-uneeded-spec1
Aug 15 '13
the microformats hate is deep here. joy!
3
u/mhermans Aug 15 '13
Please do not make this into another microformats vs. semweb-discussion (to be honest, I use neither so I do not have a strong, practical opinion on it).
Why this article gets so much critique (at least from me), is not because it is defending microformats, or critiquing JSON-LD or semweb standards (I posted another serious critique on JSON-LD & semweb-standards two weeks ago that was well received).
It is because the author is attacking a standard head-on (provocatively titled "JSON-LD is unnecessary") on use-cases and criteria the standard is ill suited or not intended for. As the author quotes himself:
JSON-LD is an ideal data format for programming environments, REST Web services, and unstructured databases
And then he starts critiquing it on "not clickable", "not stylable", "not really human readable", and comparing it to an HTML-based (i.e. display-oriented) markup standard. That is a bit like a DB-admin attacking microformat-standards for not being easy to query or load in an SQL-database.
When evaluating formats for embedding data in HTML/webpages, a sensible comparison would be between e.g. plain HTML, XML+XSLT/XQuery+XHTML, microformats and RDFa. When evaluating data formats for programming environments and unstructured databases, JSON, JSON Schema, JSON-LD, XML, etc. make sense. The comparison the author sets up, does not.
To make it more concrete: I use triple stores (through RDFLib) and unstructured databases (MongoDB and Neo4j) simultaneously. These two later database use JSON as their data format as choice, while the first used to be limited to triple-based formats such as RDF/XML, Turtle, etc., hampering interoperability. Now I just serialize as JSON-LD and have a interoperable data format that has the manipulation-advantages of JSON while being linked data.
1
Aug 15 '13
"Please do not make this into another microformats vs. semweb-discussion (to be honest, I use neither so I do not have a strong, practical opinion on it)." totally not a vs. discussion. or rather, this is a "history of:" ;) i don't want to argue. i want to understand. clearly there's a disconnect(s), and i want to know.
thanks alot. i did see the don't make me think post earlier. made me think of krug.
i'll read through this a few more times while i try to follow along.
k so if you hate me for this and don't want to answer, i understand. why do microformats and rdfa have to be compared. again, why can't they be interchangeable? why is rdfa "vocab" attribute not synonymous with microformats linking to their vocab? i get they are structured differently. i do not get the need for both.
furthermore, have you looked at the terms of use for schema.org? are you aware of indie web movement? open web movement? schema's terms atm have it banned from use in open web. food for thought.
again, thanks for taking the time. i appreciate it.
1
u/mhermans Aug 15 '13
why do microformats and rdfa ... i do not get the need for both.
Me neither. My very crude impression from following this discussion from the sideline for nine (!) years:
2004: Initial RDFa proposal in the context of XHTML.
2005: Multiple "bottom-up" initiatives for a simpler spec to embed data in HTML. E.g. eRDF, GRDDL, microformats.
2006-2008: XHTML2 effort of the W3C is losing steam, while the (later) HTML5-spec of the WHATWG group is picking up. The W3C-group starts out from a more complex RDFa specification, while the WHATWG group wants a minimalist specification based on microformats.
2008: RDFa 1.0 for XHTML is a Recommend W3C specification. Work starts on RDFa 1.1 to make it compatible with non-XML based HTML-standards (e.g. HTML5).
2010-2011:
To capture the more simple use cases, and alleviate the critique that it was to complex for beginners, RDFa 1.1 Lite was proposed.
Ironically, the minimalist approach of the WHATWG proved to simple, and they moved away from the microformats approach to Microdata 1.0.
2012-2013: RDFa 1.1 became a W3C Recommended spec in June 2012, in January 2013 the Microdata 1.0 spec was started (under protest) on the track for recommendation, expected somewhere in 2014.
So, in a nutshell: two groups working on the same problem for nearly a decade. One starts from a more complex/formal document model (XHTML) and evolved to cover more simple cases (e.g. RDFa Lite as a drop in for microformats), while the other group starts from a minimalist model (microformats), evolving to cover more complex use cases (Microdata). Resulting in two specifications, RDFa 1.1 Lite and Microdata 1.0, that are functionally equivalent
So to come back on your question, "i do not get the need for both": me neither. I would just stick to the one that is (1) already a W3C-specification and (2) covers all the use cases, both those of the semweb crowd and the more simple mark-up cases.
schema's terms atm have it banned from use in open web
What does this even mean?
1
Aug 15 '13
so rdfa has both i reckon? microformats doesn't cover all the use cases.
sorry...lol..i thought that sounded odd as i typed it. schema.org's terms of use don't follow the terms or lack thereof required to be accepted/promoted as an open web technology.
not a deal breaker for most, but certainly for me.
indie web http://indiewebcamp.com/why
again, thank you so much. handholding always helps the n00bs :)
1
u/mhermans Aug 15 '13
so rdfa has both i reckon? microformats doesn't cover all the use cases.
See this comparison for the differences.
The major selling point for microformats is it's simplicity. So I do not think there is a use case were microformats would work, and RDFa 1.1 Lite would not. However, RDFa might be too complex in that case, and the author could still opt to stick to microformats.
(Personally, I do not see a long term future for microformats. If publishers, sites, systems, etc. are increasingly doing the effort of embedding data in their pages, they might as well do it using some sort of standard, e.g. RDFa or Microdata.)
The inverse is not true, i.e. microformats or Microdata covering the use cases of RDFa. For instance, as you mention being concerned about open web (standards), RDFa allows you to more easily use and mix different vocabularies, including your own.
schema.org's terms of use ... [not] accepted/promoted as an open web technology.
I have not looked into it, but I thought that schema.org was licensed under Creative Commons...
Again, if you are concerned about this point, it should be an extra argument for using RDFa ;-). This is a vendor-neutral W3C standard and follows the W3C patent policy.
While the WHATWG does commendable work, in the end it is driven by a group of private actors: Apple, Mozilla, Google, Opera (ironically, Microsoft did not join due to concerns that the WHATWG-specifications were not royalty free).
When there are clear technical differences, e.g. the XHTML2 (W3C) vs HTML5 (WHATWG) debate, you can argue for following the one with the best idea's. If there is little difference (RDFa vs. Microdata 1.0), I prefer the vendor-neutral specification...
1
Aug 15 '13
first thoughts: schema.org is not vendor neutral. the three search engines got together and implemented it.
no cc here: http://schema.org/docs/terms.html
agree with last paragraph entirely. you actually just shut up a few "points" i was going to make. right on. preach on.
1
Aug 15 '13
first example in mashups not supported by microformats is hcard. unless i'm still not seeing something http://manu.sporny.org/2011/uber-comparison-rdfa-md-uf/#vocabulary-mashups
i could pick through the rest of this list pointing out microformat solutions that it doesn't show....but i want to make sure that i'm not wrong on the first one. and also kind of want the go ahead before i bore you to death
5
u/westurner Aug 10 '13 edited Aug 10 '13
The author seems unaware of the complexities of developing interactive read/write linked data applications.
How do we link one field of a microformat to another field of another record? Do we need another language to express that part of the data model?
How do we build graphs of triples in browser-side javascript and send them back upstream? Should we be naively concatenating strings into HTML, SPARQL/SPARUL queries and RDF syntaxes that require escaping various control characters?
JSON-LD is very useful.
[EDIT] links
4
8
u/mhermans Aug 10 '13
While critical pieces are much needed to avoid an "echo chamber"-effect in the semweb-community, this one does not fit the bill.
For instance, the bullets outlining his "we already have this technology"-argument do not make sense. E.g. countering an argument for linked data with the argument that we already can link between "documents as representations of data", or critiquing a "[data format] ideal for programming environments, web services, and unstructured databases" for not being "embedded in HTML" and not being "really a website".
If you finish off with contrasting the readability of a HTML+microformats snippets vs. a JSON-LD snippet, while being clearly away of RDFa, it is even getting slightly disingenuous.
Contrast with this this critique on JSON-LD that was posted a few days ago.