Class RootedQueryImpl

java.lang.Object
org.aksw.jenax.analytics.core.RootedQueryImpl
All Implemented Interfaces:
RootedQuery

public class RootedQueryImpl extends Object implements RootedQuery
  • Field Details

    • rootNode

      protected org.apache.jena.graph.Node rootNode
    • objectQuery

      protected ObjectQuery objectQuery
  • Constructor Details

    • RootedQueryImpl

      public RootedQueryImpl(org.apache.jena.graph.Node rootNode, ObjectQuery objectQuery)
  • Method Details

    • getRootNode

      public org.apache.jena.graph.Node getRootNode()
      Description copied from interface: RootedQuery
      The designated root node. The following rules apply:
      • If getObjectQuery().getTemplate() is non-empty then the root node should be mentioned in the template.
      • In case the template is empty then the root node should be a variable that occurs in getObjectQuery().getRelation().getElement(). Furthermore, if in this case the query is partitioned by a single variable then the root node should match that one.
      Specified by:
      getRootNode in interface RootedQuery
      Returns:
    • getObjectQuery

      public ObjectQuery getObjectQuery()
      Specified by:
      getObjectQuery in interface RootedQuery