public abstract class Link extends Object implements Jacksonisable
A helper class used to represent a link between different wrapper Concept
| Constructor and Description |
|---|
Link() |
| Modifier and Type | Method and Description |
|---|---|
static Link |
create(ai.grakn.concept.SchemaConcept schemaConcept) |
static Link |
create(String id) |
static Link |
create(ai.grakn.concept.Thing thing) |
static Link |
createAttributesLink(ai.grakn.concept.Thing thing)
Creates a link to fetch all the
EmbeddedAttributes of a Thing |
static Link |
createAttributesLink(ai.grakn.concept.Type type)
Creates a link to get all the attributes of a
Type |
static Link |
createInstanceLink(ai.grakn.concept.Type type)
Creates a link to fetch the instances of a
Type |
static Link |
createInstanceLink(ai.grakn.concept.Type type,
int offset,
int limit)
Creates a link to get all the paged instances of a
Type |
static Link |
createInstancesLink(ai.grakn.concept.Type type)
Creates a link to get all the instances of a
Type |
static Link |
createKeysLink(ai.grakn.concept.Thing thing)
Creates a link to fetch all the
EmbeddedAttributes of a Thing |
static Link |
createKeysLink(ai.grakn.concept.Type type)
Creates a link to get all the keys of a
Type |
static Link |
createPlaysLink(ai.grakn.concept.Type type)
Creates a link to get all the plays of a
Type |
static Link |
createRelationshipsLink(ai.grakn.concept.Thing thing)
Creates a link to fetch all the Relationship)s of a {@link Thing}
|
static Link |
createSubsLink(ai.grakn.concept.SchemaConcept schemaConcept)
Creates a link to get all the subs of a
SchemaConcept |
abstract String |
id() |
public abstract String id()
public static Link create(ai.grakn.concept.Thing thing)
public static Link create(ai.grakn.concept.SchemaConcept schemaConcept)
public static Link createAttributesLink(ai.grakn.concept.Thing thing)
EmbeddedAttributes of a Thingpublic static Link createKeysLink(ai.grakn.concept.Thing thing)
EmbeddedAttributes of a Thingpublic static Link createRelationshipsLink(ai.grakn.concept.Thing thing)
public static Link createInstanceLink(ai.grakn.concept.Type type)
Typepublic static Link createInstanceLink(ai.grakn.concept.Type type, int offset, int limit)
Typepublic static Link createSubsLink(ai.grakn.concept.SchemaConcept schemaConcept)
SchemaConceptpublic static Link createPlaysLink(ai.grakn.concept.Type type)
Typepublic static Link createAttributesLink(ai.grakn.concept.Type type)
Typepublic static Link createKeysLink(ai.grakn.concept.Type type)
TypeCopyright © 2017 Grakn Labs Ltd. All rights reserved.