Skip to content

conversion:multiplier

Timothy Lebo edited this page Feb 14, 2012 · 5 revisions
csv2rdf4lod-automation is licensed under the [Apache License, Version 2.0](https://github.com/timrdf/csv2rdf4lod-automation/wiki/License)

See conversion:Enhancement.

Providing a multiplier to scale value during conversion:

http://logd.tw.rpi.edu/data-gov/conversionParams/326/enrichment/1 { [] conv:dataset_source "data-gov" . [] conv:source_identifier "326" . [] conv:enrichment_identifier "1" .

[] ov:csvRow 4;  
   enrichment:range      xsd:int;
   enrichment:multiplier 1000 .

}

Would result in:

@prefix p326e1: http://logd.tw.rpi.edu/data-gov/property/326/enrichment/1/

http://logd.tw.rpi.edu/dataset/326/ {

<http://logd.tw.rpi.edu/dataset/326/thing_1> 
       p326e1:series_id "GPU00100000E0000";
       p326e1:year      "1981";
       p326e1:period    "A01";
       p326e1:value      1491000 ;
       ov:csvRow         1;
.

}

Queries

results):

PREFIX conversion: <http://purl.org/twc/vocab/conversion/>
SELECT distinct ?dataset ?mult
WHERE {
  GRAPH <http://logd.tw.rpi.edu/vocab/Dataset>  {
    ?dataset conversion:conversion_process [
       conversion:enhance [
          conversion:multiplier ?mult
       ]
    ]
  }
}order by desc(?mult)
Clone this wiki locally