devli2009 / data-gov-wiki

Automatically exported from code.google.com/p/data-gov-wiki
0 stars 0 forks source link

csv2rdf4lod java : subproperty_of cannot be on same enhancement #45

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
      conversion:enhance [
         ov:csvCol         6;
         ov:csvHeader     "Picture2";
         conversion:label "Picture2";
         conversion:range  todo:Literal;
         conversion:subproperty_of "Picture";
      ];

error:

Exception in thread "main" java.lang.IllegalArgumentException: Not a valid 
(absolute) URI: Picture
    at org.openrdf.model.impl.URIImpl.setURIString(URIImpl.java:68)
    at org.openrdf.model.impl.URIImpl.<init>(URIImpl.java:57)
    at org.openrdf.model.impl.ValueFactoryImpl.createURI(ValueFactoryImpl.java:38)
    at edu.rpi.tw.data.csv.querylets.column.SubpropertyOfQuerylet.getSet(SubpropertyOfQuerylet.java:73)
    at edu.rpi.tw.data.csv.impl.DefaultEnrichmentParameters.<init>(DefaultEnrichmentParameters.java:331)
    at edu.rpi.tw.data.csv.CSVtoRDF.main(CSVtoRDF.java:363)

fixed by:

      conversion:enhance [
         ov:csvCol         5;
         ov:csvHeader     "Picture1";
         conversion:label "Picture1";
         conversion:range  todo:Literal;
      ];
      conversion:enhance [
         conversion:property_name  "Picture1";
         conversion:subproperty_of "Picture";
      ];

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

Please use labels and text to provide additional information.

Original issue reported on code.google.com by tim...@gmail.com on 2 Nov 2010 at 4:37

GoogleCodeExporter commented 8 years ago
https://github.com/timrdf/csv2rdf4lod-automation/issues/issue/17

Original comment by tim...@gmail.com on 22 Jan 2011 at 1:45