D007-1table1primarykey2columns1row/r2rmlh.ttl
changeset 70 7866839f6bb2
child 97 21d03113dc93
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/D007-1table1primarykey2columns1row/r2rmlh.ttl	Tue Mar 13 02:30:47 2012 +0100
@@ -0,0 +1,30 @@
+@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:graph rr:defaultGraph;
+	];
+	
+    rr:predicateObjectMap
+    [ 
+		rr:predicate	rdf:type;
+		rr:object		foaf:Person;
+	];
+
+    rr:predicateObjectMap
+    [ 
+      rr:predicate		foaf:name;
+      rr:objectMap		[ rr:column "\"Name\"" ]
+    ]
+
+    .