Remove triples with no context from a Redland graph

43 Views Asked by At

I am using the Redland librdf library and would like to remove all triples with no associated context node from a graph. I tried passing NULL as the context node pointer to librdf_model_context_remove_statements, but that results in rdf_model.c:1358: (librdf_model_context_remove_statements) assertion failed: object pointer of type librdf_node is NULL.

Is there any API call I have missed to do this, or would I have to iterate every triple in the graph and examine the context?

If Dave is reading, why is passing NULL not allowed?

0

There are 0 best solutions below