[redland-dev] [Raptor RDF Parsing and Serializing Library 0000369]: Unescaped quotes in long literals (Turtle/N3) cause parser failure if at the end of the literal

Mantis Bug Tracker mantis-bug-sender at librdf.org
Fri Apr 30 19:47:43 CEST 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=369 
====================================================================== 
Reported By:                rvesse
Assigned To:                
====================================================================== 
Project:                    Raptor RDF Parsing and Serializing Library
Issue ID:                   369
Category:                   api
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Syntax Name:                Turtle/N3 
====================================================================== 
Date Submitted:             2010-04-30 17:47
Last Modified:              2010-04-30 17:47
====================================================================== 
Summary:                    Unescaped quotes in long literals (Turtle/N3) cause
parser failure if at the end of the literal
Description: 
If you have a long literal like the following with an unescaped quote as
the last character parsing will fail:

"""This literal ends with an unescaped quote""""

If however that quote was escaped this would parse fine:

"""This literal ends with an escaped quote\""""

As far as I can tell from the Turtle/N3 specs the first form should be
acceptable since following the longest token rule the unescaped quote
should be consumed as part of the literal value since there are three
subsequent quotes to actually terminate the long literal
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-04-30 17:47 rvesse         New Issue                                    
2010-04-30 17:47 rvesse         Syntax Name               => Turtle/N3       
======================================================================



More information about the redland-dev mailing list