public class PathExpression extends AbstractInputExpression
| Constructor and Description |
|---|
PathExpression(org.apache.jena.rdf.model.RDFNode expr,
org.apache.jena.rdf.model.Resource path,
NodeExpression input) |
| Modifier and Type | Method and Description |
|---|---|
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.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> |
evalReverse(org.apache.jena.rdf.model.RDFNode valueNode,
NodeExpressionContext context)
Produces an iterator of focus nodes for a given value node.
|
List<String> |
getFunctionalSyntaxArguments() |
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.
|
org.apache.jena.rdf.model.Resource |
getPath() |
String |
getTypeId() |
boolean |
isMaybeInferred(ShapesGraph shapesGraph) |
boolean |
isReversible(NodeExpressionContext context)
Checks if this expression could be evaluated in the reverse direction, with a value given and
then finding all focus nodes.
|
void |
visit(NodeExpressionVisitor visitor) |
evalInput, getInput, getInputExpressionsgetFunctionalSyntax, getFunctionalSyntaxNamegetRDFNode, toStringpublic PathExpression(org.apache.jena.rdf.model.RDFNode expr,
org.apache.jena.rdf.model.Resource path,
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.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> evalReverse(org.apache.jena.rdf.model.RDFNode valueNode,
NodeExpressionContext context)
NodeExpressionevalReverse in interface NodeExpressionevalReverse in class AbstractNodeExpressionvalueNode - the value nodecontext - the contextpublic List<String> getFunctionalSyntaxArguments()
getFunctionalSyntaxArguments in class AbstractInputExpressionpublic 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 org.apache.jena.rdf.model.Resource getPath()
public String getTypeId()
public boolean isMaybeInferred(ShapesGraph shapesGraph)
public boolean isReversible(NodeExpressionContext context)
NodeExpressionisReversible in interface NodeExpressionisReversible in class AbstractNodeExpressioncontext - the contextpublic void visit(NodeExpressionVisitor visitor)
Copyright © 2019 TopQuadrant, Inc.. All rights reserved.