void |
GraphUpdate.addEdge(String source_node,
String target_node,
String layer,
String component_type,
String component_name) |
|
void |
GraphUpdate.addEdgeLabel(String source_node,
String target_node,
String layer,
String component_type,
String component_name,
String anno_ns,
String anno_name,
String anno_value) |
|
void |
GraphUpdate.addNode(String node_name) |
|
void |
GraphUpdate.addNode(String node_name,
String node_type) |
|
void |
GraphUpdate.addNodeLabel(String node_name,
String anno_ns,
String anno_name,
String anno_value) |
|
void |
CorpusStorageManager.applyUpdate(String corpusName,
GraphUpdate update) |
Apply a sequence of updates to this graph for a corpus.
|
Graph |
CorpusStorageManager.corpusGraph(String corpusName) |
Return the copy of the graph of the corpus structure given by its name.
|
Graph |
CorpusStorageManager.corpusGraphForQuery(String corpusName,
String query,
CorpusStorageManager.QueryLanguage queryLanguage) |
Return the copy of the graph of the corpus structure which includes all nodes matched by the
given query.
|
long |
CorpusStorageManager.count(Iterable<String> corpusNames,
String query,
CorpusStorageManager.QueryLanguage queryLanguage) |
Count the number of results for a query.
|
CorpusStorageManager.CountResult |
CorpusStorageManager.countExtra(Iterable<String> corpusNames,
String query,
CorpusStorageManager.QueryLanguage queryLanguage) |
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.
|
boolean |
CorpusStorageManager.deleteCorpus(String corpusName) |
Delete a corpus from this corpus storage.
|
void |
GraphUpdate.deleteEdge(String source_node,
String target_node,
String layer,
String component_type,
String component_name) |
|
void |
GraphUpdate.deleteEdgeLabel(String source_node,
String target_node,
String layer,
String component_type,
String component_name,
String anno_ns,
String anno_name) |
|
void |
GraphUpdate.deleteNode(String node_name) |
|
void |
GraphUpdate.deleteNodeLabel(String node_name,
String anno_ns,
String anno_name) |
|
void |
CorpusStorageManager.exportToFileSystem(String[] corpora,
String path,
CorpusStorageManager.ExportFormat format) |
Export a corpus to an external location on the file system using the given format
|
String[] |
CorpusStorageManager.find(Iterable<String> corpusNames,
String query,
CorpusStorageManager.QueryLanguage queryLanguage,
long offset,
Optional<Long> limit) |
Find all results for a `query` and return the match ID for each result in default order.
|
String[] |
CorpusStorageManager.find(Iterable<String> corpusNames,
String query,
CorpusStorageManager.QueryLanguage queryLanguage,
long offset,
Optional<Long> limit,
CorpusStorageManager.ResultOrder order) |
Find all results for a `query` and return the match ID for each result.
|
List<FrequencyTableEntry<String>> |
CorpusStorageManager.frequency(Iterable<String> corpusNames,
String query,
CorpusStorageManager.QueryLanguage queryLanguage,
String frequencyQueryDefinition) |
Execute a frequency query.
|
List<Component> |
CorpusStorageManager.getAllComponentsByType(String corpusName,
ComponentType componentType) |
Returns a list of all components of a corpus given by its name and a given component type
|
List<NodeDesc> |
CorpusStorageManager.getNodeDescriptions(String query,
CorpusStorageManager.QueryLanguage queryLanguage) |
|
void |
CorpusStorageManager.importFromFileSystem(String path,
CorpusStorageManager.ImportFormat format,
String corpusName,
boolean diskBased) |
Import a corpus from an external location on the file system into this corpus storage.
|
void |
CorpusStorageManager.importFromFileSystem(String path,
CorpusStorageManager.ImportFormat format,
String corpusName,
boolean diskBased,
boolean overwriteExisting) |
Import a corpus from an external location on the file system into this corpus storage.
|
String[] |
CorpusStorageManager.list() |
List all available corpora in the corpus storage.
|
List<Annotation> |
CorpusStorageManager.listEdgeAnnotations(String corpusName,
ComponentType componentType,
String componentName,
String componentLayer,
boolean listValues,
boolean onlyMostFrequentValues) |
Returns a list of all edge annotations of a corpus given by its name and and given component.
|
List<Annotation> |
CorpusStorageManager.listNodeAnnotations(String corpusName,
boolean listValues,
boolean onlyMostFrequentValues) |
Returns a list of all node annotations of a corpus given its name.
|
Graph |
CorpusStorageManager.subcorpusGraph(String corpusName,
List<String> documentIDs) |
Return the copy of a subgraph which includes all nodes that belong to any of the given list of
sub-corpus/document identifiers.
|
Graph |
CorpusStorageManager.subgraph(String corpusName,
List<String> nodeIDs,
long ctxLeft,
long ctxRight,
Optional<String> segmentation) |
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.
|
Graph |
CorpusStorageManager.subGraphForQuery(String corpusName,
String query,
CorpusStorageManager.QueryLanguage queryLanguage) |
Return the copy of a subgraph which includes all nodes matched by the given query.
|
void |
CorpusStorageManager.unloadCorpus(String corpusName) |
Unloads a corpus from the cache.
|
boolean |
CorpusStorageManager.validateQuery(Iterable<String> corpusNames,
String query,
CorpusStorageManager.QueryLanguage queryLanguage) |
Parses a query and checks if it is valid.
|