-
Notifications
You must be signed in to change notification settings - Fork 36
Script: cell ify params.awk
Timothy Lebo edited this page Feb 14, 2012
·
9 revisions
csv2rdf4lod-automation is licensed under the [Apache License, Version 2.0](https://github.com/timrdf/csv2rdf4lod-automation/wiki/License)
(see Converting with cell based subjects for why you would want to use this.)
From your conversion cockpit (e.g. csv2rdf4lod/data/source/data-gov/401/version/1st-anniversary):
$CSV2RDF4LOD_HOME/bin/util/cell-ify-eparams.awk
cat manual/budauth.csv.e1.params.ttl | awk -f $CSV2RDF4LOD_HOME/bin/util/cell-ify-eparams.awk
cellify=`echo "" | awk '{for(i=5;i<=10;i++){printf(",%s",i)}}'`
-v label_up=Year
-v up_object=Blah
-v up_range=xsd:gYear
-v out_range=xsd:decimal
-v labels_up=Venue,Another,YAnother
conversion:enhance [
ov:csvCol 66;
ov:csvHeader "FY2008";
conversion:label "FY2008";
conversion:range todo:Literal;
];
cat ../e1.params.ttl | awk -f $CSV2RDF4LOD_HOME/bin/util/cell-ify-eparams.awk -v cellify=`echo "" | awk '{for(i=3;i<=66;i++){printf(",%s",i)}}'` -v label_up=Year -v up_object=Blah -v up_range=xsd:gYear -v out_range=xsd:decimal -v labels_up=Venue,Another,YAnother