playground schema.org support

I just added a feature to the playground to use a custom
documentLoader to map "http://schema.org[/]" to
"https://w3id.org/schema.org". This should let schema.org examples
[1][2] actually work instead of just complaining about an invalid
context URL. We can remove those map entries when/if schema.org starts
serving their own context.

This feature is obviously dependent on the correctness of the
temporary schema.org context hosted at json-ld.org [3][4]. At the
moment it is somewhat incomplete and using @vocab as a catch-all
crutch. Patches welcome.

Other systems that process JSON-LD may need to use a similar hack to
handle incoming data using a schema.org context.

[1] http://schema.org/Action
[2] https://developers.google.com/gmail/schemas/reference/formats/json-ld
[3] http://json-ld.org/contexts/schema.org.jsonld
[3] https://github.com/json-ld/json-ld.org/blob/master/contexts/schema.org.jsonld

-dave

Received on Thursday, 15 August 2013 19:25:17 UTC