Skip to content

Commit 9b3e4d4

Browse files
committed
proposal to fix IRI, URI and UnsafeIRI tests
1 parent d486c7f commit 9b3e4d4

11 files changed

Lines changed: 20 additions & 31 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<http://example.com/Person/Alice> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
22
<http://example.com/Person/Bob> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
33
<http://example.com/Person/Bob%2FCharles> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
4-
<http://example.com/Person/Danny> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
4+
<http://example.com/Person/Zo%C3%AB%20Kr%C3%BCger> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
55
<http://example.com/Person/Emily%20Smith> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .

test-cases/RMLTC0027a-JSON/student.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{"Name": "Alice"},
44
{"Name": "Bob"},
55
{"Name": "Bob/Charles"},
6-
{"Name": "Danny"},
6+
{"Name": "Zoë Krüger"},
77
{"Name": "Emily Smith"}
88
]
99
}

test-cases/RMLTC0027b-JSON/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## RMLTC0027b-JSON
22

3-
**Title**: "Generation of triples using the UnsafeURI term type"
3+
**Title**: "Generation of triples using the UnsafeIRI term type"
44

5-
**Description**: "Tests the generation of triples with a UnsafeURI term type in the subject or object"
5+
**Description**: "Tests the generation of triples with a UnsafeIRI term type in the subject or object"
66

77
**Default Base IRI**: http://example.com/
88

@@ -52,9 +52,9 @@
5252
```
5353
<http://example.com/Person/Alice> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
5454
<http://example.com/Person/Bob> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
55-
<http://example.com/Person/Bob%2FCharles> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
55+
<http://example.com/Person/Bob/Charles> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
5656
<http://example.com/Person/Danny> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
57-
<http://example.com/Person/Emily%20Smith> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
57+
<http://example.com/Person/Emily Smith> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
5858
5959
```
6060

test-cases/RMLTC0027b-JSON/mapping.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
];
1818
rml:subjectMap [
1919
rml:template "http://example.com/Person/{$.Name}";
20-
rml:termType rml:UnsafeURI
20+
rml:termType rml:UnsafeIRI
2121
] .
Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
<http://example.com/Person/Alice> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
2-
<http://example.com/Person/Bob> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
3-
<http://example.com/Person/Bob%2FCharles> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
4-
<http://example.com/Person/Danny> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
5-
<http://example.com/Person/Emily%20Smith> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
1+
<http://example.com/Person/Bob/Charles> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
2+
<http://example.com/Person/Emily Smith> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
3+
<http://example.com/Person/Zoë Krüger> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
22
"students": [
3-
{"Name": "Alice"},
4-
{"Name": "Bob"},
53
{"Name": "Bob/Charles"},
6-
{"Name": "Danny"},
7-
{"Name": "Emily Smith"}
4+
{"Name": "Emily Smith"},
5+
{"Name": "Zoë Krüger"}
86
]
97
}

test-cases/RMLTC0027c-JSON/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
## RMLTC0027c-JSON
22

3-
**Title**: "Generation of triples using the UnsafeIRI term type"
3+
**Title**: "Generation an IRI using the term type IRI"
44

5-
**Description**: "Tests the generation of triples with a UnsafeIRI term type in the subject or object"
5+
**Description**: "Tests the generation of triples with a IRI term type in the subject"
66

77
**Default Base IRI**: http://example.com/
88

test-cases/RMLTC0027c-JSON/mapping.ttl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
];
1818
rml:subjectMap [
1919
rml:template "http://example.com/Person/{$.Name}";
20-
rml:termType rml:UnsafeIRI
20+
rml:termType rml:IRI
2121
] .
Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,2 @@
1-
<http://example.com/Person/Alice> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
2-
<http://example.com/Person/Bob> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
3-
<http://example.com/Person/Bob%2FCharles> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
4-
<http://example.com/Person/Danny> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
5-
<http://example.com/Person/Emily%20Smith> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
1+
<http://example.com/Person/Zoë%20Krüger> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
2+
Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,5 @@
11
{
22
"students": [
3-
{"Name": "Alice"},
4-
{"Name": "Bob"},
5-
{"Name": "Bob/Charles"},
6-
{"Name": "Danny"},
7-
{"Name": "Emily Smith"}
3+
{"Name": "Zoë Krüger"}
84
]
95
}

0 commit comments

Comments
 (0)