Skip to content

Commit b5ce690

Browse files
authored
test: add variants for blank prefixes and base (#2421)
Test that the base directive and blank prefixes are handled correctly.
1 parent 15a7c54 commit b5ce690

File tree

4 files changed

+53
-0
lines changed

4 files changed

+53
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"quad_count": 6,
3+
"exact_match": true
4+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<http://example.org/blank_prefix#subject0> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> .
2+
<http://example.org/blank_prefix#subject0> <http://www.w3.org/2000/01/rdf-schema#label> "subject0"@en .
3+
<http://example.org/blank_prefix#subject0> <http://example.org/blank_prefix#predicate00> <http://example.org/blank_prefix#object00> .
4+
<http://example.org/blank_prefix#subject1> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://www.w3.org/2002/07/owl#Class> .
5+
<http://example.org/blank_prefix#subject1> <http://www.w3.org/2000/01/rdf-schema#label> "subject0"@en .
6+
<http://example.org/blank_prefix#subject1> <http://example.org/blank_prefix#predicate10> <http://example.org/blank_prefix#object10> .
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@base <http://example.org/blank_prefix> .
2+
@prefix : <http://example.org/blank_prefix#> .
3+
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
4+
@prefix owl: <http://www.w3.org/2002/07/owl#> .
5+
6+
# A Turtle document using both a blank and a base prefix together with well
7+
# known prefixes.
8+
9+
:subject0 a owl:Class;
10+
rdfs:label "subject0"@en;
11+
:predicate00 :object00;
12+
.
13+
14+
<#subject1> a owl:Class;
15+
rdfs:label "subject0"@en;
16+
<#predicate10> <#object10>;
17+
.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<rdf:RDF
2+
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
3+
xmlns:egdo="http://example.org/"
4+
xmlns:owl="http://www.w3.org/2002/07/owl#"
5+
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
6+
xmlns="http://example.org/blank_prefix#"
7+
xml:base="http://example.org/blank_prefix">
8+
9+
<!--
10+
An RDF/XML document using both a blank and a base prefix together with well
11+
known prefixes.
12+
-->
13+
14+
<rdf:Description rdf:about="#subject0">
15+
<predicate00 rdf:resource="#object00"/>
16+
<rdfs:label xml:lang="en">subject0</rdfs:label>
17+
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
18+
</rdf:Description>
19+
20+
<rdf:Description rdf:about="#subject1">
21+
<predicate10 rdf:resource="#object10"/>
22+
<rdfs:label xml:lang="en">subject0</rdfs:label>
23+
<rdf:type rdf:resource="http://www.w3.org/2002/07/owl#Class"/>
24+
</rdf:Description>
25+
26+
</rdf:RDF>

0 commit comments

Comments
 (0)