Interface RelationQuery
- All Superinterfaces:
HasSlice
- All Known Implementing Classes:
RelationQueryImpl
-
Method Summary
Modifier and TypeMethodDescriptionasNode()Each row of a relation can be viewed as a node that has the column values as propertiesstatic voiddoSort(RelationQuery relationQuery, org.apache.jena.sparql.expr.Expr expr, int sortDirection) The context of this query which for example holds the PropertyResolver for mapping properties to graph patterns.Get the constraints that were placed on this relationReturns the parent relation and a variable of it to which this relation connects.org.aksw.jenax.path.core.FacetPathgetPath()Return the facet path.org.aksw.jenax.path.core.FacetStepThe step by which this relation was reached from the parent node (null if there is no parent)Returns the relation on which this RelationQuery is based.A name to use for prefixing variables of this node's relationList<org.apache.jena.query.SortCondition>static intgetSortDirection(RelationQuery relationQuery, org.apache.jena.sparql.expr.Expr expr) nodeFor(org.apache.jena.sparql.core.Var var) Obtain aNodeQueryfor one of the variables of the relation returned bygetRelation().static RelationQuerystatic RelationQueryof(Supplier<Fragment> relation, QueryContext queryContext) static RelationQuerystatic RelationQueryof(org.apache.jena.sparql.core.Var startVar) Create a new relation query with an empty graph pattern.Return this relation's partitioning, null if not partitioned.voidpartitionBy(NodeQueryOld... paths) Declare this relation to be partitioned by the given paths.default RelationQueryroot()Get the parent relation of this instanceroots()Return each of the relation's columns as a QueryNode.source()target()
-
Method Details
-
getScopeBaseName
String getScopeBaseName()A name to use for prefixing variables of this node's relation -
getParentNode
NodeQuery getParentNode()Returns the parent relation and a variable of it to which this relation connects. Returns null if there is no parent -
getReachingStep
org.aksw.jenax.path.core.FacetStep getReachingStep()The step by which this relation was reached from the parent node (null if there is no parent) -
root
Get the parent relation of this instance -
getSortConditions
List<org.apache.jena.query.SortCondition> getSortConditions() -
getRelation
Fragment getRelation()Returns the relation on which this RelationQuery is based. -
getContext
QueryContext getContext()The context of this query which for example holds the PropertyResolver for mapping properties to graph patterns. -
partition
Partition partition()Return this relation's partitioning, null if not partitioned. -
getFacetConstraints
FacetConstraints<ConstraintNode<NodeQuery>> getFacetConstraints()Get the constraints that were placed on this relation -
partitionBy
Declare this relation to be partitioned by the given paths. -
asNode
NodeQueryOld asNode()Each row of a relation can be viewed as a node that has the column values as properties -
getPath
org.aksw.jenax.path.core.FacetPath getPath()Return the facet path. By convention, a facet step with the targetComponent set to null refers to a relation. The 'targetComponent' field is null for all steps -
roots
Return each of the relation's columns as a QueryNode. -
source
NodeQuery source() -
target
NodeQuery target() -
predicate
NodeQuery predicate() -
nodeFor
Obtain aNodeQueryfor one of the variables of the relation returned bygetRelation(). -
of
Create a new relation query with an empty graph pattern. Further elements connect to the given startVar. -
of
-
of
-
of
-
doSort
static void doSort(RelationQuery relationQuery, org.apache.jena.sparql.expr.Expr expr, int sortDirection) -
getSortDirection
-