public interface Thing extends Concept
| Modifier and Type | Method and Description |
|---|---|
default Thing |
asThing()
Deprecated.
|
default boolean |
isThing()
Deprecated.
|
Collection<Role> |
plays()
Determine the Role Types that this Thing may play.
|
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.
|
Thing |
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
|
Type |
type()
Return the Type of the Concept.
|
asEntity, asEntityType, asOntologyConcept, asRelation, asRelationType, asResource, asResourceType, asRole, asRule, asRuleType, asType, delete, getId, isEntity, isEntityType, isOntologyConcept, isRelation, isRelationType, isResource, isResourceType, isRole, isRule, isRuleType, isTypecompareTo@CheckReturnValue Type type()
@CheckReturnValue Collection<Relation> relations(Role... roles)
@CheckReturnValue Collection<Role> plays()
RoleThing resource(Resource resource)
resource - The resource to which a relationship is created@CheckReturnValue Collection<Resource<?>> resources(ResourceType... resourceTypes)
resourceTypes - Resource Types of the resources attached to this entityResource@Deprecated @CheckReturnValue default Thing asThing()
Concept@Deprecated @CheckReturnValue default boolean isThing()
ConceptCopyright © 2017 Grakn Labs Ltd. All rights reserved.