| Modifier and Type | Method and Description |
|---|---|
<T extends Concept> |
GraknAdmin.buildConcept(org.apache.tinkerpop.gremlin.structure.Vertex vertex) |
<T extends Concept> |
GraknGraph.getConcept(ConceptId id)
Get the Concept with identifier provided, if it exists.
|
| Modifier and Type | Interface and Description |
|---|---|
interface |
Entity
Entity represents an instance of an Entity Type, which represents some data in the graph.
|
interface |
EntityType
EntityType is a schema element which represents the categories instances of this type can fall within.
|
interface |
Instance
Represents an Instance of a particular schema Type.
|
interface |
Relation
A Relation represents an instance of a Relation Type, which is a concept
that represents how different entities relate to one another.
|
interface |
RelationType
A RelationType is a schema element, and is the Concept that represents how Entities relate to one another.
|
interface |
Resource<D>
A Resource is the Concept that represents a resource associated with one or more Instances.
|
interface |
ResourceType<D>
A ResourceType is a schema element which represents the category of resources in the graph.
|
interface |
RoleType
A RoleType is a schema element that defines a role that can be played in a Relation Type.
|
interface |
Rule
A Rule represents an instance of a Rule-Type, which is used to make inferences over the data.
|
interface |
RuleType
A RuleType is a schema element used to define different types of reasoner rules.
|
interface |
Type
Type is an ontological element which represents the categories concepts can fall within.
|
| Constructor and Description |
|---|
ConceptNotUniqueException(Concept concept,
Schema.ConceptProperty type,
String id) |
ConceptNotUniqueException(Concept concept,
String id) |
MoreThanOneEdgeException(Concept concept,
Schema.EdgeLabel edgeType) |
| 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.ConceptProperty key,
String value) |
<T extends Concept> |
GraknTinkerGraph.getConceptByBaseIdentifier(Object baseIdentifier) |
<T extends Concept> |
AbstractGraknGraph.getConceptByBaseIdentifier(Object baseIdentifier) |
| Modifier and Type | Method and Description |
|---|---|
static Aggregate<Map<VarName,Concept>,Optional<Double>> |
Graql.average(String name)
Create an aggregate that will find the mean of a variable's values.
|
java.util.stream.Stream<Concept> |
MatchQuery.get(String name) |
static Aggregate<Map<VarName,Concept>,Map<Concept,List<Map<VarName,Concept>>>> |
Graql.group(String varName)
Create an aggregate that will group a query by a variable name.
|
static Aggregate<Map<VarName,Concept>,Map<Concept,List<Map<VarName,Concept>>>> |
Graql.group(String varName)
Create an aggregate that will group a query by a variable name.
|
static Aggregate<Map<VarName,Concept>,Map<Concept,List<Map<VarName,Concept>>>> |
Graql.group(String varName)
Create an aggregate that will group a query by a variable name.
|
static <T> Aggregate<Map<VarName,Concept>,Map<Concept,T>> |
Graql.group(String varName,
Aggregate<? super Map<VarName,Concept>,T> aggregate)
Create an aggregate that will group a query by a variable name and apply the given aggregate to each group
|
static <T> Aggregate<Map<VarName,Concept>,Map<Concept,T>> |
Graql.group(String varName,
Aggregate<? super Map<VarName,Concept>,T> aggregate)
Create an aggregate that will group a query by a variable name and apply the given aggregate to each group
|
static <T extends Comparable<T>> |
Graql.max(String name)
Create an aggregate that will find the maximum of a variable's values.
|
static Aggregate<Map<VarName,Concept>,Optional<Number>> |
Graql.median(String name)
Create an aggregate that will find the median of a variable's values.
|
static <T extends Comparable<T>> |
Graql.min(String name)
Create an aggregate that will find the minimum of a variable's values.
|
static Aggregate<Map<VarName,Concept>,Number> |
Graql.sum(String name)
Create an aggregate that will sum the values of a variable.
|
| Modifier and Type | Method and Description |
|---|---|
T |
Printer.graqlString(boolean inner,
Concept concept) |
| Modifier and Type | Method and Description |
|---|---|
<S> AggregateQuery<S> |
MatchQuery.aggregate(Aggregate<? super Map<VarName,Concept>,S> aggregate)
Aggregate results of a query.
|
static <T> Aggregate<Map<VarName,Concept>,Map<Concept,T>> |
Graql.group(String varName,
Aggregate<? super Map<VarName,Concept>,T> aggregate)
Create an aggregate that will group a query by a variable name and apply the given aggregate to each group
|
| Modifier and Type | Method and Description |
|---|---|
List<Map<VarName,Concept>> |
MatchQueryAdmin.results() |
java.util.stream.Stream<Map<VarName,Concept>> |
MatchQueryAdmin.streamWithVarNames() |
java.util.stream.Stream<Map<VarName,Concept>> |
InsertQueryAdmin.streamWithVarNames() |
| Modifier and Type | Method and Description |
|---|---|
Optional<List<Concept>> |
PathQuery.execute()
Execute the query.
|
| Modifier and Type | Method and Description |
|---|---|
static String |
HALConceptRepresentationBuilder.renderHALConceptData(Concept concept,
int separationDegree,
String keyspace) |
static String |
HALConceptRepresentationBuilder.renderHALConceptOntology(Concept concept,
String keyspace) |
| Modifier and Type | Method and Description |
|---|---|
static mjson.Json |
HALConceptRepresentationBuilder.renderHALArrayData(MatchQuery matchQuery,
Collection<Map<VarName,Concept>> graqlResultsList,
String keyspace) |
| Modifier and Type | Method and Description |
|---|---|
void |
VarPropertyInternal.delete(GraknGraph graph,
Concept concept)
Delete the given property from the graph, if possible.
|
void |
PlaysRoleProperty.delete(GraknGraph graph,
Concept concept) |
void |
HasScopeProperty.delete(GraknGraph graph,
Concept concept) |
void |
HasRoleProperty.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 |
RelationProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
RegexProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
PlaysRoleProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
IsAbstractProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
HasScopeProperty.insert(InsertQueryExecutor insertQueryExecutor,
Concept concept) |
void |
HasRoleProperty.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 |
InsertQueryExecutor.getConcept(VarAdmin var) |
| Modifier and Type | Method and Description |
|---|---|
static <T> AggregateQuery<T> |
Queries.aggregate(MatchQueryAdmin matchQuery,
Aggregate<? super Map<VarName,Concept>,T> aggregate) |
| Modifier and Type | Method and Description |
|---|---|
static Aggregate<Map<VarName,Concept>,Optional<Double>> |
Aggregates.average(VarName varName)
Aggregate that finds average (mean) of a match query.
|
static Aggregate<Map<VarName,Concept>,Map<Concept,List<Map<VarName,Concept>>>> |
Aggregates.group(VarName varName)
Aggregate that groups results of a match query by variable name
|
static Aggregate<Map<VarName,Concept>,Map<Concept,List<Map<VarName,Concept>>>> |
Aggregates.group(VarName varName)
Aggregate that groups results of a match query by variable name
|
static Aggregate<Map<VarName,Concept>,Map<Concept,List<Map<VarName,Concept>>>> |
Aggregates.group(VarName varName)
Aggregate that groups results of a match query by variable name
|
static <T> Aggregate<Map<VarName,Concept>,Map<Concept,T>> |
Aggregates.group(VarName varName,
Aggregate<? super Map<VarName,Concept>,T> innerAggregate)
Aggregate that groups results of a match query by variable name, applying an aggregate to each group.
|
static <T> Aggregate<Map<VarName,Concept>,Map<Concept,T>> |
Aggregates.group(VarName varName,
Aggregate<? super Map<VarName,Concept>,T> innerAggregate)
Aggregate that groups results of a match query by variable name, applying an aggregate to each group.
|
static <T extends Comparable<T>> |
Aggregates.max(VarName varName)
Aggregate that finds maximum of a match query.
|
static Aggregate<Map<VarName,Concept>,Optional<Number>> |
Aggregates.median(VarName varName)
Aggregate that finds median of a match query.
|
static <T extends Comparable<T>> |
Aggregates.min(VarName varName)
Aggregate that finds minimum of a match query.
|
static Aggregate<Map<VarName,Concept>,Number> |
Aggregates.sum(VarName varName)
Aggregate that sums results of a match query.
|
| Modifier and Type | Method and Description |
|---|---|
static <T> Aggregate<Map<VarName,Concept>,Map<Concept,T>> |
Aggregates.group(VarName varName,
Aggregate<? super Map<VarName,Concept>,T> innerAggregate)
Aggregate that groups results of a match query by variable name, applying an aggregate to each group.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<Map<VarName,Concept>> |
MatchOrder.orderStream(java.util.stream.Stream<Map<VarName,Concept>> stream)
Order the stream
|
java.util.stream.Stream<Map<VarName,Concept>> |
MatchQueryBase.stream(Optional<GraknGraph> optionalGraph) |
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<Map<VarName,Concept>> |
MatchOrder.orderStream(java.util.stream.Stream<Map<VarName,Concept>> stream)
Order the stream
|
| Modifier and Type | Method and Description |
|---|---|
static java.util.stream.Stream<Map<VarName,Concept>> |
Reasoner.resolve(MatchQuery inputQuery,
boolean materialise)
Resolve a given general graql query using the knowledge base
|
| Modifier and Type | Method and Description |
|---|---|
static void |
Utility.printAnswers(Set<Map<String,Concept>> answers)
Provides more readable answer output.
|
| Modifier and Type | Field and Description |
|---|---|
static java.util.function.BiFunction<Map<VarName,Concept>,NotEquals,java.util.stream.Stream<Map<VarName,Concept>>> |
NotEquals.notEqualsFunction |
static java.util.function.BiFunction<Map<VarName,Concept>,NotEquals,java.util.stream.Stream<Map<VarName,Concept>>> |
NotEquals.notEqualsFunction |
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<Map<VarName,Concept>> |
NotEquals.filter(java.util.stream.Stream<Map<VarName,Concept>> answers)
apply the not equals filter to answer stream
|
| Modifier and Type | Method and Description |
|---|---|
java.util.stream.Stream<Map<VarName,Concept>> |
NotEquals.filter(java.util.stream.Stream<Map<VarName,Concept>> answers)
apply the not equals filter to answer stream
|
static boolean |
NotEquals.notEqualsOperator(Map<VarName,Concept> answer,
NotEquals atom) |
| Constructor and Description |
|---|
IdPredicate(VarName varName,
Concept con) |
| Modifier and Type | Method and Description |
|---|---|
static java.util.stream.Stream<Map<VarName,Concept>> |
QueryAnswerStream.join(java.util.stream.Stream<Map<VarName,Concept>> stream,
java.util.stream.Stream<Map<VarName,Concept>> stream2)
perform a half-lazy join operation on two streams (stream and stream2)
|
java.util.stream.Stream<Map<VarName,Concept>> |
ReasonerMatchQuery.resolve(boolean materialise) |
java.util.stream.Stream<Map<VarName,Concept>> |
Query.resolve(boolean materialise)
resolves the query
|
java.util.stream.Stream<Map<VarName,Concept>> |
AtomicMatchQuery.resolve(boolean materialise) |
java.util.stream.Stream<Map<VarName,Concept>> |
QueryAnswerStream.stream() |
| Modifier and Type | Method and Description |
|---|---|
static java.util.stream.Stream<Map<VarName,Concept>> |
QueryAnswerStream.join(java.util.stream.Stream<Map<VarName,Concept>> stream,
java.util.stream.Stream<Map<VarName,Concept>> stream2)
perform a half-lazy join operation on two streams (stream and stream2)
|
static java.util.stream.Stream<Map<VarName,Concept>> |
QueryAnswerStream.join(java.util.stream.Stream<Map<VarName,Concept>> stream,
java.util.stream.Stream<Map<VarName,Concept>> stream2)
perform a half-lazy join operation on two streams (stream and stream2)
|
| Constructor and Description |
|---|
QueryAnswers(Collection<? extends Map<VarName,Concept>> ans) |
QueryAnswerStream(java.util.stream.Stream<Map<VarName,Concept>> s) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Concept> |
CommonUtil.resultVarNameToString(Map<VarName,Concept> result) |
| Modifier and Type | Method and Description |
|---|---|
static Map<String,Concept> |
CommonUtil.resultVarNameToString(Map<VarName,Concept> result) |
| 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.