Package org.topbraid.shacl.expr.lib
Class CountExpression
java.lang.Object
org.topbraid.shacl.expr.AbstractNodeExpression
org.topbraid.shacl.expr.ComplexNodeExpression
org.topbraid.shacl.expr.AbstractInputExpression
org.topbraid.shacl.expr.lib.CountExpression
- All Implemented Interfaces:
NodeExpression
Implements support for sh:count.
This node expression type is not part of the SHACL-AF 1.0 document, but a candidate for 1.1.
- Author:
- Holger Knublauch
-
Constructor Summary
ConstructorsConstructorDescriptionCountExpression(org.apache.jena.rdf.model.RDFNode expr, NodeExpression input) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode>eval(org.apache.jena.rdf.model.RDFNode focusNode, NodeExpressionContext context) Produces an iterator of value nodes for a given focus node.voidvisit(NodeExpressionVisitor visitor) Methods inherited from class org.topbraid.shacl.expr.AbstractInputExpression
evalInput, getFunctionalSyntaxArguments, getInput, getInputExpressionsMethods inherited from class org.topbraid.shacl.expr.ComplexNodeExpression
getFunctionalSyntax, getFunctionalSyntaxNameMethods inherited from class org.topbraid.shacl.expr.AbstractNodeExpression
evalReverse, getOutputShape, getRDFNode, isReversible, toString
-
Constructor Details
-
CountExpression
-
-
Method Details
-
eval
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> eval(org.apache.jena.rdf.model.RDFNode focusNode, NodeExpressionContext context) Description copied from interface:NodeExpressionProduces an iterator of value nodes for a given focus node.- Parameters:
focusNode- the focus nodecontext- the context- Returns:
- an iterator (never null)
-
getTypeId
-
visit
-