| 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(Role role,
Thing thing)
Expands this Relation to include a new role player which is playing a specific role.
|
Relation |
Concept.asRelation()
|
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> |
Thing.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.
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.