Change rdfs:Property to rdf:Property in test vocabulary.
authorGregg Kellogg <gregg@kellogg-assoc.com>
Tue, 18 Feb 2014 15:38:05 -0800
changeset 2103 876e5f3f50c9
parent 2102 1a946ec60e46
child 2104 f8c5aea3f92b
child 2105 8c2e300ab574
Change rdfs:Property to rdf:Property in test vocabulary.
test-suite/vocab.html
test-suite/vocab.jsonld
test-suite/vocab.ttl
test-suite/vocab_gen.rb
--- a/test-suite/vocab.html	Mon Feb 10 11:35:49 2014 +0100
+++ b/test-suite/vocab.html	Tue Feb 18 15:38:05 2014 -0800
@@ -166,7 +166,7 @@
       <div class='row'>
         <section class='offset2 span8'>
           <dl>
-            <dt about='jld:httpLink' property='rdfs:label' typeof='rdfs:Property'>HTTP link</dt>
+            <dt about='jld:httpLink' property='rdfs:label' typeof='rdf:Property'>HTTP link</dt>
             <dd about='jld:httpLink'>
               <span property='rdfs:comment'><p>An HTTP Link header to be added to the result of requesting the input file.</p></span>
               <div>
@@ -182,7 +182,7 @@
                 <code property='rdfs:range' resource='xsd:boolean'>xsd:boolean</code>
               </div>
             </dd>
-            <dt about='jld:httpStatus' property='rdfs:label' typeof='rdfs:Property'>HTTP status</dt>
+            <dt about='jld:httpStatus' property='rdfs:label' typeof='rdf:Property'>HTTP status</dt>
             <dd about='jld:httpStatus'>
               <span property='rdfs:comment'><p>The HTTP status code that must be returned when the input file is requested. This is typically used along with the <code>redirectTo</code> property.</p></span>
               <div>
@@ -198,7 +198,7 @@
                 <code property='rdfs:range' resource='xsd:boolean'>xsd:boolean</code>
               </div>
             </dd>
-            <dt about='jld:base' property='rdfs:label' typeof='rdfs:Property'>base</dt>
+            <dt about='jld:base' property='rdfs:label' typeof='rdf:Property'>base</dt>
             <dd about='jld:base'>
               <span property='rdfs:comment'><p>The base IRI to use when expanding or compacting the document. If set, this overrides the input document&#39;s IRI.</p></span>
               <div>
@@ -214,7 +214,7 @@
                 <code property='rdfs:range' resource='rdfs:Resource'>rdfs:Resource</code>
               </div>
             </dd>
-            <dt about='jld:compactArrays' property='rdfs:label' typeof='rdfs:Property'>compact arrays</dt>
+            <dt about='jld:compactArrays' property='rdfs:label' typeof='rdf:Property'>compact arrays</dt>
             <dd about='jld:compactArrays'>
               <span property='rdfs:comment'><p>If set to <code>true</code>, the JSON-LD processor replaces arrays with just one element with that element during compaction. If set to false, all arrays will remain arrays even if they have just one element.</p></span>
               <div>
@@ -230,7 +230,7 @@
                 <code property='rdfs:range' resource='xsd:boolean'>xsd:boolean</code>
               </div>
             </dd>
-            <dt about='jld:contentType' property='rdfs:label' typeof='rdfs:Property'>content type</dt>
+            <dt about='jld:contentType' property='rdfs:label' typeof='rdf:Property'>content type</dt>
             <dd about='jld:contentType'>
               <span property='rdfs:comment'><p>The HTTP Content-Type used for the input file, in case it is a non-registered type.</p></span>
               <div>
@@ -246,7 +246,7 @@
                 <code property='rdfs:range' resource='xsd:boolean'>xsd:boolean</code>
               </div>
             </dd>
-            <dt about='jld:expandContext' property='rdfs:label' typeof='rdfs:Property'>expand context</dt>
+            <dt about='jld:expandContext' property='rdfs:label' typeof='rdf:Property'>expand context</dt>
             <dd about='jld:expandContext'>
               <span property='rdfs:comment'><p>A context that is used to initialize the active context when expanding a document.</p></span>
               <div>
@@ -262,7 +262,7 @@
                 <code property='rdfs:range' resource='rdfs:Resource'>rdfs:Resource</code>
               </div>
             </dd>
-            <dt about='jld:input' property='rdfs:label' typeof='rdfs:Property'>input</dt>
+            <dt about='jld:input' property='rdfs:label' typeof='rdf:Property'>input</dt>
             <dd about='jld:input'>
               <span property='rdfs:comment'><p>Secondary input file</p></span>
               <div>
@@ -278,7 +278,7 @@
                 <code property='rdfs:range' resource='rdfs:Resource'>rdfs:Resource</code>
               </div>
             </dd>
-            <dt about='jld:option' property='rdfs:label' typeof='rdfs:Property'>option</dt>
+            <dt about='jld:option' property='rdfs:label' typeof='rdf:Property'>option</dt>
             <dd about='jld:option'>
               <span property='rdfs:comment'><p>Options affecting processing</p></span>
               <div>
@@ -294,7 +294,7 @@
                 <code property='rdfs:range' resource='jld:Option'>jld:Option</code>
               </div>
             </dd>
-            <dt about='jld:processingMode' property='rdfs:label' typeof='rdfs:Property'>processing mode</dt>
+            <dt about='jld:processingMode' property='rdfs:label' typeof='rdf:Property'>processing mode</dt>
             <dd about='jld:processingMode'>
               <span property='rdfs:comment'><p>If set to &quot;json-ld-1.0&quot;, the JSON-LD processor must produce exactly the same results as the algorithms defined in this specification. If set to another value, the JSON-LD processor is allowed to extend or modify the algorithms defined in this specification to enable application-specific optimizations. The definition of such optimizations is beyond the scope of this specification and thus not defined. Consequently, different implementations may implement different optimizations. Developers must not define modes beginning with json-ld as they are reserved for future versions of this specification.</p></span>
               <div>
@@ -310,7 +310,7 @@
                 <code property='rdfs:range' resource='xsd:string'>xsd:string</code>
               </div>
             </dd>
-            <dt about='jld:produceGeneralizedRdf' property='rdfs:label' typeof='rdfs:Property'>produce generalized RDF</dt>
+            <dt about='jld:produceGeneralizedRdf' property='rdfs:label' typeof='rdf:Property'>produce generalized RDF</dt>
             <dd about='jld:produceGeneralizedRdf'>
               <span property='rdfs:comment'><p>Unless the produce generalized RDF flag is set to true, RDF triples containing a blank node predicate are excluded from output.</p></span>
               <div>
@@ -326,7 +326,7 @@
                 <code property='rdfs:range' resource='xsd:boolean'>xsd:boolean</code>
               </div>
             </dd>
-            <dt about='jld:redirectTo' property='rdfs:label' typeof='rdfs:Property'>redirect to</dt>
+            <dt about='jld:redirectTo' property='rdfs:label' typeof='rdf:Property'>redirect to</dt>
             <dd about='jld:redirectTo'>
               <span property='rdfs:comment'><p>The location of a URL for redirection. A request made of the input file must be redirected to the designated URL.</p></span>
               <div>
@@ -342,7 +342,7 @@
                 <code property='rdfs:range' resource='xsd:boolean'>xsd:boolean</code>
               </div>
             </dd>
-            <dt about='jld:useRdfType' property='rdfs:label' typeof='rdfs:Property'>use RDF types</dt>
+            <dt about='jld:useRdfType' property='rdfs:label' typeof='rdf:Property'>use RDF types</dt>
             <dd about='jld:useRdfType'>
               <span property='rdfs:comment'><p>If the <em>use rdf type</em> flag is set to <code>true</code>, statements with an <code>rdf:type</code> predicate will not use <code>@type</code>, but will be transformed as a normal property.</p></span>
               <div>
@@ -358,7 +358,7 @@
                 <code property='rdfs:range' resource='xsd:boolean'>xsd:boolean</code>
               </div>
             </dd>
