+ 1table0rows
authorEric Prud'hommeaux <eric@w3.org>
Tue, 11 Jan 2011 13:15:52 -0500
changeset 0 d750a395995c
child 1 fa59a1220609
+ 1table0rows
1table0rows/create.sql
1table0rows/directGraph.ttl
1table0rows/mapped.trig
1table0rows/r2rml.ttl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/1table0rows/create.sql	Tue Jan 11 13:15:52 2011 -0500
@@ -0,0 +1,3 @@
+CREATE TABLE Student (
+       Name varchar(50)
+);
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/1table0rows/directGraph.ttl	Tue Jan 11 13:15:52 2011 -0500
@@ -0,0 +1,1 @@
+# empty graph
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/1table0rows/mapped.trig	Tue Jan 11 13:15:52 2011 -0500
@@ -0,0 +1,1 @@
+# empty database
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/1table0rows/r2rml.ttl	Tue Jan 11 13:15:52 2011 -0500
@@ -0,0 +1,20 @@
+@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#> .
+
+<#TriplesMap1>
+    a rr:TriplesMap;
+        
+    rr:tableOwner "boricles";
+    rr:tableName "Student";
+
+    rr:subjectMap [ rr:template "http://example.com/{Name}" ]; 
+	
+    rr:predicateObjectMap
+    [ 
+      rr:predicateMap [ rr:predicate foaf:name ]; 
+      rr:objectMap    [ rr:column "Name" ]
+    ]
+    .
+