Event Handlers¶
-
uint32_t
SerdStatementFlags
¶ Bitwise OR of SerdStatementFlag values.
-
SerdStatus
(*SerdErrorSink)
(void *handle, const SerdError *error)¶ Sink (callback) for errors.
- Parameters
handle – Handle for user data.
error – Error description.
-
SerdStatus
(*SerdBaseSink)
(void *handle, const SerdNode *uri)¶ Sink (callback) for base URI changes.
Called whenever the base URI of the serialisation changes.
-
SerdStatus
(*SerdPrefixSink)
(void *handle, const SerdNode *name, const SerdNode *uri)¶ Sink (callback) for namespace definitions.
Called whenever a prefix is defined in the serialisation.
-
SerdStatus
(*SerdStatementSink)
(void *handle, SerdStatementFlags flags, const SerdNode *graph, const SerdNode *subject, const SerdNode *predicate, const SerdNode *object, const SerdNode *object_datatype, const SerdNode *object_lang)¶ Sink (callback) for statements.
Called for every RDF statement in the serialisation.
-
SerdStatus
(*SerdEndSink)
(void *handle, const SerdNode *node)¶ Sink (callback) for anonymous node end markers.
This is called to indicate that the anonymous node with the given
value
will no longer be referred to by any future statements (i.e. the anonymous serialisation of the node is finished).