[redland-dev] Problem with 'librdf_model_get_arcs_in'

Dave Beckett dave.beckett at bristol.ac.uk
Thu Mar 24 10:47:19 GMT 2005

On Mon, 21 Mar 2005 12:59:02 -0600, Maciej Janik <mjanik at uga.edu> wrote:

> Hi,
> I try to get the whole neighborhood of a resources - all nodes
> that it points to and is pointed by.
> But 'librdf_model_get_arcs_in' do not return any results
> (iterator is empty) and there is assertion error:
> rdf_storage.c:847: (librdf_storage_node_stream_to_node_create)
> assertion failed: object pointer of type librdf_node is NULL.
> Call is:
> iter = librdf_model_get_arcs_in(model, currNode);
> where 'currNode' is a valid 'librdf_node*' that has some
> incoming arcs. I use in-memory hashes model.
> Am I using it incorrect or is it not supported by model or bug?
> I attach short C program to illustrate the problem.

Yes, that demonstrates the problem nicely.

The assertion check at line rdf_storage.c 847 is in error and
should be removed.  That makes the neighbourhood program
work correctly.


More information about the redland-dev mailing list