1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#![recursion_limit = "1024"]
extern crate graphannis_malloc_size_of as malloc_size_of;
#[macro_use]
extern crate graphannis_malloc_size_of_derive as malloc_size_of_derive;
#[macro_use]
extern crate log;
#[macro_use]
extern crate serde_derive;
#[macro_use]
extern crate lazy_static;
#[macro_use]
extern crate anyhow;
#[macro_use]
extern crate lalrpop_util;
#[cfg(feature = "c-api")]
extern crate simplelog;
use std::alloc::System;
#[global_allocator]
static GLOBAL: System = System;
mod annis;
pub use crate::annis::db::corpusstorage::CorpusStorage;
pub mod corpusstorage {
pub use crate::annis::db::corpusstorage::{
CacheStrategy, CorpusInfo, ExportFormat, FrequencyDefEntry, GraphStorageInfo, ImportFormat,
LoadStatus, QueryLanguage, ResultOrder,
};
pub use crate::annis::types::{
CountExtra, FrequencyTable, FrequencyTableRow, QueryAttributeDescription,
};
}
pub use graphannis_core::graph::update;
pub use graphannis_core::graph::Graph;
pub type AnnotationGraph =
graphannis_core::graph::Graph<annis::db::aql::model::AnnotationComponentType>;
pub mod graph {
pub use graphannis_core::annostorage::AnnotationStorage;
pub use graphannis_core::annostorage::Match;
pub use graphannis_core::graph::storage::GraphStatistic;
pub use graphannis_core::graph::storage::{EdgeContainer, GraphStorage, WriteableGraphStorage};
pub use graphannis_core::types::{AnnoKey, Annotation, Component, Edge, NodeID};
}
pub mod model {
pub use crate::annis::db::aql::model::AnnotationComponentType;
pub type AnnotationComponent =
graphannis_core::types::Component<crate::model::AnnotationComponentType>;
}
pub mod errors {
pub use crate::annis::errors::*;
}
pub mod util {
pub use crate::annis::util::get_queries_from_csv;
pub use crate::annis::util::node_names_from_match;
pub use crate::annis::util::SearchDef;
}