json_ld: official JSON-LD test suite files
This commit is contained in:
parent
4ec22b8e66
commit
55aead5028
993 changed files with 17867 additions and 0 deletions
10
test/data/json-ld.org-test-suite/README.md
Executable file
10
test/data/json-ld.org-test-suite/README.md
Executable file
|
@ -0,0 +1,10 @@
|
|||
Official JSON-LD Test Suite
|
||||
===========================
|
||||
|
||||
The JSON-LD Test Suite is a set of tests that can be used to verify
|
||||
[specification conformance of JSON-LD Processors](http://json-ld.org/test-suite/reports/).
|
||||
The test suite provides an easy and comprehensive testing solution for
|
||||
developers implementing JSON-LD Processors.
|
||||
|
||||
More information about how to run the test suite or contribute new test
|
||||
cases can be found at http://json-ld.org/test-suite/
|
3
test/data/json-ld.org-test-suite/compact-0001-context.jsonld
Executable file
3
test/data/json-ld.org-test-suite/compact-0001-context.jsonld
Executable file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"@context": {}
|
||||
}
|
1
test/data/json-ld.org-test-suite/compact-0001-in.jsonld
Executable file
1
test/data/json-ld.org-test-suite/compact-0001-in.jsonld
Executable file
|
@ -0,0 +1 @@
|
|||
{"@id": "http://example.org/test#example"}
|
1
test/data/json-ld.org-test-suite/compact-0001-out.jsonld
Executable file
1
test/data/json-ld.org-test-suite/compact-0001-out.jsonld
Executable file
|
@ -0,0 +1 @@
|
|||
{}
|
11
test/data/json-ld.org-test-suite/compact-0002-context.jsonld
Executable file
11
test/data/json-ld.org-test-suite/compact-0002-context.jsonld
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"@context": {
|
||||
"t1": "http://example.com/t1",
|
||||
"t2": "http://example.com/t2",
|
||||
"term1": "http://example.com/term1",
|
||||
"term2": "http://example.com/term2",
|
||||
"term3": "http://example.com/term3",
|
||||
"term4": "http://example.com/term4",
|
||||
"term5": "http://example.com/term5"
|
||||
}
|
||||
}
|
9
test/data/json-ld.org-test-suite/compact-0002-in.jsonld
Executable file
9
test/data/json-ld.org-test-suite/compact-0002-in.jsonld
Executable file
|
@ -0,0 +1,9 @@
|
|||
[{
|
||||
"@id": "http://example.com/id1",
|
||||
"@type": ["http://example.com/t1"],
|
||||
"http://example.com/term1": ["v1"],
|
||||
"http://example.com/term2": [{"@value": "v2", "@type": "http://example.com/t2"}],
|
||||
"http://example.com/term3": [{"@value": "v3", "@language": "en"}],
|
||||
"http://example.com/term4": [4],
|
||||
"http://example.com/term5": [50, 51]
|
||||
}]
|
18
test/data/json-ld.org-test-suite/compact-0002-out.jsonld
Executable file
18
test/data/json-ld.org-test-suite/compact-0002-out.jsonld
Executable file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
"@context": {
|
||||
"t1": "http://example.com/t1",
|
||||
"t2": "http://example.com/t2",
|
||||
"term1": "http://example.com/term1",
|
||||
"term2": "http://example.com/term2",
|
||||
"term3": "http://example.com/term3",
|
||||
"term4": "http://example.com/term4",
|
||||
"term5": "http://example.com/term5"
|
||||
},
|
||||
"@id": "http://example.com/id1",
|
||||
"@type": "t1",
|
||||
"term1": "v1",
|
||||
"term2": {"@value": "v2", "@type": "t2"},
|
||||
"term3": {"@value": "v3", "@language": "en"},
|
||||
"term4": 4,
|
||||
"term5": [50, 51]
|
||||
}
|
3
test/data/json-ld.org-test-suite/compact-0003-context.jsonld
Executable file
3
test/data/json-ld.org-test-suite/compact-0003-context.jsonld
Executable file
|
@ -0,0 +1,3 @@
|
|||
{
|
||||
"@context": {}
|
||||
}
|
12
test/data/json-ld.org-test-suite/compact-0003-in.jsonld
Executable file
12
test/data/json-ld.org-test-suite/compact-0003-in.jsonld
Executable file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"@id": "http://example.org/id",
|
||||
"http://example.org/property": null,
|
||||
"regularJson": {
|
||||
"nonJsonLd": "property",
|
||||
"deep": [{
|
||||
"foo": "bar"
|
||||
}, {
|
||||
"bar": "foo"
|
||||
}]
|
||||
}
|
||||
}
|
1
test/data/json-ld.org-test-suite/compact-0003-out.jsonld
Executable file
1
test/data/json-ld.org-test-suite/compact-0003-out.jsonld
Executable file
|
@ -0,0 +1 @@
|
|||
{}
|
7
test/data/json-ld.org-test-suite/compact-0004-context.jsonld
Executable file
7
test/data/json-ld.org-test-suite/compact-0004-context.jsonld
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"@context": {
|
||||
"mylist1": {"@id": "http://example.com/mylist1", "@container": "@list"},
|
||||
"myset2": {"@id": "http://example.com/myset2", "@container": "@set"},
|
||||
"myset3": {"@id": "http://example.com/myset3", "@container": "@set"}
|
||||
}
|
||||
}
|
12
test/data/json-ld.org-test-suite/compact-0004-in.jsonld
Executable file
12
test/data/json-ld.org-test-suite/compact-0004-in.jsonld
Executable file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"@id": "http://example.org/id",
|
||||
"http://example.com/mylist1": {"@list": []},
|
||||
"http://example.com/myset2": {"@set": []},
|
||||
"http://example.com/myset3": "v1",
|
||||
"http://example.org/list1": {"@list": []},
|
||||
"http://example.org/list2": {"@list": [null]},
|
||||
"http://example.org/set1": {"@set": []},
|
||||
"http://example.org/set2": {"@set": [null]},
|
||||
"http://example.org/set3": [],
|
||||
"http://example.org/set4": [null]
|
||||
}
|
17
test/data/json-ld.org-test-suite/compact-0004-out.jsonld
Executable file
17
test/data/json-ld.org-test-suite/compact-0004-out.jsonld
Executable file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"@context": {
|
||||
"mylist1": {"@id": "http://example.com/mylist1", "@container": "@list"},
|
||||
"myset2": {"@id": "http://example.com/myset2", "@container": "@set"},
|
||||
"myset3": {"@id": "http://example.com/myset3", "@container": "@set"}
|
||||
},
|
||||
"@id": "http://example.org/id",
|
||||
"mylist1": [],
|
||||
"myset2": [],
|
||||
"myset3": ["v1"],
|
||||
"http://example.org/list1": {"@list": []},
|
||||
"http://example.org/list2": {"@list": []},
|
||||
"http://example.org/set1": [],
|
||||
"http://example.org/set2": [],
|
||||
"http://example.org/set3": [],
|
||||
"http://example.org/set4": []
|
||||
}
|
7
test/data/json-ld.org-test-suite/compact-0005-context.jsonld
Executable file
7
test/data/json-ld.org-test-suite/compact-0005-context.jsonld
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"@context": {
|
||||
"ex": "http://example.org/",
|
||||
"term1": {"@id": "ex:term1", "@type": "ex:datatype"},
|
||||
"term2": {"@id": "ex:term2", "@type": "@id"}
|
||||
}
|
||||
}
|
6
test/data/json-ld.org-test-suite/compact-0005-in.jsonld
Executable file
6
test/data/json-ld.org-test-suite/compact-0005-in.jsonld
Executable file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"@id": "http://example.org/id1",
|
||||
"@type": ["http://example.org/Type1", "http://example.org/Type2"],
|
||||
"http://example.org/term1": {"@value": "v1", "@type": "http://example.org/datatype"},
|
||||
"http://example.org/term2": {"@id": "http://example.org/id2"}
|
||||
}
|
11
test/data/json-ld.org-test-suite/compact-0005-out.jsonld
Executable file
11
test/data/json-ld.org-test-suite/compact-0005-out.jsonld
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"@context": {
|
||||
"ex": "http://example.org/",
|
||||
"term1": {"@id": "ex:term1", "@type": "ex:datatype"},
|
||||
"term2": {"@id": "ex:term2", "@type": "@id"}
|
||||
},
|
||||
"@id": "ex:id1",
|
||||
"@type": ["ex:Type1", "ex:Type2"],
|
||||
"term1": "v1",
|
||||
"term2": "ex:id2"
|
||||
}
|
7
test/data/json-ld.org-test-suite/compact-0006-context.jsonld
Executable file
7
test/data/json-ld.org-test-suite/compact-0006-context.jsonld
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"@context": {
|
||||
"ex": "http://example.org/",
|
||||
"term1": { "@id": "ex:term1", "@type": "ex:datatype" },
|
||||
"term2": "ex:term2"
|
||||
}
|
||||
}
|
6
test/data/json-ld.org-test-suite/compact-0006-in.jsonld
Executable file
6
test/data/json-ld.org-test-suite/compact-0006-in.jsonld
Executable file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"@id": "http://example.org/id1",
|
||||
"@type": ["http://example.org/Type1", "http://example.org/Type2"],
|
||||
"http://example.org/term1": {"@value": "v1", "@type": "http://example.org/different-datatype"},
|
||||
"http://example.org/term2": {"@id": "http://example.org/id2"}
|
||||
}
|
14
test/data/json-ld.org-test-suite/compact-0006-out.jsonld
Executable file
14
test/data/json-ld.org-test-suite/compact-0006-out.jsonld
Executable file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"@context": {
|
||||
"ex": "http://example.org/",
|
||||
"term1": {
|
||||
"@id": "ex:term1",
|
||||
"@type": "ex:datatype"
|
||||
},
|
||||
"term2": "ex:term2"
|
||||
},
|
||||
"@id": "ex:id1",
|
||||
"@type": ["ex:Type1", "ex:Type2"],
|
||||
"ex:term1": {"@value": "v1", "@type": "ex:different-datatype"},
|
||||
"term2": {"@id": "ex:id2"}
|
||||
}
|
9
test/data/json-ld.org-test-suite/compact-0007-context.jsonld
Executable file
9
test/data/json-ld.org-test-suite/compact-0007-context.jsonld
Executable file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"@context": {
|
||||
"dc": "http://purl.org/dc/elements/1.1/",
|
||||
"ex": "http://example.org/vocab#",
|
||||
"ex:authored": {"@type": "@id"},
|
||||
"ex:contains": {"@type": "@id"},
|
||||
"foaf": "http://xmlns.com/foaf/0.1/"
|
||||
}
|
||||
}
|
27
test/data/json-ld.org-test-suite/compact-0007-in.jsonld
Executable file
27
test/data/json-ld.org-test-suite/compact-0007-in.jsonld
Executable file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"@graph": [
|
||||
{
|
||||
"@id": "http://example.org/test#chapter",
|
||||
"http://purl.org/dc/elements/1.1/description": ["Fun"],
|
||||
"http://purl.org/dc/elements/1.1/title": ["Chapter One"]
|
||||
},
|
||||
{
|
||||
"@id": "http://example.org/test#jane",
|
||||
"http://example.org/vocab#authored": [{"@id": "http://example.org/test#chapter"}],
|
||||
"http://xmlns.com/foaf/0.1/name": ["Jane"]
|
||||
},
|
||||
{
|
||||
"@id": "http://example.org/test#john",
|
||||
"http://xmlns.com/foaf/0.1/name": ["John"]
|
||||
},
|
||||
{
|
||||
"@id": "http://example.org/test#library",
|
||||
"http://example.org/vocab#contains": [{
|
||||
"@id": "http://example.org/test#book",
|
||||
"http://example.org/vocab#contains": [ "this-is-not-an-IRI" ],
|
||||
"http://purl.org/dc/elements/1.1/contributor": ["Writer"],
|
||||
"http://purl.org/dc/elements/1.1/title": ["My Book"]
|
||||
}]
|
||||
}
|
||||
]
|
||||
}
|
34
test/data/json-ld.org-test-suite/compact-0007-out.jsonld
Executable file
34
test/data/json-ld.org-test-suite/compact-0007-out.jsonld
Executable file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"@context": {
|
||||
"dc": "http://purl.org/dc/elements/1.1/",
|
||||
"ex": "http://example.org/vocab#",
|
||||
"ex:authored": {"@type": "@id"},
|
||||
"ex:contains": {"@type": "@id"},
|
||||
"foaf": "http://xmlns.com/foaf/0.1/"
|
||||
},
|
||||
"@graph": [
|
||||
{
|
||||
"@id": "http://example.org/test#chapter",
|
||||
"dc:description": "Fun",
|
||||
"dc:title": "Chapter One"
|
||||
},
|
||||
{
|
||||
"@id": "http://example.org/test#jane",
|
||||
"ex:authored": "http://example.org/test#chapter",
|
||||
"foaf:name": "Jane"
|
||||
},
|
||||
{
|
||||
"@id": "http://example.org/test#john",
|
||||
"foaf:name": "John"
|
||||
},
|
||||
{
|
||||
"@id": "http://example.org/test#library",
|
||||
"ex:contains": {
|
||||
"@id": "http://example.org/test#book",
|
||||
"dc:contributor": "Writer",
|
||||
"dc:title": "My Book",
|
||||
"http://example.org/vocab#contains": "this-is-not-an-IRI"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
8
test/data/json-ld.org-test-suite/compact-0008-context.jsonld
Executable file
8
test/data/json-ld.org-test-suite/compact-0008-context.jsonld
Executable file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"@context": {
|
||||
"http://example.org/test#property1": {"@type": "@id"},
|
||||
"http://example.org/test#property2": {"@type": "@id"},
|
||||
"http://example.org/test#property3": {"@type": "@id"},
|
||||
"uri": "@id"
|
||||
}
|
||||
}
|
13
test/data/json-ld.org-test-suite/compact-0008-in.jsonld
Executable file
13
test/data/json-ld.org-test-suite/compact-0008-in.jsonld
Executable file
|
@ -0,0 +1,13 @@
|
|||
[{
|
||||
"@id": "http://example.org/test#example1",
|
||||
"http://example.org/test#property1": [{
|
||||
"@id": "http://example.org/test#example2",
|
||||
"http://example.org/test#property4": ["foo"]
|
||||
}],
|
||||
"http://example.org/test#property2": [{
|
||||
"@id": "http://example.org/test#example3"
|
||||
}],
|
||||
"http://example.org/test#property3": [{
|
||||
"@id": "http://example.org/test#example4"
|
||||
}]
|
||||
}]
|
15
test/data/json-ld.org-test-suite/compact-0008-out.jsonld
Executable file
15
test/data/json-ld.org-test-suite/compact-0008-out.jsonld
Executable file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"@context": {
|
||||
"http://example.org/test#property1": {"@type": "@id"},
|
||||
"http://example.org/test#property2": {"@type": "@id"},
|
||||
"http://example.org/test#property3": {"@type": "@id"},
|
||||
"uri": "@id"
|
||||
},
|
||||
"http://example.org/test#property1": {
|
||||
"http://example.org/test#property4": "foo",
|
||||
"uri": "http://example.org/test#example2"
|
||||
},
|
||||
"http://example.org/test#property2": "http://example.org/test#example3",
|
||||
"http://example.org/test#property3": "http://example.org/test#example4",
|
||||
"uri": "http://example.org/test#example1"
|
||||
}
|
7
test/data/json-ld.org-test-suite/compact-0009-context.jsonld
Executable file
7
test/data/json-ld.org-test-suite/compact-0009-context.jsonld
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"@context": {
|
||||
"dc": "http://purl.org/dc/elements/1.1/",
|
||||
"ex": "http://example.org/vocab#",
|
||||
"ex:contains": {"@type": "@id"}
|
||||
}
|
||||
}
|
7
test/data/json-ld.org-test-suite/compact-0009-in.jsonld
Executable file
7
test/data/json-ld.org-test-suite/compact-0009-in.jsonld
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"@id": "http://example.org/test#book",
|
||||
"http://example.org/vocab#contains": {
|
||||
"@id": "http://example.org/test#chapter"
|
||||
},
|
||||
"http://purl.org/dc/elements/1.1/title": "Title"
|
||||
}
|
10
test/data/json-ld.org-test-suite/compact-0009-out.jsonld
Executable file
10
test/data/json-ld.org-test-suite/compact-0009-out.jsonld
Executable file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"@context": {
|
||||
"dc": "http://purl.org/dc/elements/1.1/",
|
||||
"ex": "http://example.org/vocab#",
|
||||
"ex:contains": {"@type": "@id"}
|
||||
},
|
||||
"@id": "http://example.org/test#book",
|
||||
"dc:title": "Title",
|
||||
"ex:contains": "http://example.org/test#chapter"
|
||||
}
|
6
test/data/json-ld.org-test-suite/compact-0010-context.jsonld
Executable file
6
test/data/json-ld.org-test-suite/compact-0010-context.jsonld
Executable file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"@context": {
|
||||
"homepage": {"@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id"},
|
||||
"name": "http://xmlns.com/foaf/0.1/name"
|
||||
}
|
||||
}
|
13
test/data/json-ld.org-test-suite/compact-0010-in.jsonld
Executable file
13
test/data/json-ld.org-test-suite/compact-0010-in.jsonld
Executable file
|
@ -0,0 +1,13 @@
|
|||
[
|
||||
{
|
||||
"@id": "http://example.com/john",
|
||||
"http://xmlns.com/foaf/0.1/homepage": {
|
||||
"@id": "http://john.doe.org/"
|
||||
},
|
||||
"http://xmlns.com/foaf/0.1/name": "John Doe"
|
||||
},
|
||||
{
|
||||
"@id": "http://example.com/jane",
|
||||
"http://xmlns.com/foaf/0.1/name": "Jane Doe"
|
||||
}
|
||||
]
|
20
test/data/json-ld.org-test-suite/compact-0010-out.jsonld
Executable file
20
test/data/json-ld.org-test-suite/compact-0010-out.jsonld
Executable file
|
@ -0,0 +1,20 @@
|
|||
{
|
||||
"@context": {
|
||||
"homepage": {
|
||||
"@id": "http://xmlns.com/foaf/0.1/homepage",
|
||||
"@type": "@id"
|
||||
},
|
||||
"name": "http://xmlns.com/foaf/0.1/name"
|
||||
},
|
||||
"@graph": [
|
||||
{
|
||||
"@id": "http://example.com/john",
|
||||
"homepage": "http://john.doe.org/",
|
||||
"name": "John Doe"
|
||||
},
|
||||
{
|
||||
"@id": "http://example.com/jane",
|
||||
"name": "Jane Doe"
|
||||
}
|
||||
]
|
||||
}
|
8
test/data/json-ld.org-test-suite/compact-0011-context.jsonld
Executable file
8
test/data/json-ld.org-test-suite/compact-0011-context.jsonld
Executable file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"@context": {
|
||||
"ex": "http://example.org/vocab#",
|
||||
"ex:date": {"@type": "xsd:dateTime"},
|
||||
"ex:parent": {"@type": "@id"},
|
||||
"xsd": "http://www.w3.org/2001/XMLSchema#"
|
||||
}
|
||||
}
|
13
test/data/json-ld.org-test-suite/compact-0011-in.jsonld
Executable file
13
test/data/json-ld.org-test-suite/compact-0011-in.jsonld
Executable file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"@id": "http://example.org/test#example1",
|
||||
"http://example.org/vocab#date": {
|
||||
"@value": "2011-01-25T00:00:00Z",
|
||||
"@type": "http://www.w3.org/2001/XMLSchema#dateTime"
|
||||
},
|
||||
"http://example.org/vocab#embed": {
|
||||
"@id": "http://example.org/test#example2",
|
||||
"http://example.org/vocab#parent": {
|
||||
"@id": "http://example.org/test#example1"
|
||||
}
|
||||
}
|
||||
}
|
14
test/data/json-ld.org-test-suite/compact-0011-out.jsonld
Executable file
14
test/data/json-ld.org-test-suite/compact-0011-out.jsonld
Executable file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"@context": {
|
||||
"ex": "http://example.org/vocab#",
|
||||
"ex:date": {"@type": "xsd:dateTime"},
|
||||
"ex:parent": {"@type": "@id"},
|
||||
"xsd": "http://www.w3.org/2001/XMLSchema#"
|
||||
},
|
||||
"@id": "http://example.org/test#example1",
|
||||
"ex:date": "2011-01-25T00:00:00Z",
|
||||
"ex:embed": {
|
||||
"@id": "http://example.org/test#example2",
|
||||
"ex:parent": "http://example.org/test#example1"
|
||||
}
|
||||
}
|
5
test/data/json-ld.org-test-suite/compact-0012-context.jsonld
Executable file
5
test/data/json-ld.org-test-suite/compact-0012-context.jsonld
Executable file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"@context": {
|
||||
"ex": "http://example.org/vocab#"
|
||||
}
|
||||
}
|
5
test/data/json-ld.org-test-suite/compact-0012-in.jsonld
Executable file
5
test/data/json-ld.org-test-suite/compact-0012-in.jsonld
Executable file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"@id": "http://example.org/test",
|
||||
"http://example.org/vocab#bool": true,
|
||||
"http://example.org/vocab#int": 123
|
||||
}
|
8
test/data/json-ld.org-test-suite/compact-0012-out.jsonld
Executable file
8
test/data/json-ld.org-test-suite/compact-0012-out.jsonld
Executable file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
"@context": {
|
||||
"ex": "http://example.org/vocab#"
|
||||
},
|
||||
"@id": "http://example.org/test",
|
||||
"ex:bool": true,
|
||||
"ex:int": 123
|
||||
}
|
5
test/data/json-ld.org-test-suite/compact-0013-context.jsonld
Executable file
5
test/data/json-ld.org-test-suite/compact-0013-context.jsonld
Executable file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"@context": {
|
||||
"ex": "http://example.org/vocab#"
|
||||
}
|
||||
}
|
4
test/data/json-ld.org-test-suite/compact-0013-in.jsonld
Executable file
4
test/data/json-ld.org-test-suite/compact-0013-in.jsonld
Executable file
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"@id": "http://example.org/test",
|
||||
"http://example.org/vocab#test": {"@value": "test", "@language": "en"}
|
||||
}
|
7
test/data/json-ld.org-test-suite/compact-0013-out.jsonld
Executable file
7
test/data/json-ld.org-test-suite/compact-0013-out.jsonld
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"@context": {
|
||||
"ex": "http://example.org/vocab#"
|
||||
},
|
||||
"@id": "http://example.org/test",
|
||||
"ex:test": {"@value": "test", "@language": "en"}
|
||||
}
|
7
test/data/json-ld.org-test-suite/compact-0014-context.jsonld
Executable file
7
test/data/json-ld.org-test-suite/compact-0014-context.jsonld
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"@context": {
|
||||
"homepage": {"@id": "http://xmlns.com/foaf/0.1/homepage", "@type": "@id"},
|
||||
"name": "http://xmlns.com/foaf/0.1/name",
|
||||
"data": "@graph"
|
||||
}
|
||||
}
|
13
test/data/json-ld.org-test-suite/compact-0014-in.jsonld
Executable file
13
test/data/json-ld.org-test-suite/compact-0014-in.jsonld
Executable file
|
@ -0,0 +1,13 @@
|
|||
[
|
||||
{
|
||||
"@id": "http://example.com/john",
|
||||
"http://xmlns.com/foaf/0.1/homepage": {
|
||||
"@id": "http://john.doe.org/"
|
||||
},
|
||||
"http://xmlns.com/foaf/0.1/name": "John Doe"
|
||||
},
|
||||
{
|
||||
"@id": "http://example.com/jane",
|
||||
"http://xmlns.com/foaf/0.1/name": "Jane Doe"
|
||||
}
|
||||
]
|
21
test/data/json-ld.org-test-suite/compact-0014-out.jsonld
Executable file
21
test/data/json-ld.org-test-suite/compact-0014-out.jsonld
Executable file
|
@ -0,0 +1,21 @@
|
|||
{
|
||||
"@context": {
|
||||
"homepage": {
|
||||
"@id": "http://xmlns.com/foaf/0.1/homepage",
|
||||
"@type": "@id"
|
||||
},
|
||||
"name": "http://xmlns.com/foaf/0.1/name",
|
||||
"data": "@graph"
|
||||
},
|
||||
"data": [
|
||||
{
|
||||
"@id": "http://example.com/john",
|
||||
"homepage": "http://john.doe.org/",
|
||||
"name": "John Doe"
|
||||
},
|
||||
{
|
||||
"@id": "http://example.com/jane",
|
||||
"name": "Jane Doe"
|
||||
}
|
||||
]
|
||||
}
|
12
test/data/json-ld.org-test-suite/compact-0015-context.jsonld
Executable file
12
test/data/json-ld.org-test-suite/compact-0015-context.jsonld
Executable file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"@context": {
|
||||
"t1": "http://example.com/t1",
|
||||
"t2": "http://example.com/t2",
|
||||
"term1": "http://example.com/term",
|
||||
"term2": {"@id": "http://example.com/term", "@type": "t2"},
|
||||
"term3": {"@id": "http://example.com/term", "@language": "en"},
|
||||
"term4": {"@id": "http://example.com/term", "@container": "@list"},
|
||||
"term5": {"@id": "http://example.com/term", "@language": null},
|
||||
"@language": "de"
|
||||
}
|
||||
}
|
12
test/data/json-ld.org-test-suite/compact-0015-in.jsonld
Executable file
12
test/data/json-ld.org-test-suite/compact-0015-in.jsonld
Executable file
|
@ -0,0 +1,12 @@
|
|||
[{
|
||||
"@id": "http://example.com/id1",
|
||||
"@type": ["http://example.com/t1"],
|
||||
"http://example.com/term": [
|
||||
{"@value": "v1", "@language": "de"},
|
||||
{"@value": "v2", "@type": "http://example.com/t2"},
|
||||
{"@value": "v3", "@language": "en"},
|
||||
{"@list": [1, 2]},
|
||||
"v5",
|
||||
{"@value": "plain literal"}
|
||||
]
|
||||
}]
|
19
test/data/json-ld.org-test-suite/compact-0015-out.jsonld
Executable file
19
test/data/json-ld.org-test-suite/compact-0015-out.jsonld
Executable file
|
@ -0,0 +1,19 @@
|
|||
{
|
||||
"@context": {
|
||||
"t1": "http://example.com/t1",
|
||||
"t2": "http://example.com/t2",
|
||||
"term1": "http://example.com/term",
|
||||
"term2": {"@id": "http://example.com/term", "@type": "t2"},
|
||||
"term3": {"@id": "http://example.com/term", "@language": "en"},
|
||||
"term4": {"@id": "http://example.com/term", "@container": "@list"},
|
||||
"term5": {"@id": "http://example.com/term", "@language": null},
|
||||
"@language": "de"
|
||||
},
|
||||
"@id": "http://example.com/id1",
|
||||
"@type": "t1",
|
||||
"term1": "v1",
|
||||
"term2": "v2",
|
||||
"term3": "v3",
|
||||
"term4": [ 1, 2 ],
|
||||
"term5": [ "v5", "plain literal" ]
|
||||
}
|
7
test/data/json-ld.org-test-suite/compact-0016-context.jsonld
Executable file
7
test/data/json-ld.org-test-suite/compact-0016-context.jsonld
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"@context": {
|
||||
"wd": "http://data.wikipedia.org/vocab#",
|
||||
"ws": "http://data.wikipedia.org/snaks/",
|
||||
"wp": "http://en.wikipedia.org/wiki/"
|
||||
}
|
||||
}
|
22
test/data/json-ld.org-test-suite/compact-0016-in.jsonld
Executable file
22
test/data/json-ld.org-test-suite/compact-0016-in.jsonld
Executable file
|
@ -0,0 +1,22 @@
|
|||
[
|
||||
{
|
||||
"@id": "http://data.wikipedia.org/snaks/Assertions",
|
||||
"@type": "http://data.wikipedia.org/vocab#SnakSet",
|
||||
"http://data.wikipedia.org/vocab#assertedBy": [
|
||||
{ "@value": "Gregg Kellogg" }
|
||||
],
|
||||
"@graph": [
|
||||
{
|
||||
"@id": "http://data.wikipedia.org/snaks/BerlinFact",
|
||||
"@type": [ "http://data.wikipedia.org/vocab#Snak" ],
|
||||
"http://data.wikipedia.org/vocab#assertedBy": [ { "@value": "Statistik Berlin/Brandenburg" } ],
|
||||
"@graph": [
|
||||
{
|
||||
"@id": "http://en.wikipedia.org/wiki/Berlin",
|
||||
"http://data.wikipedia.org/vocab#population": [ 3499879 ]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
23
test/data/json-ld.org-test-suite/compact-0016-out.jsonld
Executable file
23
test/data/json-ld.org-test-suite/compact-0016-out.jsonld
Executable file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
"@context": {
|
||||
"wd": "http://data.wikipedia.org/vocab#",
|
||||
"ws": "http://data.wikipedia.org/snaks/",
|
||||
"wp": "http://en.wikipedia.org/wiki/"
|
||||
},
|
||||
"@id": "ws:Assertions",
|
||||
"@type": "wd:SnakSet",
|
||||
"@graph": [
|
||||
{
|
||||
"@id": "ws:BerlinFact",
|
||||
"@type": "wd:Snak",
|
||||
"@graph": [
|
||||
{
|
||||
"@id": "wp:Berlin",
|
||||
"wd:population": 3499879
|
||||
}
|
||||
],
|
||||
"wd:assertedBy": "Statistik Berlin/Brandenburg"
|
||||
}
|
||||
],
|
||||
"wd:assertedBy": "Gregg Kellogg"
|
||||
}
|
11
test/data/json-ld.org-test-suite/compact-0017-context.jsonld
Executable file
11
test/data/json-ld.org-test-suite/compact-0017-context.jsonld
Executable file
|
@ -0,0 +1,11 @@
|
|||
{
|
||||
"@context": [
|
||||
{
|
||||
"comment": { "@id": "http://www.w3.org/2000/01/rdf-schema#comment", "@language": "en" }
|
||||
},
|
||||
{
|
||||
"comment": null,
|
||||
"comment_en": { "@id": "http://www.w3.org/2000/01/rdf-schema#comment", "@language": "en" }
|
||||
}
|
||||
]
|
||||
}
|
6
test/data/json-ld.org-test-suite/compact-0017-in.jsonld
Executable file
6
test/data/json-ld.org-test-suite/compact-0017-in.jsonld
Executable file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"http://www.w3.org/2000/01/rdf-schema#comment": [
|
||||
{ "@value": "Kommentar auf Deutsch.", "@language": "de" },
|
||||
{ "@value": "Comment in English.", "@language": "en" }
|
||||
]
|
||||
}
|
13
test/data/json-ld.org-test-suite/compact-0017-out.jsonld
Executable file
13
test/data/json-ld.org-test-suite/compact-0017-out.jsonld
Executable file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"@context": [
|
||||
{
|
||||
"comment": { "@id": "http://www.w3.org/2000/01/rdf-schema#comment", "@language": "en" }
|
||||
},
|
||||
{
|
||||
"comment": null,
|
||||
"comment_en": { "@id": "http://www.w3.org/2000/01/rdf-schema#comment", "@language": "en" }
|
||||
}
|
||||
],
|
||||
"comment_en": "Comment in English.",
|
||||
"http://www.w3.org/2000/01/rdf-schema#comment": { "@value": "Kommentar auf Deutsch.", "@language": "de" }
|
||||
}
|
13
test/data/json-ld.org-test-suite/compact-0018-context.jsonld
Executable file
13
test/data/json-ld.org-test-suite/compact-0018-context.jsonld
Executable file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"@context": {
|
||||
"type1": "http://example.com/t1",
|
||||
"type2": "http://example.com/t2",
|
||||
"@language": "de",
|
||||
"term": { "@id": "http://example.com/term" },
|
||||
"term1": { "@id": "http://example.com/term", "@container": "@list" },
|
||||
"term2": { "@id": "http://example.com/term", "@container": "@list", "@language": "en" },
|
||||
"term3": { "@id": "http://example.com/term", "@container": "@list", "@language": null },
|
||||
"term4": { "@id": "http://example.com/term", "@container": "@list", "@type": "type1" },
|
||||
"term5": { "@id": "http://example.com/term", "@container": "@list", "@type": "type2" }
|
||||
}
|
||||
}
|
69
test/data/json-ld.org-test-suite/compact-0018-in.jsonld
Executable file
69
test/data/json-ld.org-test-suite/compact-0018-in.jsonld
Executable file
|
@ -0,0 +1,69 @@
|
|||
{
|
||||
"@context": {
|
||||
"type1": "http://example.com/t1",
|
||||
"type2": "http://example.com/t2"
|
||||
},
|
||||
"@id": "http://example.com/id1",
|
||||
"http://example.com/term": [
|
||||
{
|
||||
"@set": [
|
||||
{ "@value": "v0.1", "@language": "de" },
|
||||
{ "@value": "v0.2", "@language": "en" },
|
||||
"v0.3",
|
||||
4,
|
||||
true,
|
||||
false
|
||||
]
|
||||
},
|
||||
{
|
||||
"@list": [
|
||||
{ "@value": "v1.1", "@language": "de" },
|
||||
{ "@value": "v1.2", "@language": "en" },
|
||||
"v1.3",
|
||||
14,
|
||||
true,
|
||||
false
|
||||
]
|
||||
},
|
||||
{
|
||||
"@list": [
|
||||
{ "@value": "v2.1", "@language": "en" },
|
||||
{ "@value": "v2.2", "@language": "en" },
|
||||
{ "@value": "v2.3", "@language": "en" },
|
||||
{ "@value": "v2.4", "@language": "en" },
|
||||
{ "@value": "v2.5", "@language": "en" },
|
||||
{ "@value": "v2.6", "@language": "en" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"@list": [
|
||||
"v3.1",
|
||||
"v3.2",
|
||||
"v3.3",
|
||||
"v3.4",
|
||||
"v3.5",
|
||||
"v3.6"
|
||||
]
|
||||
},
|
||||
{
|
||||
"@list": [
|
||||
{ "@value": "v4.1", "@type": "type1" },
|
||||
{ "@value": "v4.2", "@type": "type1" },
|
||||
{ "@value": "v4.3", "@type": "type1" },
|
||||
{ "@value": "v4.4", "@type": "type1" },
|
||||
{ "@value": "v4.5", "@type": "type1" },
|
||||
{ "@value": "v4.6", "@type": "type1" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"@list": [
|
||||
{ "@value": "v5.1", "@type": "type2" },
|
||||
{ "@value": "v5.2", "@type": "type2" },
|
||||
{ "@value": "v5.3", "@type": "type2" },
|
||||
{ "@value": "v5.4", "@type": "type2" },
|
||||
{ "@value": "v5.5", "@type": "type2" },
|
||||
{ "@value": "v5.6", "@type": "type2" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
62
test/data/json-ld.org-test-suite/compact-0018-out.jsonld
Executable file
62
test/data/json-ld.org-test-suite/compact-0018-out.jsonld
Executable file
|
@ -0,0 +1,62 @@
|
|||
{
|
||||
"@context": {
|
||||
"type1": "http://example.com/t1",
|
||||
"type2": "http://example.com/t2",
|
||||
"@language": "de",
|
||||
"term": { "@id": "http://example.com/term" },
|
||||
"term1": { "@id": "http://example.com/term", "@container": "@list" },
|
||||
"term2": { "@id": "http://example.com/term", "@container": "@list", "@language": "en" },
|
||||
"term3": { "@id": "http://example.com/term", "@container": "@list", "@language": null },
|
||||
"term4": { "@id": "http://example.com/term", "@container": "@list", "@type": "type1" },
|
||||
"term5": { "@id": "http://example.com/term", "@container": "@list", "@type": "type2" }
|
||||
},
|
||||
"@id": "http://example.com/id1",
|
||||
"term": [
|
||||
"v0.1",
|
||||
{ "@value": "v0.2", "@language": "en" },
|
||||
{ "@value": "v0.3" },
|
||||
4,
|
||||
true,
|
||||
false
|
||||
],
|
||||
"term1": [
|
||||
"v1.1",
|
||||
{ "@value": "v1.2", "@language": "en" },
|
||||
{ "@value": "v1.3" },
|
||||
14,
|
||||
true,
|
||||
false
|
||||
],
|
||||
"term2": [
|
||||
"v2.1",
|
||||
"v2.2",
|
||||
"v2.3",
|
||||
"v2.4",
|
||||
"v2.5",
|
||||
"v2.6"
|
||||
],
|
||||
"term3": [
|
||||
"v3.1",
|
||||
"v3.2",
|
||||
"v3.3",
|
||||
"v3.4",
|
||||
"v3.5",
|
||||
"v3.6"
|
||||
],
|
||||
"term4": [
|
||||
"v4.1",
|
||||
"v4.2",
|
||||
"v4.3",
|
||||
"v4.4",
|
||||
"v4.5",
|
||||
"v4.6"
|
||||
],
|
||||
"term5": [
|
||||
"v5.1",
|
||||
"v5.2",
|
||||
"v5.3",
|
||||
"v5.4",
|
||||
"v5.5",
|
||||
"v5.6"
|
||||
]
|
||||
}
|
6
test/data/json-ld.org-test-suite/compact-0019-context.jsonld
Executable file
6
test/data/json-ld.org-test-suite/compact-0019-context.jsonld
Executable file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"@context": {
|
||||
"mylist": {"@id": "http://example.com/mylist", "@container": "@list"},
|
||||
"myset": {"@id": "http://example.com/myset", "@container": "@set"}
|
||||
}
|
||||
}
|
17
test/data/json-ld.org-test-suite/compact-0019-in.jsonld
Executable file
17
test/data/json-ld.org-test-suite/compact-0019-in.jsonld
Executable file
|
@ -0,0 +1,17 @@
|
|||
[{
|
||||
"@id": "http://example.org/id",
|
||||
"http://example.com/mylist": [{
|
||||
"@list": [
|
||||
{"@value": 1},
|
||||
{"@value": 2},
|
||||
{"@value": 2},
|
||||
{"@value": 3}
|
||||
]
|
||||
}],
|
||||
"http://example.com/myset": [
|
||||
{"@value": 1},
|
||||
{"@value": 2},
|
||||
{"@value": 2},
|
||||
{"@value": 3}
|
||||
]
|
||||
}]
|
9
test/data/json-ld.org-test-suite/compact-0019-out.jsonld
Executable file
9
test/data/json-ld.org-test-suite/compact-0019-out.jsonld
Executable file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"@context": {
|
||||
"mylist": {"@id": "http://example.com/mylist", "@container": "@list"},
|
||||
"myset": {"@id": "http://example.com/myset", "@container": "@set"}
|
||||
},
|
||||
"@id": "http://example.org/id",
|
||||
"mylist": [1, 2, 2, 3],
|
||||
"myset": [1, 2, 2, 3]
|
||||
}
|
6
test/data/json-ld.org-test-suite/compact-0020-context.jsonld
Executable file
6
test/data/json-ld.org-test-suite/compact-0020-context.jsonld
Executable file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"@context": {
|
||||
"ex": "http://example.org/ns#",
|
||||
"ex:property": {"@container": "@list"}
|
||||
}
|
||||
}
|
9
test/data/json-ld.org-test-suite/compact-0020-in.jsonld
Executable file
9
test/data/json-ld.org-test-suite/compact-0020-in.jsonld
Executable file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"@context": {
|
||||
"ex": "http://example.org/ns#"
|
||||
},
|
||||
"@id": "ex:property",
|
||||
"ex:property": {
|
||||
"@list": [1, 2]
|
||||
}
|
||||
}
|
10
test/data/json-ld.org-test-suite/compact-0020-out.jsonld
Executable file
10
test/data/json-ld.org-test-suite/compact-0020-out.jsonld
Executable file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"@context": {
|
||||
"ex": "http://example.org/ns#",
|
||||
"ex:property": {
|
||||
"@container": "@list"
|
||||
}
|
||||
},
|
||||
"@id": "ex:property",
|
||||
"ex:property": [1, 2]
|
||||
}
|
6
test/data/json-ld.org-test-suite/compact-0021-context.jsonld
Executable file
6
test/data/json-ld.org-test-suite/compact-0021-context.jsonld
Executable file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"@context": {
|
||||
"@vocab": "http://example.com/subdir/",
|
||||
"vocab/date": { "@type": "vocab/types/dateTime" }
|
||||
}
|
||||
}
|
23
test/data/json-ld.org-test-suite/compact-0021-in.jsonld
Executable file
23
test/data/json-ld.org-test-suite/compact-0021-in.jsonld
Executable file
|
@ -0,0 +1,23 @@
|
|||
[
|
||||
{
|
||||
"@id": "http://example.com/subdir/id/1",
|
||||
"@type": [ "http://example.com/subdir/vocab/types/Test" ],
|
||||
"http://example.com/subdir/vocab/date": [
|
||||
{
|
||||
"@value": "2011-01-25T00:00:00Z",
|
||||
"@type": "http://example.com/subdir/vocab/types/dateTime"
|
||||
}
|
||||
],
|
||||
"http://example.com/subdir/vocab/embed": [
|
||||
{
|
||||
"@id": "http://example.com/subdir/id/2",
|
||||
"http://example.com/subdir/vocab/expandedDate": [
|
||||
{
|
||||
"@value": "2012-08-01T00:00:00Z",
|
||||
"@type": "http://example.com/subdir/vocab/types/dateTime"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
16
test/data/json-ld.org-test-suite/compact-0021-out.jsonld
Executable file
16
test/data/json-ld.org-test-suite/compact-0021-out.jsonld
Executable file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"@context": {
|
||||
"@vocab": "http://example.com/subdir/",
|
||||
"vocab/date": { "@type": "vocab/types/dateTime" }
|
||||
},
|
||||
"@id": "http://example.com/subdir/id/1",
|
||||
"@type": "vocab/types/Test",
|
||||
"vocab/date": "2011-01-25T00:00:00Z",
|
||||
"vocab/embed": {
|
||||
"@id": "http://example.com/subdir/id/2",
|
||||
"vocab/expandedDate": {
|
||||
"@value": "2012-08-01T00:00:00Z",
|
||||
"@type": "vocab/types/dateTime"
|
||||
}
|
||||
}
|
||||
}
|
10
test/data/json-ld.org-test-suite/compact-0022-context.jsonld
Executable file
10
test/data/json-ld.org-test-suite/compact-0022-context.jsonld
Executable file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"@context": {
|
||||
"owl": "http://www.w3.org/2002/07/owl#",
|
||||
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
|
||||
"ex": "https://example.org/ns#",
|
||||
"id": "@id",
|
||||
"type": "@type",
|
||||
"ex:properties": { "@container": "@list" }
|
||||
}
|
||||
}
|
39
test/data/json-ld.org-test-suite/compact-0022-in.jsonld
Executable file
39
test/data/json-ld.org-test-suite/compact-0022-in.jsonld
Executable file
|
@ -0,0 +1,39 @@
|
|||
[
|
||||
{
|
||||
"@id": "https://example.org/ns#Game",
|
||||
"@type": [
|
||||
"http://www.w3.org/2002/07/owl#Class"
|
||||
],
|
||||
"https://example.org/ns#properties": [
|
||||
{
|
||||
"@list": [
|
||||
{
|
||||
"@id": "https://example.org/ns#title"
|
||||
},
|
||||
{
|
||||
"@id": "https://example.org/ns#slug"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"@id": "https://example.org/ns#properties",
|
||||
"@type": [
|
||||
"http://www.w3.org/1999/02/22-rdf-syntax-ns#Property"
|
||||
]
|
||||
},
|
||||
{
|
||||
"@id": "https://example.org/ns#slug",
|
||||
"@type": [
|
||||
"http://www.w3.org/2002/07/owl#DataProperty",
|
||||
"http://www.w3.org/2002/07/owl#FunctionalProperty"
|
||||
]
|
||||
},
|
||||
{
|
||||
"@id": "https://example.org/ns#title",
|
||||
"@type": [
|
||||
"http://www.w3.org/2002/07/owl#DataProperty"
|
||||
]
|
||||
}
|
||||
]
|
34
test/data/json-ld.org-test-suite/compact-0022-out.jsonld
Executable file
34
test/data/json-ld.org-test-suite/compact-0022-out.jsonld
Executable file
|
@ -0,0 +1,34 @@
|
|||
{
|
||||
"@context": {
|
||||
"owl": "http://www.w3.org/2002/07/owl#",
|
||||
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#",
|
||||
"ex": "https://example.org/ns#",
|
||||
"id": "@id",
|
||||
"type": "@type",
|
||||
"ex:properties": {
|
||||
"@container": "@list"
|
||||
}
|
||||
},
|
||||
"@graph": [
|
||||
{
|
||||
"id": "ex:Game",
|
||||
"type": "owl:Class",
|
||||
"ex:properties": [
|
||||
{ "id": "ex:title" },
|
||||
{ "id": "ex:slug" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "ex:properties",
|
||||
"type": "rdf:Property"
|
||||
},
|
||||
{
|
||||
"id": "ex:slug",
|
||||
"type": [ "owl:DataProperty", "owl:FunctionalProperty" ]
|
||||
},
|
||||
{
|
||||
"id": "ex:title",
|
||||
"type": "owl:DataProperty"
|
||||
}
|
||||
]
|
||||
}
|
7
test/data/json-ld.org-test-suite/compact-0023-context.jsonld
Executable file
7
test/data/json-ld.org-test-suite/compact-0023-context.jsonld
Executable file
|
@ -0,0 +1,7 @@
|
|||
{
|
||||
"@context": {
|
||||
"@vocab": "http://example.com/",
|
||||
"ex": "http://example.com/subdir/",
|
||||
"ex:vocab/date": { "@type": "ex:vocab/types/dateTime" }
|
||||
}
|
||||
}
|
23
test/data/json-ld.org-test-suite/compact-0023-in.jsonld
Executable file
23
test/data/json-ld.org-test-suite/compact-0023-in.jsonld
Executable file
|
@ -0,0 +1,23 @@
|
|||
[
|
||||
{
|
||||
"@id": "http://example.com/subdir/id/1",
|
||||
"@type": [ "http://example.com/subdir/vocab/types/Test" ],
|
||||
"http://example.com/subdir/vocab/date": [
|
||||
{
|
||||
"@value": "2011-01-25T00:00:00Z",
|
||||
"@type": "http://example.com/subdir/vocab/types/dateTime"
|
||||
}
|
||||
],
|
||||
"http://example.com/subdir/vocab/embed": [
|
||||
{
|
||||
"@id": "http://example.com/subdir/id/2",
|
||||
"http://example.com/subdir/vocab/expandedDate": [
|
||||
{
|
||||
"@value": "2012-08-01T00:00:00Z",
|
||||
"@type": "http://example.com/subdir/vocab/types/dateTime"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
17
test/data/json-ld.org-test-suite/compact-0023-out.jsonld
Executable file
17
test/data/json-ld.org-test-suite/compact-0023-out.jsonld
Executable file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"@context": {
|
||||
"@vocab": "http://example.com/",
|
||||
"ex": "http://example.com/subdir/",
|
||||
"ex:vocab/date": { "@type": "ex:vocab/types/dateTime" }
|
||||
},
|
||||
"@id": "ex:id/1",
|
||||
"@type": "subdir/vocab/types/Test",
|
||||
"ex:vocab/date": "2011-01-25T00:00:00Z",
|
||||
"subdir/vocab/embed": {
|
||||
"@id": "ex:id/2",
|
||||
"subdir/vocab/expandedDate": {
|
||||
"@value": "2012-08-01T00:00:00Z",
|
||||
"@type": "subdir/vocab/types/dateTime"
|
||||
}
|
||||
}
|
||||
}
|
15
test/data/json-ld.org-test-suite/compact-0024-context.jsonld
Executable file
15
test/data/json-ld.org-test-suite/compact-0024-context.jsonld
Executable file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
"@context": {
|
||||
"type1": "http://example.com/t1",
|
||||
"type2": "http://example.com/t2",
|
||||
"@language": "de",
|
||||
"termL": { "@id": "http://example.com/termLanguage" },
|
||||
"termLL0": { "@id": "http://example.com/termLanguage", "@container": "@list" },
|
||||
"termLL1": { "@id": "http://example.com/termLanguage", "@container": "@list", "@language": "en" },
|
||||
"termLL2": { "@id": "http://example.com/termLanguage", "@container": "@list", "@language": null },
|
||||
"termT": { "@id": "http://example.com/termType" },
|
||||
"termTL0": { "@id": "http://example.com/termType", "@container": "@list" },
|
||||
"termTL1": { "@id": "http://example.com/termType", "@container": "@list", "@type": "type1" },
|
||||
"termTL2": { "@id": "http://example.com/termType", "@container": "@list", "@type": "type2" }
|
||||
}
|
||||
}
|
48
test/data/json-ld.org-test-suite/compact-0024-in.jsonld
Executable file
48
test/data/json-ld.org-test-suite/compact-0024-in.jsonld
Executable file
|
@ -0,0 +1,48 @@
|
|||
{
|
||||
|
||||
"@context": {
|
||||
"type1": "http://example.com/t1",
|
||||
"type2": "http://example.com/t2"
|
||||
},
|
||||
"@id": "http://example.com/id1",
|
||||
"http://example.com/termLanguage": [
|
||||
{
|
||||
"@list": [
|
||||
{ "@value": "termLL0.1", "@language": "de" },
|
||||
{ "@value": "termLL0.2", "@language": "de" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"@list": [
|
||||
{ "@value": "termLL1.1", "@language": "en" },
|
||||
{ "@value": "termLL1.2", "@language": "en" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"@list": [
|
||||
"termLL2.1",
|
||||
"termLL2.2"
|
||||
]
|
||||
}
|
||||
],
|
||||
"http://example.com/termType": [
|
||||
{
|
||||
"@list": [
|
||||
{ "@value": "termTL0.1", "@type": "type1" },
|
||||
{ "@value": "termTL0.2", "@type": "type2" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"@list": [
|
||||
{ "@value": "termTL1.1", "@type": "type1" },
|
||||
{ "@value": "termTL1.2", "@type": "type1" }
|
||||
]
|
||||
},
|
||||
{
|
||||
"@list": [
|
||||
{ "@value": "termTL2.1", "@type": "type2" },
|
||||
{ "@value": "termTL2.2", "@type": "type2" }
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
46
test/data/json-ld.org-test-suite/compact-0024-out.jsonld
Executable file
46
test/data/json-ld.org-test-suite/compact-0024-out.jsonld
Executable file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"@context": {
|
||||
"type1": "http://example.com/t1",
|
||||
"type2": "http://example.com/t2",
|
||||
"@language": "de",
|
||||
"termL": { "@id": "http://example.com/termLanguage" },
|
||||
"termLL0": { "@id": "http://example.com/termLanguage", "@container": "@list" },
|
||||
"termLL1": { "@id": "http://example.com/termLanguage", "@container": "@list", "@language": "en" },
|
||||
"termLL2": { "@id": "http://example.com/termLanguage", "@container": "@list", "@language": null },
|
||||
"termT": { "@id": "http://example.com/termType" },
|
||||
"termTL0": { "@id": "http://example.com/termType", "@container": "@list" },
|
||||
"termTL1": { "@id": "http://example.com/termType", "@container": "@list", "@type": "type1" },
|
||||
"termTL2": { "@id": "http://example.com/termType", "@container": "@list", "@type": "type2" }
|
||||
},
|
||||
"@id": "http://example.com/id1",
|
||||
"termLL0": [
|
||||
"termLL0.1",
|
||||
"termLL0.2"
|
||||
],
|
||||
"termLL1": [
|
||||
"termLL1.1",
|
||||
"termLL1.2"
|
||||
],
|
||||
"termLL2": [
|
||||
"termLL2.1",
|
||||
"termLL2.2"
|
||||
],
|
||||
"termTL0": [
|
||||
{
|
||||
"@type": "type1",
|
||||
"@value": "termTL0.1"
|
||||
},
|
||||
{
|
||||
"@type": "type2",
|
||||
"@value": "termTL0.2"
|
||||
}
|
||||
],
|
||||
"termTL1": [
|
||||
"termTL1.1",
|
||||
"termTL1.2"
|
||||
],
|
||||
"termTL2": [
|
||||
"termTL2.1",
|
||||
"termTL2.2"
|
||||
]
|
||||
}
|
9
test/data/json-ld.org-test-suite/compact-0025-context.jsonld
Executable file
9
test/data/json-ld.org-test-suite/compact-0025-context.jsonld
Executable file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"@context": {
|
||||
"vocab": "http://example.com/vocab/",
|
||||
"label": {
|
||||
"@id": "vocab:label",
|
||||
"@container": "@language"
|
||||
}
|
||||
}
|
||||
}
|
18
test/data/json-ld.org-test-suite/compact-0025-in.jsonld
Executable file
18
test/data/json-ld.org-test-suite/compact-0025-in.jsonld
Executable file
|
@ -0,0 +1,18 @@
|
|||
[
|
||||
{
|
||||
"@id": "http://example.com/queen",
|
||||
"http://example.com/vocab/label":
|
||||
[
|
||||
{
|
||||
"@value": "The Queen",
|
||||
"@language": "en"
|
||||
}, {
|
||||
"@value": "Die Königin",
|
||||
"@language": "de"
|
||||
}, {
|
||||
"@value": "Ihre Majestät",
|
||||
"@language": "de"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
14
test/data/json-ld.org-test-suite/compact-0025-out.jsonld
Executable file
14
test/data/json-ld.org-test-suite/compact-0025-out.jsonld
Executable file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"@context": {
|
||||
"vocab": "http://example.com/vocab/",
|
||||
"label": {
|
||||
"@id": "vocab:label",
|
||||
"@container": "@language"
|
||||
}
|
||||
},
|
||||
"@id": "http://example.com/queen",
|
||||
"label": {
|
||||
"en": "The Queen",
|
||||
"de": [ "Die Königin", "Ihre Majestät" ]
|
||||
}
|
||||
}
|
10
test/data/json-ld.org-test-suite/compact-0026-context.jsonld
Executable file
10
test/data/json-ld.org-test-suite/compact-0026-context.jsonld
Executable file
|
@ -0,0 +1,10 @@
|
|||
{
|
||||
"@context": {
|
||||
"@vocab": "http://example.com/vocab/",
|
||||
"@language": "it",
|
||||
"s": { "@id": "label", "@language": "en" },
|
||||
"label": {
|
||||
"@container": "@language"
|
||||
}
|
||||
}
|
||||
}
|
21
test/data/json-ld.org-test-suite/compact-0026-in.jsonld
Executable file
21
test/data/json-ld.org-test-suite/compact-0026-in.jsonld
Executable file
|
@ -0,0 +1,21 @@
|
|||
[{
|
||||
"@id": "http://example.com/queen",
|
||||
"http://example.com/vocab/label": [
|
||||
{
|
||||
"@value": "Il re",
|
||||
"@language": "it"
|
||||
}, {
|
||||
"@value": "The king",
|
||||
"@language": "en"
|
||||
}, {
|
||||
"@value": "The Queen",
|
||||
"@language": "en"
|
||||
}, {
|
||||
"@value": "Die Königin",
|
||||
"@language": "de"
|
||||
}, {
|
||||
"@value": "Ihre Majestät",
|
||||
"@language": "de"
|
||||
}
|
||||
]
|
||||
}]
|
16
test/data/json-ld.org-test-suite/compact-0026-out.jsonld
Executable file
16
test/data/json-ld.org-test-suite/compact-0026-out.jsonld
Executable file
|
@ -0,0 +1,16 @@
|
|||
{
|
||||
"@context": {
|
||||
"@vocab": "http://example.com/vocab/",
|
||||
"@language": "it",
|
||||
"s": { "@id": "label", "@language": "en" },
|
||||
"label": {
|
||||
"@container": "@language"
|
||||
}
|
||||
},
|
||||
"@id": "http://example.com/queen",
|
||||
"label": {
|
||||
"it": "Il re",
|
||||
"en": [ "The king", "The Queen" ],
|
||||
"de": [ "Die Königin", "Ihre Majestät" ]
|
||||
}
|
||||
}
|
6
test/data/json-ld.org-test-suite/compact-0027-context.jsonld
Executable file
6
test/data/json-ld.org-test-suite/compact-0027-context.jsonld
Executable file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"@context": {
|
||||
"label": "http://example.com/vocab/label",
|
||||
"container": { "@id": "label", "@container": "@set" }
|
||||
}
|
||||
}
|
21
test/data/json-ld.org-test-suite/compact-0027-in.jsonld
Executable file
21
test/data/json-ld.org-test-suite/compact-0027-in.jsonld
Executable file
|
@ -0,0 +1,21 @@
|
|||
[{
|
||||
"@id": "http://example.com/queen",
|
||||
"http://example.com/vocab/label": [
|
||||
{
|
||||
"@value": "Il re",
|
||||
"@language": "it"
|
||||
}, {
|
||||
"@value": "The king",
|
||||
"@language": "en"
|
||||
}, {
|
||||
"@value": "The Queen",
|
||||
"@language": "en"
|
||||
}, {
|
||||
"@value": "Die Königin",
|
||||
"@language": "de"
|
||||
}, {
|
||||
"@value": "Ihre Majestät",
|
||||
"@language": "de"
|
||||
}
|
||||
]
|
||||
}]
|
25
test/data/json-ld.org-test-suite/compact-0027-out.jsonld
Executable file
25
test/data/json-ld.org-test-suite/compact-0027-out.jsonld
Executable file
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"@context": {
|
||||
"label": "http://example.com/vocab/label",
|
||||
"container": { "@id": "label", "@container": "@set" }
|
||||
},
|
||||
"@id": "http://example.com/queen",
|
||||
"container": [
|
||||
{
|
||||
"@value": "Il re",
|
||||
"@language": "it"
|
||||
}, {
|
||||
"@value": "The king",
|
||||
"@language": "en"
|
||||
}, {
|
||||
"@value": "The Queen",
|
||||
"@language": "en"
|
||||
}, {
|
||||
"@value": "Die Königin",
|
||||
"@language": "de"
|
||||
}, {
|
||||
"@value": "Ihre Majestät",
|
||||
"@language": "de"
|
||||
}
|
||||
]
|
||||
}
|
9
test/data/json-ld.org-test-suite/compact-0028-context.jsonld
Executable file
9
test/data/json-ld.org-test-suite/compact-0028-context.jsonld
Executable file
|
@ -0,0 +1,9 @@
|
|||
{
|
||||
"@context": {
|
||||
"@vocab": "http://xmlns.com/foaf/0.1/",
|
||||
"homepage": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"uri": "@id"
|
||||
}
|
||||
}
|
12
test/data/json-ld.org-test-suite/compact-0028-in.jsonld
Executable file
12
test/data/json-ld.org-test-suite/compact-0028-in.jsonld
Executable file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"@context": {
|
||||
"@vocab": "http://xmlns.com/foaf/0.1/",
|
||||
"homepage": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"uri": "@id"
|
||||
},
|
||||
"uri": "http://me.markus-lanthaler.com/",
|
||||
"name": "Markus Lanthaler",
|
||||
"homepage": "http://www.markus-lanthaler.com/"
|
||||
}
|
12
test/data/json-ld.org-test-suite/compact-0028-out.jsonld
Executable file
12
test/data/json-ld.org-test-suite/compact-0028-out.jsonld
Executable file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"@context": {
|
||||
"@vocab": "http://xmlns.com/foaf/0.1/",
|
||||
"homepage": {
|
||||
"@type": "@id"
|
||||
},
|
||||
"uri": "@id"
|
||||
},
|
||||
"uri": "http://me.markus-lanthaler.com/",
|
||||
"name": "Markus Lanthaler",
|
||||
"homepage": "http://www.markus-lanthaler.com/"
|
||||
}
|
5
test/data/json-ld.org-test-suite/compact-0029-context.jsonld
Executable file
5
test/data/json-ld.org-test-suite/compact-0029-context.jsonld
Executable file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"@context": {
|
||||
"author": {"@id": "http://example.com/vocab/author", "@container": "@index" }
|
||||
}
|
||||
}
|
10
test/data/json-ld.org-test-suite/compact-0029-in.jsonld
Executable file
10
test/data/json-ld.org-test-suite/compact-0029-in.jsonld
Executable file
|
@ -0,0 +1,10 @@
|
|||
[{
|
||||
"@id": "http://example.com/article",
|
||||
"http://example.com/vocab/author": [{
|
||||
"@id": "http://example.org/person/1",
|
||||
"@index": "regular"
|
||||
}, {
|
||||
"@id": "http://example.org/guest/cd24f329aa",
|
||||
"@index": "guest"
|
||||
}]
|
||||
}]
|
17
test/data/json-ld.org-test-suite/compact-0029-out.jsonld
Executable file
17
test/data/json-ld.org-test-suite/compact-0029-out.jsonld
Executable file
|
@ -0,0 +1,17 @@
|
|||
{
|
||||
"@context": {
|
||||
"author": {
|
||||
"@id": "http://example.com/vocab/author",
|
||||
"@container": "@index"
|
||||
}
|
||||
},
|
||||
"@id": "http://example.com/article",
|
||||
"author": {
|
||||
"regular": {
|
||||
"@id": "http://example.org/person/1"
|
||||
},
|
||||
"guest": {
|
||||
"@id": "http://example.org/guest/cd24f329aa"
|
||||
}
|
||||
}
|
||||
}
|
6
test/data/json-ld.org-test-suite/compact-0030-context.jsonld
Executable file
6
test/data/json-ld.org-test-suite/compact-0030-context.jsonld
Executable file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"@context": {
|
||||
"property": "http://example.com/property",
|
||||
"indexContainer": { "@id": "http://example.com/container", "@container": "@index" }
|
||||
}
|
||||
}
|
117
test/data/json-ld.org-test-suite/compact-0030-in.jsonld
Executable file
117
test/data/json-ld.org-test-suite/compact-0030-in.jsonld
Executable file
|
@ -0,0 +1,117 @@
|
|||
[
|
||||
{
|
||||
"@id": "http://example.org/indexTest",
|
||||
"http://example.com/container": [
|
||||
{
|
||||
"@id": "http://example.org/nodeWithoutIndexA",
|
||||
"@index": "A"
|
||||
},
|
||||
{
|
||||
"@id": "http://example.org/nodeWithIndexA",
|
||||
"@index": "this overrides the 'A' index from the container"
|
||||
},
|
||||
{
|
||||
"@value": 1,
|
||||
"@index": "A"
|
||||
},
|
||||
{
|
||||
"@value": true,
|
||||
"@index": "A"
|
||||
},
|
||||
{
|
||||
"@value": false,
|
||||
"@index": "A"
|
||||
},
|
||||
{
|
||||
"@value": "simple string A",
|
||||
"@index": "A"
|
||||
},
|
||||
{
|
||||
"@value": "typed literal A",
|
||||
"@type": "http://example.org/type",
|
||||
"@index": "A"
|
||||
},
|
||||
{
|
||||
"@value": "language-tagged string A",
|
||||
"@language": "en",
|
||||
"@index": "A"
|
||||
},
|
||||
{
|
||||
"@value": "simple string B",
|
||||
"@index": "B"
|
||||
},
|
||||
{
|
||||
"@id": "http://example.org/nodeWithoutIndexC",
|
||||
"@index": "C"
|
||||
},
|
||||
{
|
||||
"@id": "http://example.org/nodeWithIndexC",
|
||||
"@index": "this overrides the 'C' index from the container"
|
||||
},
|
||||
{
|
||||
"@value": 3,
|
||||
"@index": "C"
|
||||
},
|
||||
{
|
||||
"@value": true,
|
||||
"@index": "C"
|
||||
},
|
||||
{
|
||||
"@value": false,
|
||||
"@index": "C"
|
||||
},
|
||||
{
|
||||
"@value": "simple string C",
|
||||
"@index": "C"
|
||||
},
|
||||
{
|
||||
"@value": "typed literal C",
|
||||
"@type": "http://example.org/type",
|
||||
"@index": "C"
|
||||
},
|
||||
{
|
||||
"@value": "language-tagged string C",
|
||||
"@language": "en",
|
||||
"@index": "C"
|
||||
}
|
||||
],
|
||||
"http://example.com/property": [
|
||||
{
|
||||
"@id": "http://example.org/nodeWithoutIndexProp"
|
||||
},
|
||||
{
|
||||
"@id": "http://example.org/nodeWithIndexProp",
|
||||
"@index": "prop"
|
||||
},
|
||||
{
|
||||
"@value": 3,
|
||||
"@index": "prop"
|
||||
},
|
||||
{
|
||||
"@value": true,
|
||||
"@index": "prop"
|
||||
},
|
||||
{
|
||||
"@value": false,
|
||||
"@index": "prop"
|
||||
},
|
||||
{
|
||||
"@value": "simple string no index"
|
||||
},
|
||||
{
|
||||
"@value": "typed literal Prop",
|
||||
"@type": "http://example.org/type",
|
||||
"@index": "prop"
|
||||
},
|
||||
{
|
||||
"@value": "language-tagged string Prop",
|
||||
"@language": "en",
|
||||
"@index": "prop"
|
||||
},
|
||||
{
|
||||
"@value": "index using an array with just one element (automatic recovery)",
|
||||
"@index": "prop"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
86
test/data/json-ld.org-test-suite/compact-0030-out.jsonld
Executable file
86
test/data/json-ld.org-test-suite/compact-0030-out.jsonld
Executable file
|
@ -0,0 +1,86 @@
|
|||
{
|
||||
"@context": {
|
||||
"property": "http://example.com/property",
|
||||
"indexContainer": { "@id": "http://example.com/container", "@container": "@index" }
|
||||
},
|
||||
"@id": "http://example.org/indexTest",
|
||||
"indexContainer": {
|
||||
"A": [
|
||||
{
|
||||
"@id": "http://example.org/nodeWithoutIndexA"
|
||||
},
|
||||
1,
|
||||
true,
|
||||
false,
|
||||
"simple string A",
|
||||
{
|
||||
"@value": "typed literal A",
|
||||
"@type": "http://example.org/type"
|
||||
},
|
||||
{
|
||||
"@value": "language-tagged string A",
|
||||
"@language": "en"
|
||||
}
|
||||
],
|
||||
"this overrides the 'A' index from the container": {
|
||||
"@id": "http://example.org/nodeWithIndexA"
|
||||
},
|
||||
"B": "simple string B",
|
||||
"C": [
|
||||
{
|
||||
"@id": "http://example.org/nodeWithoutIndexC"
|
||||
},
|
||||
3,
|
||||
true,
|
||||
false,
|
||||
"simple string C",
|
||||
{
|
||||
"@value": "typed literal C",
|
||||
"@type": "http://example.org/type"
|
||||
},
|
||||
{
|
||||
"@value": "language-tagged string C",
|
||||
"@language": "en"
|
||||
}
|
||||
],
|
||||
"this overrides the 'C' index from the container": {
|
||||
"@id": "http://example.org/nodeWithIndexC"
|
||||
}
|
||||
},
|
||||
"property": [
|
||||
{
|
||||
"@id": "http://example.org/nodeWithoutIndexProp"
|
||||
},
|
||||
{
|
||||
"@id": "http://example.org/nodeWithIndexProp",
|
||||
"@index": "prop"
|
||||
},
|
||||
{
|
||||
"@value": 3,
|
||||
"@index": "prop"
|
||||
},
|
||||
{
|
||||
"@value": true,
|
||||
"@index": "prop"
|
||||
},
|
||||
{
|
||||
"@value": false,
|
||||
"@index": "prop"
|
||||
},
|
||||
"simple string no index",
|
||||
{
|
||||
"@value": "typed literal Prop",
|
||||
"@type": "http://example.org/type",
|
||||
"@index": "prop"
|
||||
},
|
||||
{
|
||||
"@value": "language-tagged string Prop",
|
||||
"@language": "en",
|
||||
"@index": "prop"
|
||||
},
|
||||
{
|
||||
"@value": "index using an array with just one element (automatic recovery)",
|
||||
"@index": "prop"
|
||||
}
|
||||
]
|
||||
}
|
5
test/data/json-ld.org-test-suite/compact-0031-context.jsonld
Executable file
5
test/data/json-ld.org-test-suite/compact-0031-context.jsonld
Executable file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
"@context": {
|
||||
"name": "http://xmlns.com/foaf/0.1/name"
|
||||
}
|
||||
}
|
14
test/data/json-ld.org-test-suite/compact-0031-in.jsonld
Executable file
14
test/data/json-ld.org-test-suite/compact-0031-in.jsonld
Executable file
|
@ -0,0 +1,14 @@
|
|||
[
|
||||
{
|
||||
"@id": "http://example.com/people/markus",
|
||||
"@reverse": {
|
||||
"http://xmlns.com/foaf/0.1/knows": [
|
||||
{
|
||||
"@id": "http://example.com/people/dave",
|
||||
"http://xmlns.com/foaf/0.1/name": [ { "@value": "Dave Longley" } ]
|
||||
}
|
||||
]
|
||||
},
|
||||
"http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ]
|
||||
}
|
||||
]
|
13
test/data/json-ld.org-test-suite/compact-0031-out.jsonld
Executable file
13
test/data/json-ld.org-test-suite/compact-0031-out.jsonld
Executable file
|
@ -0,0 +1,13 @@
|
|||
{
|
||||
"@context": {
|
||||
"name": "http://xmlns.com/foaf/0.1/name"
|
||||
},
|
||||
"@id": "http://example.com/people/markus",
|
||||
"name": "Markus Lanthaler",
|
||||
"@reverse": {
|
||||
"http://xmlns.com/foaf/0.1/knows": {
|
||||
"@id": "http://example.com/people/dave",
|
||||
"name": "Dave Longley"
|
||||
}
|
||||
}
|
||||
}
|
6
test/data/json-ld.org-test-suite/compact-0032-context.jsonld
Executable file
6
test/data/json-ld.org-test-suite/compact-0032-context.jsonld
Executable file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"@context": {
|
||||
"name": "http://xmlns.com/foaf/0.1/name",
|
||||
"knows": "http://xmlns.com/foaf/0.1/knows"
|
||||
}
|
||||
}
|
14
test/data/json-ld.org-test-suite/compact-0032-in.jsonld
Executable file
14
test/data/json-ld.org-test-suite/compact-0032-in.jsonld
Executable file
|
@ -0,0 +1,14 @@
|
|||
[
|
||||
{
|
||||
"@id": "http://example.com/people/markus",
|
||||
"@reverse": {
|
||||
"http://xmlns.com/foaf/0.1/knows": [
|
||||
{
|
||||
"@id": "http://example.com/people/dave",
|
||||
"http://xmlns.com/foaf/0.1/name": [ { "@value": "Dave Longley" } ]
|
||||
}
|
||||
]
|
||||
},
|
||||
"http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ]
|
||||
}
|
||||
]
|
14
test/data/json-ld.org-test-suite/compact-0032-out.jsonld
Executable file
14
test/data/json-ld.org-test-suite/compact-0032-out.jsonld
Executable file
|
@ -0,0 +1,14 @@
|
|||
{
|
||||
"@context": {
|
||||
"name": "http://xmlns.com/foaf/0.1/name",
|
||||
"knows": "http://xmlns.com/foaf/0.1/knows"
|
||||
},
|
||||
"@id": "http://example.com/people/markus",
|
||||
"name": "Markus Lanthaler",
|
||||
"@reverse": {
|
||||
"knows": {
|
||||
"@id": "http://example.com/people/dave",
|
||||
"name": "Dave Longley"
|
||||
}
|
||||
}
|
||||
}
|
6
test/data/json-ld.org-test-suite/compact-0033-context.jsonld
Executable file
6
test/data/json-ld.org-test-suite/compact-0033-context.jsonld
Executable file
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"@context": {
|
||||
"name": "http://xmlns.com/foaf/0.1/name",
|
||||
"isKnownBy": { "@reverse": "http://xmlns.com/foaf/0.1/knows" }
|
||||
}
|
||||
}
|
14
test/data/json-ld.org-test-suite/compact-0033-in.jsonld
Executable file
14
test/data/json-ld.org-test-suite/compact-0033-in.jsonld
Executable file
|
@ -0,0 +1,14 @@
|
|||
[
|
||||
{
|
||||
"@id": "http://example.com/people/markus",
|
||||
"@reverse": {
|
||||
"http://xmlns.com/foaf/0.1/knows": [
|
||||
{
|
||||
"@id": "http://example.com/people/dave",
|
||||
"http://xmlns.com/foaf/0.1/name": [ { "@value": "Dave Longley" } ]
|
||||
}
|
||||
]
|
||||
},
|
||||
"http://xmlns.com/foaf/0.1/name": [ { "@value": "Markus Lanthaler" } ]
|
||||
}
|
||||
]
|
12
test/data/json-ld.org-test-suite/compact-0033-out.jsonld
Executable file
12
test/data/json-ld.org-test-suite/compact-0033-out.jsonld
Executable file
|
@ -0,0 +1,12 @@
|
|||
{
|
||||
"@context": {
|
||||
"name": "http://xmlns.com/foaf/0.1/name",
|
||||
"isKnownBy": { "@reverse": "http://xmlns.com/foaf/0.1/knows" }
|
||||
},
|
||||
"@id": "http://example.com/people/markus",
|
||||
"name": "Markus Lanthaler",
|
||||
"isKnownBy": {
|
||||
"@id": "http://example.com/people/dave",
|
||||
"name": "Dave Longley"
|
||||
}
|
||||
}
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue