| Modifier and Type | Method and Description |
|---|---|
void |
addRolePlayer(Role role,
Thing thing) |
Map<Role,Set<Thing>> |
allRolePlayers() |
int |
compareTo(Concept o) |
void |
delete()
|
void |
delete()
Deletes the concept as an Thing
|
boolean |
equals(Object object) |
static ai.grakn.graph.internal.ConceptVertex |
from(Concept concept) |
ConceptId |
getId() |
ConceptId |
getId()
Get the unique ID associated with the Concept.
|
String |
getIndex()
This index is used by concepts such as casting and relations to speed up internal lookups
|
int |
hashCode() |
String |
innerToString() |
boolean |
isReified() |
Collection<Role> |
plays()
Determine the Role Types that this Thing may play.
|
RelationReified |
reify() |
Collection<Relation> |
relations(Role... roles)
Retrieves a Relations which the Thing takes part in, which may optionally be narrowed to a particular set
according to the Role you are interested in.
|
T |
resource(Resource resource)
Creates a relation from this instance to the provided resource.
|
Collection<Resource<?>> |
resources(ResourceType... resourceTypes)
Retrieves a collection of Resources attached to this Instances
|
Collection<Thing> |
rolePlayers(Role... roles) |
String |
toString() |
RelationType |
type() |
V |
type()
Return the Type of the Concept.
|
protected T |
type(ai.grakn.graph.internal.TypeImpl type) |
ai.grakn.graph.internal.VertexElement |
vertex() |
clone, finalize, getClass, notify, notifyAll, wait, wait, waitasEntity, asEntityType, asOntologyConcept, asRelation, asRelationType, asResource, asResourceType, asRole, asRule, asRuleType, asType, getId, isEntity, isEntityType, isOntologyConcept, isRelation, isRelationType, isResource, isResourceType, isRole, isRule, isRuleType, isTypecompareTopublic Collection<Thing> rolePlayers(Role... roles)
public String innerToString()
public RelationReified reify()
public boolean isReified()
Relation has been reified meaning it can support n-ary relationshipspublic RelationType type()
RelationType of the Relationpublic void delete()
public void delete()
public String getIndex()
public Collection<Resource<?>> resources(ResourceType... resourceTypes)
Thingpublic Collection<Relation> relations(Role... roles)
Thingpublic Collection<Role> plays()
Thingpublic T resource(Resource resource)
public V type()
Thingprotected T type(ai.grakn.graph.internal.TypeImpl type)
type - The type of this conceptpublic ai.grakn.graph.internal.VertexElement vertex()
public ConceptId getId()
Conceptpublic int compareTo(Concept o)
compareTo in interface Comparable<Concept>public static ai.grakn.graph.internal.ConceptVertex from(Concept concept)
Copyright © 2017 Grakn Labs Ltd. All rights reserved.