| Package | Description |
|---|---|
| ai.grakn | |
| ai.grakn.concept | |
| ai.grakn.graph.internal | |
| ai.grakn.graql.internal.printer | |
| ai.grakn.migration.owl |
| Modifier and Type | Method and Description |
|---|---|
<V> ResourceType<V> |
GraknGraph.getResourceType(String name)
Get the Resource Type with the name provided, if it exists.
|
<V> ResourceType<V> |
GraknGraph.putResourceType(String name,
ResourceType.DataType<V> dataType)
Create a Resource Type, or return a pre-existing Resource Type, with the specified name.
|
<V> ResourceType<V> |
GraknGraph.putResourceTypeUnique(String name,
ResourceType.DataType<V> dataType)
Create a unique Resource Type, or return a pre-existing Resource Type, with the specified name.
|
| Modifier and Type | Method and Description |
|---|---|
<D> ResourceType<D> |
Concept.asResourceType()
Return as a Resource Type if the Concept is a Resource Type.
|
ResourceType<D> |
ResourceType.deletePlaysRole(RoleType roleType)
Removes the RoleType to prevent instances of this ResourceType from playing it.
|
ResourceType<D> |
ResourceType.playsRole(RoleType roleType)
Sets the RoleType which instances of this ResourceType may play.
|
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.superType()
Returns the supertype of this ResourceType.
|
ResourceType<D> |
ResourceType.superType(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 Instance.
|
| Modifier and Type | Method and Description |
|---|---|
Collection<ResourceType<D>> |
ResourceType.subTypes()
Returns a collection of subtypes of this ResourceType.
|
| Modifier and Type | Method and Description |
|---|---|
RelationType |
Type.hasResource(ResourceType resourceType)
Creates a RelationType which allows this type and a resource type to be linked.
|
RelationType |
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.
|
Collection<Resource<?>> |
Instance.resources(ResourceType... resourceTypes)
Retrieves a collection of Resources attached to this Instances
|
ResourceType<D> |
ResourceType.superType(ResourceType<D> type)
Sets the supertype of the ResourceType to be the ResourceType specified.
|
| Modifier and Type | Method and Description |
|---|---|
<V> ResourceType<V> |
AbstractGraknGraph.getResourceType(String name) |
<V> ResourceType<V> |
AbstractGraknGraph.putResourceType(String name,
ResourceType.DataType<V> dataType) |
<V> ResourceType<V> |
AbstractGraknGraph.putResourceTypeUnique(String name,
ResourceType.DataType<V> dataType) |
| Modifier and Type | Method and Description |
|---|---|
static Printer<java.util.function.Function<StringBuilder,StringBuilder>> |
Printers.graql(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 |
|---|---|
RoleType |
OWLMigrator.entityRole(EntityType entityType,
ResourceType<?> resourceType) |
<T> Entity |
OWLMigrator.getEntity(T id,
ResourceType<T> rtype) |
RoleType |
OWLMigrator.resourceRole(ResourceType<?> resourceType) |
Copyright © 2016 Grakn Labs Ltd. All rights reserved.