Reintroduce the use rdf:type flag
authorMarkus Lanthaler <>
Wed, 02 Oct 2013 21:36:22 +0200
changeset 2012 be8a29f7a965
parent 2011 272f3b335986
child 2013 06f6e2532026
Reintroduce the use rdf:type flag

This addresses #91.
--- a/spec/latest/json-ld-api/index.html	Wed Oct 02 09:59:34 2013 -0400
+++ b/spec/latest/json-ld-api/index.html	Wed Oct 02 21:36:22 2013 +0200
@@ -3464,14 +3464,18 @@
         <tref>false</tref> based on their
         <tref href="">lexical form</tref>
         as described in
-        <a class="sectionRef" href="#data-round-tripping">Data Round Tripping</a>.</p>
+        <a class="sectionRef" href="#data-round-tripping">Data Round Tripping</a>.
+        Unless the <i>use <code>rdf:type</code></i> flag is set to true, <code>rdf:type</code>
+        predicates will be serialized as <code>@type</code> as long as the associated object is
+        either an <tref>IRI</tref> or <tref>blank node identifier</tref>.</p>
-      <p>The algorithm takes two required inputs: an <tref>RDF dataset</tref> and a flag
-        <i>use native types</i> that defaults to <tref>false</tref>.</p>
+      <p>The algorithm takes one required and two optional inputs: an <tref>RDF dataset</tref>
+        and the two flags <i>use native types</i> and <i>use <code>rdf:type</code></i>
+        that both default to <tref>false</tref>.</p>
       <ol class="algorithm">
         <li>Initialize <i>default graph</i> to an empty <tref>JSON object</tref>.</li>
@@ -3506,7 +3510,8 @@
                   create one and initialize its value to a new <tref>JSON object</tref>
                   consisting of a single member <code>@id</code> whose value is
                   set to <i>object</i>.</li>
-                <li>If <i>predicate</i> equals <code>rdf:type</code>, and <i>object</i>
+                <li>If <i>predicate</i> equals <code>rdf:type</code>, the
+                  <i>use <code>rdf:type</code></i> flag is not <tref>true</tref>, and <i>object</i>
                   is an <tref>IRI</tref> or <tref>blank node identifier</tref>,
                   append <i>object</i> to the value of the <code>@type</code>
                   member of <i>node</i>; unless such an item already exists.