T - The leaf interface of the object concept which extends Thing.
For example Entity or Relationship.V - The type of the concept which extends Type of the concept.
For example EntityType or RelationshipTypepublic abstract class ThingImpl<T extends Thing,V extends Type> extends ConceptImpl implements Thing
A data instance in the graph belonging to a specific Type
Instances represent data in the graph.
Every instance belongs to a Type which serves as a way of categorising them.
Instances can relate to one another via Relationship
| Modifier and Type | Method and Description |
|---|---|
T |
attributeInferred(Attribute attribute) |
java.util.stream.Stream<Attribute<?>> |
attributes(AttributeType... attributeTypes) |
void |
delete()
Deletes the concept as an Thing
|
String |
getIndex()
This index is used by concepts such as casting and relations to speed up internal lookups
|
T |
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) |
java.util.stream.Stream<Role> |
roles() |
V |
type() |
T |
unhas(Attribute attribute) |
baseType, caches, createShard, currentShard, deleteNode, equals, hashCode, id, isDeleted, keyspace, shardCount, shards, toString, vertexclone, finalize, getClass, notify, notifyAll, wait, wait, waitasAttribute, asAttributeType, asEntity, asEntityType, asRelationship, asRelationshipType, asRole, asRule, asSchemaConcept, asType, id, isAttribute, isAttributeType, isDeleted, isEntity, isEntityType, isRelationship, isRelationshipType, isRole, isRule, isSchemaConcept, isType, keyspacefromfrom, registerCache, txCacheClear, txCacheFlushpublic boolean isInferred()
isInferred in interface Thingpublic void delete()
delete in interface Conceptdelete in class ConceptImplpublic String getIndex()
public java.util.stream.Stream<Attribute<?>> attributes(AttributeType... attributeTypes)
attributes in interface Thingpublic java.util.stream.Stream<Attribute<?>> keys(AttributeType... attributeTypes)
public java.util.stream.Stream<Relationship> relationships(Role... roles)
relationships in interface Thingroles - An optional parameter which allows you to specify the role of the relations you wish to retrieve.public java.util.stream.Stream<Role> roles()
public Relationship relhas(Attribute attribute)
Copyright © 2018 Grakn Labs Ltd. All rights reserved.