Skip to content

Commit 529c915

Browse files
committed
Merge pull request #30 from w3c/w3c-feature-iri-resolution-subset
Add IRI resolution tests (subset)
2 parents d8f06ae + 3e4f887 commit 529c915

20 files changed

+1372
-0
lines changed

trig/IRI-resolution-01.nt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<urn:ex:s001> <urn:ex:p> <g:h>.
2+
<urn:ex:s002> <urn:ex:p> <http://a/bb/ccc/g>.
3+
<urn:ex:s003> <urn:ex:p> <http://a/bb/ccc/g>.
4+
<urn:ex:s004> <urn:ex:p> <http://a/bb/ccc/g/>.
5+
<urn:ex:s005> <urn:ex:p> <http://a/g>.
6+
<urn:ex:s006> <urn:ex:p> <http://g>.
7+
<urn:ex:s007> <urn:ex:p> <http://a/bb/ccc/d;p?y>.
8+
<urn:ex:s008> <urn:ex:p> <http://a/bb/ccc/g?y>.
9+
<urn:ex:s009> <urn:ex:p> <http://a/bb/ccc/d;p?q#s>.
10+
<urn:ex:s010> <urn:ex:p> <http://a/bb/ccc/g#s>.
11+
<urn:ex:s011> <urn:ex:p> <http://a/bb/ccc/g?y#s>.
12+
<urn:ex:s012> <urn:ex:p> <http://a/bb/ccc/;x>.
13+
<urn:ex:s013> <urn:ex:p> <http://a/bb/ccc/g;x>.
14+
<urn:ex:s014> <urn:ex:p> <http://a/bb/ccc/g;x?y#s>.
15+
<urn:ex:s015> <urn:ex:p> <http://a/bb/ccc/d;p?q>.
16+
<urn:ex:s016> <urn:ex:p> <http://a/bb/ccc/>.
17+
<urn:ex:s017> <urn:ex:p> <http://a/bb/ccc/>.
18+
<urn:ex:s018> <urn:ex:p> <http://a/bb/>.
19+
<urn:ex:s019> <urn:ex:p> <http://a/bb/>.
20+
<urn:ex:s020> <urn:ex:p> <http://a/bb/g>.
21+
<urn:ex:s021> <urn:ex:p> <http://a/>.
22+
<urn:ex:s022> <urn:ex:p> <http://a/>.
23+
<urn:ex:s023> <urn:ex:p> <http://a/g>.
24+
25+
<urn:ex:s024> <urn:ex:p> <http://a/g>.
26+
<urn:ex:s025> <urn:ex:p> <http://a/g>.
27+
<urn:ex:s026> <urn:ex:p> <http://a/g>.
28+
<urn:ex:s027> <urn:ex:p> <http://a/g>.
29+
<urn:ex:s028> <urn:ex:p> <http://a/bb/ccc/g.>.
30+
<urn:ex:s029> <urn:ex:p> <http://a/bb/ccc/.g>.
31+
<urn:ex:s030> <urn:ex:p> <http://a/bb/ccc/g..>.
32+
<urn:ex:s031> <urn:ex:p> <http://a/bb/ccc/..g>.
33+
<urn:ex:s032> <urn:ex:p> <http://a/bb/g>.
34+
<urn:ex:s033> <urn:ex:p> <http://a/bb/ccc/g/>.
35+
<urn:ex:s034> <urn:ex:p> <http://a/bb/ccc/g/h>.
36+
<urn:ex:s035> <urn:ex:p> <http://a/bb/ccc/h>.
37+
<urn:ex:s036> <urn:ex:p> <http://a/bb/ccc/g;x=1/y>.
38+
<urn:ex:s037> <urn:ex:p> <http://a/bb/ccc/y>.
39+
<urn:ex:s038> <urn:ex:p> <http://a/bb/ccc/g?y/./x>.
40+
<urn:ex:s039> <urn:ex:p> <http://a/bb/ccc/g?y/../x>.
41+
<urn:ex:s040> <urn:ex:p> <http://a/bb/ccc/g#s/./x>.
42+
<urn:ex:s041> <urn:ex:p> <http://a/bb/ccc/g#s/../x>.
43+
<urn:ex:s042> <urn:ex:p> <http:g>.

