r/semanticweb • • Aug 10 '13

json-ld is unnecessary

http://iamshane.com/articles/2013/8/8/1/json-ld-is-an-uneeded-spec
0 Upvotes

19 comments sorted by

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.

3

u/csarven Aug 10 '13 edited Aug 10 '13

Every once in awhile, there is a "yea, heh, microformats does that already" post and chalks up the whole semantic web stuff as if it is inferior to microformats. Majority of these authors don't get data, or worked with anything more complex than a blog post, or marked up their profiles.

What's even more amusing about this post is that, he is using RDFa (Facebook's og), but probably unaware of what it does.

1

u/[deleted] Aug 15 '13

maybe the problem is that they are not being implemented with rdfa.

you've stated the problem that i always find when lurking somewhere on semweb: "semantic web stuff as if its inferior to microformats" that sounds like they are not one in the same...therein lies the problem. every forum i'm in, bring up microformats, all hell breaks loose. why? what makes you think that semantic markup is not part of the semantic web? and why would you not want to capitalize on the most commonly used semantics on the web?

i am aware of triples and the complexities behind them. i don't think i truly grasp them, certainly not like anyone in these comments, so seriously, what's the deal? instead of needing data attributes, why can't rdfa play with microformats and rely on classes?

3

u/csarven Aug 15 '13

I'm not entirely clear about your questions, but, I'll give it a go. I hope it provides some clarity.

The "semantics" that you speak of in case of microformats is relatively lite. The microformats community is aware of that, hence the lower-case "semantic web". That's all fine. The main issue I suppose has to do with people conflating the intentions of microformats with RDF/Linked Data and so on.

There is nothing wrong with microformats, in and of itself. It has clear design goals and is not intended to solve all our "semantic" web problems. It encourages good plain HTML markup, and offers additional terms which can be used (in a particular fixed hierarchy) so that the document is a bit more machine-friendly. As far as what could be semantically "enhanced" is entirely dependent on identifying common patterns on the Web. The community itself "approves" as far as what becomes a microformat - centralized vocabulary building. It doesn't like namespaces and hidden metadata.

RDFa's requirements are different than microformats. As it is based on RDF, it needs to be able to assert that some thing has some sort of a relationship with some other thing. Given that anyone is free to come up with a vocabulary - decentralized in contrast to microformat's centralized approach - and that vocabularies from other spaces can be reused, we need to be able to refer to them in an uniform way. Fast forward: we use URIs to denote those things and relationships. This essentially allows one to make a statements where atomic things from anywhere on the Web can have a relationship e.g.,

<p about="http://example.org/#Alice">Alice knows <a rel="foaf:knows" href="http://example.net/#Bob">Bob</a></p>

From the microformats' perspective, it is more like relating the primary thing that the document is about to the primary thing of another document.

RDFa outshines microformats in this way because it has the potential to "connect" any specific thing with one another on the Web in a decentralized fashion.

I won't comment further on the history, standards and communities because I think mhermans provided a good overview in another thread here.

1

u/[deleted] Aug 15 '13

+1000 just for defining lower case semantic web. til...

well i think you can make those relationships with microformats.

<p class="vcard"><a href="http://bowdenweb.com/" rel="url fn">Albert</a> knows <a rel="friend" href="http://jackshit.com/">J. Shit</a></p>

i consider xfn a microformat.

microformats2 is being worked on...maybe they are addressing these issues? or working with rdfa? i want to say with you guys...

deep thoughts

3

u/csarven Aug 15 '13 edited Aug 15 '13

Your example is not right. I suggest studying hCard and XFN further, which would be more appopriate than me diving into details here. But, here is an overview of what I've said earlier based on your example:

http://bowdenweb.com/ and http://jackshit.com/ are documents. They encompose every thing in that document. That includes Albert, people he knows, his interests, etc..

So, in mf, the relationship is made between the documents (as a whole) as opposed to a particular fragment in those documents (which is the case in RDFa). In the case of RDFa, the relationship is precisely between the URIs.

In mf, if the primary topic of the document is Albert, the URLs of the rel="contact"s in that document state something like:

http://bowdenweb.com/ (the homepage of the primary topic, i.e., our Albert)

has a contact

http://jackshit.com/ (the homepage of J. Shit)

RDF goes much further because you are free to (re)use any vocabulary, and can have more precisision with your statements. For example, at http://bowdenweb.com/, you may have the following:

<p about="http://bowdenweb.com/#Albert">
  Albert knows <a rel="foaf:knows" href="http://jackshit.com/#JShit">J. Shit</a>.
  Albert made <a rel="foaf:made" href="http://bowdenweb.com/">his homepage</a>.
  Albert is from <a rel="foaf:based_near" href="http://dbpedia.org/resource/United_States">U.S.</a>.
</p>

Meanwhile http://jackshit.com/ may make some statements about http://jackshit.com/#JShit , and similarly http://dbpedia.org/resource/United_States would make statements about its own topic.

1

u/[deleted] Aug 15 '13

roger that. if i thank you guys again i feel like i should be smacked. so werd.

1

u/[deleted] Aug 15 '13

readability is relative

1

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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

u/[deleted] 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

u/mhgrove Aug 10 '13

Let's be honest, the author seems unaware of a lot.

2

u/westurner Aug 10 '13

Someone should write an RDF use cases document.