| Package | Description |
|---|---|
| ai.grakn.graql | |
| ai.grakn.graql.admin | |
| ai.grakn.graql.internal.query.match | |
| ai.grakn.graql.internal.util | |
| ai.grakn.migration.export |
| Modifier and Type | Method and Description |
|---|---|
Var |
Var.datatype(ResourceType.DataType<?> datatype) |
Var |
Var.has(String type) |
Var |
Var.has(String type,
Object value)
the variable must have a resource or name of the given type with an exact matching value
|
Var |
Var.has(String type,
ValuePredicate predicate)
the variable must have a resource or name of the given type that matches the given atom
|
Var |
Var.has(String type,
Var var)
the variable must have a resource or name of the given type that matches the given atom
|
Var |
Var.has(Var var) |
Var |
Var.hasResource(String type) |
Var |
Var.hasResource(Var type) |
Var |
Var.hasRole(String type) |
Var |
Var.hasRole(Var type) |
Var |
Var.hasScope(Var type) |
Var |
Var.id(String id) |
Var |
Var.isa(String type) |
Var |
Var.isa(Var type) |
Var |
Var.isAbstract()
set this concept type variable as abstract, meaning it cannot have direct instances
|
Var |
Var.key(String type) |
Var |
Var.key(Var type) |
Var |
Var.lhs(Pattern lhs) |
static Var |
Graql.name(String name) |
Var |
Var.name(String name) |
Var |
Var.neq(String varName)
Specify that the variable is different to another variable
|
Var |
Var.neq(Var var)
Specify that the variable is different to another variable
|
Var |
Var.playsRole(String type) |
Var |
Var.playsRole(Var type) |
Var |
Var.regex(String regex)
Specify the regular expression instances of this resource type must match
|
Var |
Var.rel(String roleplayer)
the variable must be a relation with the given roleplayer
|
Var |
Var.rel(String roletype,
String roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
Var |
Var.rel(String roletype,
Var roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
Var |
Var.rel(Var roleplayer)
the variable must be a relation with the given roleplayer
|
Var |
Var.rel(Var roletype,
String roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
Var |
Var.rel(Var roletype,
Var roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
Var |
Var.rhs(Pattern rhs) |
Var |
Var.sub(String type) |
Var |
Var.sub(Var type) |
Var |
Var.value()
this variable must have a value
|
Var |
Var.value(Object value) |
Var |
Var.value(ValuePredicate predicate) |
static Var |
Graql.var() |
static Var |
Graql.var(String name) |
| Modifier and Type | Method and Description |
|---|---|
static ValuePredicate |
Graql.contains(Var var) |
default DeleteQuery |
MatchQuery.delete(Var... deleters) |
static ValuePredicate |
Graql.eq(Var var) |
static ValuePredicate |
Graql.gt(Var var) |
static ValuePredicate |
Graql.gte(Var var) |
Var |
Var.has(String type,
Var var)
the variable must have a resource or name of the given type that matches the given atom
|
Var |
Var.has(Var var) |
Var |
Var.hasResource(Var type) |
Var |
Var.hasRole(Var type) |
Var |
Var.hasScope(Var type) |
InsertQuery |
QueryBuilderImpl.insert(Var... vars) |
static InsertQuery |
Graql.insert(Var... vars) |
InsertQuery |
QueryBuilder.insert(Var... vars) |
default InsertQuery |
MatchQuery.insert(Var... vars) |
Var |
Var.isa(Var type) |
Var |
Var.key(Var type) |
static ValuePredicate |
Graql.lt(Var var) |
static ValuePredicate |
Graql.lte(Var var) |
static ValuePredicate |
Graql.neq(Var var) |
Var |
Var.neq(Var var)
Specify that the variable is different to another variable
|
Var |
Var.playsRole(Var type) |
Var |
Var.rel(String roletype,
Var roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
Var |
Var.rel(Var roleplayer)
the variable must be a relation with the given roleplayer
|
Var |
Var.rel(Var roletype,
String roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
Var |
Var.rel(Var roletype,
Var roleplayer)
the variable must be a relation with the given roleplayer playing the given roletype
|
Var |
Var.sub(Var type) |
| Modifier and Type | Method and Description |
|---|---|
DeleteQuery |
MatchQuery.delete(Collection<? extends Var> deleters) |
InsertQuery |
QueryBuilderImpl.insert(Collection<? extends Var> vars) |
static InsertQuery |
Graql.insert(Collection<? extends Var> vars) |
InsertQuery |
QueryBuilder.insert(Collection<? extends Var> vars) |
InsertQuery |
MatchQuery.insert(Collection<? extends Var> vars) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
VarAdmin
Admin class for inspecting a Var
|
| Modifier and Type | Method and Description |
|---|---|
default DeleteQuery |
MatchQueryInternal.delete(Collection<? extends Var> deleters) |
default InsertQuery |
MatchQueryInternal.insert(Collection<? extends Var> vars) |
| Modifier and Type | Method and Description |
|---|---|
static Collection<VarAdmin> |
AdminConverter.getVarAdmins(Collection<? extends Var> patterns) |
| Modifier and Type | Method and Description |
|---|---|
static Var |
InstanceMapper.map(Instance instance)
Map an Instance to the equivalent Graql representation
|
static Var |
TypeMapper.map(Type type)
Map a Type to the Graql string representation
|
Copyright © 2016 Grakn Labs Ltd. All rights reserved.