5.10.1 Events
-
struct SerdBaseEvent
Event for base URI changes.
Emitted whenever the base URI changes.
-
const SerdNode *uri
Base URI.
-
const SerdNode *uri
-
struct SerdPrefixEvent
Event for namespace definitions.
Emitted whenever a prefix is defined.
-
const SerdNode *name
Prefix name.
-
const SerdNode *uri
Namespace URI.
-
const SerdNode *name
-
struct SerdStatementEvent
Event for statements.
Emitted for every statement.
-
SerdStatementFlags flags
Flags for pretty-printing.
-
const SerdStatement *statement
Statement.
-
SerdStatementFlags flags
-
struct SerdEndEvent
Event for the end of anonymous node descriptions.
This is emitted to indicate that the given anonymous node will no longer be described. This is used by the writer which may, for example, need to write a delimiter.
-
const SerdNode *node
Anonymous node that is finished.
-
const SerdNode *node
-
union SerdEvent
An event in a data stream.
Streams of data are represented as a series of events. Events represent everything that can occur in an RDF document, and are used to plumb together different components. For example, when parsing a document, a reader emits a stream of events which can be sent to a writer to rewrite a document, or to an inserter to build a model in memory.
-
SerdEventType type
Event type (always set)
-
SerdBaseEvent base
Base URI changed.
-
SerdPrefixEvent prefix
New namespace prefix.
-
SerdStatementEvent statement
Statement.
-
SerdEndEvent end
End of anonymous node.
-
SerdEventType type
-
enum SerdEventType
Type of a
SerdEvent
.-
enumerator SERD_BASE
Base URI changed.
-
enumerator SERD_PREFIX
New URI prefix.
-
enumerator SERD_STATEMENT
Statement.
-
enumerator SERD_END
End of anonymous node.
-
enumerator SERD_BASE
-
enum SerdStatementFlag
Flags indicating inline abbreviation information for a statement.
-
enumerator SERD_EMPTY_S
Empty blank node subject.
-
enumerator SERD_EMPTY_G
Empty blank node graph.
-
enumerator SERD_ANON_S
Start of anonymous subject.
-
enumerator SERD_ANON_O
Start of anonymous object.
-
enumerator SERD_LIST_S
Start of list subject.
-
enumerator SERD_LIST_O
Start of list object.
-
enumerator SERD_TERSE_S
Start of terse subject.
-
enumerator SERD_TERSE_O
Start of terse object.
-
enumerator SERD_EMPTY_S
-
typedef uint32_t SerdStatementFlags
Bitwise OR of SerdStatementFlag values.
-
typedef SerdStatus (*SerdEventFunc)(void *handle, const SerdEvent *event)
Function for handling events.