Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions test-cases/RMLTC0032a/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## RMLTC0032a

**Title**: "Constant mapping can omit logical source"

**Description**: "Test a Triples Map with only constant expressions can omit logical source"

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

**Error expected?** No

**Mapping**
```
@prefix rml: <http://w3id.org/rml/>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.

<http://example.com/base/TriplesMap1> a rml:TriplesMap;
rml:subjectMap [ rml:constant <http://example.com/Gaston> ];
rml:predicateObjectMap [
rml:predicate rdfs:label;
rml:objectMap [
rml:constant "Gaston Lagaffe";
rml:languageMap [ rml:constant "fr-BE" ];
];
].


```

**Output**
```
<http://example.com/Gaston> <http://www.w3.org/2000/01/rdf-schema#label> "Gaston Lagaffe"@fr-BE .
```

13 changes: 13 additions & 0 deletions test-cases/RMLTC0032a/mapping.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@prefix rml: <http://w3id.org/rml/>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.

<http://example.com/base/TriplesMap1> a rml:TriplesMap;
rml:subjectMap [ rml:constant <http://example.com/Gaston> ];
rml:predicateObjectMap [
rml:predicate rdfs:label;
rml:objectMap [
rml:constant "Gaston Lagaffe";
rml:languageMap [ rml:constant "fr-BE" ];
];
].

1 change: 1 addition & 0 deletions test-cases/RMLTC0032a/output.nq
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<http://example.com/Gaston> <http://www.w3.org/2000/01/rdf-schema#label> "Gaston Lagaffe"@fr-BE .
33 changes: 33 additions & 0 deletions test-cases/RMLTC0032b/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## RMLTC0032b

**Title**: "Constant template mapping can omit logical source"

**Description**: "Test a Triples Map with only constant template and constant expressions can omit logical source"

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

**Error expected?** No

**Mapping**
```
@prefix rml: <http://w3id.org/rml/>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.

<http://example.com/base/TriplesMap1> a rml:TriplesMap;
rml:subjectMap [ rml:template "http://example.com/Gaston" ];
rml:predicateObjectMap [
rml:predicate rdfs:label;
rml:objectMap [
rml:constant "Gaston Lagaffe";
rml:languageMap [ rml:constant "fr-BE" ];
];
].


```

**Output**
```
<http://example.com/Gaston> <http://www.w3.org/2000/01/rdf-schema#label> "Gaston Lagaffe"@fr-BE .
```

13 changes: 13 additions & 0 deletions test-cases/RMLTC0032b/mapping.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@prefix rml: <http://w3id.org/rml/>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.

<http://example.com/base/TriplesMap1> a rml:TriplesMap;
rml:subjectMap [ rml:template "http://example.com/Gaston" ];
rml:predicateObjectMap [
rml:predicate rdfs:label;
rml:objectMap [
rml:constant "Gaston Lagaffe";
rml:languageMap [ rml:constant "fr-BE" ];
];
].

1 change: 1 addition & 0 deletions test-cases/RMLTC0032b/output.nq
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<http://example.com/Gaston> <http://www.w3.org/2000/01/rdf-schema#label> "Gaston Lagaffe"@fr-BE .
28 changes: 28 additions & 0 deletions test-cases/RMLTC0032c/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
## RMLTC0032c

**Title**: "Non constant mapping, while omitting logical source"

**Description**: "Test a Triples Map with reference expressions cannot omit logical source"

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

**Error expected?** Yes

**Mapping**
```
@prefix rml: <http://w3id.org/rml/>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.

<http://example.com/base/TriplesMap1> a rml:TriplesMap;
rml:subjectMap [ rml:template "http://example.com/{name}" ];
rml:predicateObjectMap [
rml:predicate rdfs:label;
rml:objectMap [
rml:reference "name";
rml:languageMap [ rml:constant "fr-BE" ];
];
].


```

13 changes: 13 additions & 0 deletions test-cases/RMLTC0032c/mapping.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@prefix rml: <http://w3id.org/rml/>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.

<http://example.com/base/TriplesMap1> a rml:TriplesMap;
rml:subjectMap [ rml:template "http://example.com/{name}" ];
rml:predicateObjectMap [
rml:predicate rdfs:label;
rml:objectMap [
rml:reference "name";
rml:languageMap [ rml:constant "fr-BE" ];
];
].

33 changes: 33 additions & 0 deletions test-cases/RMLTC0032d/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
## RMLTC0032d

**Title**: "Blank node subject mapping can omit logical source"

**Description**: "Test a Triples Map with a blank node subject map without expressions can omit logical source"

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

**Error expected?** No

**Mapping**
```
@prefix rml: <http://w3id.org/rml/>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.

<http://example.com/base/TriplesMap1> a rml:TriplesMap;
rml:subjectMap [ rml:termType rml:BlankNode ];
rml:predicateObjectMap [
rml:predicate rdfs:label;
rml:objectMap [
rml:constant "Gaston Lagaffe";
rml:languageMap [ rml:constant "fr-BE" ];
];
].


```

**Output**
```
_:bn0 <http://www.w3.org/2000/01/rdf-schema#label> "Gaston Lagaffe"@fr-BE .
```

13 changes: 13 additions & 0 deletions test-cases/RMLTC0032d/mapping.ttl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
@prefix rml: <http://w3id.org/rml/>.
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.

<http://example.com/base/TriplesMap1> a rml:TriplesMap;
rml:subjectMap [ rml:termType rml:BlankNode ];
rml:predicateObjectMap [
rml:predicate rdfs:label;
rml:objectMap [
rml:constant "Gaston Lagaffe";
rml:languageMap [ rml:constant "fr-BE" ];
];
].

1 change: 1 addition & 0 deletions test-cases/RMLTC0032d/output.nq
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_:bn0 <http://www.w3.org/2000/01/rdf-schema#label> "Gaston Lagaffe"@fr-BE .
6 changes: 5 additions & 1 deletion test-cases/descriptions.csv
Original file line number Diff line number Diff line change
Expand Up @@ -74,4 +74,8 @@ RMLTC0030e-JSON,Generation of triples from a join with constant-valued childMap,
RMLTC0030f-JSON,Generation of triples from a join with constant-valued childMap,Test that results from a join with constant-valued childMap
RMLTC0031a-JSON,Generating of triples with a constant-valued language map,Test triples with a constant-valued language map
RMLTC0031b-JSON,Generating of triples with a reference-valued language map,Test triples with a reference-valued language map
RMLTC0031c-JSON,Generating of triples with a template-valued language map,Test triples with a template-valued language map
RMLTC0031c-JSON,Generating of triples with a template-valued language map,Test triples with a template-valued language map
RMLTC0032a,Constant mapping can omit logical source,Test a Triples Map with only constant expressions can omit logical source
RMLTC0032b,Constant template mapping can omit logical source,Test a Triples Map with only constant template and constant expressions can omit logical source
RMLTC0032c,"Non constant mapping, while omitting logical source",Test a Triples Map with reference expressions cannot omit logical source
RMLTC0032d,Blank node subject mapping can omit logical source,Test a Triples Map with a blank node subject map without expressions can omit logical source
Loading
Loading