Included new 2 r2rml tcs
authorBoris Villazon-Terrazas <bvillazon@fi.upm.es>
Tue, 01 Nov 2011 02:47:49 +0100
changeset 34 b65581772625
parent 33 c7e916bd1560
child 35 6dd133d4e29f
Included new 2 r2rml tcs
D007-1table1primarykey2columns1row/mappede.nq
D007-1table1primarykey2columns1row/mappedf.nq
D007-1table1primarykey2columns1row/r2rmle.ttl
D007-1table1primarykey2columns1row/r2rmlf.ttl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/D007-1table1primarykey2columns1row/mappede.nq	Tue Nov 01 02:47:49 2011 +0100
@@ -0,0 +1,3 @@
+<http://example.com/Student10Venus> <http://example.com/id> "10"^^http://www.w3.org/2001/XMLSchema#integer <http://example.com/PersonGraph> .
+<http://example.com/Student10Venus> <http://xmlns.com/foaf/0.1/firstName> "Venus" <http://example.com/PersonGraph> .
+<http://example.com/Student10Venus> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> <http://example.com/PersonGraph> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/D007-1table1primarykey2columns1row/mappedf.nq	Tue Nov 01 02:47:49 2011 +0100
@@ -0,0 +1,3 @@
+<http://example.com/Student10Venus> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://xmlns.com/foaf/0.1/Person> <http://example.com/PersonGraph> .
+<http://example.com/Student10Venus> <http://xmlns.com/foaf/0.1/firstName> "Venus" <http://example.com/PersonGraph> .
+<http://example.com/Student10Venus> <http://example.com/id> "10"^^http://www.w3.org/2001/XMLSchema#integer <http://example.com/PersonGraph> .
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/D007-1table1primarykey2columns1row/r2rmle.ttl	Tue Nov 01 02:47:49 2011 +0100
@@ -0,0 +1,31 @@
+@prefix rr: <http://www.w3.org/ns/r2rml#> .
+@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base <http://mappingpedia.org/rdb2rdf/r2rml/tc/> .
+
+
+<TriplesMap1>
+     a rr:TriplesMap;
+
+	rr:logicalTable [ rr:tableName "Student" ];
+
+    rr:subjectMap [ rr:template "http://example.com/Student{ID}{Name}"; 
+					rr:graphMap [ rr:constant ex:PersonGraph];
+					rr:class foaf:Person
+	];
+	
+    rr:predicateObjectMap
+    [ 
+		rr:predicateMap [ rr:constant ex:id; ];
+		rr:objectMap    [ rr:column "ID"; rr:datatype xsd:integer ]
+    ];
+
+    rr:predicateObjectMap
+    [ 
+      rr:predicateMap [ rr:constant foaf:firstName; ];
+      rr:objectMap    [ rr:column "Name" ]
+    ]
+
+    .
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/D007-1table1primarykey2columns1row/r2rmlf.ttl	Tue Nov 01 02:47:49 2011 +0100
@@ -0,0 +1,36 @@
+@prefix rr: <http://www.w3.org/ns/r2rml#> .
+@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
+@base <http://mappingpedia.org/rdb2rdf/r2rml/tc/> .
+
+
+<TriplesMap1>
+     a rr:TriplesMap;
+
+	rr:logicalTable [ rr:tableName "Student" ];
+
+	rr:subjectMap [ rr:template "http://example.com/Student{ID}{Name}";
+					rr:graphMap [ rr:constant ex:PersonGraph];
+	];
+	
+    rr:predicateObjectMap
+    [ 
+		rr:predicateMap [ rr:constant rdf:type; ];
+		rr:objectMap [ rr:constant foaf:Person; ];
+	];
+	
+    rr:predicateObjectMap
+    [ 
+		rr:predicateMap [ rr:constant ex:id; ];
+		rr:objectMap    [ rr:column "ID"; rr:datatype xsd:integer ]
+    ];
+
+    rr:predicateObjectMap
+    [ 
+      rr:predicateMap [ rr:constant foaf:firstName; ];
+      rr:objectMap    [ rr:column "Name" ]
+    ]
+
+    .
\ No newline at end of file