timrdf / csv2rdf4lod-automation

Shell script automation to support csv2rdf4lod converter
https://github.com/timrdf/csv2rdf4lod-automation/wiki
Apache License 2.0
110 stars 36 forks source link

assertConversionProvenance(meta, dataDumps); #321

Open apseyed opened 11 years ago

apseyed commented 11 years ago

line 1608 of the error is "assertConversionProvenance(meta, dataDumps); ".

....

27: "Platform" -> "Platform" -> https://github.com/timrdf/csv2rdf4lod-automation/wiki/CSV2RDF4LOD_BASE_URI#/source/scraperwiki-com/dataset/uk-offshore-oil-wells/vocab/enhancement/1/platform (rdfs:Literal)

28: "Slot_No." -> "Slot_No." -> https://github.com/timrdf/csv2rdf4lod-automation/wiki/CSV2RDF4LOD_BASE_URI#/source/scraperwiki-com/dataset/uk-offshore-oil-wells/vocab/enhancement/1/slot_no (rdfs:Literal)

TODO: add dcterms format for extension .ttl.gz TODO: add dcterms format for extension .ttl.gz LayerDatasetDescriptionsQuerylet(D) .http://purl.org/twc/vocab/conversion/enhancement_identifier. ."1". LayerDatasetDescriptionsQuerylet(D) .http://www.w3.org/1999/02/22-rdf-syntax-ns#type. .http://purl.org/twc/vocab/conversion/LayerDataset. LayerDatasetDescriptionsQuerylet(D) .http://www.w3.org/1999/02/22-rdf-syntax-ns#type. .http://rdfs.org/ns/void#Dataset. TODO: add dcterms format for extension .ttl.gz Exception in thread "main" java.lang.NullPointerException at org.openrdf.model.impl.LiteralImpl.hashCode(LiteralImpl.java:183) at java.util.WeakHashMap.get(WeakHashMap.java:348) at org.openrdf.sail.memory.model.WeakObjectRegistry.get(WeakObjectRegistry.java:74) at org.openrdf.sail.memory.model.MemValueFactory.getMemLiteral(MemValueFactory.java:158) at org.openrdf.sail.memory.model.MemValueFactory.getOrCreateMemLiteral(MemValueFactory.java:295) at org.openrdf.sail.memory.model.MemValueFactory.getOrCreateMemValue(MemValueFactory.java:224) at org.openrdf.sail.memory.MemoryStore.addStatement(MemoryStore.java:523) at org.openrdf.sail.memory.MemoryStoreConnection.addStatementInternal(MemoryStoreConnection.java:418) at org.openrdf.sail.memory.MemoryStoreConnection.addStatementInternal(MemoryStoreConnection.java:379) at org.openrdf.sail.helpers.SailConnectionBase.addStatement(SailConnectionBase.java:331) at org.openrdf.repository.sail.SailRepositoryConnection.addWithoutCommit(SailRepositoryConnection.java:228) at org.openrdf.repository.base.RepositoryConnectionBase.add(RepositoryConnectionBase.java:460) at edu.rpi.tw.data.csv.CSV2RDFDemo.assertConversionProvenance(CSV2RDFDemo.java:2017) at edu.rpi.tw.data.csv.CSV2RDFDemo.toRDF(CSV2RDFDemo.java:1608) at edu.rpi.tw.data.csv.CSV2RDFTester.main(CSV2RDFTester.java:77)

timrdf commented 11 years ago

The following line is feeding a null value

metaConn.add(csv2rdf4lodInstanceR, DCTerms.identifier, vf.createLiteral(converterIdentifier));  // hash of jar.

which means that

converterJarMD5="csv2rdf4lod_`$CSV2RDF4LOD_HOME/bin/util/md5.sh $converterJarPath`"

in convert.sh is not finding the jar in the classpath.