[redland-dev] [Raptor RDF Syntax Library 0000449]: ntriples serializer and parser inconsistent w.r.t. _ in name tokens

Mantis Bug Tracker mantis-bug-sender at librdf.org
Sun Jun 12 11:26:32 CEST 2011


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=449 
====================================================================== 
Reported By:                danbri
Assigned To:                
====================================================================== 
Project:                    Raptor RDF Syntax Library
Issue ID:                   449
Category:                   utilities
Reproducibility:            have not tried
Severity:                   minor
Priority:                   normal
Status:                     new
Syntax Name:                 
====================================================================== 
Date Submitted:             2011-06-12 09:26
Last Modified:              2011-06-12 09:26
====================================================================== 
Summary:                    ntriples serializer and parser inconsistent w.r.t. _
in name tokens
Description: 
rapper http://www.w3.org/2002/12/cal/ical# | rapper --count --quiet -i ntriples
- file:base:

This parses rdf/xml that includes rdf;bnode="foo_bar" style identifiers. 

The RDF/XML parser accepts this, preserves the local ID internally, and then
when re-serializing to Ntriples produces triples that the same tool's parser
won't accept. 

I looked up ntriples spec and _ shouldn't be there. 
http://www.w3.org/2001/sw/RDFCore/ntriples/#name

For the rdf/xml bit,
http://www.w3.org/TR/2004/REC-rdf-concepts-20040210/#dfn-blank-node-id
-> http://www.w3.org/TR/rdf-syntax-grammar/#rdf-id
-> http://www.w3.org/TR/REC-xml-names/#NT-NCName
-> http://www.w3.org/TR/REC-xml/#NT-Char .. seems liberal enough to allow the _

So the error is in passing through the _ to the stricter ntriples syntax?

Steps to Reproduce: 
rapper http://www.w3.org/2002/12/cal/ical# | rapper --count --quiet -i ntriples
- file:base:

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-06-12 09:26 danbri         New Issue                                    
======================================================================



More information about the redland-dev mailing list