public abstract class AbstractNodeExpression extends Object implements NodeExpression
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractNodeExpression(org.apache.jena.rdf.model.RDFNode expr) |
| Modifier and Type | Method and Description |
|---|---|
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<NodeExpression> |
getInputExpressions() |
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.RDFNode |
getRDFNode()
Gets the RDF node that was used to construct the expression, in the SHACL node expressions syntax.
|
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.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waiteval, getFunctionalSyntax, getTypeId, visitprotected AbstractNodeExpression(org.apache.jena.rdf.model.RDFNode expr)
public 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 NodeExpressionvalueNode - the value nodecontext - the contextpublic List<NodeExpression> getInputExpressions()
getInputExpressions in interface NodeExpressionpublic org.apache.jena.rdf.model.Resource getOutputShape(org.apache.jena.rdf.model.Resource contextShape)
NodeExpressiongetOutputShape in interface NodeExpressioncontextShape - the shape where the evaluation would start, e.g. the node shape of the sh:values statementpublic org.apache.jena.rdf.model.RDFNode getRDFNode()
NodeExpressiongetRDFNode in interface NodeExpressionpublic boolean isReversible(NodeExpressionContext context)
NodeExpressionisReversible in interface NodeExpressioncontext - the contextCopyright © 2019 TopQuadrant, Inc.. All rights reserved.