Skip to content

conversion:range rdfs:Resource

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

See conversion:Enhancement.

Promoting a cell value to a URI

Changing the conversion:range from rdfs:Literal to rdfs:Resource will promote the cell value to a URI (using a default namespace within the dataset). For example,

      conversion:enhance [
         ov:csvCol          1;
         ov:csvHeader       "JURISDICTION NAME";
         conversion:range   rdfs:Resource;
      ];

from this dataset will result in:

e1:jurisdiction_name 
   <http://logd.tw.rpi.edu//source/nycopendata-socrata-com/dataset/zip-code-breakdowns/value-of/jurisdiction_name/10001>

Adding a type to a promoted URI

      conversion:enhance [
         ov:csvCol          1;
         ov:csvHeader       "JURISDICTION NAME";
         conversion:range   rdfs:Resource;
         conversion:range_name "Zip Code";
      ];

results in:

e1:jurisdiction_name
    <http://logd.tw.rpi.edu/source/nycopendata-socrata-com/dataset/zip-code-breakdowns/typed/zip_code/10001>

conversion:range_name will type the URI to a local class.

See conversion:range.

Clone this wiki locally