Class 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 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: NodeExpression
      Produces an iterator of value nodes for a given focus node.
      Parameters:
      focusNode - the focus node
      context - the context
      Returns:
      an iterator (never null)
    • getFunctionalSyntaxArguments

      public List<String> getFunctionalSyntaxArguments()
      Overrides:
      getFunctionalSyntaxArguments in class AbstractInputExpression
    • getQuery

      public org.apache.jena.query.Query getQuery()
    • getQueryString

      public String getQueryString()