- From: Alexander De Leon <me@alexdeleon.name>
- Date: Tue, 15 Mar 2011 11:17:31 +0100
- To: RDB2RDF Working Group WG <public-rdb2rdf-wg@w3.org>
Received on Tuesday, 15 March 2011 10:18:25 UTC
Hi all,
Currently the rr:class predicate of the rr:SubjectMapClass only let you define the type of the instance by providing a static IRI of a rdfs:Class. I propose that we add rr:classColumn and rr:classTemplate to generate the IRI of the class at runtime.
Example :
DB:
ORGs:
| OrganizationName | Type |
----------------------------------------------
| A | Company |
| B | NGO |
| C | NPO |
R2RML:
<TripleMap1>
a rr:TripleMap;
rr:tableName "ORGs";
rr:subjectMap [
rr:template "http://example.com/resource/{OrganizationName}" ;
rr:termType "IRI";
rr:classTemplate "http://example.com/ontology/{Type}"';
];
.
Cheers,
Alex
Received on Tuesday, 15 March 2011 10:18:25 UTC