| Package | Description |
|---|---|
| ai.grakn |
A core package for connecting to a Grakn knowledge graph.
|
| ai.grakn.concept |
Provides the meta-ontology interfaces and definitions.
|
| ai.grakn.engine.cache | |
| ai.grakn.engine.util |
Implementation of internal engine utilities.
|
| ai.grakn.factory |
Provides graph accessors for different backends.
|
| ai.grakn.graph.admin | |
| ai.grakn.graph.internal |
Internal implementation of Grakn graph.
|
| ai.grakn.graql |
A collection of interfaces and factories for executing Graql queries.
|
| ai.grakn.graql.admin |
A collection of interfaces offering more behaviour on Graql objects.
|
| ai.grakn.graql.analytics |
A collection of interfaces for executing analytics queries.
|
| ai.grakn.graql.internal.analytics | |
| ai.grakn.graql.internal.gremlin | |
| ai.grakn.graql.internal.gremlin.fragment | |
| ai.grakn.graql.internal.gremlin.sets | |
| ai.grakn.graql.internal.hal | |
| ai.grakn.graql.internal.pattern.property | |
| ai.grakn.graql.internal.reasoner | |
| ai.grakn.graql.internal.util | |
| ai.grakn.migration.owl |
Implements migration of OWL into Grakn.
|
| ai.grakn.util |
| Modifier and Type | Method and Description |
|---|---|
<T extends Type> |
GraknGraph.getType(TypeLabel label)
Get the
Type with the label provided, if it exists. |
EntityType |
GraknGraph.putEntityType(TypeLabel label)
Create a new
EntityType with super-type entity, or return a pre-existing EntityType,
with the specified label. |
RelationType |
GraknGraph.putRelationType(TypeLabel label)
Create a
RelationType with super-type relation, or return a pre-existing RelationType,
with the specified label. |
<V> ResourceType<V> |
GraknGraph.putResourceType(TypeLabel label,
ResourceType.DataType<V> dataType)
Create a new non-unique
ResourceType with super-type resource, or return a pre-existing
non-unique ResourceType, with the specified label and data type. |
RoleType |
GraknGraph.putRoleType(TypeLabel label)
|
RuleType |
GraknGraph.putRuleType(TypeLabel label)
|
| Modifier and Type | Method and Description |
|---|---|
TypeLabel |
Type.getLabel()
Returns the unique label of this Type.
|
TypeLabel |
TypeLabel.map(java.util.function.Function<String,String> mapper)
|
static TypeLabel |
TypeLabel.of(String value) |
| Modifier and Type | Method and Description |
|---|---|
int |
TypeLabel.compareTo(TypeLabel o) |
| Modifier and Type | Method and Description |
|---|---|
Map<TypeLabel,Long> |
EngineCacheStandAlone.getInstanceCountJobs(String keyspace) |
Map<TypeLabel,Long> |
EngineCacheDistributed.getInstanceCountJobs(String keyspace) |
| Modifier and Type | Method and Description |
|---|---|
void |
EngineCacheStandAlone.addJobInstanceCount(String keyspace,
TypeLabel name,
long instanceCount) |
void |
EngineCacheDistributed.addJobInstanceCount(String keyspace,
TypeLabel name,
long instanceCount) |
void |
EngineCacheStandAlone.deleteJobInstanceCount(String keyspace,
TypeLabel name) |
void |
EngineCacheDistributed.deleteJobInstanceCount(String keyspace,
TypeLabel name) |
| Modifier and Type | Field and Description |
|---|---|
static TypeLabel |
SystemOntologyElements.CREATED_BY |
static TypeLabel |
SystemOntologyElements.ENGINE_ID |
static TypeLabel |
SystemOntologyElements.RECUR_INTERVAL |
static TypeLabel |
SystemOntologyElements.RECURRING |
static TypeLabel |
SystemOntologyElements.RUN_AT |
static TypeLabel |
SystemOntologyElements.SCHEDULED_TASK |
static TypeLabel |
SystemOntologyElements.SERIALISED_TASK |
static TypeLabel |
SystemOntologyElements.STACK_TRACE |
static TypeLabel |
SystemOntologyElements.STATUS |
static TypeLabel |
SystemOntologyElements.STATUS_CHANGE_BY |
static TypeLabel |
SystemOntologyElements.STATUS_CHANGE_TIME |
static TypeLabel |
SystemOntologyElements.TASK_CHECKPOINT |
static TypeLabel |
SystemOntologyElements.TASK_CLASS_NAME |
static TypeLabel |
SystemOntologyElements.TASK_CONFIGURATION |
static TypeLabel |
SystemOntologyElements.TASK_EXCEPTION |
static TypeLabel |
SystemOntologyElements.TASK_ID |
| Modifier and Type | Field and Description |
|---|---|
static TypeLabel |
SystemKeyspace.KEYSPACE_ENTITY |
static TypeLabel |
SystemKeyspace.KEYSPACE_RESOURCE |
static TypeLabel |
SystemKeyspace.SYSTEM_VERSION |
| Modifier and Type | Method and Description |
|---|---|
Map<TypeLabel,Long> |
ConceptCache.getInstanceCountJobs(String keyspace) |
| Modifier and Type | Method and Description |
|---|---|
void |
ConceptCache.addJobInstanceCount(String keyspace,
TypeLabel name,
long instanceCount) |
void |
ConceptCache.deleteJobInstanceCount(String keyspace,
TypeLabel name) |
| Modifier and Type | Method and Description |
|---|---|
void |
GraknAdmin.updateTypeCounts(Map<TypeLabel,Long> typeCounts)
Updates the counts of all the types
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Type> |
AbstractGraknGraph.getType(TypeLabel label) |
EntityType |
AbstractGraknGraph.putEntityType(TypeLabel label) |
RelationType |
AbstractGraknGraph.putRelationType(TypeLabel label) |
<V> ResourceType<V> |
AbstractGraknGraph.putResourceType(TypeLabel label,
ResourceType.DataType<V> dataType) |
RoleType |
AbstractGraknGraph.putRoleType(TypeLabel label) |
RuleType |
AbstractGraknGraph.putRuleType(TypeLabel label) |
| Modifier and Type | Method and Description |
|---|---|
void |
AbstractGraknGraph.updateTypeCounts(Map<TypeLabel,Long> typeCounts) |
| Modifier and Type | Method and Description |
|---|---|
Var |
Var.has(TypeLabel type,
Var var)
the variable must have a resource of the given type that matches the given atom
|
static Var |
Graql.label(TypeLabel label) |
Var |
Var.label(TypeLabel label) |
| Modifier and Type | Method and Description |
|---|---|
ComputeQuery<T> |
ComputeQuery.in(Collection<TypeLabel> subTypeLabels) |
| Modifier and Type | Method and Description |
|---|---|
Optional<TypeLabel> |
VarAdmin.getTypeLabel() |
Set<TypeLabel> |
VarAdmin.getTypeLabels() |
| Modifier and Type | Method and Description |
|---|---|
SumQuery |
SumQuery.in(Collection<TypeLabel> subTypeLabels) |
StdQuery |
StdQuery.in(Collection<TypeLabel> subTypeLabels) |
PathQuery |
PathQuery.in(Collection<TypeLabel> subTypeLabels) |
MinQuery |
MinQuery.in(Collection<TypeLabel> subTypeLabels) |
MedianQuery |
MedianQuery.in(Collection<TypeLabel> subTypeLabels) |
MeanQuery |
MeanQuery.in(Collection<TypeLabel> subTypeLabels) |
MaxQuery |
MaxQuery.in(Collection<TypeLabel> subTypeLabels) |
DegreeQuery |
DegreeQuery.in(Collection<TypeLabel> subTypeLabels) |
CountQuery |
CountQuery.in(Collection<TypeLabel> subTypeLabels) |
ClusterQuery<T> |
ClusterQuery.in(Collection<TypeLabel> subTypeLabels) |
SumQuery |
SumQuery.of(Collection<TypeLabel> resourceTypeLabels) |
StdQuery |
StdQuery.of(Collection<TypeLabel> resourceTypeLabels) |
MinQuery |
MinQuery.of(Collection<TypeLabel> resourceTypeLabels) |
MedianQuery |
MedianQuery.of(Collection<TypeLabel> resourceTypeLabels) |
MeanQuery |
MeanQuery.of(Collection<TypeLabel> resourceTypeLabels) |
MaxQuery |
MaxQuery.of(Collection<TypeLabel> resourceTypeLabels) |
DegreeQuery |
DegreeQuery.of(Collection<TypeLabel> ofTypeLabels) |
| Modifier and Type | Method and Description |
|---|---|
void |
ShortcutTraversal.addRel(TypeLabel roletype,
VarName roleplayer) |
void |
ShortcutTraversal.setType(TypeLabel type) |
| Modifier and Type | Method and Description |
|---|---|
static Fragment |
Fragments.label(VarName start,
TypeLabel label) |
static Fragment |
Fragments.resourceIndex(VarName start,
TypeLabel typeLabel,
Object resourceValue)
A
Fragment that uses an index stored on each resource. |
| Modifier and Type | Method and Description |
|---|---|
static Fragment |
Fragments.shortcut(Optional<TypeLabel> relationType,
Optional<TypeLabel> roleStart,
Optional<TypeLabel> roleEnd,
VarName start,
VarName end) |
static Fragment |
Fragments.shortcut(Optional<TypeLabel> relationType,
Optional<TypeLabel> roleStart,
Optional<TypeLabel> roleEnd,
VarName start,
VarName end) |
static Fragment |
Fragments.shortcut(Optional<TypeLabel> relationType,
Optional<TypeLabel> roleStart,
Optional<TypeLabel> roleEnd,
VarName start,
VarName end) |
| Modifier and Type | Method and Description |
|---|---|
static EquivalentFragmentSet |
EquivalentFragmentSets.label(VarName type,
TypeLabel label)
An
EquivalentFragmentSet that indicates a variable representing a type with a particular label. |
| Modifier and Type | Method and Description |
|---|---|
static EquivalentFragmentSet |
EquivalentFragmentSets.shortcut(Optional<TypeLabel> roleTypeA,
VarName rolePlayerA,
Optional<TypeLabel> roleTypeB,
VarName rolePlayerB,
Optional<TypeLabel> relationType)
An
EquivalentFragmentSet that indicates a shortcut edge between two role-players. |
static EquivalentFragmentSet |
EquivalentFragmentSets.shortcut(Optional<TypeLabel> roleTypeA,
VarName rolePlayerA,
Optional<TypeLabel> roleTypeB,
VarName rolePlayerB,
Optional<TypeLabel> relationType)
An
EquivalentFragmentSet that indicates a shortcut edge between two role-players. |
static EquivalentFragmentSet |
EquivalentFragmentSets.shortcut(Optional<TypeLabel> roleTypeA,
VarName rolePlayerA,
Optional<TypeLabel> roleTypeB,
VarName rolePlayerB,
Optional<TypeLabel> relationType)
An
EquivalentFragmentSet that indicates a shortcut edge between two role-players. |
| Constructor and Description |
|---|
HALConceptData(Concept concept,
int separationDegree,
boolean embedTypeParam,
Set<TypeLabel> typesInQuery,
String keyspace,
int offset,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
TypeLabel |
LabelProperty.getLabelValue() |
TypeLabel |
HasResourceProperty.getType() |
| Modifier and Type | Method and Description |
|---|---|
static HasResourceProperty |
HasResourceProperty.of(TypeLabel resourceType,
VarAdmin resource) |
| Constructor and Description |
|---|
LabelProperty(TypeLabel label) |
| Modifier and Type | Method and Description |
|---|---|
static Rule |
Utility.createPropertyChainRule(RelationType relation,
TypeLabel fromRoleLabel,
TypeLabel toRoleLabel,
LinkedHashMap<RelationType,javafx.util.Pair<TypeLabel,TypeLabel>> chain,
GraknGraph graph)
creates rule R(fromRole: x, toRole: xm) :- R1(fromRole: x, ...), , R2, ...
|
static Rule |
Utility.createReflexiveRule(RelationType relType,
TypeLabel fromRoleLabel,
TypeLabel toRoleLabel,
GraknGraph graph)
create reflexive rule R(from: X, to: X) :- R(from: X,to: Y)
|
static Rule |
Utility.createTransitiveRule(RelationType relType,
TypeLabel fromRoleLabel,
TypeLabel toRoleLabel,
GraknGraph graph)
create transitive rule R(from: X, to: Y) :- R(from: X,to: Z), R(from: Z, to: Y)
|
| Modifier and Type | Method and Description |
|---|---|
static Rule |
Utility.createPropertyChainRule(RelationType relation,
TypeLabel fromRoleLabel,
TypeLabel toRoleLabel,
LinkedHashMap<RelationType,javafx.util.Pair<TypeLabel,TypeLabel>> chain,
GraknGraph graph)
creates rule R(fromRole: x, toRole: xm) :- R1(fromRole: x, ...), , R2, ...
|
static Rule |
Utility.createPropertyChainRule(RelationType relation,
TypeLabel fromRoleLabel,
TypeLabel toRoleLabel,
LinkedHashMap<RelationType,javafx.util.Pair<TypeLabel,TypeLabel>> chain,
GraknGraph graph)
creates rule R(fromRole: x, toRole: xm) :- R1(fromRole: x, ...), , R2, ...
|
static Rule |
Utility.createSubPropertyRule(RelationType parent,
RelationType child,
Map<TypeLabel,TypeLabel> roleMappings,
GraknGraph graph)
creates rule parent :- child
|
static Rule |
Utility.createSubPropertyRule(RelationType parent,
RelationType child,
Map<TypeLabel,TypeLabel> roleMappings,
GraknGraph graph)
creates rule parent :- child
|
| Modifier and Type | Method and Description |
|---|---|
static String |
StringConverter.typeLabelToString(TypeLabel typeLabel) |
| Modifier and Type | Method and Description |
|---|---|
default TypeLabel |
Namer.entityRole(TypeLabel resourceTypeLabel)
The name of the entity role type in an entity-role relation representing an OWL data property
|
default TypeLabel |
Namer.objectRole(TypeLabel relationLabel)
Make a name for the role type corresponding to the object (i.e.
|
default TypeLabel |
Namer.resourceRelation(TypeLabel resourceTypeLabel)
Make a name for a resource relation type representing the value of an OWL data property.
|
default TypeLabel |
Namer.resourceRole(TypeLabel resourceTypeLabel)
Make a name for a resource role player representing the value of an OWL data property.
|
default TypeLabel |
Namer.subjectRole(TypeLabel relationLabel)
Make a name for the role type corresponding to the subject (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
default TypeLabel |
Namer.entityRole(TypeLabel resourceTypeLabel)
The name of the entity role type in an entity-role relation representing an OWL data property
|
default TypeLabel |
Namer.objectRole(TypeLabel relationLabel)
Make a name for the role type corresponding to the object (i.e.
|
default TypeLabel |
Namer.resourceRelation(TypeLabel resourceTypeLabel)
Make a name for a resource relation type representing the value of an OWL data property.
|
default TypeLabel |
Namer.resourceRole(TypeLabel resourceTypeLabel)
Make a name for a resource role player representing the value of an OWL data property.
|
default TypeLabel |
Namer.subjectRole(TypeLabel relationLabel)
Make a name for the role type corresponding to the subject (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
TypeLabel |
Schema.MetaSchema.getLabel() |
TypeLabel |
Schema.Analytics.getLabel() |
TypeLabel |
Schema.ImplicitType.getLabel(String resourceType) |
TypeLabel |
Schema.ImplicitType.getLabel(TypeLabel resourceType) |
| Modifier and Type | Method and Description |
|---|---|
static String |
Schema.generateResourceIndex(TypeLabel typeLabel,
String value) |
TypeLabel |
Schema.ImplicitType.getLabel(TypeLabel resourceType) |
static boolean |
Schema.MetaSchema.isMetaLabel(TypeLabel label) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.