Remove alternate context for Schema.org
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Mon, 16 Jun 2014 23:58:33 +0200
changeset 2156 5ce9f694c385
parent 2155 a12ff6c6c901
child 2157 ae13e72a5ba3
Remove alternate context for Schema.org

as Schema.org now serves a JSON-LD context.
playground/index.html
playground/playground.js
--- a/playground/index.html	Thu May 15 21:51:46 2014 -0400
+++ b/playground/index.html	Mon Jun 16 23:58:33 2014 +0200
@@ -214,10 +214,9 @@
         <div id="markup-errors" class="text-error"></div>
         <div id="param-errors" class="text-error"></div>
         <div id="using-context-map" class="hide alert alert-note">
-          <p>NOTE: Schema.org's remote context was detected in your input.
-          Schema.org is working on publishing an official JSON-LD context, but
-          for now, only a temporary development version is available. If you
-          wish, you may use the development context to process your document.</p>
+          <p>NOTE: A remote context that is known to be fully working yet was detected in your input.
+            If you wish, you can use an alternative context created by the JSON-LD community to
+            process your document nevertheless.</p>
           <label class="checkbox">
             <input type="checkbox" id="use-context-map" value="1"> Use development context
           </label>
--- a/playground/playground.js	Thu May 15 21:51:46 2014 -0400
+++ b/playground/playground.js	Mon Jun 16 23:58:33 2014 +0200
@@ -44,12 +44,8 @@
 
   // map of original to modifed contexts
   playground.contextMap = {
-    // FIXME: remove schema.org support once they serve a JSON-LD context
-    // FIXME: can't use https://w3id.org/schema.org as chrome (not firefox)
-    // will drop Accept: application/ld+json in the request after redirecting
-    // which causes HTML to be returned (invalid context)
-    'http://schema.org': 'http://sdo-context-test.appspot.com/',
-    'http://schema.org/': 'http://sdo-context-test.appspot.com/'
+    // be careful when working with redirectors as as Chrome (not firefox)
+    // will drop Accept: application/ld+json after redirecting
   };
 
   // map of currently active mapped contexts for user feedback use