| Modifier and Type | Method and Description |
|---|---|
GraknGraph |
GraknSession.open(GraknTxType transactionType)
Gets a new transaction bound to the keyspace of this Session.
|
| Modifier and Type | Method and Description |
|---|---|
GraknGraph |
EngineGraknGraphFactory.getGraph(String keyspace,
GraknTxType type) |
| Modifier and Type | Method and Description |
|---|---|
static void |
GraphMutators.runBatchMutationWithRetry(EngineGraknGraphFactory factory,
String keyspace,
int maxRetry,
java.util.function.Consumer<GraknGraph> mutatingFunction) |
| Modifier and Type | Method and Description |
|---|---|
static GraphOperationException |
GraphOperationException.closingGraphFailed(GraknGraph graph,
Exception e)
Thrown when the graph can not be closed due to an unknown reason.
|
static GraphOperationException |
GraphOperationException.transactionClosed(GraknGraph graph,
String reason)
Thrown when attempting to use the graph when the transaction is closed
|
static GraphOperationException |
GraphOperationException.transactionOpen(GraknGraph graph)
Thrown when attempting to open a transaction which is already open
|
static GraphOperationException |
GraphOperationException.transactionReadOnly(GraknGraph graph)
Thrown when attempting to mutate a read only transaction
|
| Modifier and Type | Method and Description |
|---|---|
GraknGraph |
GraknSessionImpl.open(GraknTxType transactionType) |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractGraknGraph<G extends org.apache.tinkerpop.gremlin.structure.Graph>
The Grakn Graph Base Implementation
|
class |
GraknOrientDBGraph
A Grakn Graph using
OrientGraph as a vendor backend. |
class |
GraknTinkerGraph
A Grakn Graph using
TinkerGraph as a vendor backend. |
class |
GraknTitanGraph
A Grakn Graph using
TitanGraph as a vendor backend. |
| Modifier and Type | Method and Description |
|---|---|
Query<T> |
Query.withGraph(GraknGraph graph) |
MatchQuery |
MatchQuery.withGraph(GraknGraph graph) |
InsertQuery |
InsertQuery.withGraph(GraknGraph graph) |
DeleteQuery |
DeleteQuery.withGraph(GraknGraph graph) |
ComputeQueryBuilder |
ComputeQueryBuilder.withGraph(GraknGraph graph) |
ComputeQuery<T> |
ComputeQuery.withGraph(GraknGraph graph) |
AskQuery |
AskQuery.withGraph(GraknGraph graph) |
AggregateQuery<T> |
AggregateQuery.withGraph(GraknGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
GraknGraph |
ReasonerQuery.graph() |
| Modifier and Type | Method and Description |
|---|---|
Optional<GraknGraph> |
MatchQueryAdmin.getGraph() |
Optional<GraknGraph> |
InsertQueryAdmin.getGraph() |
| Modifier and Type | Method and Description |
|---|---|
Set<OntologyConcept> |
MatchQueryAdmin.getOntologyConcepts(GraknGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
SumQuery |
SumQuery.withGraph(GraknGraph graph) |
StdQuery |
StdQuery.withGraph(GraknGraph graph) |
PathQuery |
PathQuery.withGraph(GraknGraph graph) |
MinQuery |
MinQuery.withGraph(GraknGraph graph) |
MedianQuery |
MedianQuery.withGraph(GraknGraph graph) |
MeanQuery |
MeanQuery.withGraph(GraknGraph graph) |
MaxQuery |
MaxQuery.withGraph(GraknGraph graph) |
DegreeQuery |
DegreeQuery.withGraph(GraknGraph graph) |
CountQuery |
CountQuery.withGraph(GraknGraph graph) |
ClusterQuery<T> |
ClusterQuery.withGraph(GraknGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
static GraqlTraversal |
GreedyTraversalPlan.createTraversal(PatternAdmin pattern,
GraknGraph graph)
Create a traversal plan using the default maxTraersalAttempts.
|
static GraqlTraversal |
GreedyTraversalPlan.createTraversal(PatternAdmin pattern,
GraknGraph graph,
long maxTraversalAttempts)
Create a semi-optimal traversal plan using a greedy approach
|
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<org.apache.tinkerpop.gremlin.structure.Vertex,Map<String,org.apache.tinkerpop.gremlin.structure.Vertex>> |
GraqlTraversal.getGraphTraversal(GraknGraph graph)
Get the
GraphTraversal that this GraqlTraversal represents. |
| Modifier and Type | Method and Description |
|---|---|
void |
Fragment.applyTraversal(org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<org.apache.tinkerpop.gremlin.structure.Vertex,org.apache.tinkerpop.gremlin.structure.Vertex> traversal,
GraknGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
static void |
EquivalentFragmentSets.optimiseFragmentSets(Collection<EquivalentFragmentSet> fragmentSets,
GraknGraph graph)
Modify the given collection of
EquivalentFragmentSet to introduce certain optimisations, such as the
ResourceIndexFragmentSet. |
| Modifier and Type | Method and Description |
|---|---|
void |
VarPropertyInternal.checkValid(GraknGraph graph,
VarPatternAdmin var)
Check if the given property can be used in a match query
|
void |
RelationProperty.checkValidProperty(GraknGraph graph,
VarPatternAdmin var) |
void |
IsaProperty.checkValidProperty(GraknGraph graph,
VarPatternAdmin var) |
void |
VarPropertyInternal.delete(GraknGraph graph,
Concept concept)
Delete the given property from the graph, if possible.
|
void |
RelatesProperty.delete(GraknGraph graph,
Concept concept) |
void |
PlaysProperty.delete(GraknGraph graph,
Concept concept) |
void |
HasScopeProperty.delete(GraknGraph graph,
Concept concept) |
void |
HasResourceProperty.delete(GraknGraph graph,
Concept concept) |
| Modifier and Type | Method and Description |
|---|---|
GraknGraph |
InsertQueryExecutor.getGraph() |
| Constructor and Description |
|---|
QueryBuilderImpl(GraknGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
ComputeQueryBuilder |
ComputeQueryBuilderImpl.withGraph(GraknGraph graph) |
| Constructor and Description |
|---|
ComputeQueryBuilderImpl(Optional<GraknGraph> graph) |
| Modifier and Type | Method and Description |
|---|---|
Optional<GraknGraph> |
MatchQueryBase.getGraph() |
| Modifier and Type | Method and Description |
|---|---|
Set<OntologyConcept> |
MatchQueryBase.getOntologyConcepts(GraknGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<Answer> |
MatchQueryBase.stream(Optional<GraknGraph> optionalGraph) |
| Modifier and Type | Method and Description |
|---|---|
protected GraknGraph |
AtomicBase.graph() |
| Modifier and Type | Method and Description |
|---|---|
GraknGraph |
ReasonerQueryImpl.graph() |
| Modifier and Type | Method and Description |
|---|---|
static ReasonerAtomicQuery |
ReasonerQueries.atomic(Conjunction<VarPatternAdmin> pattern,
GraknGraph graph) |
static ReasonerQueryImpl |
ReasonerQueries.create(Conjunction<VarPatternAdmin> pattern,
GraknGraph graph) |
static ReasonerQueryImpl |
ReasonerQueries.create(Set<Atom> atoms,
GraknGraph graph) |
| Constructor and Description |
|---|
InferenceRule(Rule rule,
GraknGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
static Rule |
ReasonerUtils.createPropertyChainRule(RelationType relation,
Label fromRoleLabel,
Label toRoleLabel,
LinkedHashMap<RelationType,javafx.util.Pair<Label,Label>> chain,
GraknGraph graph)
creates rule R(fromRole: x, toRole: xm) :- R1(fromRole: x, ...), , R2, ...
|
static Rule |
ReasonerUtils.createReflexiveRule(RelationType relType,
Label fromRoleLabel,
Label toRoleLabel,
GraknGraph graph)
create reflexive rule R(from: X, to: X) :- R(from: X,to: Y)
|
static Rule |
ReasonerUtils.createSubPropertyRule(RelationType parent,
RelationType child,
Map<Label,Label> roleMappings,
GraknGraph graph)
creates rule parent :- child
|
static Rule |
ReasonerUtils.createTransitiveRule(RelationType relType,
Label fromRoleLabel,
Label toRoleLabel,
GraknGraph graph)
create transitive rule R(from: X, to: Y) :- R(from: X,to: Z), R(from: Z, to: Y)
|
static Set<Rule> |
ReasonerUtils.getRules(GraknGraph graph) |
static boolean |
ReasonerUtils.hasRules(GraknGraph graph) |
| Constructor and Description |
|---|
GraphWriter(GraknGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
GraknGraph |
OWLMigrator.graph() |
| Modifier and Type | Method and Description |
|---|---|
OWLMigrator |
OWLMigrator.graph(GraknGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
static void |
GraphContext.loadFromFile(GraknGraph graph,
String file) |
| Modifier and Type | Method and Description |
|---|---|
static GraphContext |
GraphContext.preLoad(java.util.function.Consumer<GraknGraph> build) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
AbstractPathGraph.buildExtensionalDB(GraknGraph graph,
int n,
int children) |
protected void |
TestGraph.buildInstances(GraknGraph graph) |
protected void |
SNBGraph.buildInstances(GraknGraph graph) |
protected void |
MovieGraph.buildInstances(GraknGraph graph) |
void |
GeoGraph.buildInstances(GraknGraph graph) |
protected void |
CWGraph.buildInstances(GraknGraph graph) |
protected void |
AdmissionsGraph.buildInstances(GraknGraph graph) |
protected void |
TestGraph.buildOntology(GraknGraph graph) |
protected void |
SNBGraph.buildOntology(GraknGraph graph) |
void |
MovieGraph.buildOntology(GraknGraph graph) |
void |
GeoGraph.buildOntology(GraknGraph graph) |
protected void |
CWGraph.buildOntology(GraknGraph graph) |
protected void |
AdmissionsGraph.buildOntology(GraknGraph graph) |
protected void |
TestGraph.buildRelations(GraknGraph graph) |
protected void |
MovieGraph.buildRelations(GraknGraph graph) |
void |
GeoGraph.buildRelations(GraknGraph graph) |
protected void |
CWGraph.buildRelations(GraknGraph graph) |
protected void |
AdmissionsGraph.buildRelations(GraknGraph graph) |
protected void |
TestGraph.buildRules(GraknGraph graph) |
protected void |
SNBGraph.buildRules(GraknGraph graph) |
protected void |
MovieGraph.buildRules(GraknGraph graph) |
void |
GeoGraph.buildRules(GraknGraph graph) |
protected void |
CWGraph.buildRules(GraknGraph graph) |
protected void |
AdmissionsGraph.buildRules(GraknGraph graph) |
static Thing |
TestGraph.getInstance(GraknGraph graph,
String id) |
static Thing |
TestGraph.putEntity(GraknGraph graph,
String id,
EntityType type,
Label key) |
| Modifier and Type | Method and Description |
|---|---|
GraknGraph |
GraphLoader.graph() |
| Modifier and Type | Method and Description |
|---|---|
static void |
GraphLoader.loadFromFile(GraknGraph graph,
String file) |
static <T> T |
CommonUtil.withImplicitConceptsVisible(GraknGraph graph,
java.util.function.Function<GraknGraph,T> function) |
static void |
CommonUtil.withImplicitConceptsVisible(GraknGraph graph,
Runnable function) |
static <T> T |
CommonUtil.withImplicitConceptsVisible(GraknGraph graph,
java.util.function.Supplier<T> function) |
| Modifier and Type | Method and Description |
|---|---|
void |
GraphLoader.load(java.util.function.Consumer<GraknGraph> preLoad) |
static GraphLoader |
GraphLoader.preLoad(java.util.function.Consumer<GraknGraph> build) |
static <T> T |
CommonUtil.withImplicitConceptsVisible(GraknGraph graph,
java.util.function.Function<GraknGraph,T> function) |
| Constructor and Description |
|---|
GraphLoader(java.util.function.Consumer<GraknGraph> preLoad) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.