| Package | Description |
|---|---|
| ai.grakn.concept |
Provides the meta-ontology interfaces and definitions.
|
| Modifier and Type | Method and Description |
|---|---|
Relation |
RelationType.addRelation()
Creates and returns a new
Relation instance, whose direct type will be this type. |
Relation |
Relation.addRolePlayer(RoleType roleType,
Instance instance)
Expands this Relation to include a new role player which is playing a specific role.
|
Relation |
Concept.asRelation()
Return as a Relation if the Concept is a Relation Instance.
|
Relation |
Relation.resource(Resource resource)
Creates a relation from this instance to the provided resource.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Relation> |
RelationType.instances()
Retrieve all the Relation instances of this RelationType
|
Collection<Relation> |
Instance.relations(RoleType... roleTypes)
Retrieves a Relations which the Instance takes part in, which may optionally be narrowed to a particular set
according to the RoleType you are interested in.
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.