Synopsis
#include <liblod.h>
librdf_stream *
lod_instance_stream
(LODINSTANCE *instance
);
Description
lod_instance_stream
returns a
librdf stream containing all of the triples in the
associated context's model where the subject of the triple is the
subject of the instance.
A call to lod_instance_stream
is the equivalent
of calling librdf_model_find_statements
on the
context's model, passing a partial librdf statement
where the subject matches that of the instance.
The resulting stream should be freed with a call to
librdf_free_stream
once it is no longer required.
Return value
Upon success, lod_instance_stream
returns a new
librdf stream.
If an error occurs, lod_instance_stream
returns
NULL
. A description of the error condition
can be obtained using lod_errmsg
.