[redland-dev] [Raptor RDF Syntax Library 0000395]: Parsing errors when namespace handler is registered

Mantis Bug Tracker mantis-bug-sender at librdf.org
Tue Oct 12 17:18:15 CEST 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=395 
====================================================================== 
Reported By:                beho
Assigned To:                
====================================================================== 
Project:                    Raptor RDF Syntax Library
Issue ID:                   395
Category:                   api
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
Syntax Name:                rdf/xml 
====================================================================== 
Date Submitted:             2010-10-12 15:18
Last Modified:              2010-10-12 15:18
====================================================================== 
Summary:                    Parsing errors when namespace handler is registered
Description: 
Error occurrence depends on whether namespace handler is registered using
raptor_set_namespace_handler or not when parsing file in RDF/XML:

1) If handler is not set, file is parsed without errors or warnings.
2) If handler is set, following errors and warnings appear for qnames in
document:
       - URI file:///Users/beho/Projects/connexion/./import/raptor-test.rdf
raptor error - The namespace prefix in "rdf:RDF" was not declared.
       - URI
file:///Users/beho/Projects/connexion/./import/raptor-test.rdf:3 raptor
warning - Using node element 'RDF' without a namespace is forbidden.

Registered handler works fine - for testing purposes it prints prefix and
URI of a namespace encountered.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-10-12 15:18 beho           New Issue                                    
2010-10-12 15:18 beho           File Added: raptor-test.rdf                    
2010-10-12 15:18 beho           Syntax Name               => rdf/xml         
======================================================================



More information about the redland-dev mailing list