D007-1table1primarykey2columns1row/r2rmlh.ttl
author Boris Villazon-Terrazas <bvillazon@fi.upm.es>
Tue, 13 Mar 2012 02:30:47 +0100
changeset 70 7866839f6bb2
child 97 21d03113dc93
permissions -rw-r--r--
Update TCs according to Richard comments III
70
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
     1
@prefix rr: <http://www.w3.org/ns/r2rml#> .
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
     2
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
     3
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
     4
@prefix ex: <http://example.com/> .
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
     5
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
     6
@base <http://mappingpedia.org/rdb2rdf/r2rml/tc/> .
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
     7
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
     8
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
     9
<TriplesMap1>
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    10
     a rr:TriplesMap;
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    11
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    12
	rr:logicalTable [ rr:tableName "\"Student\""; ];
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    13
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    14
    rr:subjectMap [ rr:template "http://example.com/Student/{\"ID\"}/{\"Name\"}"; 
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    15
				    rr:graph rr:defaultGraph;
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    16
	];
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    17
	
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    18
    rr:predicateObjectMap
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    19
    [ 
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    20
		rr:predicate	rdf:type;
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    21
		rr:object		foaf:Person;
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    22
	];
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    23
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    24
    rr:predicateObjectMap
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    25
    [ 
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    26
      rr:predicate		foaf:name;
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    27
      rr:objectMap		[ rr:column "\"Name\"" ]
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    28
    ]
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    29
7866839f6bb2 Update TCs according to Richard comments III
Boris Villazon-Terrazas <bvillazon@fi.upm.es>
parents:
diff changeset
    30
    .