Synopsis
cc
flag
file …
-ltwine
library …
#include <libtwine.h>
Description
libtwine provides the API to Twine which is used by loadable processor modules.
Interfaces
libtwine provides the public interfaces listed below:
Function | Description |
---|---|
twine_plugin_register | Invoked by a module in order to perform self-registration |
twine_rdf_world | Obtain the shared librdf_world instance |
twine_rdf_model_create | Create a new librdf_model using the shared librdf_world |
twine_rdf_model_parse | Parse a buffer containing serialised RDF into a librdf_model |
twine_sparql_create | Create a new SPARQL connection based upon the Twine configuration settings |
twine_sparql_put | Replace a named graph with the N-Triples in the supplied buffer using a SPARQL datastore PUT operation |
twine_sparql_put_stream | Replace a named graph with the contents of a librdf_stream using a SPARQL datastore PUT operation |
twine_logf | Log an event using the configured logging mechanism |
twine_vlogf | Log an event (passing a va_args ) using the configured logging mechanism |
twine_config_get | Copy a configuration value into the supplied buffer |
twine_config_geta | Duplicate a configuration value and return it |
twine_config_get_int | Return the integer value of a configuration value |
twine_config_get_bool | Return the integer value of a configuration value |
twine_config_get_all | Invoke a callback function for each configuration value matching given criteria |