Package org.corpus_tools.graphannis
Class GraphUpdate
- java.lang.Object
-
- org.corpus_tools.graphannis.GraphUpdate
-
public class GraphUpdate extends Object
An API for applying atomic updates to a graph DB.- Author:
- Thomas Krause krauseto@hu-berlin.de
-
-
Constructor Summary
Constructors Constructor Description GraphUpdate()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddEdge(String source_node, String target_node, String layer, String component_type, String component_name)voidaddEdgeLabel(String source_node, String target_node, String layer, String component_type, String component_name, String anno_ns, String anno_name, String anno_value)voidaddNode(String node_name)voidaddNode(String node_name, String node_type)voidaddNodeLabel(String node_name, String anno_ns, String anno_name, String anno_value)voiddeleteEdge(String source_node, String target_node, String layer, String component_type, String component_name)voiddeleteEdgeLabel(String source_node, String target_node, String layer, String component_type, String component_name, String anno_ns, String anno_name)voiddeleteNode(String node_name)voiddeleteNodeLabel(String node_name, String anno_ns, String anno_name)CAPI.AnnisGraphUpdategetInstance()
-
-
-
Method Detail
-
getInstance
public CAPI.AnnisGraphUpdate getInstance()
-
addNode
public void addNode(String node_name, String node_type) throws GraphANNISException
- Throws:
GraphANNISException
-
addNode
public void addNode(String node_name) throws GraphANNISException
- Throws:
GraphANNISException
-
deleteNode
public void deleteNode(String node_name) throws GraphANNISException
- Throws:
GraphANNISException
-
addNodeLabel
public void addNodeLabel(String node_name, String anno_ns, String anno_name, String anno_value) throws GraphANNISException
- Throws:
GraphANNISException
-
deleteNodeLabel
public void deleteNodeLabel(String node_name, String anno_ns, String anno_name) throws GraphANNISException
- Throws:
GraphANNISException
-
addEdge
public void addEdge(String source_node, String target_node, String layer, String component_type, String component_name) throws GraphANNISException
- Throws:
GraphANNISException
-
deleteEdge
public void deleteEdge(String source_node, String target_node, String layer, String component_type, String component_name) throws GraphANNISException
- Throws:
GraphANNISException
-
addEdgeLabel
public void addEdgeLabel(String source_node, String target_node, String layer, String component_type, String component_name, String anno_ns, String anno_name, String anno_value) throws GraphANNISException
- Throws:
GraphANNISException
-
deleteEdgeLabel
public void deleteEdgeLabel(String source_node, String target_node, String layer, String component_type, String component_name, String anno_ns, String anno_name) throws GraphANNISException
- Throws:
GraphANNISException
-
-