public class DistinctExpression extends AbstractInputExpression
| Constructor and Description |
|---|
DistinctExpression(org.apache.jena.rdf.model.RDFNode expr,
NodeExpression input) |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> |
distinct(org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> base)
Produces an RDFNode iterator that drops duplicate values, based on a Set.
|
org.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.
|
org.apache.jena.rdf.model.Resource |
getOutputShape(org.apache.jena.rdf.model.Resource contextShape)
Gets the shape of the output data (if known), based on a context shape.
|
String |
getTypeId() |
void |
visit(NodeExpressionVisitor visitor) |
evalInput, getFunctionalSyntaxArguments, getInput, getInputExpressionsgetFunctionalSyntax, getFunctionalSyntaxNameevalReverse, getRDFNode, isReversible, toStringpublic DistinctExpression(org.apache.jena.rdf.model.RDFNode expr,
NodeExpression input)
public org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> eval(org.apache.jena.rdf.model.RDFNode focusNode,
NodeExpressionContext context)
NodeExpressionfocusNode - the focus nodecontext - the contextpublic org.apache.jena.rdf.model.Resource getOutputShape(org.apache.jena.rdf.model.Resource contextShape)
NodeExpressiongetOutputShape in interface NodeExpressiongetOutputShape in class AbstractNodeExpressioncontextShape - the shape where the evaluation would start, e.g. the node shape of the sh:values statementpublic String getTypeId()
public static org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> distinct(org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> base)
base - the iterator to wrappublic void visit(NodeExpressionVisitor visitor)
Copyright © 2019 TopQuadrant, Inc.. All rights reserved.