Skip to content

conversion:label

timrdf edited this page Jul 3, 2012 · 7 revisions
csv2rdf4lod-automation is licensed under the [Apache License, Version 2.0](https://github.com/timrdf/csv2rdf4lod-automation/wiki/License)

See conversion:Enhancement.

Used to rename the predicate. Will become the rdfs:label of the predicate created. Values can be human-friendly (e.g., "First Name") -- the converter will URI-ify it (e.g., :first_name).

Note: ov:csvHeader is NOT used for ANYTHING. It is simply there to show you the value from the original CSV to help keep you oriented, just like conversion:eg.

The enhancement template parameters look something like:

      conversion:enhance [
         ov:csvCol          1;
         ov:csvHeader       "country";
         #conversion:label   "country";
         conversion:comment "";
         conversion:range   todo:Literal;
      ];

Set the conversion:label to the rdfs:label that you would like it to have, and the RDF property created for this column will be created from this label. For example, the following will rename the column to "region":

      conversion:enhance [
         ov:csvCol          1;
         ov:csvHeader       "country";
         conversion:label   "region";
         conversion:comment "";
         conversion:range   todo:Literal;
      ];
Clone this wiki locally