-
Notifications
You must be signed in to change notification settings - Fork 555
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test: add more graph variants highlighting bugs
This patch adds some additional graph variants: - diverse_triples: More than one triple using various features. - diverse_quads: More than one quad in more than one graph using various features. - more_quads: Simple quads in more than one graph. This also highlights some additional issues: - There is a bug in JSON-LD and HexTuple serialization that drops datatypes. - The TriG parser gets confused about what graph a quad is in. - There is some encoding related issue with HexTuple parsing on windows.
- Loading branch information
Showing
15 changed files
with
308 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"quad_count": 10, | ||
"exact_match": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
{ | ||
"@graph": [ | ||
{ | ||
"@graph": [ | ||
{ | ||
"@id": "egschema:subject", | ||
"egschema:predicate": [ | ||
12, | ||
{ | ||
"@id": "egschema:object" | ||
} | ||
] | ||
}, | ||
{ | ||
"@id": "eghttp:subject", | ||
"predicate": { | ||
"@language": "jpx", | ||
"@value": "日本語の表記体系" | ||
} | ||
}, | ||
{ | ||
"@id": "egurn:subject", | ||
"egschema:predicate": { | ||
"@id": "egschema:subject" | ||
} | ||
} | ||
], | ||
"@id": "egschema:graph" | ||
}, | ||
{ | ||
"@id": "egschema:subject", | ||
"egschema:predicate": { | ||
"@id": "egschema:object" | ||
} | ||
}, | ||
{ | ||
"@id": "eghttp:subject", | ||
"predicate": "typeless" | ||
}, | ||
{ | ||
"@graph": [ | ||
{ | ||
"@id": "egschema:subject", | ||
"egschema:predicate": { | ||
"@id": "egschema:object" | ||
}, | ||
"predicate": [ | ||
"XSD string", | ||
{ | ||
"@id": "eghttp:object" | ||
} | ||
] | ||
} | ||
], | ||
"@id": "egurn:graph" | ||
}, | ||
{ | ||
"@id": "egurn:subject", | ||
"egurn:predicate": { | ||
"@id": "egurn:object" | ||
} | ||
} | ||
], | ||
"@context": { | ||
"predicate": { | ||
"@id": "http://example.com/predicate" | ||
}, | ||
"egurn": "urn:example:", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#", | ||
"egschema": "example:", | ||
"eghttp": "http://example.com/" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<http://example.com/subject> <http://example.com/predicate> "日本語の表記体系"@jpx <example:graph> . | ||
<urn:example:subject> <example:predicate> <example:subject> <example:graph> . | ||
<example:subject> <example:predicate> <example:object> <example:graph> . | ||
<example:subject> <example:predicate> "12"^^<http://www.w3.org/2001/XMLSchema#integer> <example:graph> . | ||
<example:subject> <example:predicate> <example:object> <urn:example:graph> . | ||
<example:subject> <http://example.com/predicate> <http://example.com/object> <urn:example:graph> . | ||
<example:subject> <http://example.com/predicate> "XSD string" <urn:example:graph> . | ||
<example:subject> <example:predicate> <example:object> . | ||
<http://example.com/subject> <http://example.com/predicate> "typeless" . | ||
<urn:example:subject> <urn:example:predicate> <urn:example:object> . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
@prefix egschema: <example:> . | ||
@prefix eghttp: <http://example.com/> . | ||
@prefix egurn: <urn:example:> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
egschema:graph { | ||
eghttp:subject eghttp:predicate "日本語の表記体系"@jpx . | ||
|
||
egurn:subject egschema:predicate egschema:subject . | ||
|
||
egschema:subject egschema:predicate egschema:object, | ||
12 . | ||
} | ||
|
||
egurn:graph { | ||
egschema:subject egschema:predicate egschema:object ; | ||
eghttp:predicate eghttp:object, | ||
"XSD string"^^xsd:string . | ||
} | ||
|
||
{ | ||
egschema:subject egschema:predicate egschema:object . | ||
|
||
eghttp:subject eghttp:predicate "typeless" . | ||
|
||
egurn:subject egurn:predicate egurn:object . | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"quad_count": 5, | ||
"exact_match": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
["urn:example:subject", "example:predicate", "example:subject", "globalId", "", ""] | ||
["example:subject", "example:predicate", "example:object", "globalId", "", ""] | ||
["example:object", "http://example.com/predicate", "XSD string", "http://www.w3.org/2001/XMLSchema#string", "", ""] | ||
["http://example.com/subject", "http://example.com/predicate", "日本語の表記体系", "http://www.w3.org/1999/02/22-rdf-syntax-ns#langString", "jpx", ""] | ||
["example:subject", "example:predicate", "12", "http://www.w3.org/2001/XMLSchema#integer", "", ""] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"@graph": [ | ||
{ | ||
"@id": "egschema:object", | ||
"eghttp:predicate": "XSD string" | ||
}, | ||
{ | ||
"@id": "egschema:subject", | ||
"egschema:predicate": [ | ||
12, | ||
{ | ||
"@id": "egschema:object" | ||
} | ||
] | ||
}, | ||
{ | ||
"@id": "eghttp:subject", | ||
"eghttp:predicate": { | ||
"@language": "jpx", | ||
"@value": "日本語の表記体系" | ||
} | ||
}, | ||
{ | ||
"@id": "egurn:subject", | ||
"egschema:predicate": { | ||
"@id": "egschema:subject" | ||
} | ||
} | ||
], | ||
"@context": { | ||
"predicate": { | ||
"@id": "example:predicate", | ||
"@type": "http://www.w3.org/2001/XMLSchema#integer" | ||
}, | ||
"egurn": "urn:example:", | ||
"xsd": "http://www.w3.org/2001/XMLSchema#", | ||
"egschema": "example:", | ||
"eghttp": "http://example.com/" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<http://example.com/subject> <http://example.com/predicate> "日本語の表記体系"@jpx . | ||
<urn:example:subject> <example:predicate> <example:subject> . | ||
<example:object> <http://example.com/predicate> "XSD string" . | ||
<example:subject> <example:predicate> <example:object> . | ||
<example:subject> <example:predicate> "12"^^<http://www.w3.org/2001/XMLSchema#integer> . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@prefix eghttp: <http://example.com/> . | ||
@prefix egurn: <urn:example:> . | ||
@prefix egschema: <example:> . | ||
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . | ||
|
||
eghttp:subject eghttp:predicate "日本語の表記体系"@jpx . | ||
|
||
egurn:subject egschema:predicate egschema:subject . | ||
|
||
egschema:object eghttp:predicate "XSD string"^^xsd:string . | ||
|
||
egschema:subject egschema:predicate egschema:object, | ||
12 . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"quad_count": 6, | ||
"exact_match": true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
{ | ||
"@graph": [ | ||
{ | ||
"@graph": [ | ||
{ | ||
"@id": "example:s20", | ||
"example:p20": { | ||
"@id": "example:o20" | ||
} | ||
}, | ||
{ | ||
"@id": "example:s21", | ||
"example:p21": { | ||
"@id": "example:o21" | ||
} | ||
} | ||
], | ||
"@id": "example:g2" | ||
}, | ||
{ | ||
"@id": "example:s00", | ||
"p00": "example:o02" | ||
}, | ||
{ | ||
"@id": "example:s01", | ||
"p01": "example:o01" | ||
}, | ||
{ | ||
"@id": "example:s10", | ||
"p10": "example:o10" | ||
}, | ||
{ | ||
"@id": "example:s11", | ||
"p11": "example:o11" | ||
} | ||
], | ||
"@context": { | ||
"p10": { | ||
"@id": "http://example.org/p10", | ||
"@type": "@id" | ||
}, | ||
"p01": { | ||
"@id": "http://example.org/p01", | ||
"@type": "@id" | ||
}, | ||
"p00": { | ||
"@id": "http://example.org/p00", | ||
"@type": "@id" | ||
}, | ||
"p11": { | ||
"@id": "http://example.org/p11", | ||
"@type": "@id" | ||
}, | ||
"example": "http://example.org/" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<http://example.org/s00> <http://example.org/p00> <http://example.org/o02> . | ||
<http://example.org/s01> <http://example.org/p01> <http://example.org/o01> . | ||
<http://example.org/s10> <http://example.org/p10> <http://example.org/o10> . | ||
<http://example.org/s11> <http://example.org/p11> <http://example.org/o11> . | ||
<http://example.org/s20> <http://example.org/p20> <http://example.org/o20> <http://example.org/g2> . | ||
<http://example.org/s21> <http://example.org/p21> <http://example.org/o21> <http://example.org/g2> . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
@prefix example: <http://example.org/>. | ||
|
||
example:s00 example:p00 example:o02 . | ||
example:s01 example:p01 example:o01 . | ||
|
||
|
||
{ | ||
example:s10 example:p10 example:o10 . | ||
example:s11 example:p11 example:o11 . | ||
} | ||
|
||
example:g2 { | ||
example:s20 example:p20 example:o20 . | ||
example:s21 example:p21 example:o21 . | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters