Update vocabulary comments.
--- a/test-suite/vocab.html Sun Aug 25 10:45:49 2013 -0700
+++ b/test-suite/vocab.html Sun Aug 25 11:04:15 2013 -0700
@@ -10,6 +10,7 @@
<script src='//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.min.js' type='text/javascript'></script>
<style>
dd code {display: inline;}
+ footer {text-align: center;}
</style>
<title>
Test case manifest vocabulary extensions
@@ -129,31 +130,31 @@
<section class='offset2 span8'>
<dl>
<dt about='jld:CompactTest' property='rdfs:label' typeof='rdfs:Class'>Compact Evaluation Test</dt>
- <dd about='jld:CompactTest' property='rdfs:comment'><p>A <code>CompactTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the <a href="http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-compact-Promise-any-input-JsonLdContext-context-JsonLdOptions-options">compact</a> method with the input argument from <code>mf:action</code> referencing a JSON-LD file in expanded form, context from <code>:input</code> and optional options from <code>:option</code>. The expected results for a <code>PositiveEvaluationTest</code> MUST be compared using JSON object comparison with the processor output.</p></dd>
+ <dd about='jld:CompactTest' property='rdfs:comment'><p>A <code>CompactTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the <a href="http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-compact-Promise-any-input-JsonLdContext-context-JsonLdOptions-options">compact</a> method with the input argument from <code>mf:action</code> (aliased as "input" in test manifest) referencing a JSON-LD file in expanded form, context from <code>:input</code> (aliased as "context" in the test manifest) and optional options from <code>:option</code>. The expected results for a <code>PositiveEvaluationTest</code> MUST be compared using JSON object comparison with the processor output.</p></dd>
<dt about='jld:ExpandTest' property='rdfs:label' typeof='rdfs:Class'>Expand Evaluation Test</dt>
- <dd about='jld:ExpandTest' property='rdfs:comment'><p>A <code>ExpandTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the <a href="http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-expand-Promise-any-input-JsonLdOptions-options">expand</a> method with the input argument from mf:action referencing a JSON-LD file, and optional options from <code>:option</code>. The expected results for a <code>PositiveEvaluationTest</code> MUST be compared using JSON object comparison with the processor output.</p></dd>
+ <dd about='jld:ExpandTest' property='rdfs:comment'><p>A <code>ExpandTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the <a href="http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-expand-Promise-any-input-JsonLdOptions-options">expand</a> method with the input argument from <code>mf:action</code> (aliased as "input" in test manifest) referencing a JSON-LD file, and optional options from <code>:option</code>. The expected results for a <code>PositiveEvaluationTest</code> MUST be compared using JSON object comparison with the processor output.</p></dd>
<dt about='jld:FlattenTest' property='rdfs:label' typeof='rdfs:Class'>Flatten Evaluation Test</dt>
- <dd about='jld:FlattenTest' property='rdfs:comment'><p>A <code>FlattenTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the flatten method (http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-flatten-Promise-any-input-JsonLdContext-context-JsonLdOptions-options) with the input argument from mf:action referencing a JSON-LD file, optional context from <code>:input</code> and optional options from <code>:option</code>. The expected results for a <code>PositiveEvaluationTest</code> MUST be compared using JSON object comparison with the processor output.</p></dd>
+ <dd about='jld:FlattenTest' property='rdfs:comment'><p>A <code>FlattenTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the <a href="http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-flatten-Promise-any-input-JsonLdContext-context-JsonLdOptions-options">flatten</a> method with the input argument from <code>mf:action</code> (aliased as "input" in test manifest) referencing a JSON-LD file, optional context from <code>:input</code> (aliased as "context" in the test manifest) and optional options from <code>:option</code>. The expected results for a <code>PositiveEvaluationTest</code> MUST be compared using JSON object comparison with the processor output.</p></dd>
<dt about='jld:FrameTest' property='rdfs:label' typeof='rdfs:Class'>Frame Evaluation Test</dt>
- <dd about='jld:FrameTest' property='rdfs:comment'><p>A <code>FrameTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the <a href="http://json-ld.org/spec/latest/json-ld-framing/#widl-JsonLdProcessor-frame-void-object-or-object---or-IRI-input-object-or-IRI-frame-JsonLdCallback-callback-JsonLdOptions-options">frame</a> method with the input argument from <code>mf:action</code> referencing a JSON-LD file, frame from <code>:input</code> and optional options from <code>:option</code>. The expected results for a <code>PositiveEvaluationTest</code> MUST be compared using JSON object comparison with the processor output.</p></dd>
+ <dd about='jld:FrameTest' property='rdfs:comment'><p>A <code>FrameTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the <a href="http://json-ld.org/spec/latest/json-ld-framing/#widl-JsonLdProcessor-frame-void-object-or-object---or-IRI-input-object-or-IRI-frame-JsonLdCallback-callback-JsonLdOptions-options">frame</a> method with the input argument from <code>mf:action</code> (aliased as "input" in test manifest) referencing a JSON-LD file, frame from <code>:input</code> (aliased as "frame" in the test manifest) and optional options from <code>:option</code>. The expected results for a <code>PositiveEvaluationTest</code> MUST be compared using JSON object comparison with the processor output.</p></dd>
<dt about='jld:FromRDFTest' property='rdfs:label' typeof='rdfs:Class'>From RDF Evaluation Test</dt>
- <dd about='jld:FromRDFTest' property='rdfs:comment'><p>A <code>FromRDFTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the <a href="http://json-ld.org/spec/latest/json-ld-api/index.html#rdf-to-object-conversion">RDF to Object Conversion</a> algorithm with the input argument from <code>mf:action</code> referencing an N-Quads file and optional options from <code>:option</code>. The expected results for a <code>PositiveEvaluationTest</code> MUST be compared using JSON object comparison with the processor output.</p></dd>
+ <dd about='jld:FromRDFTest' property='rdfs:comment'><p>A <code>FromRDFTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the <a href="http://json-ld.org/spec/latest/json-ld-api/index.html#rdf-to-object-conversion">RDF to Object Conversion</a> algorithm with the input argument from <code>mf:action</code> (aliased as "input" in test manifest) referencing an N-Quads file and optional options from <code>:option</code>. The expected results for a <code>PositiveEvaluationTest</code> MUST be compared using JSON object comparison with the processor output.</p></dd>
<dt about='jld:NegativeSyntaxTest' property='rdfs:label' typeof='rdfs:Class'>Negative Syntax Test</dt>
<dd about='jld:NegativeSyntaxTest' property='rdfs:comment'><p>A type of test specifically for syntax testing. Syntax tests are not required to have an associated result, only an action. Negative syntax tests are tests of which the result should be a parser error.</p></dd>
<dt about='jld:NormalizeTest' property='rdfs:label' typeof='rdfs:Class'>Normalization Evaluation Test</dt>
- <dd about='jld:NormalizeTest' property='rdfs:comment'><p>A <code>NormalizeTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the <a href="http://json-ld.org/spec/latest/rdf-graph-normalization/#normalization-algorithm">Normalization</a> algorithmwith the input argument from mf:action referencing an JSON-LD file and optional options from :option. The expected results for a PositiveEvaluationTest are N-Quads serialized in lexographical order and MUST be compared using string comparison.</p></dd>
+ <dd about='jld:NormalizeTest' property='rdfs:comment'><p>A <code>NormalizeTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the <a href="http://json-ld.org/spec/latest/rdf-graph-normalization/#normalization-algorithm">Normalization</a> algorithmwith the input argument from <code>mf:action</code> (aliased as "input" in test manifest) referencing an JSON-LD file and optional options from <code>:option</code>. The expected results for a PositiveEvaluationTest are N-Quads serialized in lexographical order and MUST be compared using string comparison.</p></dd>
<dt about='jld:NegativeEvaluationTest' property='rdfs:label' typeof='rdfs:Class'>Positive Evaluation Test</dt>
- <dd about='jld:NegativeEvaluationTest' property='rdfs:comment'><p>A Negative Evaluation test is successful when the result of processing the input file specified as <code>mf:action</code> results in the error identified by the literal value of <code>mf:result</code>. The specifics of invoking test, including the interpretation of options (<code>:option</code>) and other input files are specified through another class.</p></dd>
+ <dd about='jld:NegativeEvaluationTest' property='rdfs:comment'><p>A Negative Evaluation test is successful when the result of processing the input file specified as <code>mf:action</code> (aliased as "input" in test manifest) results in the error identified by the literal value of <code>mf:result</code> (aliased as "expect" in test manifest). The specifics of invoking test, including the interpretation of options (<code>:option</code>) and other input files are specified through another class.</p></dd>
<dt about='jld:PositiveEvaluationTest' property='rdfs:label' typeof='rdfs:Class'>Positive Evaluation Test</dt>
- <dd about='jld:PositiveEvaluationTest' property='rdfs:comment'><p>A Positive Evaluation test is successful when the result of processing the input file specified as <code>mf:action</code> exactly matches the output file specified as <code>mf:result</code> using the comparison defined in another class. The specifics of invoking test, including the interpretation of options (:option) and other input files are specified through another class.</p></dd>
+ <dd about='jld:PositiveEvaluationTest' property='rdfs:comment'><p>A Positive Evaluation test is successful when the result of processing the input file specified as <code>mf:action</code> (aliased as "input" in test manifest) exactly matches the output file specified as <code>mf:result</code> (aliased as "expect" in test manifest) using the comparison defined in another class. The specifics of invoking test, including the interpretation of options (<code>:option</code>) and other input files are specified through another class.</p></dd>
<dt about='jld:PositiveSyntaxTest' property='rdfs:label' typeof='rdfs:Class'>Positive Syntax Test</dt>
<dd about='jld:PositiveSyntaxTest' property='rdfs:comment'><p>A type of test specifically for syntax testing. Syntax tests are not required to have an associated result, only an action.</p></dd>
<dt about='jld:Option' property='rdfs:label' typeof='rdfs:Class'>Processor Options</dt>
<dd about='jld:Option' property='rdfs:comment'><p>Options passed to the test runner to affect invocation of the appropriate API method.</p></dd>
<dt about='jld:Test' property='rdfs:label' typeof='rdfs:Class'>Superclass of all JSON-LD tests</dt>
- <dd about='jld:Test' property='rdfs:comment'><p>All JSON-LD tests have an input file referenced using <code>mf:action</code>. Positive and Negative Evaluation Tests also have a result file referenced using <code>mf:result</code>. Other tests may take different inputs and options as defined for each test class. Tests should be run with the processingMode option set to "json-ld-1.0", unless specified explicitly as a test option.</p></dd>
+ <dd about='jld:Test' property='rdfs:comment'><p>All JSON-LD tests have an input file referenced using <code>mf:action</code> (aliased as "input" in test manifest). Positive and Negative Evaluation Tests also have a result file referenced using <code>mf:result</code> (aliased as "expect" in test manifest). Other tests may take different inputs and options as defined for each test class. Tests should be run with the processingMode option set to "json-ld-1.0", unless specified explicitly as a test option.</p></dd>
<dt about='jld:ToRDFTest' property='rdfs:label' typeof='rdfs:Class'>To RDF Evaluation Test</dt>
- <dd about='jld:ToRDFTest' property='rdfs:comment'><p>A <code>ToRDFTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the <a href="http://json-ld.org/spec/latest/json-ld-api/index.html#deserialize-json-ld-to-rdf-algorithm">Deserialize JSON-LD to RDF algorithm</a> with the input argument from <code>mf:action</code> referencing an JSON-LD file and optional options from <code>:option</code>. The expected results for a <code>PositiveEvaluationTest</code> are N-Quads serialized in lexographical order and MUST be compared either string comparison or Dataset as defined in <a href="http://www.w3.org/TR/rdf11-concepts/#section-dataset-isomorphism">RDF11-CONCEPTS</a>.</p></dd>
+ <dd about='jld:ToRDFTest' property='rdfs:comment'><p>A <code>ToRDFTest</code> modifies either a <code>PositiveEvaluationTest</code>, <code>NegativeEvaluationTest</code>, <code>PositiveSyntaxTest</code> or <code>NegativeSyntaxTest</code>. Tests are run using the <a href="http://json-ld.org/spec/latest/json-ld-api/index.html#deserialize-json-ld-to-rdf-algorithm">Deserialize JSON-LD to RDF algorithm</a> with the input argument from <code>mf:action</code> (aliased as "input" in test manifest) referencing an JSON-LD file and optional options from <code>:option</code>. The expected results for a <code>PositiveEvaluationTest</code> are N-Quads serialized in lexographical order and MUST be compared either string comparison or Dataset as defined in <a href="http://www.w3.org/TR/rdf11-concepts/#section-dataset-isomorphism">RDF11-CONCEPTS</a>.</p></dd>
</dl>
</section>
</div>
@@ -313,9 +314,9 @@
</section>
</div>
</div>
- <div class='footer'>
+ <footer>
<span property='dc:publisher'>W3C Linked JSON Community Group</span>
- </div>
+ </footer>
<script src='../static/js/bootstrap/bootstrap.js' type='text/javascript'></script>
</body>
</html>
--- a/test-suite/vocab.jsonld Sun Aug 25 10:45:49 2013 -0700
+++ b/test-suite/vocab.jsonld Sun Aug 25 11:04:15 2013 -0700
@@ -36,37 +36,37 @@
{
"@id": "jld:CompactTest",
"@type": "rdfs:Class",
- "rdfs:comment": "A `CompactTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the [compact](http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-compact-Promise-any-input-JsonLdContext-context-JsonLdOptions-options) method with the input argument from `mf:action` referencing a JSON-LD file in expanded form, context from `:input` and optional options from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.",
+ "rdfs:comment": "A `CompactTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the [compact](http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-compact-Promise-any-input-JsonLdContext-context-JsonLdOptions-options) method with the input argument from `mf:action` (aliased as \"input\" in test manifest) referencing a JSON-LD file in expanded form, context from `:input` (aliased as \"context\" in the test manifest) and optional options from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.",
"rdfs:label": "Compact Evaluation Test"
},
{
"@id": "jld:ExpandTest",
"@type": "rdfs:Class",
- "rdfs:comment": "A `ExpandTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the [expand](http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-expand-Promise-any-input-JsonLdOptions-options) method with the input argument from mf:action referencing a JSON-LD file, and optional options from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.",
+ "rdfs:comment": "A `ExpandTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the [expand](http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-expand-Promise-any-input-JsonLdOptions-options) method with the input argument from `mf:action` (aliased as \"input\" in test manifest) referencing a JSON-LD file, and optional options from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.",
"rdfs:label": "Expand Evaluation Test"
},
{
"@id": "jld:FlattenTest",
"@type": "rdfs:Class",
- "rdfs:comment": "A `FlattenTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the flatten method (http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-flatten-Promise-any-input-JsonLdContext-context-JsonLdOptions-options) with the input argument from mf:action referencing a JSON-LD file, optional context from `:input` and optional options from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.",
+ "rdfs:comment": "A `FlattenTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the [flatten](http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-flatten-Promise-any-input-JsonLdContext-context-JsonLdOptions-options) method with the input argument from `mf:action` (aliased as \"input\" in test manifest) referencing a JSON-LD file, optional context from `:input` (aliased as \"context\" in the test manifest) and optional options from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.",
"rdfs:label": "Flatten Evaluation Test"
},
{
"@id": "jld:FrameTest",
"@type": "rdfs:Class",
- "rdfs:comment": "A `FrameTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the [frame](http://json-ld.org/spec/latest/json-ld-framing/#widl-JsonLdProcessor-frame-void-object-or-object---or-IRI-input-object-or-IRI-frame-JsonLdCallback-callback-JsonLdOptions-options) method with the input argument from `mf:action` referencing a JSON-LD file, frame from `:input` and optional options from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.",
+ "rdfs:comment": "A `FrameTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the [frame](http://json-ld.org/spec/latest/json-ld-framing/#widl-JsonLdProcessor-frame-void-object-or-object---or-IRI-input-object-or-IRI-frame-JsonLdCallback-callback-JsonLdOptions-options) method with the input argument from `mf:action` (aliased as \"input\" in test manifest) referencing a JSON-LD file, frame from `:input` (aliased as \"frame\" in the test manifest) and optional options from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.",
"rdfs:label": "Frame Evaluation Test"
},
{
"@id": "jld:FromRDFTest",
"@type": "rdfs:Class",
- "rdfs:comment": "A `FromRDFTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the [RDF to Object Conversion](http://json-ld.org/spec/latest/json-ld-api/index.html#rdf-to-object-conversion) algorithm with the input argument from `mf:action` referencing an N-Quads file and optional options from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.",
+ "rdfs:comment": "A `FromRDFTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the [RDF to Object Conversion](http://json-ld.org/spec/latest/json-ld-api/index.html#rdf-to-object-conversion) algorithm with the input argument from `mf:action` (aliased as \"input\" in test manifest) referencing an N-Quads file and optional options from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.",
"rdfs:label": "From RDF Evaluation Test"
},
{
"@id": "jld:NegativeEvaluationTest",
"@type": "rdfs:Class",
- "rdfs:comment": "A Negative Evaluation test is successful when the result of processing the input file specified as `mf:action` results in the error identified by the literal value of `mf:result`. The specifics of invoking test, including the interpretation of options (`:option`) and other input files are specified through another class.",
+ "rdfs:comment": "A Negative Evaluation test is successful when the result of processing the input file specified as `mf:action` (aliased as \"input\" in test manifest) results in the error identified by the literal value of `mf:result` (aliased as \"expect\" in test manifest). The specifics of invoking test, including the interpretation of options (`:option`) and other input files are specified through another class.",
"rdfs:label": "Positive Evaluation Test",
"rdfs:subClassOf": "jld:Test"
},
@@ -80,7 +80,7 @@
{
"@id": "jld:NormalizeTest",
"@type": "rdfs:Class",
- "rdfs:comment": "A `NormalizeTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the [Normalization](http://json-ld.org/spec/latest/rdf-graph-normalization/#normalization-algorithm) algorithmwith the input argument from mf:action referencing an JSON-LD file and optional options from :option. The expected results for a PositiveEvaluationTest are N-Quads serialized in lexographical order and MUST be compared using string comparison.",
+ "rdfs:comment": "A `NormalizeTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the [Normalization](http://json-ld.org/spec/latest/rdf-graph-normalization/#normalization-algorithm) algorithmwith the input argument from `mf:action` (aliased as \"input\" in test manifest) referencing an JSON-LD file and optional options from `:option`. The expected results for a PositiveEvaluationTest are N-Quads serialized in lexographical order and MUST be compared using string comparison.",
"rdfs:label": "Normalization Evaluation Test"
},
{
@@ -92,7 +92,7 @@
{
"@id": "jld:PositiveEvaluationTest",
"@type": "rdfs:Class",
- "rdfs:comment": "A Positive Evaluation test is successful when the result of processing the input file specified as `mf:action` exactly matches the output file specified as `mf:result` using the comparison defined in another class. The specifics of invoking test, including the interpretation of options (:option) and other input files are specified through another class.",
+ "rdfs:comment": "A Positive Evaluation test is successful when the result of processing the input file specified as `mf:action` (aliased as \"input\" in test manifest) exactly matches the output file specified as `mf:result` (aliased as \"expect\" in test manifest) using the comparison defined in another class. The specifics of invoking test, including the interpretation of options (`:option`) and other input files are specified through another class.",
"rdfs:label": "Positive Evaluation Test",
"rdfs:subClassOf": "jld:Test"
},
@@ -106,13 +106,13 @@
{
"@id": "jld:Test",
"@type": "rdfs:Class",
- "rdfs:comment": "All JSON-LD tests have an input file referenced using `mf:action`. Positive and Negative Evaluation Tests also have a result file referenced using `mf:result`. Other tests may take different inputs and options as defined for each test class. Tests should be run with the processingMode option set to \"json-ld-1.0\", unless specified explicitly as a test option.",
+ "rdfs:comment": "All JSON-LD tests have an input file referenced using `mf:action` (aliased as \"input\" in test manifest). Positive and Negative Evaluation Tests also have a result file referenced using `mf:result` (aliased as \"expect\" in test manifest). Other tests may take different inputs and options as defined for each test class. Tests should be run with the processingMode option set to \"json-ld-1.0\", unless specified explicitly as a test option.",
"rdfs:label": "Superclass of all JSON-LD tests"
},
{
"@id": "jld:ToRDFTest",
"@type": "rdfs:Class",
- "rdfs:comment": "A `ToRDFTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the [Deserialize JSON-LD to RDF algorithm](http://json-ld.org/spec/latest/json-ld-api/index.html#deserialize-json-ld-to-rdf-algorithm) with the input argument from `mf:action` referencing an JSON-LD file and optional options from `:option`. The expected results for a `PositiveEvaluationTest` are N-Quads serialized in lexographical order and MUST be compared either string comparison or Dataset as defined in [RDF11-CONCEPTS](http://www.w3.org/TR/rdf11-concepts/#section-dataset-isomorphism).",
+ "rdfs:comment": "A `ToRDFTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`, `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the [Deserialize JSON-LD to RDF algorithm](http://json-ld.org/spec/latest/json-ld-api/index.html#deserialize-json-ld-to-rdf-algorithm) with the input argument from `mf:action` (aliased as \"input\" in test manifest) referencing an JSON-LD file and optional options from `:option`. The expected results for a `PositiveEvaluationTest` are N-Quads serialized in lexographical order and MUST be compared either string comparison or Dataset as defined in [RDF11-CONCEPTS](http://www.w3.org/TR/rdf11-concepts/#section-dataset-isomorphism).",
"rdfs:label": "To RDF Evaluation Test"
},
{
--- a/test-suite/vocab.ttl Sun Aug 25 10:45:49 2013 -0700
+++ b/test-suite/vocab.ttl Sun Aug 25 11:04:15 2013 -0700
@@ -22,12 +22,13 @@
:Test a rdfs:Class ;
rdfs:label "Superclass of all JSON-LD tests" ;
rdfs:comment """
- All JSON-LD tests have an input file referenced using `mf:action`.
+ All JSON-LD tests have an input file referenced using
+ `mf:action` (aliased as "input" in test manifest).
Positive and Negative Evaluation Tests also have a result file
- referenced using `mf:result`. Other tests may take different inputs
- and options as defined for each test class. Tests should be run
- with the processingMode option set to "json-ld-1.0", unless specified
- explicitly as a test option.
+ referenced using `mf:result` (aliased as "expect" in test manifest).
+ Other tests may take different inputs and options as defined for each test class.
+ Tests should be run with the processingMode option set to "json-ld-1.0",
+ unless specified explicitly as a test option.
""" .
:PositiveEvaluationTest a rdfs:Class ;
@@ -35,11 +36,11 @@
rdfs:subClassOf :Test ;
rdfs:comment """
A Positive Evaluation test is successful when the result of processing
- the input file specified as `mf:action` exactly matches the output file
- specified as `mf:result` using the comparison defined in
- another class. The specifics of invoking test, including
- the interpretation of options (:option) and other input files are
- specified through another class.
+ the input file specified as `mf:action` (aliased as "input" in test manifest)
+ exactly matches the output file specified as
+ `mf:result` (aliased as "expect" in test manifest) using the comparison defined in
+ another class. The specifics of invoking test, including the interpretation of options
+ (`:option`) and other input files are specified through another class.
""" .
:NegativeEvaluationTest a rdfs:Class ;
@@ -47,8 +48,10 @@
rdfs:subClassOf :Test ;
rdfs:comment """
A Negative Evaluation test is successful when the result of processing
- the input file specified as `mf:action` results in the error identified
- by the literal value of `mf:result`. The specifics of invoking test, including
+ the input file specified as `mf:action` (aliased as "input" in test manifest)
+ results in the error identified by the literal value of
+ `mf:result` (aliased as "expect" in test manifest).
+ The specifics of invoking test, including
the interpretation of options (`:option`) and other input files are
specified through another class.
""" .
@@ -56,7 +59,10 @@
:PositiveSyntaxTest a rdfs:Class ;
rdfs:subClassOf :Test ;
rdfs:label "Positive Syntax Test" ;
- rdfs:comment "A type of test specifically for syntax testing. Syntax tests are not required to have an associated result, only an action." .
+ rdfs:comment """
+ A type of test specifically for syntax testing.
+ Syntax tests are not required to have an associated result, only an action.
+ """ .
:NegativeSyntaxTest a rdfs:Class ;
rdfs:subClassOf :Test ;
@@ -73,8 +79,12 @@
A `CompactTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`,
`PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the
[compact](http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-compact-Promise-any-input-JsonLdContext-context-JsonLdOptions-options)
- method with the input argument from `mf:action` referencing a JSON-LD file in expanded form, context from `:input` and optional options
- from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.
+ method with the input argument from
+ `mf:action` (aliased as "input" in test manifest)
+ referencing a JSON-LD file in expanded form, context from
+ `:input` (aliased as "context" in the test manifest)
+ and optional options from `:option`.
+ The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.
""" .
:ExpandTest a rdfs:Class ;
@@ -83,18 +93,22 @@
A `ExpandTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`,
`PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the
[expand](http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-expand-Promise-any-input-JsonLdOptions-options)
- method with the input argument from mf:action referencing a JSON-LD file, and optional options
- from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.
+ method with the input argument from `mf:action` (aliased as "input" in test manifest)
+ referencing a JSON-LD file, and optional options from `:option`.
+ The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.
""" .
:FlattenTest a rdfs:Class ;
rdfs:label "Flatten Evaluation Test" ;
rdfs:comment """
A `FlattenTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`,
- `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the flatten method
- (http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-flatten-Promise-any-input-JsonLdContext-context-JsonLdOptions-options)
- with the input argument from mf:action referencing a JSON-LD file, optional context from `:input` and optional options
- from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.
+ `PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the
+ [flatten](http://json-ld.org/spec/latest/json-ld-api/index.html#widl-JsonLdProcessor-flatten-Promise-any-input-JsonLdContext-context-JsonLdOptions-options)
+ method with the input argument from `mf:action` (aliased as "input" in test manifest)
+ referencing a JSON-LD file, optional context from
+ `:input` (aliased as "context" in the test manifest)
+ and optional options from `:option`.
+ The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.
""" .
:FrameTest a rdfs:Class ;
@@ -103,8 +117,10 @@
A `FrameTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`,
`PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the
[frame](http://json-ld.org/spec/latest/json-ld-framing/#widl-JsonLdProcessor-frame-void-object-or-object---or-IRI-input-object-or-IRI-frame-JsonLdCallback-callback-JsonLdOptions-options)
- method with the input argument from `mf:action` referencing a JSON-LD file, frame from `:input` and optional options
- from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.
+ method with the input argument from `mf:action` (aliased as "input" in test manifest)
+ referencing a JSON-LD file, frame from
+ `:input` (aliased as "frame" in the test manifest) and optional options from `:option`.
+ The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.
""" .
:FromRDFTest a rdfs:Class ;
@@ -113,8 +129,9 @@
A `FromRDFTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`,
`PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the
[RDF to Object Conversion](http://json-ld.org/spec/latest/json-ld-api/index.html#rdf-to-object-conversion)
- algorithm with the input argument from `mf:action` referencing an N-Quads file and optional options
- from `:option`. The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.
+ algorithm with the input argument from `mf:action` (aliased as "input" in test manifest)
+ referencing an N-Quads file and optional options from `:option`.
+ The expected results for a `PositiveEvaluationTest` MUST be compared using JSON object comparison with the processor output.
""" .
:NormalizeTest a rdfs:Class ;
@@ -123,8 +140,9 @@
A `NormalizeTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`,
`PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the
[Normalization](http://json-ld.org/spec/latest/rdf-graph-normalization/#normalization-algorithm)
- algorithmwith the input argument from mf:action referencing an JSON-LD file and optional options
- from :option. The expected results for a PositiveEvaluationTest are N-Quads serialized in lexographical order
+ algorithmwith the input argument from `mf:action` (aliased as "input" in test manifest)
+ referencing an JSON-LD file and optional options from `:option`.
+ The expected results for a PositiveEvaluationTest are N-Quads serialized in lexographical order
and MUST be compared using string comparison.
""" .
@@ -134,8 +152,9 @@
A `ToRDFTest` modifies either a `PositiveEvaluationTest`, `NegativeEvaluationTest`,
`PositiveSyntaxTest` or `NegativeSyntaxTest`. Tests are run using the
[Deserialize JSON-LD to RDF algorithm](http://json-ld.org/spec/latest/json-ld-api/index.html#deserialize-json-ld-to-rdf-algorithm)
- with the input argument from `mf:action` referencing an JSON-LD file and optional options
- from `:option`. The expected results for a `PositiveEvaluationTest` are N-Quads serialized in lexographical order
+ with the input argument from `mf:action` (aliased as "input" in test manifest)
+ referencing an JSON-LD file and optional options from `:option`.
+ The expected results for a `PositiveEvaluationTest` are N-Quads serialized in lexographical order
and MUST be compared either string comparison or Dataset as defined
in [RDF11-CONCEPTS](http://www.w3.org/TR/rdf11-concepts/#section-dataset-isomorphism).
""" .
@@ -160,13 +179,20 @@
:base a rdfs:Property ;
rdfs:label "base";
- rdfs:comment "The base IRI to use when expanding or compacting the document. If set, this overrides the input document's IRI." ;
+ rdfs:comment """
+ The base IRI to use when expanding or compacting the document.
+ If set, this overrides the input document's IRI.
+ """ ;
rdfs:domain :Test ;
rdfs:range rdfs:Resource .
:compactArrays a rdfs:Property ;
rdfs:label "compact arrays";
- 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: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 :Test ;
rdfs:range xsd:boolean .
--- a/test-suite/vocab_template.haml Sun Aug 25 10:45:49 2013 -0700
+++ b/test-suite/vocab_template.haml Sun Aug 25 11:04:15 2013 -0700
@@ -10,6 +10,7 @@
%script{:type => "text/javascript", :src => "//cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.0.0-rc.3/handlebars.min.js"}
:css
dd code {display: inline;}
+ footer {text-align: center;}
%title
= ontology['dc:title']
%body{:resource => ontology['@id']}
@@ -116,6 +117,6 @@
range:
%code{:property => "rdfs:range", :resource => prop["rdfs:range"]}
= prop["rdfs:range"]
- %div.footer
+ %footer
%span{:property => "dc:publisher"}<= ontology["dc:publisher"]
%script{:type => "text/javascript", :src => "../static/js/bootstrap/bootstrap.js"}
\ No newline at end of file