Second RDB2RDF Test Case 1table1row included
authorBoris Villazon-Terrazas <bvillazon@fi.upm.es>
Tue, 11 Jan 2011 20:26:09 +0100
changeset 1 fa59a1220609
parent 0 d750a395995c
child 2 1e940dd73376
Second RDB2RDF Test Case 1table1row included
1table1row/create.sql
1table1row/directGraph.ttl
1table1row/mapped.trig
1table1row/r2rml.ttl
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/1table1row/create.sql	Tue Jan 11 20:26:09 2011 +0100
@@ -0,0 +1,4 @@
+CREATE TABLE Student (
+Name varchar(50)
+);
+INSERT INTO Student (Name) VALUES ("Venus");
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/1table1row/directGraph.ttl	Tue Jan 11 20:26:09 2011 +0100
@@ -0,0 +1,1 @@
+# empty graph
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/1table1row/mapped.trig	Tue Jan 11 20:26:09 2011 +0100
@@ -0,0 +1,4 @@
+@prefix foaf: <http://xmlns.com/foaf/0.1/> .
+@prefix ex: <http://example.com/> .
+
+ex:Venus foaf:name "Venus".
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/1table1row/r2rml.ttl	Tue Jan 11 20:26:09 2011 +0100
@@ -0,0 +1,19 @@
+@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" ]
+    ]
+    .