Remove useNativeTypes and useRdfType from JsonLdOptions
authorMarkus Lanthaler <mark_lanthaler@gmx.net>
Fri, 22 Mar 2013 17:55:06 +0100
changeset 1471 9fd042ecd92c
parent 1470 f854d3d623eb
child 1472 1fe11075f9a4
Remove useNativeTypes and useRdfType from JsonLdOptions

They aren't needed anymore as we don't specify an API for RDF conversion.
spec/latest/json-ld-api/index.html
--- a/spec/latest/json-ld-api/index.html	Fri Mar 22 17:01:57 2013 +0100
+++ b/spec/latest/json-ld-api/index.html	Fri Mar 22 17:55:06 2013 +0100
@@ -3408,10 +3408,8 @@
                   with key/value pair of <code>@id</code> and <i>subject</i>
                   represented in <tref>expanded IRI form</tref> if necessary.</li>
                 <li>If <i>predicate</i> is <code>rdf:type</code>, <i>object</i>
-                  is not a <tref>JSON-LD value</tref>, and the <code
-                  class="idlMemberName"><a
-                  href="#widl-JsonLdOptions-useRdfType">useRdfType</a></code> option
-                  is not present or <tref>false</tref>:
+                  is not a <tref>JSON-LD value</tref>, and the use of <code>rdf:type</code>
+                  has not been requested:
                   <ol class="algorithm">
                     <li>Append <i>object</i> represented in
                       <tref>expanded IRI form</tref> to the array value for the key
@@ -3420,9 +3418,7 @@
                   </ol>
                 </li>
                 <li>Otherwise, if <i>object</i> is a <tref>typed value</tref>
-                  and the <code class="idlMemberName"><a
-                  href="#widl-JsonLdOptions-useNativeTypes">useNativeTypes</a></code>
-                  option is set to <tref>true</tref>:
+                  and the use of native types has been requested:
                   <ol class="algorithm">
                     <li>Generate a <i>converted value</i>:
                       <ol class="algorithm">
@@ -3767,20 +3763,6 @@
           not defined. Consequently, different implementations MAY implement
           different optimization algorithms.
         </dd>
-        <dt>boolean useRdfType = false</dt>
-        <dd>If set to <code>true</code>, the JSON-LD processor will use the
-          expanded <code>rdf:type</code> IRI as the property instead of
-          <code>@type</code> when <a href="#convert-from-rdf-algorithm">converting from RDF</a>.
-        </dd>
-        <dt>boolean useNativeTypes = true</dt>
-        <dd>If set to <code>true</code>, the JSON-LD processor will try to convert
-          <tref title="typed value">typed values</tref> to JSON native types instead of using the
-          expanded object form when <a href="#convert-from-rdf-algorithm">converting from RDF</a>.
-          <code>xsd:boolean</code> values will be converted to <tref>true</tref> or <tref>false</tref>.
-          <code>xsd:integer</code> and <code>xsd:double</code> values will be
-          converted to
-          <tref title="number">JSON numbers</tref>.
-        </dd>
       </dl>
     </section>