trig/IRI-resolution-01.trig

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
@base <http://a/bb/ccc/d;p?q>.
2+
3+
<urn:ex:s001> <urn:ex:p> <g:h>.
4+
<urn:ex:s002> <urn:ex:p> <g>.
5+
<urn:ex:s003> <urn:ex:p> <./g>.
6+
<urn:ex:s004> <urn:ex:p> <g/>.
7+
<urn:ex:s005> <urn:ex:p> </g>.
8+
<urn:ex:s006> <urn:ex:p> <//g>.
9+
<urn:ex:s007> <urn:ex:p> <?y>.
10+
<urn:ex:s008> <urn:ex:p> <g?y>.
11+
<urn:ex:s009> <urn:ex:p> <#s>.
12+
<urn:ex:s010> <urn:ex:p> <g#s>.
13+
<urn:ex:s011> <urn:ex:p> <g?y#s>.
14+
<urn:ex:s012> <urn:ex:p> <;x>.
15+
<urn:ex:s013> <urn:ex:p> <g;x>.
16+
<urn:ex:s014> <urn:ex:p> <g;x?y#s>.
17+
<urn:ex:s015> <urn:ex:p> <>.
18+
<urn:ex:s016> <urn:ex:p> <.>.
19+
<urn:ex:s017> <urn:ex:p> <./>.
20+
<urn:ex:s018> <urn:ex:p> <..>.
21+
<urn:ex:s019> <urn:ex:p> <../>.
22+
<urn:ex:s020> <urn:ex:p> <../g>.
23+
<urn:ex:s021> <urn:ex:p> <../..>.
24+
<urn:ex:s022> <urn:ex:p> <../../>.
25+
<urn:ex:s023> <urn:ex:p> <../../g>.
26+
27+
<urn:ex:s024> <urn:ex:p> <../../../g>.
28+
<urn:ex:s025> <urn:ex:p> <../../../../g>.
29+
<urn:ex:s026> <urn:ex:p> </./g>.
30+
<urn:ex:s027> <urn:ex:p> </../g>.
31+
<urn:ex:s028> <urn:ex:p> <g.>.
32+
<urn:ex:s029> <urn:ex:p> <.g>.
33+
<urn:ex:s030> <urn:ex:p> <g..>.
34+
<urn:ex:s031> <urn:ex:p> <..g>.
35+
<urn:ex:s032> <urn:ex:p> <./../g>.
36+
<urn:ex:s033> <urn:ex:p> <./g/.>.
37+
<urn:ex:s034> <urn:ex:p> <g/./h>.
38+
<urn:ex:s035> <urn:ex:p> <g/../h>.
39+
<urn:ex:s036> <urn:ex:p> <g;x=1/./y>.
40+
<urn:ex:s037> <urn:ex:p> <g;x=1/../y>.
41+
<urn:ex:s038> <urn:ex:p> <g?y/./x>.
42+
<urn:ex:s039> <urn:ex:p> <g?y/../x>.
43+
<urn:ex:s040> <urn:ex:p> <g#s/./x>.
44+
<urn:ex:s041> <urn:ex:p> <g#s/../x>.
45+
<urn:ex:s042> <urn:ex:p> <http:g>.