-            <dt about='jld:useDocumentLoader' property='rdfs:label' typeof='rdfs:Property'>use document loader</dt>
+            <dt about='jld:useDocumentLoader' property='rdfs:label' typeof='rdf:Property'>use document loader</dt>
             <dd about='jld:useDocumentLoader'>
               <span property='rdfs:comment'><p>Test runners must implement a callback method with a method signature as defined in <a href="http://json-ld.org/spec/latest/json-ld-api/index.html#idl-def-LoadDocumentCallback">LoadDocumentCallback</a>. Specifying this option requires the test runner to provide this callback to the appropriate API method using the <code>documentLoader</code> option.</p></span>
               <div>
@@ -374,7 +374,7 @@
                 <code property='rdfs:range' resource='xsd:boolean'>xsd:boolean</code>
               </div>
             </dd>
-            <dt about='jld:useNativeTypes' property='rdfs:label' typeof='rdfs:Property'>use native types</dt>
+            <dt about='jld:useNativeTypes' property='rdfs:label' typeof='rdf:Property'>use native types</dt>
             <dd about='jld:useNativeTypes'>
               <span property='rdfs:comment'><p>If the <em>use native types</em> flag is set to <code>true</code>, RDF literals with a datatype IRI that equal <code>xsd:integer</code> or <code>xsd:double</code> are converted to a JSON numbers and RDF literals with a datatype IRI that equals <code>xsd:boolean</code> are converted to <code>true</code> or <code>false</code> based on their lexical form.</p></span>
               <div>
