I am parsing an RDF_model using librdf_parser_parse_string_into_model. I then retain the librdf_model but free the librdf_parser. It looks to me as if the nodes in the model then have disappeared as well.
So what lifetime does Redland RDF impose on librdf_nodes in this case? Is the the lifetime of the model that contains them (as would seem most convenient) or the lifetime of the parser that created them (as now may be the case)? The documentation seems to be silent on this.
Redland nodes
librdf_nodeare implemented as Raptor termsraptor_term. These are reference counted but not cached in any other way, so arefree()-d when they are no longer referenced. Similarlylibrdf_uriareraptor_uriand work the same way.