trig/IRI-resolution-02.nt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<urn:ex:s043> <urn:ex:p> <g:h>.
2+
<urn:ex:s044> <urn:ex:p> <http://a/bb/ccc/d/g>.
3+
<urn:ex:s045> <urn:ex:p> <http://a/bb/ccc/d/g>.
4+
<urn:ex:s046> <urn:ex:p> <http://a/bb/ccc/d/g/>.
5+
<urn:ex:s047> <urn:ex:p> <http://a/g>.
6+
<urn:ex:s048> <urn:ex:p> <http://g>.
7+
<urn:ex:s049> <urn:ex:p> <http://a/bb/ccc/d/?y>.
8+
<urn:ex:s050> <urn:ex:p> <http://a/bb/ccc/d/g?y>.
9+
<urn:ex:s051> <urn:ex:p> <http://a/bb/ccc/d/#s>.
10+
<urn:ex:s052> <urn:ex:p> <http://a/bb/ccc/d/g#s>.
11+
<urn:ex:s053> <urn:ex:p> <http://a/bb/ccc/d/g?y#s>.
12+
<urn:ex:s054> <urn:ex:p> <http://a/bb/ccc/d/;x>.
13+
<urn:ex:s055> <urn:ex:p> <http://a/bb/ccc/d/g;x>.
14+
<urn:ex:s056> <urn:ex:p> <http://a/bb/ccc/d/g;x?y#s>.
15+
<urn:ex:s057> <urn:ex:p> <http://a/bb/ccc/d/>.
16+
<urn:ex:s058> <urn:ex:p> <http://a/bb/ccc/d/>.
17+
<urn:ex:s059> <urn:ex:p> <http://a/bb/ccc/d/>.
18+
<urn:ex:s060> <urn:ex:p> <http://a/bb/ccc/>.
19+
<urn:ex:s061> <urn:ex:p> <http://a/bb/ccc/>.
20+
<urn:ex:s062> <urn:ex:p> <http://a/bb/ccc/g>.
21+
<urn:ex:s063> <urn:ex:p> <http://a/bb/>.
22+
<urn:ex:s064> <urn:ex:p> <http://a/bb/>.
23+
<urn:ex:s065> <urn:ex:p> <http://a/bb/g>.
24+
25+
<urn:ex:s066> <urn:ex:p> <http://a/g>.
26+
<urn:ex:s067> <urn:ex:p> <http://a/g>.
27+
<urn:ex:s068> <urn:ex:p> <http://a/g>.
28+
<urn:ex:s069> <urn:ex:p> <http://a/g>.
29+
<urn:ex:s070> <urn:ex:p> <http://a/bb/ccc/d/g.>.
30+
<urn:ex:s071> <urn:ex:p> <http://a/bb/ccc/d/.g>.
31+
<urn:ex:s072> <urn:ex:p> <http://a/bb/ccc/d/g..>.
32+
<urn:ex:s073> <urn:ex:p> <http://a/bb/ccc/d/..g>.
33+
<urn:ex:s074> <urn:ex:p> <http://a/bb/ccc/g>.
34+
<urn:ex:s075> <urn:ex:p> <http://a/bb/ccc/d/g/>.
35+
<urn:ex:s076> <urn:ex:p> <http://a/bb/ccc/d/g/h>.
36+
<urn:ex:s077> <urn:ex:p> <http://a/bb/ccc/d/h>.
37+
<urn:ex:s078> <urn:ex:p> <http://a/bb/ccc/d/g;x=1/y>.
38+
<urn:ex:s079> <urn:ex:p> <http://a/bb/ccc/d/y>.
39+
<urn:ex:s080> <urn:ex:p> <http://a/bb/ccc/d/g?y/./x>.
40+
<urn:ex:s081> <urn:ex:p> <http://a/bb/ccc/d/g?y/../x>.
41+
<urn:ex:s082> <urn:ex:p> <http://a/bb/ccc/d/g#s/./x>.
42+
<urn:ex:s083> <urn:ex:p> <http://a/bb/ccc/d/g#s/../x>.
43+
<urn:ex:s084> <urn:ex:p> <http:g>.

