| 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.admin |
A collection of interfaces offering more behaviour on Graql objects.
|
| ai.grakn.graql.internal.query.match | |
| ai.grakn.graql.internal.reasoner.atom | |
| ai.grakn.graql.internal.reasoner.atom.binary | |
| ai.grakn.graql.internal.reasoner.query | |
| ai.grakn.graql.internal.reasoner.utils | |
| ai.grakn.graql.internal.reasoner.utils.conversion | |
| ai.grakn.migration.export |
Implements export of data and ontology from a Grakn graph into Graql statements.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends OntologyConcept> |
GraknGraph.getOntologyConcept(Label label)
Get the
OntologyConcept with the label provided, if it exists. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
EntityType
Ontology element used to represent categories.
|
interface |
RelationType
An ontological element which categorises how
Things may relate to each other. |
interface |
ResourceType<D>
An ontological element which models and categorises the various
Resource in the graph. |
interface |
Role
An
OntologyConcept which defines a role which can be played in a RelationType |
interface |
RuleType
An ontological element used to model and categorise different types of
Rule. |
interface |
Type
A Type represents any ontological element in the graph.
|
| Modifier and Type | Method and Description |
|---|---|
OntologyConcept |
Concept.asOntologyConcept()
|
OntologyConcept |
OntologyConcept.sup() |
| Modifier and Type | Method and Description |
|---|---|
Collection<? extends OntologyConcept> |
OntologyConcept.subs()
Get all indirect subs of this concept.
|
| Modifier and Type | Method and Description |
|---|---|
static GraqlQueryException |
GraqlQueryException.insertAbstractOnNonType(OntologyConcept concept) |
static GraqlQueryException |
GraqlQueryException.insertMetaType(Label label,
OntologyConcept ontologyConcept) |
static GraphOperationException |
GraphOperationException.loopCreated(OntologyConcept type,
OntologyConcept superElement)
Thrown when setting
superType as the super type of type and a loop is created |
| Modifier and Type | Method and Description |
|---|---|
OntologyConcept |
GraknAdmin.getMetaConcept()
Get the root of all Types.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends OntologyConcept> |
AbstractGraknGraph.getOntologyConcept(Label label) |
| Modifier and Type | Method and Description |
|---|---|
OntologyConcept |
AbstractGraknGraph.getMetaConcept() |
| Modifier and Type | Method and Description |
|---|---|
Set<OntologyConcept> |
MatchQueryAdmin.getOntologyConcepts() |
Set<OntologyConcept> |
InsertQueryAdmin.getOntologyConcepts() |
Set<OntologyConcept> |
MatchQueryAdmin.getOntologyConcepts(GraknGraph graph) |
Map<Var,OntologyConcept> |
ReasonerQuery.getVarOntologyConceptMap() |
| Modifier and Type | Method and Description |
|---|---|
Set<OntologyConcept> |
MatchQueryBase.getOntologyConcepts() |
Set<OntologyConcept> |
MatchQueryBase.getOntologyConcepts(GraknGraph graph) |
| Modifier and Type | Method and Description |
|---|---|
abstract OntologyConcept |
Atom.getOntologyConcept() |
| Modifier and Type | Method and Description |
|---|---|
OntologyConcept |
TypeAtom.getOntologyConcept() |
OntologyConcept |
Binary.getOntologyConcept() |
| Modifier and Type | Method and Description |
|---|---|
RelationAtom |
RelationAtom.addType(OntologyConcept type) |
| Modifier and Type | Method and Description |
|---|---|
Map<Var,OntologyConcept> |
ReasonerQueryImpl.getVarOntologyConceptMap() |
| Modifier and Type | Method and Description |
|---|---|
static <T extends OntologyConcept> |
ReasonerUtils.getCompatibleRelationTypesWithRoles(Set<T> types,
OntologyConceptConverter<T> ontologyConceptConverter)
compute the map of compatible relation types for given types (intersection of allowed sets of relation types for each entry type)
and compatible role types
|
static <T extends OntologyConcept> |
ReasonerUtils.getOntologyConcepts(Set<T> ontologyConcepts) |
| Modifier and Type | Method and Description |
|---|---|
static Set<OntologyConcept> |
ReasonerUtils.getSupers(OntologyConcept ontologyConcept) |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
ReasonerUtils.checkCompatible(OntologyConcept parent,
OntologyConcept child) |
static boolean |
ReasonerUtils.checkDisjoint(OntologyConcept parent,
OntologyConcept child) |
static Set<OntologyConcept> |
ReasonerUtils.getSupers(OntologyConcept ontologyConcept) |
| Modifier and Type | Interface and Description |
|---|---|
interface |
OntologyConceptConverter<T extends OntologyConcept>
OntologyConceptConverter interface for conversion between compatible
OntologyConcept. |
| Modifier and Type | Method and Description |
|---|---|
com.google.common.collect.Multimap<RelationType,Role> |
OntologyConceptConverterImpl.toRelationMultimap(OntologyConcept ontologyConcept) |
| Modifier and Type | Method and Description |
|---|---|
static VarPattern |
OntologyConceptMapper.map(OntologyConcept ontologyConcept)
Map a Type to the Graql string representation
|
Copyright © 2017 Grakn Labs Ltd. All rights reserved.