Interface RelationQuery

All Superinterfaces:
HasSlice
All Known Implementing Classes:
RelationQueryImpl

public interface RelationQuery extends HasSlice
  • 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

      default RelationQuery 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

      void partitionBy(NodeQueryOld... paths)
      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

      List<NodeQuery> roots()
      Return each of the relation's columns as a QueryNode.
    • source

      NodeQuery source()
    • target

      NodeQuery target()
    • predicate

      NodeQuery predicate()
    • nodeFor

      NodeQuery nodeFor(org.apache.jena.sparql.core.Var var)
      Obtain a NodeQuery for one of the variables of the relation returned by getRelation().
    • of

      static RelationQuery of(org.apache.jena.sparql.core.Var startVar)
      Create a new relation query with an empty graph pattern. Further elements connect to the given startVar.
    • of

      static RelationQuery of(Fragment relation)
    • of

      static RelationQuery of(Supplier<Fragment> relation)
    • of

      static RelationQuery of(Supplier<Fragment> relation, QueryContext queryContext)
    • doSort

      static void doSort(RelationQuery relationQuery, org.apache.jena.sparql.expr.Expr expr, int sortDirection)
    • getSortDirection

      static int getSortDirection(RelationQuery relationQuery, org.apache.jena.sparql.expr.Expr expr)