trig/IRI-resolution-02.trig

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
@base <http://a/bb/ccc/d/>.
2+
3+
<urn:ex:s043> <urn:ex:p> <g:h>.
4+
<urn:ex:s044> <urn:ex:p> <g>.
5+
<urn:ex:s045> <urn:ex:p> <./g>.
6+
<urn:ex:s046> <urn:ex:p> <g/>.
7+
<urn:ex:s047> <urn:ex:p> </g>.
8+
<urn:ex:s048> <urn:ex:p> <//g>.
9+
<urn:ex:s049> <urn:ex:p> <?y>.
10+
<urn:ex:s050> <urn:ex:p> <g?y>.
11+
<urn:ex:s051> <urn:ex:p> <#s>.
12+
<urn:ex:s052> <urn:ex:p> <g#s>.
13+
<urn:ex:s053> <urn:ex:p> <g?y#s>.
14+
<urn:ex:s054> <urn:ex:p> <;x>.
15+
<urn:ex:s055> <urn:ex:p> <g;x>.
16+
<urn:ex:s056> <urn:ex:p> <g;x?y#s>.
17+
<urn:ex:s057> <urn:ex:p> <>.
18+
<urn:ex:s058> <urn:ex:p> <.>.
19+
<urn:ex:s059> <urn:ex:p> <./>.
20+
<urn:ex:s060> <urn:ex:p> <..>.
21+
<urn:ex:s061> <urn:ex:p> <../>.
22+
<urn:ex:s062> <urn:ex:p> <../g>.
23+
<urn:ex:s063> <urn:ex:p> <../..>.
24+
<urn:ex:s064> <urn:ex:p> <../../>.
25+
<urn:ex:s065> <urn:ex:p> <../../g>.
26+
27+
<urn:ex:s066> <urn:ex:p> <../../../g>.
28+
<urn:ex:s067> <urn:ex:p> <../../../../g>.
29+
<urn:ex:s068> <urn:ex:p> </./g>.
30+
<urn:ex:s069> <urn:ex:p> </../g>.
31+
<urn:ex:s070> <urn:ex:p> <g.>.
32+
<urn:ex:s071> <urn:ex:p> <.g>.
33+
<urn:ex:s072> <urn:ex:p> <g..>.
34+
<urn:ex:s073> <urn:ex:p> <..g>.
35+
<urn:ex:s074> <urn:ex:p> <./../g>.
36+
<urn:ex:s075> <urn:ex:p> <./g/.>.
37+
<urn:ex:s076> <urn:ex:p> <g/./h>.
38+
<urn:ex:s077> <urn:ex:p> <g/../h>.
39+
<urn:ex:s078> <urn:ex:p> <g;x=1/./y>.
40+
<urn:ex:s079> <urn:ex:p> <g;x=1/../y>.
41+
<urn:ex:s080> <urn:ex:p> <g?y/./x>.
42+
<urn:ex:s081> <urn:ex:p> <g?y/../x>.
43+
<urn:ex:s082> <urn:ex:p> <g#s/./x>.
44+
<urn:ex:s083> <urn:ex:p> <g#s/../x>.
45+
<urn:ex:s084> <urn:ex:p> <http:g>.

