Stream of triples (#librdf_statement).

Stream of triples (#librdf_statement). — Sequence of RDF Triples.

Synopsis

typedef             librdf_stream;
enum                librdf_stream_get_method_flags;
librdf_statement *  (*librdf_stream_map_handler)        (librdf_stream *stream,
                                                         void *map_context,
                                                         librdf_statement *item);
void                (*librdf_stream_map_free_context_handler)
                                                        (void *map_context);
librdf_stream *     librdf_new_stream                   (librdf_world *world,
                                                         void *context,
                                                         int (*is_end_method) (void*),
                                                         int (*next_method) (void*),
                                                         void* (*get_method) (void*, int),
                                                         void (*finished_method) (void*));
librdf_stream *     librdf_new_stream_from_node_iterator
                                                        (librdf_iterator *iterator,
                                                         librdf_statement *statement,
                                                         librdf_statement_part field);
librdf_stream *     librdf_new_empty_stream             (librdf_world *world);
void                librdf_free_stream                  (librdf_stream *stream);
int                 librdf_stream_end                   (librdf_stream *stream);
int                 librdf_stream_next                  (librdf_stream *stream);
librdf_statement *  librdf_stream_get_object            (librdf_stream *stream);
void *              librdf_stream_get_context           (librdf_stream *stream);
librdf_node *       librdf_stream_get_context2          (librdf_stream *stream);
int                 librdf_stream_add_map               (librdf_stream *stream,
                                                         librdf_stream_map_handler map_function,
                                                         librdf_stream_map_free_context_handler free_context,
                                                         void *map_context);
void                librdf_stream_print                 (librdf_stream *stream,
                                                         FILE *fh);
int                 librdf_stream_write                 (librdf_stream *stream,
                                                         raptor_iostream *iostr);

Description

Iterate a sequence of RDF triples from some object.

Details

librdf_stream

typedef struct librdf_stream_s librdf_stream;

Redland stream class.