public interface GraknAdmin
GraknGraph.| Modifier and Type | Method and Description |
|---|---|
<T extends Concept> |
buildConcept(org.apache.tinkerpop.gremlin.structure.Vertex vertex) |
void |
clear(ConceptCache conceptCache)
Clears the graph and empties the provided cache.
|
void |
commit(ConceptCache conceptCache)
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)
Merges the provided duplicate resources
|
<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
|
void |
updateTypeCounts(Map<TypeLabel,Long> typeCounts)
Updates the counts of all the types
|
<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(ConceptCache conceptCache) throws GraknValidationException
conceptCache - The concept Cache to store concepts in for processing laterGraknValidationException - when the graph does not conform to the object conceptvoid clear(ConceptCache conceptCache)
conceptCache - The concept Cache to store concepts in for processing latervoid 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.void updateTypeCounts(Map<TypeLabel,Long> typeCounts)
typeCounts - The types and the changes to put on their counts<T extends Concept> T getConcept(Schema.ConceptProperty key, String value)
key - The concept property tp search by.value - The value of the conceptCopyright © 2017 Grakn Labs Ltd. All rights reserved.