[][src]Module graphannis_capi::corpusstorage

Functions

annis_cs_apply_update

Apply a sequence of updates (update parameter) to this graph for a corpus given by the corpus_name parameter.

annis_cs_corpus_graph

Return the copy of the graph of the corpus structure given by corpus_name.

annis_cs_count

Count the number of results for a query.

annis_cs_count_extra

Count the number of results for a query and return both the total number of matches and also the number of documents in the result set.

annis_cs_delete

Delete a corpus from this corpus storage. Returns true if the corpus was successfully deleted and false if no such corpus existed.

annis_cs_find

Find all results for a query and return the match ID for each result.

annis_cs_free

Frees the reference to the corpus storage object.

annis_cs_frequency

Execute a frequency query.

annis_cs_import_from_fs

Import a corpus from an external location on the file system into this corpus storage.

annis_cs_list

List all available corpora in the corpus storage.

annis_cs_list_components_by_type

Returns a list of all components of a corpus given by corpus_name and the component type.

annis_cs_list_edge_annotations

Returns a list of all edge annotations of a corpus given by corpus_name and the component.

annis_cs_list_node_annotations

Returns a list of all node annotations of a corpus given by corpus_name.

annis_cs_node_descriptions

Parses a queryand return a list of descriptions for its nodes.

annis_cs_subcorpus_graph

Return the copy of a subgraph which includes all nodes that belong to any of the given list of sub-corpus/document identifiers.

annis_cs_subgraph

Return the copy of a subgraph which includes the given list of node annotation identifiers, the nodes that cover the same token as the given nodes and all nodes that cover the token which are part of the defined context.

annis_cs_subgraph_for_query

Return the copy of a subgraph which includes all nodes matched by the given query.

annis_cs_subgraph_for_query_with_ctype

Return the copy of a subgraph which includes all nodes matched by the given query and an additional filter.

annis_cs_unload

Unloads a corpus from the cache.

annis_cs_validate_query

Parses a query and checks if it is valid.

annis_cs_with_auto_cache_size

Create a new instance with a an automatic determined size of the internal corpus cache.

annis_cs_with_max_cache_size

Create a new corpus storage with an manually defined maximum cache size.