--- a/test-suite/vocab.jsonld	Mon Feb 10 11:35:49 2014 +0100
+++ b/test-suite/vocab.jsonld	Tue Feb 18 15:38:05 2014 -0800
@@ -117,7 +117,7 @@
     },
     {
       "@id": "jld:base",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "The base IRI to use when expanding or compacting the document. If set, this overrides the input document's IRI.",
       "rdfs:domain": "jld:Test",
       "rdfs:label": "base",
@@ -125,7 +125,7 @@
     },
     {
       "@id": "jld:compactArrays",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "If set to `true`, the JSON-LD processor replaces arrays with just one element with that element during compaction. If set to false, all arrays will remain arrays even if they have just one element.",
       "rdfs:domain": "jld:Test",
       "rdfs:label": "compact arrays",
@@ -133,7 +133,7 @@
     },
     {
       "@id": "jld:contentType",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "The HTTP Content-Type used for the input file, in case it is a non-registered type.",
       "rdfs:domain": "jld:Test",
       "rdfs:label": "content type",
@@ -141,7 +141,7 @@
     },
     {
       "@id": "jld:expandContext",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "A context that is used to initialize the active context when expanding a document.",
       "rdfs:domain": "jld:Test",
       "rdfs:label": "expand context",
@@ -149,7 +149,7 @@
     },
     {
       "@id": "jld:httpLink",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "An HTTP Link header to be added to the result of requesting the input file.",
       "rdfs:domain": "jld:Test",
       "rdfs:label": "HTTP link",
@@ -157,7 +157,7 @@
     },
     {
       "@id": "jld:httpStatus",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "The HTTP status code that must be returned when the input file is requested. This is typically used along with the `redirectTo` property.",
       "rdfs:domain": "jld:Test",
       "rdfs:label": "HTTP status",
@@ -165,7 +165,7 @@
     },
     {
       "@id": "jld:input",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "Secondary input file",
       "rdfs:domain": "jld:Test",
       "rdfs:label": "input",
@@ -173,7 +173,7 @@
     },
     {
       "@id": "jld:option",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "Options affecting processing",
       "rdfs:domain": "jld:Test",
       "rdfs:label": "option",
@@ -181,7 +181,7 @@
     },
     {
       "@id": "jld:processingMode",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "If set to \"json-ld-1.0\", the JSON-LD processor must produce exactly the same results as the algorithms defined in this specification. If set to another value, the JSON-LD processor is allowed to extend or modify the algorithms defined in this specification to enable application-specific optimizations. The definition of such optimizations is beyond the scope of this specification and thus not defined. Consequently, different implementations may implement different optimizations. Developers must not define modes beginning with json-ld as they are reserved for future versions of this specification.",
       "rdfs:domain": "jld:Test",
       "rdfs:label": "processing mode",
@@ -189,7 +189,7 @@
     },
     {
       "@id": "jld:produceGeneralizedRdf",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "Unless the produce generalized RDF flag is set to true, RDF triples containing a blank node predicate are excluded from output.",
       "rdfs:domain": "jld:ToRDFTest",
       "rdfs:label": "produce generalized RDF",
@@ -197,7 +197,7 @@
     },
     {
       "@id": "jld:redirectTo",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "The location of a URL for redirection. A request made of the input file must be redirected to the designated URL.",
       "rdfs:domain": "jld:Test",
       "rdfs:label": "redirect to",
@@ -205,7 +205,7 @@
     },
     {
       "@id": "jld:useDocumentLoader",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "Test runners must implement a callback method with a method signature as defined in [LoadDocumentCallback](http://json-ld.org/spec/latest/json-ld-api/index.html#idl-def-LoadDocumentCallback). Specifying this option requires the test runner to provide this callback to the appropriate API method using the `documentLoader` option.",
       "rdfs:domain": "jld:Test",
       "rdfs:label": "use document loader",
@@ -213,7 +213,7 @@
     },
     {
       "@id": "jld:useNativeTypes",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "If the _use native types_ flag is set to `true`, RDF literals with a datatype IRI that equal `xsd:integer` or `xsd:double` are converted to a JSON numbers and RDF literals with a datatype IRI that equals `xsd:boolean` are converted to `true` or `false` based on their lexical form.",
       "rdfs:domain": "jld:FromRDFTest",
       "rdfs:label": "use native types",
@@ -221,7 +221,7 @@
     },
     {
       "@id": "jld:useRdfType",
-      "@type": "rdfs:Property",
+      "@type": "rdf:Property",
       "rdfs:comment": "If the _use rdf type_ flag is set to `true`, statements with an `rdf:type` predicate will not use `@type`, but will be transformed as a normal property.",
       "rdfs:domain": "jld:FromRDFTest",
       "rdfs:label": "use RDF types",
--- a/test-suite/vocab.ttl	Mon Feb 10 11:35:49 2014 +0100
+++ b/test-suite/vocab.ttl	Tue Feb 18 15:38:05 2014 -0800
@@ -165,19 +165,19 @@
 
 ## ---- Property declarations for each test ----
 
-:input a rdfs:Property ;
+:input a rdf:Property ;
   rdfs:label "input";
   rdfs:comment "Secondary input file" ;
   rdfs:domain	 :Test ;
   rdfs:range   rdfs:Resource .
 
-:option a rdfs:Property ;
+:option a rdf:Property ;
   rdfs:label "option";
   rdfs:comment "Options affecting processing" ;
   rdfs:domain	 :Test ;
   rdfs:range   :Option .
 
-:base a rdfs:Property ;
+:base a rdf:Property ;
   rdfs:label "base";
   rdfs:comment """
     The base IRI to use when expanding or compacting the document.
@@ -186,7 +186,7 @@
   rdfs:domain	 :Test ;
   rdfs:range   rdfs:Resource .
 
-:compactArrays a rdfs:Property ;
+:compactArrays a rdf:Property ;
   rdfs:label "compact arrays";
   rdfs:comment """
     If set to `true`, the JSON-LD processor replaces arrays with just one element
@@ -196,7 +196,7 @@
   rdfs:domain	 :Test ;
   rdfs:range   xsd:boolean .
 
-:useDocumentLoader a rdfs:Property ;
+:useDocumentLoader a rdf:Property ;
   rdfs:label "use document loader";
   rdfs:comment """
     Test runners must implement a callback method with a method signature as defined
@@ -207,13 +207,13 @@
   rdfs:domain	 :Test ;
   rdfs:range   xsd:boolean .
 
-:expandContext a rdfs:Property ;
+:expandContext a rdf:Property ;
   rdfs:label "expand context";
   rdfs:comment "A context that is used to initialize the active context when expanding a document." ;
   rdfs:domain	 :Test ;
   rdfs:range   rdfs:Resource .
 
-:processingMode a rdfs:Property ;
+:processingMode a rdf:Property ;
   rdfs:label "processing mode";
   rdfs:comment """
     If set to "json-ld-1.0", the JSON-LD processor must produce exactly the same results as
@@ -227,13 +227,13 @@
   rdfs:domain	 :Test ;
   rdfs:range   xsd:string .
 
-:produceGeneralizedRdf a rdfs:Property ;
+:produceGeneralizedRdf a rdf:Property ;
   rdfs:label "produce generalized RDF";
   rdfs:comment "Unless the produce generalized RDF flag is set to true, RDF triples containing a blank node predicate are excluded from output." ;
   rdfs:domain	 :ToRDFTest ;
   rdfs:range   xsd:boolean .
 
-:useNativeTypes a rdfs:Property ;
+:useNativeTypes a rdf:Property ;
   rdfs:label "use native types";
   rdfs:comment """
     If the _use native types_ flag is set to `true`, RDF literals with a datatype IRI that
@@ -244,7 +244,7 @@
   rdfs:domain	 :FromRDFTest ;
   rdfs:range   xsd:boolean .
 
-:useRdfType a rdfs:Property ;
+:useRdfType a rdf:Property ;
   rdfs:label "use RDF types";
   rdfs:comment """
     If the _use rdf type_ flag is set to `true`, statements with an `rdf:type` predicate
@@ -253,7 +253,7 @@
   rdfs:domain	 :FromRDFTest ;
   rdfs:range   xsd:boolean .
 
-:contentType a rdfs:Property ;
+:contentType a rdf:Property ;
   rdfs:label "content type";
   rdfs:comment """
     The HTTP Content-Type used for the input file, in case it is a non-registered type.
@@ -261,7 +261,7 @@
   rdfs:domain	 :Test ;
   rdfs:range   xsd:boolean .
 
-:redirectTo a rdfs:Property ;
+:redirectTo a rdf:Property ;
   rdfs:label "redirect to";
   rdfs:comment """
     The location of a URL for redirection. A request made of the input file must be redirected
@@ -270,7 +270,7 @@
   rdfs:domain	 :Test ;
   rdfs:range   xsd:boolean .
 
-:httpStatus a rdfs:Property ;
+:httpStatus a rdf:Property ;
   rdfs:label "HTTP status";
   rdfs:comment """
     The HTTP status code that must be returned when the input file is requested. This
@@ -279,7 +279,7 @@
   rdfs:domain	 :Test ;
   rdfs:range   xsd:boolean .
 
-:httpLink a rdfs:Property ;
+:httpLink a rdf:Property ;
   rdfs:label "HTTP link";
   rdfs:comment """
     An HTTP Link header to be added to the result of requesting the input file.
--- a/test-suite/vocab_gen.rb	Mon Feb 10 11:35:49 2014 +0100
+++ b/test-suite/vocab_gen.rb	Tue Feb 18 15:38:05 2014 -0800
@@ -25,7 +25,7 @@
       html = Haml::Engine.new(template, :format => :html5).render(self,
         :ontology => compacted['@graph'].detect {|o| o['@id'] == "http://json-ld.org/test-suite/vocab#"},
         :classes => compacted['@graph'].select {|o| o['@type'] == "rdfs:Class"}.sort_by {|o| o['rdfs:label']},
-        :properties => compacted['@graph'].select {|o| o['@type'] == "rdfs:Property"}.sort_by {|o| o['rdfs:label']}
+        :properties => compacted['@graph'].select {|o| o['@type'] == "rdf:Property"}.sort_by {|o| o['rdfs:label']}
       )
       File.open("vocab.html", "w") {|fh| fh.write html}
     end