trig/IRI-resolution-07.nt

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<urn:ex:s253> <urn:ex:p> <g:h>.
2+
<urn:ex:s254> <urn:ex:p> <file:///a/bb/ccc/g>.
3+
<urn:ex:s255> <urn:ex:p> <file:///a/bb/ccc/g>.
4+
<urn:ex:s256> <urn:ex:p> <file:///a/bb/ccc/g/>.
5+
<urn:ex:s257> <urn:ex:p> <file:///g>.
6+
<urn:ex:s258> <urn:ex:p> <file://g>.
7+
<urn:ex:s259> <urn:ex:p> <file:///a/bb/ccc/d;p?y>.
8+
<urn:ex:s260> <urn:ex:p> <file:///a/bb/ccc/g?y>.
9+
<urn:ex:s261> <urn:ex:p> <file:///a/bb/ccc/d;p?q#s>.
10+
<urn:ex:s262> <urn:ex:p> <file:///a/bb/ccc/g#s>.
11+
<urn:ex:s263> <urn:ex:p> <file:///a/bb/ccc/g?y#s>.
12+
<urn:ex:s264> <urn:ex:p> <file:///a/bb/ccc/;x>.
13+
<urn:ex:s265> <urn:ex:p> <file:///a/bb/ccc/g;x>.
14+
<urn:ex:s266> <urn:ex:p> <file:///a/bb/ccc/g;x?y#s>.
15+
<urn:ex:s267> <urn:ex:p> <file:///a/bb/ccc/d;p?q>.
16+
<urn:ex:s268> <urn:ex:p> <file:///a/bb/ccc/>.
17+
<urn:ex:s269> <urn:ex:p> <file:///a/bb/ccc/>.
18+
<urn:ex:s270> <urn:ex:p> <file:///a/bb/>.
19+
<urn:ex:s271> <urn:ex:p> <file:///a/bb/>.
20+
<urn:ex:s272> <urn:ex:p> <file:///a/bb/g>.
21+
<urn:ex:s273> <urn:ex:p> <file:///a/>.
22+
<urn:ex:s274> <urn:ex:p> <file:///a/>.
23+
<urn:ex:s275> <urn:ex:p> <file:///a/g>.
24+
25+
<urn:ex:s276> <urn:ex:p> <file:///g>.
26+
<urn:ex:s277> <urn:ex:p> <file:///g>.
27+
<urn:ex:s278> <urn:ex:p> <file:///g>.
28+
<urn:ex:s279> <urn:ex:p> <file:///g>.
29+
<urn:ex:s280> <urn:ex:p> <file:///a/bb/ccc/g.>.
30+
<urn:ex:s281> <urn:ex:p> <file:///a/bb/ccc/.g>.
31+
<urn:ex:s282> <urn:ex:p> <file:///a/bb/ccc/g..>.
32+
<urn:ex:s283> <urn:ex:p> <file:///a/bb/ccc/..g>.
33+
<urn:ex:s284> <urn:ex:p> <file:///a/bb/g>.
34+
<urn:ex:s285> <urn:ex:p> <file:///a/bb/ccc/g/>.
35+
<urn:ex:s286> <urn:ex:p> <file:///a/bb/ccc/g/h>.
36+
<urn:ex:s287> <urn:ex:p> <file:///a/bb/ccc/h>.
37+
<urn:ex:s288> <urn:ex:p> <file:///a/bb/ccc/g;x=1/y>.
38+
<urn:ex:s289> <urn:ex:p> <file:///a/bb/ccc/y>.
39+
<urn:ex:s290> <urn:ex:p> <file:///a/bb/ccc/g?y/./x>.
40+
<urn:ex:s291> <urn:ex:p> <file:///a/bb/ccc/g?y/../x>.
41+
<urn:ex:s292> <urn:ex:p> <file:///a/bb/ccc/g#s/./x>.
42+
<urn:ex:s293> <urn:ex:p> <file:///a/bb/ccc/g#s/../x>.
43+
<urn:ex:s294> <urn:ex:p> <http:g>.

