Package org.topbraid.shacl.expr
Class AbstractSPARQLExpression
java.lang.Object
org.topbraid.shacl.expr.AbstractNodeExpression
org.topbraid.shacl.expr.ComplexNodeExpression
org.topbraid.shacl.expr.AbstractInputExpression
org.topbraid.shacl.expr.AbstractSPARQLExpression
- All Implemented Interfaces:
NodeExpression
- Direct Known Subclasses:
AskExpression,SelectExpression
Node expressions based on a SPARQL query, identified by sh:select or sh:ask.
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
ConstructorsModifierConstructorDescriptionprotectedAbstractSPARQLExpression(org.apache.jena.rdf.model.Resource expr, org.apache.jena.query.Query query, NodeExpression input, String queryString) -
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.org.apache.jena.query.QuerygetQuery()Methods inherited from class org.topbraid.shacl.expr.AbstractInputExpression
evalInput, getInput, getInputExpressionsMethods inherited from class org.topbraid.shacl.expr.ComplexNodeExpression
getFunctionalSyntax, getFunctionalSyntaxNameMethods inherited from class org.topbraid.shacl.expr.AbstractNodeExpression
evalReverse, getOutputShape, getRDFNode, isReversible, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.topbraid.shacl.expr.NodeExpression
getTypeId, visit
-
Constructor Details
-
AbstractSPARQLExpression
protected AbstractSPARQLExpression(org.apache.jena.rdf.model.Resource expr, org.apache.jena.query.Query query, NodeExpression input, String queryString)
-
-
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)
-
getFunctionalSyntaxArguments
- Overrides:
getFunctionalSyntaxArgumentsin classAbstractInputExpression
-
getQuery
public org.apache.jena.query.Query getQuery() -
getQueryString
-