public interface NodeExpression
| 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.
|
String |
getFunctionalSyntax()
Produces a "functional" syntax used to display node expressions in a compact form.
|
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.
|
String |
getTypeId() |
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) |
org.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> eval(org.apache.jena.rdf.model.RDFNode focusNode,
NodeExpressionContext context)
focusNode - the focus nodecontext - the contextorg.apache.jena.util.iterator.ExtendedIterator<org.apache.jena.rdf.model.RDFNode> evalReverse(org.apache.jena.rdf.model.RDFNode valueNode,
NodeExpressionContext context)
valueNode - the value nodecontext - the contextString getFunctionalSyntax()
List<NodeExpression> getInputExpressions()
org.apache.jena.rdf.model.Resource getOutputShape(org.apache.jena.rdf.model.Resource contextShape)
contextShape - the shape where the evaluation would start, e.g. the node shape of the sh:values statementorg.apache.jena.rdf.model.RDFNode getRDFNode()
String getTypeId()
boolean isReversible(NodeExpressionContext context)
context - the contextvoid visit(NodeExpressionVisitor visitor)
Copyright © 2019 TopQuadrant, Inc.. All rights reserved.