Skip to content

Commit 7dccd76

Browse files
committed
Update test vocabulary location to be https. Add specVersion.
1 parent 603f429 commit 7dccd76

13 files changed

+52
-14
lines changed

test-suite/context.jsonld

+6-5
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
"rdfs": "http://www.w3.org/2000/01/rdf-schema#",
88
"xsd": "http://www.w3.org/2001/XMLSchema#",
99

10-
"context": { "@id": "input", "@type": "@id" },
10+
"context": { "@type": "@id" },
1111
"expect": { "@id": "mf:result", "@type": "@id" },
12-
"frame": { "@id": "input", "@type": "@id" },
12+
"frame": { "@type": "@id" },
1313
"input": { "@id": "mf:action", "@type": "@id" },
1414
"option": { "@type": "@id"},
1515
"sequence": { "@id": "mf:entries", "@type": "@id", "@container": "@list" },
@@ -23,10 +23,11 @@
2323
"compactToRelative": { "@type": "xsd:boolean" },
2424
"documentLoader": { "@type": "xsd:string" },
2525
"expandContext": { "@type": "xsd:string" },
26+
"httpStatus": { "@type": "xsd:integer" },
27+
"httpLink": { "@type": "xsd:string", "@container": "@set" },
2628
"processingMode": { "@type": "xsd:string" },
2729
"produceGeneralizedRdf":{ "@type": "xsd:boolean" },
28-
"useNativeTypes": { "@type": "xsd:boolean" },
29-
"httpStatus": { "@type": "xsd:integer"},
30-
"httpLink": { "@container": "@set"}
30+
"specVersion": { "@type": "xsd:string" },
31+
"useNativeTypes": { "@type": "xsd:boolean" }
3132
}
3233
}

test-suite/manifest.jsonld

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@context": "http://json-ld.org/test-suite/context.jsonld",
2+
"@context": "https://json-ld.org/test-suite/context.jsonld",
33
"@id": "",
44
"@type": "mf:Manifest",
55
"description": "This manifest loads additional manifests for specific behavior tests",

test-suite/tests/compact-manifest.jsonld

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@context": "http://json-ld.org/test-suite/context.jsonld",
2+
"@context": "https://json-ld.org/test-suite/context.jsonld",
33
"@id": "",
44
"@type": "mf:Manifest",
55
"name": "Compaction",

test-suite/tests/error-manifest.jsonld

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@context": "http://json-ld.org/test-suite/context.jsonld",
2+
"@context": "https://json-ld.org/test-suite/context.jsonld",
33
"@id": "",
44
"@type": "mf:Manifest",
55
"description": "JSON-LD to Expansion tests use object compare",

test-suite/tests/expand-manifest.jsonld

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@context": "http://json-ld.org/test-suite/context.jsonld",
2+
"@context": "https://json-ld.org/test-suite/context.jsonld",
33
"@id": "",
44
"@type": "mf:Manifest",
55
"description": "JSON-LD to Expansion tests use object compare",

test-suite/tests/flatten-manifest.jsonld

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@context": "http://json-ld.org/test-suite/context.jsonld",
2+
"@context": "https://json-ld.org/test-suite/context.jsonld",
33
"@id": "",
44
"@type": "mf:Manifest",
55
"name": "Flattening",

test-suite/tests/frame-manifest.jsonld

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@context": "http://json-ld.org/test-suite/context.jsonld",
2+
"@context": "https://json-ld.org/test-suite/context.jsonld",
33
"@id": "",
44
"@type": "mf:Manifest",
55
"name": "Framing",

test-suite/tests/fromRdf-manifest.jsonld

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@context": "http://json-ld.org/test-suite/context.jsonld",
2+
"@context": "https://json-ld.org/test-suite/context.jsonld",
33
"@id": "",
44
"@type": "mf:Manifest",
55
"name": "Transform RDF to JSON-LD",

test-suite/tests/remote-doc-manifest.jsonld

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@context": "http://json-ld.org/test-suite/context.jsonld",
2+
"@context": "https://json-ld.org/test-suite/context.jsonld",
33
"@id": "",
44
"@type": "mf:Manifest",
55
"description": "Tests appropriate document loading behavior as defined in the API",

test-suite/tests/toRdf-manifest.jsonld

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"@context": "http://json-ld.org/test-suite/context.jsonld",
2+
"@context": "https://json-ld.org/test-suite/context.jsonld",
33
"@id": "",
44
"@type": "mf:Manifest",
55
"name": "Transform JSON-LD to RDF",

test-suite/vocab.html

+17
Original file line numberDiff line numberDiff line change
@@ -370,6 +370,23 @@ <h2 class='span12' id='classes' style='text-align: center;'>
370370
<code property='rdfs:range' resource='xsd:boolean'>xsd:boolean</code>
371371
</div>
372372
</dd>
373+
<dt about='jld:specVersion' property='rdfs:label' typeof='rdf:Property'>spec version</dt>
374+
<dd about='jld:specVersion'>
375+
<span property='rdfs:comment'><p>Indicates the JSON-LD version to which the test applies, rather than the specific processing mode. Values are &quot;1.0&quot;, and &quot;1.1&quot;. If not set, the test is presumed to be valid for all versions of JSON-LD. In cases where results differ between spec versions for the same test, the test will have both a &quot;1.0&quot; and &quot;1.1&quot; version, for example.</p>
376+
</span>
377+
<div>
378+
<strong>
379+
domain:
380+
</strong>
381+
<code property='rdfs:domain' resource='jld:Option'>jld:Option</code>
382+
</div>
383+
<div>
384+
<strong>
385+
range:
386+
</strong>
387+
<code property='rdfs:range' resource='xsd:string'>xsd:string</code>
388+
</div>
389+
</dd>
373390
<dt about='jld:useRdfType' property='rdfs:label' typeof='rdf:Property'>use RDF types</dt>
374391
<dd about='jld:useRdfType'>
375392
<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>

test-suite/vocab.jsonld

+8
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,14 @@
205205
"rdfs:label": "redirect to",
206206
"rdfs:range": "xsd:boolean"
207207
},
208+
{
209+
"@id": "jld:specVersion",
210+
"@type": "rdf:Property",
211+
"rdfs:comment": "Indicates the JSON-LD version to which the test applies, rather than the specific processing mode. Values are \"1.0\", and \"1.1\". If not set, the test is presumed to be valid for all versions of JSON-LD. In cases where results differ between spec versions for the same test, the test will have both a \"1.0\" and \"1.1\" version, for example.",
212+
"rdfs:domain": "jld:Option",
213+
"rdfs:label": "spec version",
214+
"rdfs:range": "xsd:string"
215+
},
208216
{
209217
"@id": "jld:useDocumentLoader",
210218
"@type": "rdf:Property",

test-suite/vocab.ttl

+12
Original file line numberDiff line numberDiff line change
@@ -282,3 +282,15 @@
282282
""" ;
283283
rdfs:domain :Option ;
284284
rdfs:range xsd:boolean .
285+
286+
:specVersion a rdf:Property ;
287+
rdfs:label "spec version";
288+
rdfs:comment """
289+
Indicates the JSON-LD version to which the test applies, rather than the
290+
specific processing mode. Values are "1.0", and "1.1". If not set, the
291+
test is presumed to be valid for all versions of JSON-LD. In cases where
292+
results differ between spec versions for the same test, the test will have
293+
both a "1.0" and "1.1" version, for example.
294+
""" ;
295+
rdfs:domain :Option ;
296+
rdfs:range xsd:string .

0 commit comments

Comments
 (0)