|
| VOLK_Term * | VOLK_term_new (VOLK_TermType type, const char *data, void *metadata) |
| | Create a new term.
|
| VOLK_Term * | VOLK_iriref_new (const char *data) |
| | Create an IRI reference.
|
| VOLK_Term * | VOLK_iriref_new_ns (const char *data) |
| | Create an IRI reference from a namespace-prefixed string.
|
| VOLK_Term * | VOLK_iriref_new_abs (const VOLK_Term *root, const VOLK_Term *iri) |
| | Create a new absolute IRI from a path relative to a root IRI.
|
| VOLK_Term * | VOLK_iriref_new_rel (const VOLK_Term *root, const VOLK_Term *iri) |
| | Create a new relative IRI from an absolute IRI and a web root IRI.
|
| VOLK_Term * | VOLK_literal_new (const char *data, VOLK_Term *datatype) |
| | Shortcut to create a literal term.
|
| VOLK_rc | VOLK_parse_iri (char *iri_str, VOLK_IRIInfo *iri_info) |
| | scan an IRI string and parse IRI parts.
|
| VOLK_Term * | VOLK_lt_literal_new (const char *data, char *lang) |
| | Shortcut to create a language-tagged literal term.
|
| VOLK_Term * | VOLK_bnode_new (const char *data) |
| | Shortcut to create a blank node.
|
| VOLK_Term * | VOLK_term_copy (const VOLK_Term *src) |
| | Copy a term.
|
| VOLK_Term * | VOLK_term_new_from_buffer (const VOLK_Buffer *sterm) |
| | Deserialize a buffer into a term.
|
| VOLK_Buffer * | VOLK_term_serialize (const VOLK_Term *term) |
| | Serialize a term into a buffer.
|
| VOLK_Key | VOLK_term_hash (const VOLK_Term *term) |
| | Hash a buffer.
|
| bool | VOLK_term_equals (const VOLK_Term *term1, const VOLK_Term *term2) |
| | Compare two terms.
|
| void | VOLK_term_free (VOLK_Term *term) |
| char * | VOLK_iriref_prefix (const VOLK_Term *iri) |
| | Get the prefix portion of a IRI ref.
|
| char * | VOLK_iriref_path (const VOLK_Term *iri) |
| | Get the path portion of a IRI ref.
|
| char * | VOLK_iriref_frag (const VOLK_Term *iri) |
| | Get the fragment portion of a IRI ref.
|
| VOLK_Triple * | VOLK_triple_new (VOLK_Term *s, VOLK_Term *p, VOLK_Term *o) |
| | Create a new triple from three terms.
|
| VOLK_Triple * | VOLK_triple_new_from_btriple (const VOLK_BufferTriple *sspo) |
| VOLK_BufferTriple * | VOLK_triple_serialize (const VOLK_Triple *spo) |
| VOLK_rc | VOLK_triple_init (VOLK_Triple *spo, VOLK_Term *s, VOLK_Term *p, VOLK_Term *o) |
| | Initialize internal term pointers in a heap-allocated triple.
|
| void | VOLK_triple_done (VOLK_Triple *spo) |
| | Free the internal pointers of a triple.
|
| void | VOLK_triple_free (VOLK_Triple *spo) |
| | Free a triple and all its internal pointers.
|
| VOLK_Term * | VOLK_triple_pos (const VOLK_Triple *trp, const VOLK_TriplePos n) |
| | Get triple by term position.
|
| VOLK_Key | VOLK_triple_hash (const VOLK_Triple *trp) |
| | Hash a triple.
|
| VOLK_TermSet * | VOLK_term_set_new (void) |
| | Create a new term set.
|
| void | VOLK_term_set_free (VOLK_TermSet *ts) |
| | Free a term set.
|
| VOLK_rc | VOLK_term_set_add (VOLK_TermSet *ts, VOLK_Term *term, VOLK_Term **existing) |
| | Add term to a term set.
|
| const VOLK_Term * | VOLK_term_set_get (VOLK_TermSet *ts, VOLK_Key key) |
| | Get a term from a term set.
|
| VOLK_rc | VOLK_term_set_next (VOLK_TermSet *ts, size_t *i, VOLK_Term **term) |
| | Iterate trough a term set.
|
| size_t | VOLK_term_set_size (VOLK_TermSet *ts) |
| | Size of a term set.
|
| VOLK_LinkMap * | VOLK_link_map_new (const VOLK_Term *linked_term, VOLK_LinkType type) |
| | New link map.
|
| void | VOLK_link_map_free (VOLK_LinkMap *lm) |
| | Free a link map.
|
| VOLK_LinkType | VOLK_link_map_type (const VOLK_LinkMap *map) |
| | Return the link map type.
|
| VOLK_rc | VOLK_link_map_add (VOLK_LinkMap *lmap, VOLK_Term *term, VOLK_TermSet *tset) |
| | Add a term - term set pair to a link map.
|
| VOLK_LinkMapIterator * | VOLK_link_map_iter_new (const VOLK_LinkMap *lmap) |
| | Create a new iterator to loop through a link map.
|
| VOLK_rc | VOLK_link_map_next (VOLK_LinkMapIterator *it, VOLK_Term **lt, VOLK_TermSet **ts) |
| | Iterate through a link map.
|
| void | VOLK_link_map_iter_free (VOLK_LinkMapIterator *it) |
| | Free a link map iterator.
|
| VOLK_rc | VOLK_link_map_triples (VOLK_LinkMapIterator *it, VOLK_Triple *spo) |
| | Iterate over a link map and generate triples.
|