trig/IRI-resolution-07.trig

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
@base <file:///a/bb/ccc/d;p?q>.
2+
3+
<urn:ex:s253> <urn:ex:p> <g:h>.
4+
<urn:ex:s254> <urn:ex:p> <g>.
5+
<urn:ex:s255> <urn:ex:p> <./g>.
6+
<urn:ex:s256> <urn:ex:p> <g/>.
7+
<urn:ex:s257> <urn:ex:p> </g>.
8+
<urn:ex:s258> <urn:ex:p> <//g>.
9+
<urn:ex:s259> <urn:ex:p> <?y>.
10+
<urn:ex:s260> <urn:ex:p> <g?y>.
11+
<urn:ex:s261> <urn:ex:p> <#s>.
12+
<urn:ex:s262> <urn:ex:p> <g#s>.
13+
<urn:ex:s263> <urn:ex:p> <g?y#s>.
14+
<urn:ex:s264> <urn:ex:p> <;x>.
15+
<urn:ex:s265> <urn:ex:p> <g;x>.
16+
<urn:ex:s266> <urn:ex:p> <g;x?y#s>.
17+
<urn:ex:s267> <urn:ex:p> <>.
18+
<urn:ex:s268> <urn:ex:p> <.>.
19+
<urn:ex:s269> <urn:ex:p> <./>.
20+
<urn:ex:s270> <urn:ex:p> <..>.
21+
<urn:ex:s271> <urn:ex:p> <../>.
22+
<urn:ex:s272> <urn:ex:p> <../g>.
23+
<urn:ex:s273> <urn:ex:p> <../..>.
24+
<urn:ex:s274> <urn:ex:p> <../../>.
25+
<urn:ex:s275> <urn:ex:p> <../../g>.
26+
27+
<urn:ex:s276> <urn:ex:p> <../../../g>.
28+
<urn:ex:s277> <urn:ex:p> <../../../../g>.
29+
<urn:ex:s278> <urn:ex:p> </./g>.
30+
<urn:ex:s279> <urn:ex:p> </../g>.
31+
<urn:ex:s280> <urn:ex:p> <g.>.
32+
<urn:ex:s281> <urn:ex:p> <.g>.
33+
<urn:ex:s282> <urn:ex:p> <g..>.
34+
<urn:ex:s283> <urn:ex:p> <..g>.
35+
<urn:ex:s284> <urn:ex:p> <./../g>.
36+
<urn:ex:s285> <urn:ex:p> <./g/.>.
37+
<urn:ex:s286> <urn:ex:p> <g/./h>.
38+
<urn:ex:s287> <urn:ex:p> <g/../h>.
39+
<urn:ex:s288> <urn:ex:p> <g;x=1/./y>.
40+
<urn:ex:s289> <urn:ex:p> <g;x=1/../y>.
41+
<urn:ex:s290> <urn:ex:p> <g?y/./x>.
42+
<urn:ex:s291> <urn:ex:p> <g?y/../x>.
43+
<urn:ex:s292> <urn:ex:p> <g#s/./x>.
44+
<urn:ex:s293> <urn:ex:p> <g#s/../x>.
45+
<urn:ex:s294> <urn:ex:p> <http:g>.

trig/IRI-resolution-08.nt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<urn:ex:s295> <urn:ex:p> <http://abc/def/>.
2+
<urn:ex:s296> <urn:ex:p> <http://abc/def/?a=b>.
3+
<urn:ex:s297> <urn:ex:p> <http://abc/def/#a=b>.
4+
<urn:ex:s298> <urn:ex:p> <http://abc/>.
5+
<urn:ex:s299> <urn:ex:p> <http://abc/?a=b>.
6+
<urn:ex:s300> <urn:ex:p> <http://abc/#a=b>.
7+
8+
<urn:ex:s301> <urn:ex:p> <http://ab//de//xyz>.
9+
<urn:ex:s302> <urn:ex:p> <http://ab//de//xyz>.
10+
<urn:ex:s303> <urn:ex:p> <http://ab//de/xyz>.
11+
12+
<urn:ex:s304> <urn:ex:p> <http://abc/d:f/xyz>.
13+
<urn:ex:s305> <urn:ex:p> <http://abc/d:f/xyz>.
14+
<urn:ex:s306> <urn:ex:p> <http://abc/xyz>.

trig/IRI-resolution-08.trig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
@base <http://abc/def/ghi>.
2+
<urn:ex:s295> <urn:ex:p> <.>.
3+
<urn:ex:s296> <urn:ex:p> <.?a=b>.
4+
<urn:ex:s297> <urn:ex:p> <.#a=b>.
5+
<urn:ex:s298> <urn:ex:p> <..>.
6+
<urn:ex:s299> <urn:ex:p> <..?a=b>.
7+
<urn:ex:s300> <urn:ex:p> <..#a=b>.
8+
9+
@base <http://ab//de//ghi>.
10+
<urn:ex:s301> <urn:ex:p> <xyz>.
11+
<urn:ex:s302> <urn:ex:p> <./xyz>.
12+
<urn:ex:s303> <urn:ex:p> <../xyz>.
13+
14+
@base <http://abc/d:f/ghi>.
15+
<urn:ex:s304> <urn:ex:p> <xyz>.
16+
<urn:ex:s305> <urn:ex:p> <./xyz>.
17+
<urn:ex:s306> <urn:ex:p> <../xyz>.

0 commit comments

Comments
 (0)