W3C home > Mailing lists > Public > public-vocabs@w3.org > December 2013

RE: Yandex Testing Tool supports JSON-LD

From: Markus Lanthaler <markus.lanthaler@gmx.net>
Date: Fri, 27 Dec 2013 16:31:43 +0100
To: "'Justin Boyan'" <jaboyan@google.com>
Cc: <public-vocabs@w3.org>
Message-ID: <001c01cf0318$bfaf7840$3f0e68c0$@lanthaler@gmx.net>
Hi Justin,

On Wednesday, December 18, 2013 10:26 PM, Justin Boyan wrote:
> While Google's Structured Data Testing Tool doesn't support JSON-LD, we do

Hopefully that will change soon :-)

> have an Email Markup Tester that does -- tailored, as you might guess, to
> the use cases supported by Gmail.  Still, it's possible to paste in
> arbitrary JSON-LD (in a script tag, as with Yandex's tool).  Comments
> welcome!

Yeah, I'm aware of that and already tried it in the past. Works great. Given that it's limited to Schema.org it's also possible to avoid showing the full URLs (even though it would be nice to, e.g., show them as tooltips when you move the mouse over a property). It handles all cases I tried except the usage of remote contexts hosted somewhere else than schema.org. That's the only case where the result is wrong but still a "No errors detected" is shown. You can try it with:

  <script type="application/ld+json">
      "@context": "http://json-ld.org/contexts/schema.org.jsonld",
      "@id": "http://me.markus-lanthaler.com",
      "@type": "Person",
      "name": "Markus Lanthaler",
      "this-property": "does not exist"

By using http://schema.org instead of http://json-ld.org/contexts/schema.org.jsonld the error is detected. This is to be expected as the schema.org context is hardcoded into the tool.


Markus Lanthaler
Received on Friday, 27 December 2013 15:32:15 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:29:36 UTC