Prototype for initializing a dataset decoding loop. More...
#include <codec_interface.h>

Data Fields | |
| decode_ds_fn_t | decode_dset |
| dataset decoder initialization. | |
| decode_gr_fn_t | decode_graph |
| Graph decoder function. | |
| decode_term_fn_t | decode_term |
| Term decoder function. | |
| encode_ds_done_fn_t | encode_dset_done |
| dataset encoder finalization. | |
| encode_ds_init_fn_t | encode_dset_init |
| dataset encoder initialization. | |
| encode_ds_iter_fn_t | encode_dset_iter |
| dataset encoder iteration. | |
| encode_gr_done_fn_t | encode_graph_done |
| Graph encoder finalization. | |
| encode_gr_init_fn_t | encode_graph_init |
| Graph encoder initialization. | |
| encode_gr_iter_fn_t | encode_graph_iter |
| Graph encoder iteration. | |
| encode_store_done_fn_t | encode_store_done |
| store encoder finalization. | |
| encode_store_init_fn_t | encode_store_init |
| store encoder initialization. | |
| encode_store_iter_fn_t | encode_store_iter |
| store encoder iteration. | |
| encode_term_fn_t | encode_term |
| Feature flags. | |
| char | extension [8] |
| Serialized file extension. | |
| VOLK_CodecFeatures | features |
| char | mimetype [32] |
| MIME type associated with the codec. | |
| char | name [16] |
| Name of the codec. | |
Prototype for initializing a dataset decoding loop.
@TODO remove in favor of one-pass dataset encoding.
| [in] | fh | Open file handle pointing to the RDF data. Implementations MUST NOT close the file handle. This is exclusive with sh. |
| [in] | sh | string handle for the RDF data. This is exclusive with fh. If both are specified, fh has precedence. |
Prototype for decoding one graph in a dataset.
@TODO remove in favor of one-pass dataset encoding.
| [in] | it | Opaque iterator handle obtained by #decode_ds_init_fn_t. |
| [out] | gr | Graph handle pointer to be populated with decoded graphs. The handle MUST NOT be initialized. |
| [out] | ct | If not NULL, it MAY be populated with the number of triples parsed (which may be different from the resulting graph size). Implementations MAY choose not not use this. |
| [out] | err | Pointer to error info string. If no error occurs, it yields NULL. |
Prototype for finalizing a dataset decoder iterator.
@TODO remove in favor of one-pass dataset encoding.
| [in] | it | Opaque iterator handle obtained by #decode_ds_init_fn_t. |
Codec structure.
An instance of this structure is a singleton defined at compile time (see examples in "include/codec_*.h" and "src/codec_*.c") and MUST have the following defined:
Additionally, it MAY implement any of the following encoding and decoding functions, depending on the scope of the codec:
For documentation on the individual encoding and decoding callbacks, see the related function prototypes.
This interface is abstracted by the high-level codec module. That module handles non-implemented functionality gracefully by returning VOLK_NOT_IMPL_ERR.
Definition at line 552 of file codec_interface.h.
| decode_ds_fn_t VOLK_Codec::decode_dset |
dataset decoder initialization.
Definition at line 578 of file codec_interface.h.
| decode_gr_fn_t VOLK_Codec::decode_graph |
Graph decoder function.
Definition at line 576 of file codec_interface.h.
| decode_term_fn_t VOLK_Codec::decode_term |
Term decoder function.
Definition at line 574 of file codec_interface.h.
| encode_ds_done_fn_t VOLK_Codec::encode_dset_done |
dataset encoder finalization.
Definition at line 567 of file codec_interface.h.
| encode_ds_init_fn_t VOLK_Codec::encode_dset_init |
dataset encoder initialization.
Definition at line 565 of file codec_interface.h.
| encode_ds_iter_fn_t VOLK_Codec::encode_dset_iter |
dataset encoder iteration.
Definition at line 566 of file codec_interface.h.
| encode_gr_done_fn_t VOLK_Codec::encode_graph_done |
Graph encoder finalization.
Definition at line 563 of file codec_interface.h.
| encode_gr_init_fn_t VOLK_Codec::encode_graph_init |
Graph encoder initialization.
Definition at line 561 of file codec_interface.h.
| encode_gr_iter_fn_t VOLK_Codec::encode_graph_iter |
Graph encoder iteration.
Definition at line 562 of file codec_interface.h.
| encode_store_done_fn_t VOLK_Codec::encode_store_done |
store encoder finalization.
Definition at line 571 of file codec_interface.h.
| encode_store_init_fn_t VOLK_Codec::encode_store_init |
store encoder initialization.
Definition at line 569 of file codec_interface.h.
| encode_store_iter_fn_t VOLK_Codec::encode_store_iter |
store encoder iteration.
Definition at line 570 of file codec_interface.h.
| encode_term_fn_t VOLK_Codec::encode_term |
| char VOLK_Codec::extension[8] |
Serialized file extension.
Definition at line 555 of file codec_interface.h.
| VOLK_CodecFeatures VOLK_Codec::features |
Definition at line 556 of file codec_interface.h.
| char VOLK_Codec::mimetype[32] |
MIME type associated with the codec.
Definition at line 554 of file codec_interface.h.
| char VOLK_Codec::name[16] |
Name of the codec.
Definition at line 553 of file codec_interface.h.