| 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 |
Implements the REST controllers, task management and post processing features.
|
| ai.grakn.exception |
Grakn exception definitions.
|
| 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.gremlin.fragment | |
| ai.grakn.graql.internal.gremlin.sets | |
| ai.grakn.graql.internal.hal | |
| ai.grakn.graql.internal.pattern | |
| ai.grakn.graql.internal.pattern.property | |
| ai.grakn.graql.internal.reasoner.utils | |
| ai.grakn.graql.internal.util | |
| ai.grakn.matcher | |
| ai.grakn.migration.owl |
Implements migration of OWL into Grakn.
|
| ai.grakn.test.graphs | |
| ai.grakn.util |
| Modifier and Type | Method and Description |
|---|---|
<T extends OntologyConcept> |
GraknGraph.getOntologyConcept(Label label)
Get the
OntologyConcept with the label provided, if it exists. |
<T extends Type> |
GraknGraph.getType(Label label)
Get the
Type with the label provided, if it exists. |
EntityType |
GraknGraph.putEntityType(Label label)
Create a new
EntityType with super-type entity, or return a pre-existing EntityType,
with the specified label. |
RelationType |
GraknGraph.putRelationType(Label label)
Create a
RelationType with super-type relation, or return a pre-existing RelationType,
with the specified label. |
<V> ResourceType<V> |
GraknGraph.putResourceType(Label 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. |
Role |
GraknGraph.putRole(Label label)
|
RuleType |
GraknGraph.putRuleType(Label label)
|
| Modifier and Type | Method and Description |
|---|---|
Label |
OntologyConcept.getLabel()
Returns the unique label of this Type.
|
Label |
Label.map(java.util.function.Function<String,String> mapper)
|
static Label |
Label.of(String value) |
| Modifier and Type | Method and Description |
|---|---|
int |
Label.compareTo(Label o) |
| Modifier and Type | Field and Description |
|---|---|
static Label |
SystemKeyspace.KEYSPACE_ENTITY |
static Label |
SystemKeyspace.KEYSPACE_RESOURCE |
| Modifier and Type | Method and Description |
|---|---|
static GraqlQueryException |
GraqlQueryException.insertInstanceWithLabel(Label label) |
static GraqlQueryException |
GraqlQueryException.insertMetaType(Label label,
OntologyConcept ontologyConcept) |
static GraqlQueryException |
GraqlQueryException.labelNotFound(Label label) |
static GraphOperationException |
GraphOperationException.metaTypeImmutable(Label metaLabel)
Thrown when attempting to mutate a
Schema.MetaSchema |
static GraqlQueryException |
GraqlQueryException.mustBeResourceType(Label resourceType) |
static GraqlQueryException |
GraqlQueryException.notARelationType(Label label) |
static GraqlQueryException |
GraqlQueryException.notARoleType(Label roleId) |
static GraqlQueryException |
GraqlQueryException.queryInstanceOfRoleType(Label label) |
static GraphOperationException |
GraphOperationException.reservedLabel(Label label)
Thrown when trying to create something using a label reserved by the system
|
static GraqlQueryException |
GraqlQueryException.resourceMustBeANumber(ResourceType.DataType dataType,
Label resourceType) |
static GraphOperationException |
GraphOperationException.typeCannotBeDeleted(Label label)
Thrown when a
Type has incoming edges and therefore cannot be deleted |
| Modifier and Type | Method and Description |
|---|---|
static GraqlQueryException |
GraqlQueryException.resourcesWithDifferentDataTypes(Set<Label> resourceTypes) |
| Modifier and Type | Method and Description |
|---|---|
LabelId |
GraknAdmin.convertToId(Label label)
Converts a Type Label into a type Id for this specific graph.
|
| Modifier and Type | Method and Description |
|---|---|
LabelId |
AbstractGraknGraph.convertToId(Label label) |
<T extends OntologyConcept> |
AbstractGraknGraph.getOntologyConcept(Label label) |
<T extends Type> |
AbstractGraknGraph.getType(Label label) |
EntityType |
AbstractGraknGraph.putEntityType(Label label) |
RelationType |
AbstractGraknGraph.putRelationType(Label label) |
<V> ResourceType<V> |
AbstractGraknGraph.putResourceType(Label label,
ResourceType.DataType<V> dataType) |
Role |
AbstractGraknGraph.putRole(Label label) |
RuleType |
AbstractGraknGraph.putRuleType(Label label) |
| Modifier and Type | Method and Description |
|---|---|
VarPattern |
VarPattern.has(Label type,
VarPattern varPattern)
the variable must have a resource of the given type that matches the given atom
|
static VarPattern |
Graql.label(Label label) |
VarPattern |
VarPattern.label(Label label) |
| Modifier and Type | Method and Description |
|---|---|
ComputeQuery<T> |
ComputeQuery.in(Collection<Label> subLabels) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Label> |
VarPatternAdmin.getTypeLabel() |
Set<Label> |
VarPatternAdmin.getTypeLabels() |
| Modifier and Type | Method and Description |
|---|---|
SumQuery |
SumQuery.in(Collection<Label> subLabels) |
StdQuery |
StdQuery.in(Collection<Label> subLabels) |
PathQuery |
PathQuery.in(Collection<Label> subLabels) |
MinQuery |
MinQuery.in(Collection<Label> subLabels) |
MedianQuery |
MedianQuery.in(Collection<Label> subLabels) |
MeanQuery |
MeanQuery.in(Collection<Label> subLabels) |
MaxQuery |
MaxQuery.in(Collection<Label> subLabels) |
DegreeQuery |
DegreeQuery.in(Collection<Label> subLabels) |
CountQuery |
CountQuery.in(Collection<Label> subLabels) |
ClusterQuery<T> |
ClusterQuery.in(Collection<Label> subLabels) |
SumQuery |
SumQuery.of(Collection<Label> resourceLabels) |
StdQuery |
StdQuery.of(Collection<Label> resourceLabels) |
MinQuery |
MinQuery.of(Collection<Label> resourceLabels) |
MedianQuery |
MedianQuery.of(Collection<Label> resourceLabels) |
MeanQuery |
MeanQuery.of(Collection<Label> resourceLabels) |
MaxQuery |
MaxQuery.of(Collection<Label> resourceLabels) |
DegreeQuery |
DegreeQuery.of(Collection<Label> ofLabels) |
| Modifier and Type | Method and Description |
|---|---|
static Fragment |
Fragments.label(Var start,
Label label) |
static Fragment |
Fragments.resourceIndex(Var start,
Label label,
Object resourceValue)
A
Fragment that uses an index stored on each resource. |
| Modifier and Type | Method and Description |
|---|---|
static Fragment |
Fragments.inShortcut(Var rolePlayer,
Var edge,
Var relation,
Optional<Var> role,
Optional<Set<Label>> roleLabels,
Optional<Set<Label>> relationTypeLabels) |
static Fragment |
Fragments.inShortcut(Var rolePlayer,
Var edge,
Var relation,
Optional<Var> role,
Optional<Set<Label>> roleLabels,
Optional<Set<Label>> relationTypeLabels) |
static Fragment |
Fragments.outShortcut(Var relation,
Var edge,
Var rolePlayer,
Optional<Var> role,
Optional<Set<Label>> roleLabels,
Optional<Set<Label>> relationTypeLabels) |
static Fragment |
Fragments.outShortcut(Var relation,
Var edge,
Var rolePlayer,
Optional<Var> role,
Optional<Set<Label>> roleLabels,
Optional<Set<Label>> relationTypeLabels) |
| Modifier and Type | Method and Description |
|---|---|
static EquivalentFragmentSet |
EquivalentFragmentSets.label(Var type,
Label label)
An
EquivalentFragmentSet that indicates a variable representing a type with a particular label. |
| Constructor and Description |
|---|
HALConceptData(Concept concept,
int separationDegree,
boolean embedTypeParam,
Set<Label> typesInQuery,
String keyspace,
int offset,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
Optional<Label> |
AbstractVarPattern.getTypeLabel() |
Set<Label> |
AbstractVarPattern.getTypeLabels() |
| Modifier and Type | Method and Description |
|---|---|
VarPattern |
AbstractVarPattern.has(Label type,
VarPattern varPattern) |
VarPattern |
AbstractVarPattern.label(Label label) |
| Modifier and Type | Method and Description |
|---|---|
Label |
LabelProperty.getLabelValue() |
Label |
HasResourceProperty.getType() |
| Modifier and Type | Method and Description |
|---|---|
static HasResourceProperty |
HasResourceProperty.of(Label resourceType,
VarPatternAdmin resource) |
| Constructor and Description |
|---|
LabelProperty(Label label) |
| 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.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)
|
| 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.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.createSubPropertyRule(RelationType parent,
RelationType child,
Map<Label,Label> roleMappings,
GraknGraph graph)
creates rule parent :- child
|
static Rule |
ReasonerUtils.createSubPropertyRule(RelationType parent,
RelationType child,
Map<Label,Label> roleMappings,
GraknGraph graph)
creates rule parent :- child
|
| Modifier and Type | Method and Description |
|---|---|
static String |
StringConverter.typeLabelToString(Label label) |
| Modifier and Type | Method and Description |
|---|---|
static org.hamcrest.Matcher<MatchableConcept> |
GraknMatchers.role(Label expectedLabel)
Create a matcher to test that the concept has the given type name.
|
static org.hamcrest.Matcher<MatchableConcept> |
GraknMatchers.type(Label expectedLabel)
Create a matcher to test that the concept has the given type name.
|
| Modifier and Type | Method and Description |
|---|---|
default Label |
Namer.entityRole(Label resourceLabel)
The name of the entity role type in an entity-role relation representing an OWL data property
|
default Label |
Namer.objectRole(Label relationLabel)
Make a name for the role type corresponding to the object (i.e.
|
default Label |
Namer.resourceRelation(Label resourceLabel)
Make a name for a resource relation type representing the value of an OWL data property.
|
default Label |
Namer.resourceRole(Label resourceLabel)
Make a name for a resource role player representing the value of an OWL data property.
|
default Label |
Namer.subjectRole(Label relationLabel)
Make a name for the role type corresponding to the subject (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
default Label |
Namer.entityRole(Label resourceLabel)
The name of the entity role type in an entity-role relation representing an OWL data property
|
default Label |
Namer.objectRole(Label relationLabel)
Make a name for the role type corresponding to the object (i.e.
|
default Label |
Namer.resourceRelation(Label resourceLabel)
Make a name for a resource relation type representing the value of an OWL data property.
|
default Label |
Namer.resourceRole(Label resourceLabel)
Make a name for a resource role player representing the value of an OWL data property.
|
default Label |
Namer.subjectRole(Label relationLabel)
Make a name for the role type corresponding to the subject (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
static Thing |
TestGraph.putEntity(GraknGraph graph,
String id,
EntityType type,
Label key) |
| Modifier and Type | Method and Description |
|---|---|
Label |
Schema.MetaSchema.getLabel() |
Label |
Schema.Analytics.getLabel() |
Label |
Schema.ImplicitType.getLabel(Label resourceType) |
Label |
Schema.ImplicitType.getLabel(String resourceType) |
| Modifier and Type | Method and Description |
|---|---|
static String |
Schema.generateResourceIndex(Label label,
String value) |
Label |
Schema.ImplicitType.getLabel(Label resourceType) |
static boolean |
Schema.MetaSchema.isMetaLabel(Label label) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.