| Package | Description |
|---|---|
| ai.grakn |
A core package for connecting to a Grakn knowledge graph.
|
| ai.grakn.concept |
Provides the meta-ontology interfaces and definitions.
|
| ai.grakn.exception |
Grakn exception definitions.
|
| ai.grakn.graph.admin | |
| ai.grakn.graph.internal |
Internal implementation of Grakn graph.
|
| ai.grakn.graql.internal.printer | |
| ai.grakn.migration.owl |
Implements migration of OWL into Grakn.
|
| ai.grakn.test.graphs |
| Modifier and Type | Method and Description |
|---|---|
<V> ResourceType<V> |
GraknGraph.getResourceType(String label)
Get the Resource Type with the label provided, if it exists.
|
<V> ResourceType<V> |
GraknGraph.putResourceType(Label label,
ResourceType.DataType<V> dataType)
Create a new non-unique
ResourceType with super-type resource, or return a pre-existing
non-unique ResourceType, with the specified label and data type. |
<V> ResourceType<V> |
GraknGraph.putResourceType(String label,
ResourceType.DataType<V> dataType)
Create a new non-unique
ResourceType with super-type resource, or return a pre-existing
non-unique ResourceType, with the specified label and data type. |
| Modifier and Type | Method and Description |
|---|---|
<D> ResourceType<D> |
Concept.asResourceType()
|
ResourceType<D> |
ResourceType.deletePlays(Role role)
Removes the Role to prevent instances of this ResourceType from playing it.
|
ResourceType<D> |
ResourceType.deleteScope(Thing scope)
Delete the scope specified.
|
ResourceType<D> |
ResourceType.key(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked in a strictly one-to-one mapping.
|
ResourceType<D> |
ResourceType.plays(Role role)
Sets the Role which instances of this ResourceType may play.
|
ResourceType<D> |
ResourceType.resource(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked.
|
ResourceType<D> |
ResourceType.scope(Thing scope)
Classifies the type to a specific scope.
|
ResourceType<D> |
ResourceType.setAbstract(Boolean isAbstract)
Sets the ResourceType to be abstract - which prevents it from having any instances.
|
ResourceType<D> |
ResourceType.setRegex(String regex)
Set the regular expression that instances of the ResourceType must conform to.
|
ResourceType<D> |
ResourceType.sub(ResourceType<D> type)
Adds another subtype to this type
|
ResourceType<D> |
ResourceType.sup()
Returns the supertype of this ResourceType.
|
ResourceType<D> |
ResourceType.sup(ResourceType<D> type)
Sets the supertype of the ResourceType to be the ResourceType specified.
|
ResourceType<D> |
Resource.type()
Retrieves the type of the Resource, that is, the ResourceType of which this resource is an Thing.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<ResourceType> |
Type.keys() |
Collection<ResourceType> |
Type.resources() |
Collection<ResourceType<D>> |
ResourceType.subs()
Returns a collection of subtypes of this ResourceType.
|
| Modifier and Type | Method and Description |
|---|---|
Type |
Type.key(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked in a strictly one-to-one mapping.
|
RuleType |
RuleType.key(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked in a strictly one-to-one mapping.
|
ResourceType<D> |
ResourceType.key(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked in a strictly one-to-one mapping.
|
RelationType |
RelationType.key(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked in a strictly one-to-one mapping.
|
EntityType |
EntityType.key(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked in a strictly one-to-one mapping.
|
Type |
Type.resource(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked.
|
RuleType |
RuleType.resource(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked.
|
ResourceType<D> |
ResourceType.resource(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked.
|
RelationType |
RelationType.resource(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked.
|
EntityType |
EntityType.resource(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked.
|
Collection<Resource<?>> |
Thing.resources(ResourceType... resourceTypes)
Retrieves a collection of Resources attached to this Instances
|
ResourceType<D> |
ResourceType.sub(ResourceType<D> type)
Adds another subtype to this type
|
ResourceType<D> |
ResourceType.sup(ResourceType<D> type)
Sets the supertype of the ResourceType to be the ResourceType specified.
|
| Modifier and Type | Method and Description |
|---|---|
static GraphOperationException |
GraphOperationException.duplicateHas(Type type,
ResourceType resourceType)
|
| Modifier and Type | Method and Description |
|---|---|
ResourceType |
GraknAdmin.getMetaResourceType()
Get the root of all the Resource Types.
|
| Modifier and Type | Method and Description |
|---|---|
ResourceType |
AbstractGraknGraph.getMetaResourceType() |
<V> ResourceType<V> |
AbstractGraknGraph.getResourceType(String label) |
<V> ResourceType<V> |
AbstractGraknGraph.putResourceType(Label label,
ResourceType.DataType<V> dataType) |
<V> ResourceType<V> |
AbstractGraknGraph.putResourceType(String label,
ResourceType.DataType<V> dataType) |
| Modifier and Type | Method and Description |
|---|---|
static Printer<java.util.function.Function<StringBuilder,StringBuilder>> |
Printers.graql(boolean colorize,
ResourceType... resourceTypes) |
| Modifier and Type | Method and Description |
|---|---|
ResourceType<String> |
OWLMigrator.owlIriResource() |
ResourceType<?> |
OWLMigrator.resourceType(org.semanticweb.owlapi.model.OWLDataProperty property) |
| Modifier and Type | Method and Description |
|---|---|
Role |
OWLMigrator.entityRole(EntityType entityType,
ResourceType<?> resourceType) |
<T> Entity |
OWLMigrator.getEntity(T id,
ResourceType<T> rtype) |
Role |
OWLMigrator.resourceRole(ResourceType<?> resourceType) |
| Modifier and Type | Method and Description |
|---|---|
static <T> void |
TestGraph.putResource(Thing thing,
ResourceType<T> resourceType,
T resource) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.