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
public abstract class AbstractSPARQLExpression extends AbstractInputExpression
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
Constructors Modifier Constructor Description protectedAbstractSPARQLExpression(org.apache.jena.rdf.model.Resource expr, org.apache.jena.query.Query query, NodeExpression input, String queryString)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.List<String>getFunctionalSyntaxArguments()org.apache.jena.query.QuerygetQuery()StringgetQueryString()-
Methods inherited from class org.topbraid.shacl.expr.AbstractInputExpression
evalInput, getInput, getInputExpressions
-
Methods inherited from class org.topbraid.shacl.expr.ComplexNodeExpression
getFunctionalSyntax, getFunctionalSyntaxName
-
Methods inherited from class org.topbraid.shacl.expr.AbstractNodeExpression
evalReverse, getOutputShape, getRDFNode, isReversible, toString
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.topbraid.shacl.expr.NodeExpression
getTypeId, visit
-
-
-
-
Constructor Detail
-
AbstractSPARQLExpression
protected AbstractSPARQLExpression(org.apache.jena.rdf.model.Resource expr, org.apache.jena.query.Query query, NodeExpression input, String queryString)
-
-
Method Detail
-
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
public List<String> getFunctionalSyntaxArguments()
- Overrides:
getFunctionalSyntaxArgumentsin classAbstractInputExpression
-
getQuery
public org.apache.jena.query.Query getQuery()
-
getQueryString
public String getQueryString()
-
-