incubator-any23-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kai Eckert (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (ANY23-116) Empty values are skipped when reading tab separated CSV.
Date Thu, 30 Aug 2012 12:51:08 GMT

    [ https://issues.apache.org/jira/browse/ANY23-116?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13444918#comment-13444918
] 

Kai Eckert edited comment on ANY23-116 at 8/30/12 11:49 PM:
------------------------------------------------------------

I attached a test file (test-missing.csv). I currently can't provide the code for the test
case. The current expected (wrong) behaviour is that in the second record, "http://g10.net"
is is assigned as value to the property "last name". Correct would be null or empty string
as value for "last name" and "http://g10.net" as value for the property "http://xmlns.org/foaf/01/knows".
                
      was (Author: kaiec):
    I attached a test file (test-missing.csv). I currently can't provide the code for the
test case. The current expected (wrong) behaviour is that in the second record, "http://g10.net"
is assigned to "last name". Correct would be null or empty string for "last name" and "http://g10.net"
for " http://xmlns.org/foaf/01/knows".
                  
> Empty values are skipped when reading tab separated CSV.
> --------------------------------------------------------
>
>                 Key: ANY23-116
>                 URL: https://issues.apache.org/jira/browse/ANY23-116
>             Project: Apache Any23
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 0.7.0
>         Environment: Linux
>            Reporter: Kai Eckert
>              Labels: CSV
>         Attachments: any23-fix-csv.diff, test-missing.csv
>
>
> I have a tab separated CSV file without text delimiters, like this:
> val1\tval2\tval3
> When values are missing, this looks like this:
> val1\t\tval3
> The missing val2 is skipped and instead, val3 ist added to the RDF as value for property2.
> EDIT: The same is true for a comma separated file with string delimiters, like
> "val1",,"val3"

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message