| 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 |
A collection of interfaces and factories for executing Graql queries.
|
| ai.grakn.graql.admin |
A collection of interfaces offering more behaviour on Graql objects.
|
| ai.grakn.graql.analytics |
A collection of interfaces for executing analytics queries.
|
| ai.grakn.graql.internal.hal | |
| ai.grakn.graql.internal.pattern.property | |
| ai.grakn.graql.internal.query | |
| ai.grakn.graql.internal.query.aggregate | |
| ai.grakn.graql.internal.reasoner.atom.predicate | |
| ai.grakn.graql.internal.reasoner.cache | |
| ai.grakn.migration.owl |
Implements migration of OWL into Grakn.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Concept> |
GraknGraph.getConcept(ConceptId id)
Get the
Concept with identifier provided, if it exists. |
| Modifier and Type | Interface and Description |
|---|---|
interface |
Entity
An instance of Entity Type
EntityType |
interface |
EntityType
Ontology element used to represent categories.
|
interface |
OntologyConcept
Facilitates construction of ontological elements.
|
interface |
Relation
Encapsulates relationships between
Thing |
interface |
RelationType
An ontological element which categorises how
Things may relate to each other. |
interface |
Resource<D>
Represent a literal resource in the graph.
|
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 |
Rule
A rule which defines how implicit knowledge can extracted.
|
interface |
RuleType
An ontological element used to model and categorise different types of
Rule. |
interface |
Thing
A data instance in the graph belonging to a specific
Type |
interface |
Type
A Type represents any ontological element in the graph.
|
| Modifier and Type | Method and Description |
|---|---|
static PropertyNotUniqueException |
PropertyNotUniqueException.cannotCreateProperty(Concept conceptWithValue,
Schema.VertexProperty property,
Object value)
Thrown when trying to create a concept using a unique property which is already taken.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Concept> |
GraknAdmin.buildConcept(org.apache.tinkerpop.gremlin.structure.Vertex vertex) |
<T extends Concept> |
GraknAdmin.getConcept(Schema.VertexProperty key,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Concept> |
AbstractGraknGraph.buildConcept(org.apache.tinkerpop.gremlin.structure.Vertex vertex) |
<T extends Concept> |
AbstractGraknGraph.getConcept(ConceptId id) |
<T extends Concept> |
AbstractGraknGraph.getConcept(Schema.VertexProperty key,
Object value) |
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<Concept> |
MatchQuery.get(String name) |
static Aggregate<Answer,Map<Concept,List<Answer>>> |
Graql.group(String var)
Create an aggregate that will group a query by a variable.
|
static <T> Aggregate<Answer,Map<Concept,T>> |
Graql.group(String var,
Aggregate<? super Answer,T> aggregate)
Create an aggregate that will group a query by a variable and apply the given aggregate to each group
|
| Modifier and Type | Method and Description |
|---|---|
T |
Printer.graqlString(boolean inner,
Concept concept)
Convert any concept into a builder
|
| Modifier and Type | Method and Description |
|---|---|
Concept |
Answer.get(String var) |
Concept |
Answer.get(Var var) |
Concept |
Answer.put(Var var,
Concept con) |
Concept |
Answer.remove(Var var) |
| Modifier and Type | Method and Description |
|---|---|
Set<Concept> |
Answer.concepts() |
Set<Map.Entry<Var,Concept>> |
Answer.entrySet() |
Map<Var,Concept> |
Answer.map() |
Collection<Concept> |
Answer.values() |
| Modifier and Type | Method and Description |
|---|---|
Concept |
Answer.put(Var var,
Concept con) |
| Modifier and Type | Method and Description |
|---|---|
void |
Answer.forEach(java.util.function.BiConsumer<? super Var,? super Concept> consumer) |
void |
Answer.putAll(Map<Var,Concept> m2) |
| Modifier and Type | Method and Description |
|---|---|
Optional<List<Concept>> |
PathQuery.execute()
Execute the query.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
HALBuilder.HALExploreConcept(Concept concept,
String keyspace,
int offset,
int limit) |
static String |
HALBuilder.renderHALConceptData(Concept concept,
int separationDegree,
String keyspace,
int offset,
int limit) |
| Constructor and Description |
|---|
HALConceptData(Concept concept,
int separationDegree,
boolean embedTypeParam,
Set<Label> typesInQuery,
String keyspace,
int offset,
int limit) |
| Modifier and Type | Method and Description |
|---|---|
void |
VarPropertyInternal.delete(GraknGraph graph,
Concept concept)
Delete the given property from the graph, if possible.
|
void |
RelatesProperty.delete(GraknGraph graph,
Concept concept) |
void |
PlaysProperty.delete(GraknGraph graph,
Concept concept) |
void |
HasScopeProperty.delete(GraknGraph graph,
Concept concept) |
void |
HasResourceProperty.delete(GraknGraph graph,
Concept concept) |
void |
VarPropertyInternal.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept)
Insert the given property into the graph, if possible.
|
void |
SubProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
RuleProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
RelationProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
RelatesProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
RegexProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
PlaysProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
IsaProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
IsAbstractProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
HasScopeProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
HasResourceTypeProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
HasResourceProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
| Modifier and Type | Method and Description |
|---|---|
Concept |
QueryAnswer.get(String var) |
Concept |
QueryAnswer.get(Var var) |
Concept |
InsertQueryExecutor.getConcept(VarPatternAdmin var) |
Concept |
QueryAnswer.put(Var var,
Concept con) |
Concept |
QueryAnswer.remove(Var var) |
| Modifier and Type | Method and Description |
|---|---|
Set<Concept> |
QueryAnswer.concepts() |
Set<Map.Entry<Var,Concept>> |
QueryAnswer.entrySet() |
Map<Var,Concept> |
QueryAnswer.map() |
Collection<Concept> |
QueryAnswer.values() |
| Modifier and Type | Method and Description |
|---|---|
Concept |
QueryAnswer.put(Var var,
Concept con) |
| Modifier and Type | Method and Description |
|---|---|
void |
QueryAnswer.forEach(java.util.function.BiConsumer<? super Var,? super Concept> consumer) |
void |
QueryAnswer.putAll(Map<Var,Concept> m2) |
| Constructor and Description |
|---|
QueryAnswer(Map<Var,Concept> m) |
| Modifier and Type | Method and Description |
|---|---|
static Aggregate<Answer,Map<Concept,List<Answer>>> |
Aggregates.group(Var varName)
Aggregate that groups results of a match query by variable name
|
static <T> Aggregate<Answer,Map<Concept,T>> |
Aggregates.group(Var varName,
Aggregate<? super Answer,T> innerAggregate)
Aggregate that groups results of a match query by variable name, applying an aggregate to each group.
|
| Constructor and Description |
|---|
IdPredicate(Var varName,
Concept con,
ReasonerQuery par) |
| Modifier and Type | Method and Description |
|---|---|
Map<javafx.util.Pair<Var,Concept>,Set<Answer>> |
Cache.getInverseAnswerMap(Q query)
returns an inverse answer map with all query variables
|
Map<javafx.util.Pair<Var,Concept>,Set<Answer>> |
Cache.getInverseAnswerMap(Q query,
Set<Var> vars)
return an inverse answer map which is more suitable for operations involving concept comparison (joins, filtering, etc.)
NB: consumes the underlying stream for the specified query
|
| Modifier and Type | Method and Description |
|---|---|
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLAnnotationAssertionAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLAnnotationProperty property) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLClass ce) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLClassAssertionAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLDataProperty property) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLDataPropertyAssertionAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLDeclarationAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLEquivalentObjectPropertiesAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLInverseObjectPropertiesAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLNamedIndividual individual) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLObjectProperty property) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLObjectPropertyAssertionAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLObjectPropertyDomainAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLObjectPropertyRangeAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLReflexiveObjectPropertyAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLSubClassOfAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLSubDataPropertyOfAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLSubObjectPropertyOfAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLSubPropertyChainOfAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.OWLTransitiveObjectPropertyAxiom axiom) |
Concept |
OwlGraknGraphStoringVisitor.visit(org.semanticweb.owlapi.model.SWRLRule node) |
Copyright © 2017 Grakn Labs Ltd. All rights reserved.