[redland-dev] [Redland RDF API 0000314]: rasqal_literal_to_redland_node fails with RASQAL_LITERAL_URIs

Mantis Bug Tracker mantis-bug-sender at librdf.org
Fri Oct 16 14:50:22 CEST 2009


The following issue has been SUBMITTED. 
====================================================================== 
http://bugs.librdf.org/mantis/view.php?id=314 
====================================================================== 
Reported By:                RubenV
Assigned To:                
====================================================================== 
Project:                    Redland RDF API
Issue ID:                   314
Category:                   api
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2009-10-16 12:50
Last Modified:              2009-10-16 12:50
====================================================================== 
Summary:                    rasqal_literal_to_redland_node fails with
RASQAL_LITERAL_URIs
Description: 
rasqal_literal_to_redland_node fails to convert literals of type
RASQAL_LITERAL_URI to a librdf_node.

Line 168 of rdf_query_rasqal.c reads:

return librdf_new_node_from_uri(world, (librdf_uri*)l->value.uri);

However, since this is a literal URI, l->value.uri contains a char*
instead of a librdf_uri*. So the line should read:

return librdf_new_node_from_uri(world, librdf_new_uri(world, (unsigned
char*)l->value.uri));

The same line can be found in rasqal_redland.c.
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-16 12:50 RubenV         New Issue                                    
======================================================================



More information about the redland-dev mailing list