--- a/1table0rows/r2rml.ttl Mon Feb 21 19:37:30 2011 +0100
+++ b/1table0rows/r2rml.ttl Mon Feb 21 21:45:01 2011 +0100
@@ -2,9 +2,10 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix ex: <http://example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base: <http://mappingpedia.org/rdb2rdf/r2rml/tc/> .
-<#TriplesMap1>
- a rr:TriplesMap;
+<TriplesMap1>
+ a rr:TriplesMapClass;
rr:tableOwner "boricles";
rr:tableName "Student";
@@ -16,5 +17,4 @@
rr:predicateMap [ rr:predicate foaf:name ];
rr:objectMap [ rr:column "Name" ]
]
- .
-
+ .
\ No newline at end of file
--- a/1table1row/r2rmla.ttl Mon Feb 21 19:37:30 2011 +0100
+++ b/1table1row/r2rmla.ttl Mon Feb 21 21:45:01 2011 +0100
@@ -2,9 +2,10 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix ex: <http://example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base: <http://mappingpedia.org/rdb2rdf/r2rml/tc/> .
-<#TriplesMap1>
- a rr:TriplesMap;
+<TriplesMap1>
+ a rr:TriplesMapClass;
rr:tableOwner "boricles";
rr:tableName "Student";
@@ -16,4 +17,4 @@
rr:predicateMap [ rr:predicate foaf:name ];
rr:objectMap [ rr:column "Name" ]
]
- .
+ .
\ No newline at end of file
--- a/1table1row/r2rmlb.ttl Mon Feb 21 19:37:30 2011 +0100
+++ b/1table1row/r2rmlb.ttl Mon Feb 21 21:45:01 2011 +0100
@@ -2,9 +2,10 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix ex: <http://example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base: <http://mappingpedia.org/rdb2rdf/r2rml/tc/> .
-<#TriplesMap1>
- a rr:TriplesMap;
+<TriplesMap1>
+ a rr:TriplesMapClass;
rr:tableOwner "boricles";
rr:tableName "Student";
@@ -16,4 +17,4 @@
rr:predicateMap [ rr:predicate foaf:name ];
rr:objectMap [ rr:column "Name" ]
]
- .
+ .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/1table2columns1row/mappeda.trig Mon Feb 21 21:45:01 2011 +0100
@@ -0,0 +1,8 @@
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex: <http://example.com/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+
+ex:10Venus rdf:type foaf:Person;
+ ex:id "10"^^xsd:integer;
+ foaf:name "Venus".
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/1table2columns1row/mappedb.trig Mon Feb 21 21:45:01 2011 +0100
@@ -0,0 +1,8 @@
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex: <http://example.com/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+
+_:Student10 rdf:type foaf:Person;
+ ex:id "10"^^xsd:integer;
+ foaf:name "Venus".
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/1table2columns1row/r2rmla.ttl Mon Feb 21 21:45:01 2011 +0100
@@ -0,0 +1,27 @@
+@prefix rr: <http://www.w3.org/ns/r2rml#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex: <http://example.com/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base <http://mappingpedia.org/rdb2rdf/r2rml/tc/> .
+
+<TriplesMap1>
+ a rr:TriplesMapClass;
+
+ rr:tableOwner "boricles";
+ rr:tableName "Student";
+
+ rr:subjectMap [ rr:template "http://example.com/{ID}{Name}";
+ rr:class foaf:Person ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate ex:id ];
+ rr:objectMap [ rr:column "ID"; rr:datatype xsd:integer ]
+ ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate foaf:name ];
+ rr:objectMap [ rr:column "Name" ]
+ ]
+ .
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/1table2columns1row/r2rmlb.ttl Mon Feb 21 21:45:01 2011 +0100
@@ -0,0 +1,30 @@
+@prefix rr: <http://www.w3.org/ns/r2rml#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex: <http://example.com/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base: <http://mappingpedia.org/rdb2rdf/r2rml/tc/> .
+
+<TriplesMap1>
+ a rr:TriplesMapClass;
+
+ rr:SQLQuery """
+ Select ('Student' || ID ) AS "StudentId"
+ , ID
+ , Name
+ from Student
+ """;
+
+ rr:subjectMap [ rr:column "StudentId"; rr:termtype "BlankNode"; rr:class foaf:Person ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate ex:id ];
+ rr:objectMap [ rr:column "ID"; rr:datatype xsd:integer ]
+ ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate foaf:name ];
+ rr:objectMap [ rr:column "Name" ]
+ ]
+ .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/1table3columns1row/mappeda.trig Mon Feb 21 21:45:01 2011 +0100
@@ -0,0 +1,9 @@
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex: <http://example.com/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+
+ex:Student10VenusWilliams rdf:type foaf:Person
+ ex:id "10"^^xsd:integer;
+ foaf:firstName "Venus";
+ foaf:lastName "Williams".
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/1table3columns1row/mappedb.trig Mon Feb 21 21:45:01 2011 +0100
@@ -0,0 +1,8 @@
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex: <http://example.com/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+
+ex:Student10VenusWilliams rdf:type foaf:Person
+ ex:id "10"^^xsd:integer;
+ foaf:name "Venus Williams".
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/1table3columns1row/mappedc.trig Mon Feb 21 21:45:01 2011 +0100
@@ -0,0 +1,9 @@
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex: <http://example.com/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+
+_:Student10VenusWilliams rdf:type foaf:Person
+ ex:id "10"^^xsd:integer;
+ foaf:firstName "Venus";
+ foaf:lastName "Williams".
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/1table3columns1row/mappedd.trig Mon Feb 21 21:45:01 2011 +0100
@@ -0,0 +1,8 @@
+@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex: <http://example.com/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+
+_:Student10VenusWilliams rdf:type foaf:Person
+ ex:id "10"^^xsd:integer;
+ foaf:name "Venus Williams".
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/1table3columns1row/r2rmla.ttl Mon Feb 21 21:45:01 2011 +0100
@@ -0,0 +1,33 @@
+@prefix rr: <http://www.w3.org/ns/r2rml#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex: <http://example.com/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base <http://mappingpedia.org/rdb2rdf/r2rml/tc/> .
+
+<TriplesMap1>
+ a rr:TriplesMapClass;
+
+ rr:tableOwner "boricles";
+ rr:tableName "Student";
+
+ rr:subjectMap [ rr:template "http://example.com/Student{ID}{FirstName}{LastName}";
+ rr:class foaf:Person ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate ex:id ];
+ rr:objectMap [ rr:column "ID"; rr:datatype xsd:integer ]
+ ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate foaf:firstName ];
+ rr:objectMap [ rr:column "FirstName" ]
+ ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate foaf:lastName ];
+ rr:objectMap [ rr:column "LastName" ]
+ ]
+ .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/1table3columns1row/r2rmlb.ttl Mon Feb 21 21:45:01 2011 +0100
@@ -0,0 +1,32 @@
+@prefix rr: <http://www.w3.org/ns/r2rml#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex: <http://example.com/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base: <http://mappingpedia.org/rdb2rdf/r2rml/tc/> .
+
+<TriplesMap1>
+ a rr:TriplesMapClass;
+
+ rr:SQLQuery """
+ SELECT ID,
+ (FirstName || ' ' || LastName) AS Name,
+ FirstName,
+ LastName
+ FROM Student
+ """;
+
+ rr:subjectMap [ rr:template "http://example.com/Student{ID}{FirstName}{LastName}";
+ rr:class foaf:Person ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate ex:id ];
+ rr:objectMap [ rr:column "ID"; rr:datatype xsd:integer ]
+ ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate foaf:name ];
+ rr:objectMap [ rr:column "Name" ]
+ ]
+ .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/1table3columns1row/r2rmlc.ttl Mon Feb 21 21:45:01 2011 +0100
@@ -0,0 +1,38 @@
+@prefix rr: <http://www.w3.org/ns/r2rml#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex: <http://example.com/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base: <http://mappingpedia.org/rdb2rdf/r2rml/tc/> .
+
+<TriplesMap1>
+ a rr:TriplesMapClass;
+
+ rr:SQLQuery """
+ SELECT ('Student' || ID || FirstName || LastName) as StudentID,
+ ID,
+ FirstName,
+ LastName
+ FROM Student
+ """;
+
+ rr:subjectMap [ rr:column "StudentID"; rr:termtype "BlankNode";
+ rr:class foaf:Person ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate ex:id ];
+ rr:objectMap [ rr:column "ID"; rr:datatype xsd:integer ]
+ ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate foaf:firstName ];
+ rr:objectMap [ rr:column "FirstName" ]
+ ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate foaf:lastName ];
+ rr:objectMap [ rr:column "LastName" ]
+ ]
+ .
\ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/1table3columns1row/r2rmld.ttl Mon Feb 21 21:45:01 2011 +0100
@@ -0,0 +1,31 @@
+@prefix rr: <http://www.w3.org/ns/r2rml#> .
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex: <http://example.com/> .
+@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base: <http://mappingpedia.org/rdb2rdf/r2rml/tc/> .
+
+<TriplesMap1>
+ a rr:TriplesMapClass;
+
+ rr:SQLQuery """
+ SELECT ('Student' || ID || FirstName || LastName) as StudentID,
+ ID,
+ (FirstName || ' ' || LastName) AS Name
+ FROM Student
+ """;
+
+ rr:subjectMap [ rr:column "StudentID"; rr:termtype "BlankNode";
+ rr:class foaf:Person ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate ex:id ];
+ rr:objectMap [ rr:column "ID"; rr:datatype xsd:integer ]
+ ];
+
+ rr:predicateObjectMap
+ [
+ rr:predicateMap [ rr:predicate foaf:name ];
+ rr:objectMap [ rr:column "Name" ]
+ ]
+ .
\ No newline at end of file