Cover case in fromRDF where the object of an rdf:type is a literal.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Fri, 09 Nov 2012 17:22:16 -0800
changeset 943 698bb6d5ab73
parent 942 d88905f128b0
child 944 529b48bcc2e1
Cover case in fromRDF where the object of an rdf:type is a literal.
This addresses issue #193
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Fri Nov 09 17:15:51 2012 -0800
+++ b/spec/latest/json-ld-api/index.html	Fri Nov 09 17:22:16 2012 -0800
@@ -2240,7 +2240,7 @@
           <em>subject</em>, initializing it to a new
           <tref>JSON object</tref> with key/value pair of <code>@id</code> and
           <em>subject</em> represented in <tref>expanded IRI form</tref> if necessary.</li>
-        <li>If <em>property</em> is <code>rdf:type</code> and the
+        <li>If <em>property</em> is <code>rdf:type</code>, <em>object</em> is not a <tref>literal</tref>, and the
           <code class="idlMemberName"><a href="#widl-JsonLdOptions-useRdfType">useRdfType</a></code>
           option is not present or <tref>false</tref>:
           <ol class="algorithm">
@@ -2249,7 +2249,7 @@
           </ol>
         </li>
 
-        <li>If <em>object</em> is a <tref>typed literal</tref> and the
+        <li>Otherwise, if <em>object</em> is a <tref>typed literal</tref> and the
           <code class="idlMemberName"><a href="#widl-JsonLdOptions-useNativeTypes">useNativeTypes</a></code>
           option is set to <tref>true</tref>:
           <ol class="algorithm">