123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426 |
- typedef struct graph_t LSUP_Graph;
- typedef struct graph_iter_t LSUP_GraphIterator;
- LSUP_Graph *
- LSUP_graph_new (LSUP_Store *store, LSUP_Term *uri, LSUP_NSMap *nsm);
- LSUP_Graph *
- LSUP_graph_get_txn (void *txn, LSUP_Store *store, LSUP_Term *uri, size_t *ct);
- LSUP_rc
- LSUP_graph_copy_contents_txn (
- void *txn, const LSUP_Graph *src, LSUP_Graph *dest);
- LSUP_graph_copy_contents_txn (NULL, __VA_ARGS__)
- LSUP_rc
- LSUP_graph_bool_op_txn (
- void *txn, const LSUP_bool_op op,
- const LSUP_Graph *gr1, const LSUP_Graph *gr2, LSUP_Graph *res);
- void
- LSUP_graph_free (LSUP_Graph *gr);
- bool
- LSUP_graph_equals (const LSUP_Graph *gr1, const LSUP_Graph *gr2);
- LSUP_Term *
- LSUP_graph_uri (const LSUP_Graph *gr);
- LSUP_Store *
- LSUP_graph_store (const LSUP_Graph *gr);
- LSUP_rc
- LSUP_graph_set_uri (LSUP_Graph *gr, LSUP_Term *uri);
- LSUP_NSMap *
- LSUP_graph_namespace (const LSUP_Graph *gr);
- void
- LSUP_graph_set_namespace (LSUP_Graph *gr, LSUP_NSMap *nsm);
- size_t
- LSUP_graph_size (const LSUP_Graph *gr);
- bool
- LSUP_graph_contains (const LSUP_Graph *gr, const LSUP_Triple *spo);
- LSUP_GraphIterator *
- LSUP_graph_add_init_txn (void *txn, LSUP_Graph *gr);
- LSUP_rc
- LSUP_graph_add_iter (LSUP_GraphIterator *it, const LSUP_Triple *spo);
- void
- LSUP_graph_add_done (LSUP_GraphIterator *it);
- LSUP_rc
- LSUP_graph_add_txn (
- void *txn, LSUP_Graph *gr, LSUP_Triple *const *trp, size_t *ct);
- LSUP_rc
- LSUP_graph_remove_txn (
- void *txn, LSUP_Graph *gr, const LSUP_Term *s, const LSUP_Term *p,
- const LSUP_Term *o, size_t *ct);
- LSUP_GraphIterator *
- LSUP_graph_lookup_txn (void *txn, const LSUP_Graph *gr, const LSUP_Term *s,
- const LSUP_Term *p, const LSUP_Term *o, size_t *ct);
- LSUP_rc
- LSUP_graph_iter_next (LSUP_GraphIterator *it, LSUP_Triple **spo);
- const LSUP_Graph *
- LSUP_graph_iter_graph (LSUP_GraphIterator *it);
- void
- LSUP_graph_iter_free (LSUP_GraphIterator *it);
- LSUP_LinkMap *
- LSUP_graph_connections (
- const LSUP_Graph *gr, LSUP_Term *t, LSUP_LinkType type);
- LSUP_TermSet *
- LSUP_graph_term_set (
- const LSUP_Graph *gr, LSUP_Term *t1, LSUP_TriplePos t1_pos,
- LSUP_Term *t2, LSUP_TriplePos t2_pos);
- LSUP_TermSet *
- LSUP_graph_unique_terms (const LSUP_Graph *gr, LSUP_TriplePos pos);
- size_t
- LSUP_graph_add_link_map (
- LSUP_GraphIterator *it, LSUP_Term *t, LSUP_LinkMap *cl);
- LSUP_Term *
- LSUP_bnode_add_collection (LSUP_GraphIterator *it, LSUP_TermSet *ts);
|