Event Handlers¶
-
struct
SerdBaseEvent
¶ Event for base URI changes.
Emitted whenever the base URI changes.
-
struct
SerdPrefixEvent
¶ Event for namespace definitions.
Emitted whenever a prefix is defined.
-
struct
SerdStatementEvent
¶ Event for statements.
Emitted for every statement.
-
SerdStatementFlags
flags
¶ Flags for pretty-printing.
-
const SerdStatement *
statement
¶ Statement.
-
SerdStatementFlags
-
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.
-
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 serialise 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
-
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
-
typedef SerdStatus (*
SerdEventFunc
)(void *handle, const SerdEvent *event)¶ Function for handling events.