Package org.aksw.jenax.analytics.core
Class RootedQueryFromPartitionedQuery1
java.lang.Object
org.aksw.jenax.analytics.core.RootedQueryFromPartitionedQuery1
- All Implemented Interfaces:
RootedQuery
Treat the sole partition variable of a
PartitionedQuery1 as the root node.- Author:
- raven
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.graph.NodeThe designated root node.
-
Field Details
-
partitionedQuery1
-
-
Constructor Details
-
RootedQueryFromPartitionedQuery1
-
-
Method Details
-
getRootNode
public org.apache.jena.graph.Node getRootNode()Description copied from interface:RootedQueryThe 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:
getRootNodein interfaceRootedQuery- Returns:
- If
-
getObjectQuery
- Specified by:
getObjectQueryin interfaceRootedQuery
-