We're updating the issue view to help you get more done. 

Trig parser fails to parse literals starting with two single/double quotes

Description

Issue reported by Andreas Schwarte on mailing list:

while updating some of our systems, we encountered parsing problems of existing TRIG data:

The exported data in TRIG format (i.e. a backup) cannot be reimported into the same system.

We analyzed this problem and created a minimal test-case to reproduce it for the following trig file, containing a literal object with ticks (i.e. the ' symbol):

{
<http://example.org/s> <http://example.org/p> "''some text'' - abc" .
}

We are aware that this might be a strange value for a literal, however, to the best of our knowledge this is valid data (in particular since we can add it and also export it properly).

Our test case (see attached file) creates this triple, adds it to the database, exports the database to TRIG, and reimports this trig file. During the import it fails with a "Unexpected end of file" exception.

Note: when doing the same test with NTriples format, everything works fine. Also, in Sesame 2.6.6 this worked.

Can someone comment on this, and if this is indeed a bug (which I am pretty convinced of) open a corresponding Jira issue?

Environment

None

Status

Assignee

Peter Ansell

Reporter

Peter Ansell

Labels

None

Components

Fix versions

Affects versions

2.7.0

Priority

Critical