#[no_mangle]
pub extern "C" fn annis_cs_subgraph_for_query_with_ctype(
    ptr: *const CorpusStorage,
    corpus_name: *const c_char,
    query: *const c_char,
    query_language: QueryLanguage,
    component_type_filter: AnnotationComponentType,
    err: *mut *mut ErrorList
) -> *mut AnnotationGraph
Expand description

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

  • ptr - The corpus storage object.
  • corpus_name - The name of the corpus for which the subgraph should be generated from.
  • query - The query which defines included nodes.
  • query_language - The query language of the query (e.g. AQL).
  • component_type_filter - Only include edges of that belong to a component of the given type.
  • err - Pointer to a list of errors. If any error occured, this list will be non-empty.