[redland-dev] [Raptor RDF Parsing and Serializing Library 0000357]: raptor_term_as_string does not return N-Triples escaped string, although API says so

Mantis Bug Tracker mantis-bug-sender at librdf.org
Tue Mar 9 12:01:39 CET 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=357 
====================================================================== 
Reported By:                Jasper Op de Coul
Assigned To:                
====================================================================== 
Project:                    Raptor RDF Parsing and Serializing Library
Issue ID:                   357
Category:                   api
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
Syntax Name:                 
====================================================================== 
Date Submitted:             2010-03-09 11:01
Last Modified:              2010-03-09 11:01
====================================================================== 
Summary:                    raptor_term_as_string does not return N-Triples
escaped string, although API says so
Description: 
In the API reference, the description of raptor_term_as_string says:

Turns the given term into an N-Triples escaped string using all the
escapes as defined in http://www.w3.org/TR/rdf-testcases/ntriples

However, in raptor_term_as_counted_string the code that should do the
escaping is commented out:

*s++ ='"';
/* raptor_print_ntriples_string((const char*)term, '"', stream); */
strcpy((char*)s, (const char*)term->value.literal.string);
s+= term_len;
*s++ ='"';

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-03-09 11:01 Jasper Op de CoulNew Issue                                    
======================================================================



More information about the redland-dev mailing list