public class RelationReified extends Object
Encapsulates The Relation as a VertexElement
This wraps up a Relation as a VertexElement. It is used to represent any Relation which
has been reified.
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)
public Collection<Relation> relations(Role... roles)
public Collection<Role> plays()
public T resource(Resource resource)
public V type()
protected T type(ai.grakn.graph.internal.TypeImpl type)
type - The type of this conceptpublic ai.grakn.graph.internal.VertexElement vertex()
public ConceptId getId()
public 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.