Hi All,

I have been trying to use ANY23 to parse CSV files and I am getting strange
results:

Namely, posting the following input on any23.org:
field1,field2,field3
value1,,value3

I get back this RDF:
<http://any23.org/tmp/field1> <http://www.w3.org/2000/01/rdf-schema#label>
"field1" .
<http://any23.org/tmp/field1> <http://vocab.sindice.net/csv/columnPosition>
"0"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://any23.org/tmp/field2> <http://www.w3.org/2000/01/rdf-schema#label>
"field2" .
<http://any23.org/tmp/field2> <http://vocab.sindice.net/csv/columnPosition>
"1"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://any23.org/tmp/field3> <http://www.w3.org/2000/01/rdf-schema#label>
"field3" .
<http://any23.org/tmp/field3> <http://vocab.sindice.net/csv/columnPosition>
"2"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://any23.org/tmp/row/0>
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>
<http://vocab.sindice.net/csv/Row> .
<http://any23.org/tmp/row/0> <http://any23.org/tmp/field1>
"value1"^^<http://www.w3.org/2001/XMLSchema#string> .
<http://any23.org/tmp/row/0> <http://any23.org/tmp/field2>
"value3"^^<http://www.w3.org/2001/XMLSchema#string> .
<http://any23.org/tmp/> <http://vocab.sindice.net/csv/row>
<http://any23.org/tmp/row/0> .
<http://any23.org/tmp/row/0> <http://vocab.sindice.net/csv/rowPosition>
"0" .
<http://any23.org/tmp/> <http://vocab.sindice.net/csv/numberOfRows>
"1"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://any23.org/tmp/> <http://vocab.sindice.net/csv/numberOfColumns>
"3"^^<http://www.w3.org/2001/XMLSchema#integer> .
<http://any23.org/tmp/> <http://vocab.sindice.net/date>
"2012-02-10T11:13:22+00:00" .
<http://any23.org/tmp/> <http://vocab.sindice.net/size>
"15"^^<http://www.w3.org/2001/XMLSchema#int> .

The triple:
<http://any23.org/tmp/row/0> <http://any23.org/tmp/field2>
"value3"^^<http://www.w3.org/2001/XMLSchema#string> .
has an error (wrong property).

Considering that this code is widely used, I guess there is a parameter for
not discarding empty cells somewhere, but I could not find it. Can you
help?

Regards,
Spyros Kotoulas
IBM Research - Smarter Cities Technology Center

Reply via email to