Skip to content

Commit

Permalink
add missing prefix for rdf
Browse files Browse the repository at this point in the history
  • Loading branch information
pheyvaer committed Feb 19, 2019
1 parent ca6d067 commit 2d6ec2c
Show file tree
Hide file tree
Showing 11 changed files with 69 additions and 59 deletions.
3 changes: 2 additions & 1 deletion test-cases/RMLTC0007a-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down Expand Up @@ -39,4 +40,4 @@
rr:predicateObjectMap [
rr:predicate rdf:type;
rr:object foaf:Person;
].
].
11 changes: 6 additions & 5 deletions test-cases/RMLTC0007a-XML/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,24 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .

<TriplesMap1> a rr:TriplesMap;
rml:logicalSource [

rml:logicalSource [
rml:source "student.xml";
rml:referenceFormulation ql:XPath;
rml:iterator "/students/student"
];

rr:subjectMap [
rr:subjectMap [
rr:template "http://example.com/Student/{ID}/{FirstName}"
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate rdf:type;
rr:object foaf:Person;
rr:object foaf:Person;
].


13 changes: 7 additions & 6 deletions test-cases/RMLTC0007b-JSON/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,28 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .

<TriplesMap1> a rr:TriplesMap;
rml:logicalSource [

rml:logicalSource [
rml:source "student.json";
rml:referenceFormulation ql:JSONPath;
rml:iterator "$.students[*]"
];

rr:subjectMap [
rr:subjectMap [
rr:template "http://example.com/Student/{ID}/{FirstName}";
rr:graph ex:PersonGraph
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate rdf:type;
rr:object foaf:Person;
rr:object foaf:Person;
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate foaf:name;
rr:objectMap [ rml:reference "FirstName" ]
].
Expand Down
21 changes: 11 additions & 10 deletions test-cases/RMLTC0007d-JSON/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,37 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .

<TriplesMap1> a rr:TriplesMap;
rml:logicalSource [

rml:logicalSource [
rml:source "student.json";
rml:referenceFormulation ql:JSONPath;
rml:iterator "$.students[*]"
];

rr:subjectMap [
rr:subjectMap [
rr:template "http://example.com/Student/{ID}/{FirstName}"
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate rdf:type;
rr:object foaf:Person;
rr:object foaf:Person;
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate rdf:type;
rr:object ex:Student;
rr:object ex:Student;
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate ex:id;
rr:objectMap [rml:reference "ID"]
rr:objectMap [rml:reference "ID"]
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate foaf:name;
rr:objectMap [ rml:reference "FirstName" ]
].
Expand Down
3 changes: 2 additions & 1 deletion test-cases/RMLTC0007f-SPARQL/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
@prefix sd: <http://www.w3.org/ns/sparql-service-description#>.
@prefix ex: <http://example.com/> .
@prefix hydra: <http://www.w3.org/ns/hydra/core#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base> .

<#InputSPARQL>
Expand Down Expand Up @@ -40,4 +41,4 @@
rr:predicateObjectMap [
rr:predicate rdf:type;
rr:object foaf:Person
].
].
13 changes: 7 additions & 6 deletions test-cases/RMLTC0007f-XML/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -4,32 +4,33 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .

<TriplesMap1> a rr:TriplesMap;
rml:logicalSource [

rml:logicalSource [
rml:source "student.xml";
rml:referenceFormulation ql:XPath;
rml:iterator "/students/student"
];

rr:subjectMap [
rr:subjectMap [
rr:template "http://example.com/Student/{ID}/{FirstName}";
rr:graph ex:PersonGraph
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate rdf:type;
rr:object foaf:Person
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate ex:id ;
rr:objectMap [ rml:reference "ID"; ]
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate foaf:name ;
rr:objectMap [ rml:reference "FirstName" ]
].
Expand Down
21 changes: 11 additions & 10 deletions test-cases/RMLTC0008a-CSV/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -4,37 +4,38 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .

<TriplesMap1>
a rr:TriplesMap;

rml:logicalSource [
rml:logicalSource [
rml:source "student.csv";
rml:referenceFormulation ql:CSV
];

rr:subjectMap [
rr:template "http://example.com/Student/{ID}/{Name}";
rr:subjectMap [
rr:template "http://example.com/Student/{ID}/{Name}";
rr:graphMap [ rr:template "http://example.com/graph/Student/{ID}/{Name}" ]
];
rr:predicateObjectMap [

rr:predicateObjectMap [
rr:predicate rdf:type ;
rr:object foaf:Person;
rr:object foaf:Person;
];
rr:predicateObjectMap [

rr:predicateObjectMap [
rr:predicate ex:id ;
rr:objectMap [ rml:reference "ID" ]
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate foaf:name ;
rr:objectMap [ rml:reference "Name" ]
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate ex:Sport ;
rr:objectMap [ rml:reference "Sport" ]
] .
20 changes: 11 additions & 9 deletions test-cases/RMLTC0008b-SQLServer/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix activity: <http://example.com/activity/> .
@base <http://example.com/base/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .
@base <http://example.com/base/> .


<TriplesMap2>
a rr:TriplesMap;
Expand Down Expand Up @@ -35,28 +37,28 @@


rr:subjectMap [ rr:template "http://example.com/Student/{ID}/{Name}" ];
rr:predicateObjectMap [

rr:predicateObjectMap [
rr:predicate rdf:type ;
rr:object foaf:Person ;
];
rr:predicateObjectMap [

rr:predicateObjectMap [
rr:predicate ex:id ;
rr:objectMap [ rml:reference "ID"; ]
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate foaf:name ;
rr:objectMap [ rml:reference "Name" ]
];
rr:predicateObjectMap [

rr:predicateObjectMap [
rr:predicate ex:Sport ;
rr:objectMap <RefObjectMap1>
] .


<RefObjectMap1>
a rr:RefObjectMap;
rr:parentTriplesMap <TriplesMap2> .
Expand Down
21 changes: 11 additions & 10 deletions test-cases/RMLTC0008b-XML/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix activity: <http://example.com/activity/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@base <http://example.com/base/> .

<TriplesMap2>
a rr:TriplesMap;
rml:logicalSource [
rml:logicalSource [
rml:source "student.xml";
rml:referenceFormulation ql:XPath;
rml:iterator "/students/student"
Expand All @@ -25,35 +26,35 @@
<TriplesMap1>
a rr:TriplesMap;

rml:logicalSource [
rml:logicalSource [
rml:source "student.xml";
rml:referenceFormulation ql:XPath;
rml:iterator "/students/student"
];

rr:subjectMap [ rr:template "http://example.com/Student/{ID}/{Name}" ];
rr:predicateObjectMap [

rr:predicateObjectMap [
rr:predicate rdf:type ;
rr:object foaf:Person ;
];
rr:predicateObjectMap [

rr:predicateObjectMap [
rr:predicate ex:id ;
rr:objectMap [ rml:reference "ID"; ]
];

rr:predicateObjectMap [
rr:predicateObjectMap [
rr:predicate foaf:name ;
rr:objectMap [ rml:reference "Name" ]
];
rr:predicateObjectMap [

rr:predicateObjectMap [
rr:predicate ex:Sport ;
rr:objectMap <RefObjectMap1>
] .


<RefObjectMap1>
a rr:RefObjectMap;
rr:parentTriplesMap <TriplesMap2> .
1 change: 0 additions & 1 deletion test-cases/RMLTC0016b-SQLServer/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix d2rq: <http://www.wiwiss.fu-berlin.de/suhl/bizer/D2RQ/0.1#> .

@base <http://example.com/base/> .


Expand Down
1 change: 1 addition & 0 deletions test-cases/RMLTC0020a-JSON/mapping.ttl
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .

@base <http://example.com/base/> .

Expand Down

0 comments on commit 2d6ec2c

Please sign in to comment.