public abstract class RemoteRelationship extends RemoteConcept<SomeThing> implements Relationship
Relationship| Constructor and Description |
|---|
RemoteRelationship() |
| Modifier and Type | Method and Description |
|---|---|
Relationship |
assign(Role role,
Thing player) |
java.util.stream.Stream<Attribute<?>> |
attributes(AttributeType... attributeTypes) |
SomeThing |
has(Attribute attribute) |
boolean |
isInferred() |
java.util.stream.Stream<Attribute<?>> |
keys(AttributeType... attributeTypes) |
java.util.stream.Stream<Relationship> |
relationships(Role... roles) |
Relationship |
relhas(Attribute attribute)
Deprecated.
|
java.util.stream.Stream<Thing> |
rolePlayers(Role... roles) |
Map<Role,Set<Thing>> |
rolePlayersMap() |
java.util.stream.Stream<Role> |
roles() |
SomeType |
type() |
void |
unassign(Role role,
Thing player) |
SomeThing |
unhas(Attribute attribute) |
conceptStream, delete, id, isDeleted, keyspace, of, runMethod, runMethodclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitasRelationship, has, isRelationship, type, unhasasThing, attributes, isInferred, isThing, keys, relationships, relhas, rolesasAttribute, asAttributeType, asEntity, asEntityType, asRelationshipType, asRole, asRule, asSchemaConcept, asType, delete, id, isAttribute, isAttributeType, isDeleted, isEntity, isEntityType, isRelationshipType, isRole, isRule, isSchemaConcept, isType, keyspacepublic final Map<Role,Set<Thing>> rolePlayersMap()
rolePlayersMap in interface Relationshippublic final java.util.stream.Stream<Thing> rolePlayers(Role... roles)
rolePlayers in interface Relationshippublic final Relationship assign(Role role, Thing player)
assign in interface Relationshippublic final void unassign(Role role, Thing player)
unassign in interface Relationshippublic final boolean isInferred()
isInferred in interface Thingpublic final java.util.stream.Stream<Attribute<?>> keys(AttributeType... attributeTypes)
public final java.util.stream.Stream<Attribute<?>> attributes(AttributeType... attributeTypes)
attributes in interface Thingpublic final java.util.stream.Stream<Relationship> relationships(Role... roles)
relationships in interface Thingpublic final java.util.stream.Stream<Role> roles()
@Deprecated public final Relationship relhas(Attribute attribute)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.