rrx:languageColumn extension

Hi everyone!

We'd like to propose a simple extension to RDB2RDF called rrx:languageColumn to specify the language of a literal dynamically.

    @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
    @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#>.
    @prefix owl:  <http://www.w3.org/2002/07/owl#>.
    @prefix rr:   <http://www.w3.org/ns/r2rml#>.
    @prefix rrx:  <http://purl.org/r2rml-ext/>.

    rrx:languageColumn a owl:DatatypeProperty;
      rdfs:domain rr:TermMap;
      rdfs:range rdf:Literal;
      rdfs:comment "Specifies the language of a literal, to be retrieved from a column (whereas rr:language is a constant string)".

This can be used in R2RML scripts like so:

  rr:predicateObjectMap [
    rr:predicate dc:title;
    rr:objectMap [
      rr:column "TITLE";
      rrx:languageColumn "TITLE_LANG";
    ].

We've implemented it as a patch to the perl module RDF::RDB2RDF, and I've spoken to Juan whether it'd be possible to add it to Ultrawrap.
Your feedback on whether there's a better way will be appreciated.

Cheers!
--
Vladimir Alexiev, PhD, PMP
Lead, Data and Ontology Management Group
Ontotext Corp, www.ontotext.com
Sirma Group Holding, www.sirma.com
Email: vladimir.alexiev@ontotext.com, skype:valexiev1  
Mobile: +359 888 568 132, SMS: 359888568132@sms.mtel.net
Landline: +359 (988) 106 084, Fax: +359 (2) 975 3226
Calendar: https://www.google.com/calendar/embed?src=vladimir%40sirma.bg

Received on Tuesday, 17 September 2013 19:58:34 UTC