public interface GraknAdmin
GraknGraph.| Modifier and Type | Method and Description |
|---|---|
<T extends Concept> |
buildConcept(org.apache.tinkerpop.gremlin.structure.Vertex vertex) |
void |
commit(Map<String,Set<ConceptId>> resourceCache,
Map<String,Set<ConceptId>> castingCache)
Commits the graph and adds concepts for post processing directly to the cache bypassing the REST API.
|
void |
commitNoLogs()
Commits to the graph without submitting any commit logs.
|
boolean |
fixDuplicateCastings(String index,
Set<ConceptId> castingVertexIds)
Merges the provided duplicate castings.
|
boolean |
fixDuplicateResources(String index,
Set<ConceptId> resourceVertexIds) |
<T extends Concept> |
getConcept(Schema.ConceptProperty key,
String value) |
Type |
getMetaConcept()
Get the root of all Types.
|
EntityType |
getMetaEntityType()
Get the root of all the Entity Types.
|
RelationType |
getMetaRelationType()
Get the root of all Relation Types.
|
ResourceType |
getMetaResourceType()
Get the root of all the Resource Types.
|
RoleType |
getMetaRoleType()
Get the root of all the Role Types.
|
RuleType |
getMetaRuleConstraint()
Get the root of all constraint rules.
|
RuleType |
getMetaRuleInference()
Get the root of all inference rules.
|
RuleType |
getMetaRuleType()
Get the root of all Rule Types;
|
org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<org.apache.tinkerpop.gremlin.structure.Vertex,org.apache.tinkerpop.gremlin.structure.Vertex> |
getTinkerTraversal()
Utility function to get a read-only Tinkerpop traversal.
|
boolean |
isBatchLoadingEnabled()
A flag to check if batch loading is enabled and consistency checks are switched off
|
boolean |
validVertex(org.apache.tinkerpop.gremlin.structure.Vertex vertex) |
<T extends Concept> T buildConcept(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
T - The type of the concept being builtvertex - A vertex which contains properties necessary to build a concept from.org.apache.tinkerpop.gremlin.process.traversal.dsl.graph.GraphTraversal<org.apache.tinkerpop.gremlin.structure.Vertex,org.apache.tinkerpop.gremlin.structure.Vertex> getTinkerTraversal()
boolean isBatchLoadingEnabled()
Type getMetaConcept()
RelationType getMetaRelationType()
RoleType getMetaRoleType()
ResourceType getMetaResourceType()
EntityType getMetaEntityType()
RuleType getMetaRuleType()
RuleType getMetaRuleInference()
RuleType getMetaRuleConstraint()
void commit(Map<String,Set<ConceptId>> resourceCache, Map<String,Set<ConceptId>> castingCache) throws GraknValidationException
resourceCache - The cache of resource jobs to be executedcastingCache - The cache of the casting jobs to be executedGraknValidationException - when the graph does not conform to the object conceptvoid commitNoLogs()
throws GraknValidationException
GraknValidationException - when the graph does not conform to the object conceptboolean fixDuplicateCastings(String index, Set<ConceptId> castingVertexIds)
castingVertexIds - The vertex Ids of the duplicate castingsboolean fixDuplicateResources(String index, Set<ConceptId> resourceVertexIds)
resourceVertexIds - The resource vertex ids which need to be merged.<T extends Concept> T getConcept(Schema.ConceptProperty key, String value)
key - The concept property tp search by.value - The value of the conceptboolean validVertex(org.apache.tinkerpop.gremlin.structure.Vertex vertex)
vertex - The vertex to be checked against the underlaying graphCopyright © 2017 Grakn Labs Ltd. All rights reserved.