- From: Toby Inkster <tai@g5n.co.uk>
- Date: Tue, 12 Jun 2012 16:20:20 +0100
- To: Boris Villazon-Terrazas <bvillazon@fi.upm.es>
- Cc: public-rdb2rdf-comments@w3.org
On Tue, 12 Jun 2012 15:09:06 +0200
Boris Villazon-Terrazas <bvillazon@fi.upm.es> wrote:
> The base IRI of the r2rml mappings is only for the mappings, not for
> the resultant triples/quads
I disagree - the base URI of the mappings makes a difference to the
output. Given...
@base <http://example.net/foo/> .
<#TriplesMap1>
rr:logicalTable [ rr:tableName "employees" ];
rr:subjectMap [
rr:template "http://data.example.com/employee/{id}";
rr:class <Bar>;
].
Then this will produce a triple of the form:
<http://data.example.com/employee/123>
rdf:type <http://example.net/foo/Bar> .
The base URI of the R2RML mapping document absolutely does make a
difference to the output here.
If the mapping document had said this:
@base <http://example.net/foo/> .
<#TriplesMap1>
rr:logicalTable [ rr:tableName "employees" ];
rr:subjectMap [
rr:template "http://data.example.com/employee/{id}";
] ;
rr:predicateObjectMap [
rr:predicate rdf:type ;
rr:objectMap [
rr:template "Bar";
rr:termType rr:IRI;
]
].
Then its base URI wouldn't make any difference.
--
Toby A Inkster
<mailto:mail@tobyinkster.co.uk>
<http://tobyinkster.co.uk>
Received on Tuesday, 12 June 2012 15:18:24 UTC