D007-1table1primarykey2columns1row/r2rmlh.ttl
author Boris Villazon-Terrazas <bvillazon@fi.upm.es>
Thu, 28 Jun 2012 13:40:15 +0200
changeset 99 40c1e148ed9a
parent 97 21d03113dc93
permissions -rw-r--r--
Removing the empty R2RML TCs
@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://example.com/base/> .


<TriplesMap1>
     a rr:TriplesMap;

	rr:logicalTable [ rr:tableName "\"Student\""; ];

    rr:subjectMap [ rr:template "http://example.com/Student/{\"ID\"}/{\"Name\"}"; 
				    rr:graphMap [ rr:column "\"Name\""; rr:termType rr:Literal; ]
	];
	
    rr:predicateObjectMap
    [ 
		rr:predicate	rdf:type;
		rr:object		foaf:Person;
	];

    rr:predicateObjectMap
    [ 
      rr:predicate		foaf:name;
      rr:objectMap		[ rr:column "\"Name\"" ]
    ]

    .