Class ConstraintNodeImpl
java.lang.Object
org.aksw.jenax.facete.treequery2.impl.RootedFacetTraversableBase<NodeQuery,ConstraintNode<NodeQuery>>
org.aksw.jenax.facete.treequery2.impl.ConstraintNodeImpl
- All Implemented Interfaces:
ConstraintNode<NodeQuery>,FacetTraversable<ConstraintNode<NodeQuery>>,RootedFacetTraversable<NodeQuery,,ConstraintNode<NodeQuery>> Sortable<ConstraintNode<NodeQuery>>,org.aksw.jenax.path.core.HasFacetPath
public class ConstraintNodeImpl
extends RootedFacetTraversableBase<NodeQuery,ConstraintNode<NodeQuery>>
implements ConstraintNode<NodeQuery>
This implementation features support for traversals along facet paths
as well as setting constraints on the paths.
-
Field Summary
FieldsFields inherited from class org.aksw.jenax.facete.treequery2.impl.RootedFacetTraversableBase
facetPath, root -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.graph.NodeWrap this node as a Jena node so that it can be used as a 'pseudo-variable' in expressions.FacetedDataQuery<org.apache.jena.rdf.model.RDFNode>FacetedDataQuery<org.apache.jena.rdf.model.RDFNode>createValueQuery(boolean applySelfConstraints) getOrCreateChild(org.aksw.jenax.path.core.FacetStep step) Returns null if there is no child reachable with the given step.intReturns the direction of the first sort condition that matches this query node's variableFacetedDataQuery<org.apache.jena.rdf.model.RDFNode>sort(int sortDirection) Updates or adds the first sort condition of this query node's variable in the list of sort conditionsorg.apache.jena.sparql.core.Varvar()A variable name that uniquely identifies this node in the query model Can be seen as a field id.Methods inherited from class org.aksw.jenax.facete.treequery2.impl.RootedFacetTraversableBase
equals, getFacetPath, getRoot, hashCodeMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.aksw.jenax.facete.treequery2.api.FacetTraversable
bwd, bwd, bwd, fwd, fwd, fwd, getRootNode, resolveMethods inherited from interface org.aksw.jenax.path.core.HasFacetPath
getFacetPathMethods inherited from interface org.aksw.jenax.facete.treequery2.api.RootedFacetTraversable
getRootMethods inherited from interface org.aksw.jenax.facete.treequery2.api.Sortable
sortAsc, sortDefault, sortDesc, sortNone
-
Field Details
-
var
protected org.apache.jena.sparql.core.Var var
-
-
Constructor Details
-
ConstraintNodeImpl
-
-
Method Details
-
var
public org.apache.jena.sparql.core.Var var()Description copied from interface:ConstraintNodeA variable name that uniquely identifies this node in the query model Can be seen as a field id.- Specified by:
varin interfaceConstraintNode<NodeQuery>
-
getScopedFacetPath
-
getParent
- Specified by:
getParentin interfaceFacetTraversable<ConstraintNode<NodeQuery>>
-
getOrCreateChild
Description copied from interface:FacetTraversableReturns null if there is no child reachable with the given step.- Specified by:
getOrCreateChildin interfaceFacetTraversable<ConstraintNode<NodeQuery>>
-
enterConstraints
- Specified by:
enterConstraintsin interfaceConstraintNode<NodeQuery>
-
asJenaNode
public org.apache.jena.graph.Node asJenaNode()Wrap this node as a Jena node so that it can be used as a 'pseudo-variable' in expressions. To substitute NodeQuery references in expressions, apply a node transform using NodeFacetPath.createNodeTransform(pathTransform).- Specified by:
asJenaNodein interfaceConstraintNode<NodeQuery>
-
sort
Description copied from interface:SortableUpdates or adds the first sort condition of this query node's variable in the list of sort conditions- Specified by:
sortin interfaceSortable<ConstraintNode<NodeQuery>>
-
getSortDirection
public int getSortDirection()Description copied from interface:SortableReturns the direction of the first sort condition that matches this query node's variable- Specified by:
getSortDirectionin interfaceSortable<ConstraintNode<NodeQuery>>
-
availableValues
- Specified by:
availableValuesin interfaceConstraintNode<NodeQuery>
-
remainingValues
- Specified by:
remainingValuesin interfaceConstraintNode<NodeQuery>
-
createValueQuery
public FacetedDataQuery<org.apache.jena.rdf.model.RDFNode> createValueQuery(boolean applySelfConstraints)
-