public class RelationshipTypeImpl extends TypeImpl<RelationshipType,Relationship> implements RelationshipType
An ontological element which categorises how instances may relate to each other.
A relation type defines how Type may relate to one another.
They are used to model and categorise n-ary relationships.
| Modifier and Type | Method and Description |
|---|---|
Relationship |
addRelationship() |
Relationship |
addRelationship(boolean isInferred) |
Relationship |
addRelationshipInferred() |
static RelationshipTypeImpl |
create(VertexElement vertexElement,
RelationshipType type) |
void |
delete()
Deletes the concept as type
|
RelationshipType |
deleteRelates(Role role) |
static RelationshipTypeImpl |
from(RelationshipType relationshipType) |
static RelationshipTypeImpl |
get(VertexElement vertexElement) |
java.util.stream.Stream<Relationship> |
instancesDirect() |
java.util.stream.Stream<Role> |
relates() |
RelationshipType |
relates(Role role) |
attribute, attributes, deleteAttribute, deleteKey, deletePlays, directPlays, from, instances, isAbstract, key, keys, plays, plays, plays, property, setAbstractfrom, getLabel, getLabelId, getRulesOfConclusion, getRulesOfHypothesis, innerToString, isImplicit, setLabel, sub, subs, sup, sup, supsbaseType, caches, createShard, currentShard, deleteNode, equals, getId, hashCode, isDeleted, keyspace, shardCount, shards, toString, vertexclone, finalize, getClass, notify, notifyAll, wait, wait, waitasRelationshipType, attribute, deleteAttribute, deleteKey, deletePlays, instances, isRelationshipType, key, plays, setAbstract, setLabel, sub, subs, sup, sup, supsasType, attributes, isAbstract, isType, keys, playsasSchemaConcept, getLabel, getLabelId, getRulesOfConclusion, getRulesOfHypothesis, isImplicit, isSchemaConceptasAttribute, asAttributeType, asEntity, asEntityType, asRelationship, asRole, asRule, asThing, getId, isAttribute, isAttributeType, isDeleted, isEntity, isEntityType, isRelationship, isRole, isRule, isThing, keyspacefromfrom, registerCache, txCacheClear, txCacheFlushpublic static RelationshipTypeImpl get(VertexElement vertexElement)
public static RelationshipTypeImpl create(VertexElement vertexElement, RelationshipType type)
public Relationship addRelationship()
addRelationship in interface RelationshipTypepublic Relationship addRelationshipInferred()
public Relationship addRelationship(boolean isInferred)
public java.util.stream.Stream<Role> relates()
relates in interface RelationshipTypepublic RelationshipType relates(Role role)
relates in interface RelationshipTypepublic RelationshipType deleteRelates(Role role)
deleteRelates in interface RelationshipTyperole - The Role to delete from this RelationshipType.Relationship Type itself.public void delete()
TypeImpldelete in interface Conceptdelete in class TypeImpl<RelationshipType,Relationship>public java.util.stream.Stream<Relationship> instancesDirect()
public static RelationshipTypeImpl from(RelationshipType relationshipType)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.