| Modifier and Type | Method and Description |
|---|---|
<T extends Type> |
GraknGraph.getType(TypeName name)
Get the
Type with the name provided, if it exists. |
EntityType |
GraknGraph.putEntityType(TypeName name)
Create a new
EntityType with super-type entity, or return a pre-existing EntityType,
with the specified name. |
RelationType |
GraknGraph.putRelationType(TypeName name)
Create a
RelationType with super-type relation, or return a pre-existing RelationType,
with the specified name. |
<V> ResourceType<V> |
GraknGraph.putResourceType(TypeName name,
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 name and data type. |
<V> ResourceType<V> |
GraknGraph.putResourceTypeUnique(TypeName name,
ResourceType.DataType<V> dataType)
Create a unique
ResourceType with super-type resource, or return a pre-existing
unique ResourceType, with the specified name and data type. |
RoleType |
GraknGraph.putRoleType(TypeName name)
|
RuleType |
GraknGraph.putRuleType(TypeName name)
|
| Modifier and Type | Method and Description |
|---|---|
TypeName |
Type.getName()
Returns the name of this Type.
|
TypeName |
TypeName.map(java.util.function.Function<String,String> mapper)
Rename a type name (does not modify the original
TypeName) |
static TypeName |
TypeName.of(String value) |
| Modifier and Type | Method and Description |
|---|---|
int |
TypeName.compareTo(TypeName o) |
| Modifier and Type | Field and Description |
|---|---|
static TypeName |
SystemOntologyElements.CREATED_BY |
static TypeName |
SystemOntologyElements.ENGINE_ID |
static TypeName |
SystemOntologyElements.RECUR_INTERVAL |
static TypeName |
SystemOntologyElements.RECURRING |
static TypeName |
SystemOntologyElements.RUN_AT |
static TypeName |
SystemOntologyElements.SCHEDULED_TASK |
static TypeName |
SystemOntologyElements.SERIALISED_TASK |
static TypeName |
SystemOntologyElements.STACK_TRACE |
static TypeName |
SystemOntologyElements.STATUS |
static TypeName |
SystemOntologyElements.STATUS_CHANGE_BY |
static TypeName |
SystemOntologyElements.STATUS_CHANGE_TIME |
static TypeName |
SystemOntologyElements.TASK_CHECKPOINT |
static TypeName |
SystemOntologyElements.TASK_CLASS_NAME |
static TypeName |
SystemOntologyElements.TASK_CONFIGURATION |
static TypeName |
SystemOntologyElements.TASK_EXCEPTION |
static TypeName |
SystemOntologyElements.TASK_ID |
| Modifier and Type | Field and Description |
|---|---|
static TypeName |
SystemKeyspace.KEYSPACE_ENTITY |
static TypeName |
SystemKeyspace.KEYSPACE_RESOURCE |
static TypeName |
SystemKeyspace.SYSTEM_VERSION |
| Modifier and Type | Method and Description |
|---|---|
<T extends Type> |
AbstractGraknGraph.getType(TypeName name) |
EntityType |
AbstractGraknGraph.putEntityType(TypeName name) |
RelationType |
AbstractGraknGraph.putRelationType(TypeName name) |
<V> ResourceType<V> |
AbstractGraknGraph.putResourceType(TypeName name,
ResourceType.DataType<V> dataType) |
<V> ResourceType<V> |
AbstractGraknGraph.putResourceTypeUnique(TypeName name,
ResourceType.DataType<V> dataType) |
RoleType |
AbstractGraknGraph.putRoleType(TypeName name) |
RuleType |
AbstractGraknGraph.putRuleType(TypeName name) |
| Modifier and Type | Method and Description |
|---|---|
Var |
Var.has(TypeName type,
Var var)
the variable must have a resource or name of the given type that matches the given atom
|
static Var |
Graql.name(TypeName name) |
Var |
Var.name(TypeName name) |
| Modifier and Type | Method and Description |
|---|---|
ComputeQuery<T> |
ComputeQuery.in(Collection<TypeName> subTypeNames) |
| Modifier and Type | Method and Description |
|---|---|
Optional<TypeName> |
VarAdmin.getTypeName() |
Set<TypeName> |
VarAdmin.getTypeNames() |
| Modifier and Type | Method and Description |
|---|---|
SumQuery |
SumQuery.in(Collection<TypeName> subTypeNames) |
StdQuery |
StdQuery.in(Collection<TypeName> subTypeNames) |
PathQuery |
PathQuery.in(Collection<TypeName> subTypeNames) |
MinQuery |
MinQuery.in(Collection<TypeName> subTypeNames) |
MedianQuery |
MedianQuery.in(Collection<TypeName> subTypeNames) |
MeanQuery |
MeanQuery.in(Collection<TypeName> subTypeNames) |
MaxQuery |
MaxQuery.in(Collection<TypeName> subTypeNames) |
DegreeQuery |
DegreeQuery.in(Collection<TypeName> subTypeNames) |
CountQuery |
CountQuery.in(Collection<TypeName> subTypeNames) |
ClusterQuery<T> |
ClusterQuery.in(Collection<TypeName> subTypeNames) |
SumQuery |
SumQuery.of(Collection<TypeName> resourceTypeNames) |
StdQuery |
StdQuery.of(Collection<TypeName> resourceTypeNames) |
MinQuery |
MinQuery.of(Collection<TypeName> resourceTypeNames) |
MedianQuery |
MedianQuery.of(Collection<TypeName> resourceTypeNames) |
MeanQuery |
MeanQuery.of(Collection<TypeName> resourceTypeNames) |
MaxQuery |
MaxQuery.of(Collection<TypeName> resourceTypeNames) |
DegreeQuery |
DegreeQuery.of(Collection<TypeName> ofTypeNames) |
| Modifier and Type | Field and Description |
|---|---|
static Set<TypeName> |
CommonOLAP.analyticsElements
The types that are reserved by analytics and are not "seen" by analytics.
|
| Constructor and Description |
|---|
ClusterMemberMapReduce(Set<TypeName> selectedTypes,
String clusterLabel) |
ClusterMemberMapReduce(Set<TypeName> selectedTypes,
String clusterLabel,
Long clusterSize) |
ClusterSizeMapReduce(Set<TypeName> selectedTypes,
String clusterLabel) |
ClusterSizeMapReduce(Set<TypeName> selectedTypes,
String clusterLabel,
Long clusterSize) |
ConnectedComponentVertexProgram(Set<TypeName> selectedTypes) |
CountMapReduce(Set<TypeName> types) |
DegreeDistributionMapReduce(Set<TypeName> selectedTypes) |
DegreeVertexProgram(Set<TypeName> types,
Set<TypeName> ofTypeNames) |
DegreeVertexProgram(Set<TypeName> types,
Set<TypeName> ofTypeNames) |
GraknMapReduce(Set<TypeName> selectedTypes) |
GraknMapReduce(Set<TypeName> selectedTypes,
String resourceDataType) |
MaxMapReduce(Set<TypeName> selectedTypes,
String resourceDataType) |
MeanMapReduce(Set<TypeName> selectedTypes,
String resourceDataType) |
MedianVertexProgram(Set<TypeName> selectedTypes,
Set<TypeName> statisticsResourceTypes,
String resourceDataType) |
MedianVertexProgram(Set<TypeName> selectedTypes,
Set<TypeName> statisticsResourceTypes,
String resourceDataType) |
MinMapReduce(Set<TypeName> selectedTypes,
String resourceDataType) |
ShortestPathVertexProgram(Set<TypeName> selectedTypes,
ConceptId sourceId,
ConceptId destinationId) |
StdMapReduce(Set<TypeName> selectedTypes,
String resourceDataType) |
SumMapReduce(Set<TypeName> selectedTypes,
String resourceDataType) |
| Modifier and Type | Method and Description |
|---|---|
void |
ShortcutTraversal.addRel(TypeName roletype,
VarName roleplayer) |
void |
ShortcutTraversal.setType(TypeName type) |
| Modifier and Type | Method and Description |
|---|---|
static Fragment |
Fragments.name(VarName start,
TypeName name) |
| Modifier and Type | Method and Description |
|---|---|
static Fragment |
Fragments.shortcut(Optional<TypeName> relationType,
Optional<TypeName> roleStart,
Optional<TypeName> roleEnd,
VarName start,
VarName end) |
static Fragment |
Fragments.shortcut(Optional<TypeName> relationType,
Optional<TypeName> roleStart,
Optional<TypeName> roleEnd,
VarName start,
VarName end) |
static Fragment |
Fragments.shortcut(Optional<TypeName> relationType,
Optional<TypeName> roleStart,
Optional<TypeName> roleEnd,
VarName start,
VarName end) |
| Modifier and Type | Method and Description |
|---|---|
TypeName |
NameProperty.getNameValue() |
| Modifier and Type | Method and Description |
|---|---|
Optional<TypeName> |
HasResourceProperty.getType() |
| Constructor and Description |
|---|
HasResourceProperty(TypeName resourceType,
VarAdmin resource) |
NameProperty(TypeName name) |
| Modifier and Type | Method and Description |
|---|---|
static Rule |
Utility.createPropertyChainRule(RelationType relation,
TypeName fromRoleName,
TypeName toRoleName,
LinkedHashMap<RelationType,javafx.util.Pair<TypeName,TypeName>> chain,
GraknGraph graph)
creates rule R(fromRole: x, toRole: xm) :- R1(fromRole: x, ...), , R2, ...
|
static Rule |
Utility.createTransitiveRule(RelationType relType,
TypeName fromRoleName,
TypeName toRoleName,
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,
TypeName fromRoleName,
TypeName toRoleName,
LinkedHashMap<RelationType,javafx.util.Pair<TypeName,TypeName>> chain,
GraknGraph graph)
creates rule R(fromRole: x, toRole: xm) :- R1(fromRole: x, ...), , R2, ...
|
static Rule |
Utility.createPropertyChainRule(RelationType relation,
TypeName fromRoleName,
TypeName toRoleName,
LinkedHashMap<RelationType,javafx.util.Pair<TypeName,TypeName>> chain,
GraknGraph graph)
creates rule R(fromRole: x, toRole: xm) :- R1(fromRole: x, ...), , R2, ...
|
static Rule |
Utility.createSubPropertyRule(RelationType parent,
RelationType child,
Map<TypeName,TypeName> roleMappings,
GraknGraph graph)
creates rule parent :- child
|
static Rule |
Utility.createSubPropertyRule(RelationType parent,
RelationType child,
Map<TypeName,TypeName> roleMappings,
GraknGraph graph)
creates rule parent :- child
|
| Modifier and Type | Method and Description |
|---|---|
static String |
StringConverter.typeNameToString(TypeName typeName) |
| Modifier and Type | Method and Description |
|---|---|
default TypeName |
Namer.entityRole(TypeName resourceTypeName)
The name of the entity role type in an entity-role relation representing an OWL data property
|
default TypeName |
Namer.objectRole(TypeName relationName)
Make a name for the role type corresponding to the object (i.e.
|
default TypeName |
Namer.resourceRelation(TypeName resourceTypeName)
Make a name for a resource relation type representing the value of an OWL data property.
|
default TypeName |
Namer.resourceRole(TypeName resourceTypeName)
Make a name for a resource role player representing the value of an OWL data property.
|
default TypeName |
Namer.subjectRole(TypeName relationName)
Make a name for the role type corresponding to the subject (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
default TypeName |
Namer.entityRole(TypeName resourceTypeName)
The name of the entity role type in an entity-role relation representing an OWL data property
|
default TypeName |
Namer.objectRole(TypeName relationName)
Make a name for the role type corresponding to the object (i.e.
|
default TypeName |
Namer.resourceRelation(TypeName resourceTypeName)
Make a name for a resource relation type representing the value of an OWL data property.
|
default TypeName |
Namer.resourceRole(TypeName resourceTypeName)
Make a name for a resource role player representing the value of an OWL data property.
|
default TypeName |
Namer.subjectRole(TypeName relationName)
Make a name for the role type corresponding to the subject (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
TypeName |
Schema.MetaSchema.getName() |
TypeName |
Schema.Analytics.getName() |
TypeName |
Schema.Resource.getName(TypeName resourceType) |
| Modifier and Type | Method and Description |
|---|---|
TypeName |
Schema.Resource.getName(TypeName resourceType) |
static boolean |
Schema.MetaSchema.isMetaName(TypeName name) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.