Skip to content
timrdf edited this page Apr 2, 2011 · 74 revisions

Q: memory error!

laptop:~/research/source/scraperwiki-com/uk-offshore-oil-wells/version/2011-Jan-24$ ./convert-uk-offshore-oil-wells.sh 
--------------------------------------------------------------------------------
uk-offshore-oil-wells.csv
convert-uk-offshore-oil-wells.sh converting newlines of source/uk-offshore-oil-wells.csv
10720 rows in source/uk-offshore-oil-wells.csv
RAW CONVERSION
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
cat: automatic/uk-offshore-oil-wells.csv.raw.ttl: No such file or directory
   convert.sh done
convert-aggregate.sh delaying publishing until an enhancement is available.
  To publish with only raw, set CSV2RDF4LOD_PUBLISH_DELAY_UNTIL_ENHANCED="false" in $CSV2RDF4LOD_HOME/source-me.sh.
  To publish raw with enhanced, add enhancement to manual/uk-offshore-oil-wells.csv.e1.params.ttl and rerun convert...wells.sh
  To force publishing now, run publish/bin/publish.sh
===========================================================================================

By default, csv2rdf4lod-automation requests 3GB of memory for csv2rdf4lod. To reduce that, in your source-me.sh, change: export CSV2RDF4LOD_CONVERTER="" to: export CSV2RDF4LOD_CONVERTER="java edu.rpi.tw.data.csv.CSVtoRDF"

Q: Do you start counting at 0 or 1?

 I think there is 0th col in your example

conversion:enhance [
        ov:csvCol         0;
        conversion:predicate rdfs:seeAlso;
        conversion:object
<https://www.og.decc.gov.uk/pls/wons/wdep0100.qryWell>;
     ];

The first column is column 1. We're humans, not computers. Any enhancement with ov:csvCol 0 is referring to the row.

See the descriptions at conversion:Enhancement and conversion:predicate.

Q: How do I install csv2rdf4lod-automation?

Q: What dependencies does csv2rdf4lod-automation have?

Q: What version of csv2rdf4lod.jar do I have?

bash-3.2$ java edu.rpi.tw.data.csv.CSVtoRDF --version
CSVtoRDF: version 2011-Jan-23

Q: The date failed

DATE FAILED: "1989-10-02" !~ 0 templates @ :thing_2 :completion_date

See conversion:date_pattern.

Q: Who is using csv2rdf4lod?

Q: What version of the converter am I using?

bash-3.2$ java edu.rpi.tw.data.csv.CSVtoRDF --version
CSVtoRDF: version 2011-Apr-02

Historical note

FAQs elsewhere that should be consolidated to this page:

Clone this wiki locally