| Package | Description |
|---|---|
| ai.grakn | |
| ai.grakn.concept | |
| ai.grakn.exception | |
| ai.grakn.graph.internal |
| Modifier and Type | Method and Description |
|---|---|
<V> Collection<Resource<V>> |
GraknGraph.getResourcesByValue(V value)
Get the Resources holding the value provided, if they exist.
|
| Modifier and Type | Method and Description |
|---|---|
<D> Resource<D> |
Concept.asResource()
Return as a Resource if the Concept is a Resource Instance.
|
<V> Resource<V> |
ResourceType.getResource(V value)
Get the Resource with the value provided, and its type, or return NULL
|
Resource<D> |
ResourceType.putResource(D value)
Set the value for the Resource, unique to its type.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<Resource<D>> |
ResourceType.instances()
Returns a collection of all Resource Instances of this ResourceType.
|
Collection<Resource<?>> |
Instance.resources(ResourceType... resourceTypes)
Retrieves a collection of Resources attached to this Instances
|
| Modifier and Type | Method and Description |
|---|---|
Relation |
Instance.hasResource(Resource resource)
Creates a relation from this instance to the provided resource.
|
| Constructor and Description |
|---|
ConceptNotUniqueException(Resource resource,
Instance instance) |
| Modifier and Type | Method and Description |
|---|---|
<V> Collection<Resource<V>> |
AbstractGraknGraph.getResourcesByValue(V value) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.