--- a/D008-1table1compositeprimarykey3columns1row/mappedb.nq Tue Feb 28 02:14:13 2012 +0100
+++ b/D008-1table1compositeprimarykey3columns1row/mappedb.nq Tue Feb 28 12:50:51 2012 +0100
@@ -1,5 +1,6 @@
<http://example.com/Student10Venus%20Williams> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> .
<http://example.com/Student10Venus%20Williams> <http://xmlns.com/foaf/0.1/name> "Venus Williams" .
<http://example.com/Student10Venus%20Williams> <http://example.com/id> "10"^^<http://www.w3.org/2001/XMLSchema#integer> .
-<http://example.com/Student10Venus%20Williams> <http://example.com/Sport> "Tennis" .
+<http://example.com/Student10Venus%20Williams> <http://example.com/Sport> <http://example.com/Tennis> .
+<http://example.com/Tennis> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://activity.com/Sport> .
--- a/D008-1table1compositeprimarykey3columns1row/r2rmlb.ttl Tue Feb 28 02:14:13 2012 +0100
+++ b/D008-1table1compositeprimarykey3columns1row/r2rmlb.ttl Tue Feb 28 12:50:51 2012 +0100
@@ -2,10 +2,23 @@
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix ex: <http://example.com/> .
+@prefix activity: <http://activity.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@base <http://mappingpedia.org/rdb2rdf/r2rml/tc/> .
+<TriplesMap2>
+ a rr:TriplesMap;
+ rr:logicalTable [ rr:tableName "Student" ];
+
+ rr:subjectMap [ rr:template "http://example.com/{Sport}"; ];
+
+ rr:predicateObjectMap [
+ rr:predicateMap [rr:constant rdf:type ];
+ rr:objectMap [rr:constant activity:Sport ]
+ ];
+.
+
<TriplesMap1>
a rr:TriplesMap;
@@ -43,8 +56,7 @@
<RefObjectMap1>
a rr:RefObjectMap;
- rr:parentTriplesMap <TriplesMap1> ;
- rr:column "Sport" ;
+ rr:parentTriplesMap <TriplesMap2> ;
.