| Package | Description |
|---|---|
| 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.internal.pattern | |
| ai.grakn.graql.internal.query | |
| ai.grakn.graql.internal.reasoner.utils | |
| ai.grakn.graql.internal.util | |
| ai.grakn.migration.export |
Implements export of data and ontology from a Grakn graph into Graql statements.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Var
A variable in a Graql query
|
| Modifier and Type | Method and Description |
|---|---|
VarPattern |
VarPattern.datatype(ResourceType.DataType<?> datatype) |
VarPattern |
VarPattern.has(Label type,
VarPattern varPattern)
the variable must have a resource of the given type that matches the given atom
|
VarPattern |
VarPattern.has(String type) |
VarPattern |
VarPattern.has(String type,
Object value)
the variable must have a resource of the given type with an exact matching value
|
VarPattern |
VarPattern.has(String type,
ValuePredicate predicate)
the variable must have a resource of the given type that matches the given atom
|
VarPattern |
VarPattern.has(String type,
VarPattern varPattern)
the variable must have a resource of the given type that matches the given atom
|
VarPattern |
VarPattern.has(VarPattern type) |
VarPattern |
VarPattern.hasScope(VarPattern type) |
VarPattern |
VarPattern.id(ConceptId id) |
VarPattern |
VarPattern.isa(String type) |
VarPattern |
VarPattern.isa(VarPattern type) |
VarPattern |
VarPattern.isAbstract()
set this concept type variable as abstract, meaning it cannot have direct instances
|
VarPattern |
VarPattern.key(String type) |
VarPattern |
VarPattern.key(VarPattern type) |
static VarPattern |
Graql.label(Label label) |
VarPattern |
VarPattern.label(Label label) |
static VarPattern |
Graql.label(String label) |
VarPattern |
VarPattern.label(String label) |
VarPattern |
VarPattern.lhs(Pattern lhs) |
VarPattern |
VarPattern.neq(String var)
Specify that the variable is different to another variable
|
VarPattern |
VarPattern.neq(VarPattern varPattern)
Specify that the variable is different to another variable
|
VarPattern |
VarPattern.plays(String type) |
VarPattern |
VarPattern.plays(VarPattern type) |
VarPattern |
VarPattern.regex(String regex)
Specify the regular expression instances of this resource type must match
|
VarPattern |
VarPattern.rel(String roleplayer)
the variable must be a relation with the given roleplayer
|
VarPattern |
VarPattern.rel(String roletype,
String roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
VarPattern |
VarPattern.rel(String roletype,
VarPattern roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
VarPattern |
VarPattern.rel(VarPattern roleplayer)
the variable must be a relation with the given roleplayer
|
VarPattern |
VarPattern.rel(VarPattern roletype,
String roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
VarPattern |
VarPattern.rel(VarPattern roletype,
VarPattern roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
VarPattern |
VarPattern.relates(String type) |
VarPattern |
VarPattern.relates(VarPattern type) |
VarPattern |
VarPattern.rhs(Pattern rhs) |
VarPattern |
VarPattern.sub(String type) |
VarPattern |
VarPattern.sub(VarPattern type) |
VarPattern |
VarPattern.val(Object value) |
VarPattern |
VarPattern.val(ValuePredicate predicate) |
| Modifier and Type | Method and Description |
|---|---|
static ValuePredicate |
Graql.contains(VarPattern varPattern) |
DeleteQuery |
MatchQuery.delete(VarPattern... deleters) |
static ValuePredicate |
Graql.eq(VarPattern varPattern) |
static ValuePredicate |
Graql.gt(VarPattern varPattern) |
static ValuePredicate |
Graql.gte(VarPattern varPattern) |
VarPattern |
VarPattern.has(Label type,
VarPattern varPattern)
the variable must have a resource of the given type that matches the given atom
|
VarPattern |
VarPattern.has(String type,
VarPattern varPattern)
the variable must have a resource of the given type that matches the given atom
|
VarPattern |
VarPattern.has(VarPattern type) |
VarPattern |
VarPattern.hasScope(VarPattern type) |
static InsertQuery |
Graql.insert(VarPattern... varPatterns) |
InsertQuery |
QueryBuilder.insert(VarPattern... vars) |
InsertQuery |
MatchQuery.insert(VarPattern... vars) |
VarPattern |
VarPattern.isa(VarPattern type) |
VarPattern |
VarPattern.key(VarPattern type) |
static ValuePredicate |
Graql.lt(VarPattern varPattern) |
static ValuePredicate |
Graql.lte(VarPattern varPattern) |
static ValuePredicate |
Graql.neq(VarPattern varPattern) |
VarPattern |
VarPattern.neq(VarPattern varPattern)
Specify that the variable is different to another variable
|
VarPattern |
VarPattern.plays(VarPattern type) |
VarPattern |
VarPattern.rel(String roletype,
VarPattern roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
VarPattern |
VarPattern.rel(VarPattern roleplayer)
the variable must be a relation with the given roleplayer
|
VarPattern |
VarPattern.rel(VarPattern roletype,
String roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
VarPattern |
VarPattern.rel(VarPattern roletype,
VarPattern roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
VarPattern |
VarPattern.relates(VarPattern type) |
VarPattern |
VarPattern.sub(VarPattern type) |
| Modifier and Type | Method and Description |
|---|---|
DeleteQuery |
MatchQuery.delete(Collection<? extends VarPattern> deleters) |
static InsertQuery |
Graql.insert(Collection<? extends VarPattern> varPatterns) |
InsertQuery |
QueryBuilder.insert(Collection<? extends VarPattern> vars) |
InsertQuery |
MatchQuery.insert(Collection<? extends VarPattern> vars) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
VarPatternAdmin
Admin class for inspecting a
VarPattern |
| Modifier and Type | Class and Description |
|---|---|
class |
AbstractVarPattern
Abstract implementation of
VarPatternAdmin. |
| Modifier and Type | Method and Description |
|---|---|
VarPattern |
AbstractVarPattern.datatype(ResourceType.DataType<?> datatype) |
VarPattern |
AbstractVarPattern.has(Label type,
VarPattern varPattern) |
VarPattern |
AbstractVarPattern.has(String type) |
VarPattern |
AbstractVarPattern.has(String type,
Object value) |
VarPattern |
AbstractVarPattern.has(String type,
ValuePredicate predicate) |
VarPattern |
AbstractVarPattern.has(String type,
VarPattern varPattern) |
VarPattern |
AbstractVarPattern.has(VarPattern type) |
VarPattern |
AbstractVarPattern.hasScope(VarPattern type) |
VarPattern |
AbstractVarPattern.id(ConceptId id) |
VarPattern |
AbstractVarPattern.isa(String type) |
VarPattern |
AbstractVarPattern.isa(VarPattern type) |
VarPattern |
AbstractVarPattern.isAbstract() |
VarPattern |
AbstractVarPattern.key(String type) |
VarPattern |
AbstractVarPattern.key(VarPattern type) |
VarPattern |
AbstractVarPattern.label(Label label) |
VarPattern |
AbstractVarPattern.label(String label) |
VarPattern |
AbstractVarPattern.lhs(Pattern lhs) |
VarPattern |
AbstractVarPattern.neq(String var) |
VarPattern |
AbstractVarPattern.neq(VarPattern varPattern) |
VarPattern |
AbstractVarPattern.plays(String type) |
VarPattern |
AbstractVarPattern.plays(VarPattern type) |
VarPattern |
AbstractVarPattern.regex(String regex) |
VarPattern |
AbstractVarPattern.rel(String roleplayer) |
VarPattern |
AbstractVarPattern.rel(String roletype,
String roleplayer) |
VarPattern |
AbstractVarPattern.rel(String roletype,
VarPattern roleplayer) |
VarPattern |
AbstractVarPattern.rel(VarPattern roleplayer) |
VarPattern |
AbstractVarPattern.rel(VarPattern roletype,
String roleplayer) |
VarPattern |
AbstractVarPattern.rel(VarPattern roletype,
VarPattern roleplayer) |
VarPattern |
AbstractVarPattern.relates(String type) |
VarPattern |
AbstractVarPattern.relates(VarPattern type) |
VarPattern |
AbstractVarPattern.rhs(Pattern rhs) |
VarPattern |
AbstractVarPattern.sub(String type) |
VarPattern |
AbstractVarPattern.sub(VarPattern type) |
VarPattern |
AbstractVarPattern.val(Object value) |
VarPattern |
AbstractVarPattern.val(ValuePredicate predicate) |
| Modifier and Type | Method and Description |
|---|---|
VarPattern |
AbstractVarPattern.has(Label type,
VarPattern varPattern) |
VarPattern |
AbstractVarPattern.has(String type,
VarPattern varPattern) |
VarPattern |
AbstractVarPattern.has(VarPattern type) |
VarPattern |
AbstractVarPattern.hasScope(VarPattern type) |
VarPattern |
AbstractVarPattern.isa(VarPattern type) |
VarPattern |
AbstractVarPattern.key(VarPattern type) |
VarPattern |
AbstractVarPattern.neq(VarPattern varPattern) |
VarPattern |
AbstractVarPattern.plays(VarPattern type) |
VarPattern |
AbstractVarPattern.rel(String roletype,
VarPattern roleplayer) |
VarPattern |
AbstractVarPattern.rel(VarPattern roleplayer) |
VarPattern |
AbstractVarPattern.rel(VarPattern roletype,
String roleplayer) |
VarPattern |
AbstractVarPattern.rel(VarPattern roletype,
VarPattern roleplayer) |
VarPattern |
AbstractVarPattern.relates(VarPattern type) |
VarPattern |
AbstractVarPattern.sub(VarPattern type) |
| Modifier and Type | Method and Description |
|---|---|
InsertQuery |
QueryBuilderImpl.insert(VarPattern... vars) |
| Modifier and Type | Method and Description |
|---|---|
InsertQuery |
QueryBuilderImpl.insert(Collection<? extends VarPattern> vars) |
| Modifier and Type | Method and Description |
|---|---|
static void |
ReasonerUtils.computeRoleCombinations(Set<Var> vars,
Set<Role> roles,
Map<Var,VarPattern> roleMap,
Set<Map<Var,VarPattern>> roleMaps)
compute all rolePlayer-roleType combinations complementing provided roleMap
|
static void |
ReasonerUtils.computeRoleCombinations(Set<Var> vars,
Set<Role> roles,
Map<Var,VarPattern> roleMap,
Set<Map<Var,VarPattern>> roleMaps)
compute all rolePlayer-roleType combinations complementing provided roleMap
|
| Modifier and Type | Method and Description |
|---|---|
static Collection<VarPatternAdmin> |
AdminConverter.getVarAdmins(Collection<? extends VarPattern> patterns) |
| Modifier and Type | Method and Description |
|---|---|
static VarPattern |
OntologyConceptMapper.map(OntologyConcept ontologyConcept)
Map a Type to the Graql string representation
|
static VarPattern |
InstanceMapper.map(Thing thing)
Map an Thing to the equivalent Graql representation
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.