You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Rob Vesse (JIRA)" <ji...@apache.org> on 2014/05/14 17:39:15 UTC

[jira] [Resolved] (JENA-695) SPARQL CSV results parser does not account for variable names enclosed in quotes

     [ https://issues.apache.org/jira/browse/JENA-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Rob Vesse resolved JENA-695.
----------------------------

    Resolution: Fixed

Fix has been applied to trunk

> SPARQL CSV results parser does not account for variable names enclosed in quotes
> --------------------------------------------------------------------------------
>
>                 Key: JENA-695
>                 URL: https://issues.apache.org/jira/browse/JENA-695
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: ARQ
>    Affects Versions: Jena 2.11.1
>            Reporter: Rob Vesse
>            Assignee: Rob Vesse
>             Fix For: Jena 2.11.2
>
>
> This issue was discovered in debugging a user issue reported on the mailing list at http://mail-archives.apache.org/mod_mbox/jena-users/201405.mbox/%3cCADDK7bzUkb4Ek56PqE=WJhSmvZz7DWFnYBvnGFkj7RQe2wxfTg@mail.gmail.com%3e
> Upon investigation the problem was determined to be that the endpoint was returning CSV with the variable names enclosed in quote marks e.g. {{"var"}} which is perfectly valid CSV field encoding.
> Unfortunately the CSV results parser does not cope with this and produce the variable name {{"var"}} rather than {{var}} meaning users cannot access variables using the correct names and are forced to use hacky workarounds like {{\"var\"}} because the quotes have to be escaped in Java strings



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Re: [jira] [Resolved] (JENA-695) SPARQL CSV results parser does not account for variable names enclosed in quotes

Posted by Andy Seaborne <an...@apache.org>.
On 15/05/14 07:36, Claude Warren wrote:
> Would this not be a good place to use the Apache CSV parser?
>
> http://commons.apache.org/proper/commons-csv/

See discussion on JENA-696

>
>
> On Wed, May 14, 2014 at 4:39 PM, Rob Vesse (JIRA) <ji...@apache.org> wrote:
>
>>
>>       [
>> https://issues.apache.org/jira/browse/JENA-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>>
>> Rob Vesse resolved JENA-695.
>> ----------------------------
>>
>>      Resolution: Fixed
>>
>> Fix has been applied to trunk
>>
>>> SPARQL CSV results parser does not account for variable names enclosed
>> in quotes
>>>
>> --------------------------------------------------------------------------------
>>>
>>>                  Key: JENA-695
>>>                  URL: https://issues.apache.org/jira/browse/JENA-695
>>>              Project: Apache Jena
>>>           Issue Type: Bug
>>>           Components: ARQ
>>>     Affects Versions: Jena 2.11.1
>>>             Reporter: Rob Vesse
>>>             Assignee: Rob Vesse
>>>              Fix For: Jena 2.11.2
>>>
>>>
>>> This issue was discovered in debugging a user issue reported on the
>> mailing list at
>> http://mail-archives.apache.org/mod_mbox/jena-users/201405.mbox/%3cCADDK7bzUkb4Ek56PqE=WJhSmvZz7DWFnYBvnGFkj7RQe2wxfTg@mail.gmail.com%3e
>>> Upon investigation the problem was determined to be that the endpoint
>> was returning CSV with the variable names enclosed in quote marks e.g.
>> {{"var"}} which is perfectly valid CSV field encoding.
>>> Unfortunately the CSV results parser does not cope with this and produce
>> the variable name {{"var"}} rather than {{var}} meaning users cannot access
>> variables using the correct names and are forced to use hacky workarounds
>> like {{\"var\"}} because the quotes have to be escaped in Java strings
>>
>>
>>
>> --
>> This message was sent by Atlassian JIRA
>> (v6.2#6252)
>>
>
>
>


Re: [jira] [Resolved] (JENA-695) SPARQL CSV results parser does not account for variable names enclosed in quotes

Posted by Claude Warren <cl...@xenei.com>.
Would this not be a good place to use the Apache CSV parser?

http://commons.apache.org/proper/commons-csv/


On Wed, May 14, 2014 at 4:39 PM, Rob Vesse (JIRA) <ji...@apache.org> wrote:

>
>      [
> https://issues.apache.org/jira/browse/JENA-695?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel]
>
> Rob Vesse resolved JENA-695.
> ----------------------------
>
>     Resolution: Fixed
>
> Fix has been applied to trunk
>
> > SPARQL CSV results parser does not account for variable names enclosed
> in quotes
> >
> --------------------------------------------------------------------------------
> >
> >                 Key: JENA-695
> >                 URL: https://issues.apache.org/jira/browse/JENA-695
> >             Project: Apache Jena
> >          Issue Type: Bug
> >          Components: ARQ
> >    Affects Versions: Jena 2.11.1
> >            Reporter: Rob Vesse
> >            Assignee: Rob Vesse
> >             Fix For: Jena 2.11.2
> >
> >
> > This issue was discovered in debugging a user issue reported on the
> mailing list at
> http://mail-archives.apache.org/mod_mbox/jena-users/201405.mbox/%3cCADDK7bzUkb4Ek56PqE=WJhSmvZz7DWFnYBvnGFkj7RQe2wxfTg@mail.gmail.com%3e
> > Upon investigation the problem was determined to be that the endpoint
> was returning CSV with the variable names enclosed in quote marks e.g.
> {{"var"}} which is perfectly valid CSV field encoding.
> > Unfortunately the CSV results parser does not cope with this and produce
> the variable name {{"var"}} rather than {{var}} meaning users cannot access
> variables using the correct names and are forced to use hacky workarounds
> like {{\"var\"}} because the quotes have to be escaped in Java strings
>
>
>
> --
> This message was sent by Atlassian JIRA
> (v6.2#6252)
>



-- 
I like: Like Like - The likeliest place on the web<http://like-like.xenei.com>
LinkedIn: http://www.linkedin.com/in/claudewarren