Class SparqlQueryParserWrapperSelectShortForm

java.lang.Object
org.aksw.jenax.stmt.parser.query.SparqlQueryParserWrapperSelectShortForm
All Implemented Interfaces:
Function<String,org.apache.jena.query.Query>, SparqlQueryParser

public class SparqlQueryParserWrapperSelectShortForm extends Object implements SparqlQueryParser
A wrapper for a sparql query parser that allows omitting the SELECT keyword. Internally, if a parse error occurs, an attempt is made to inject the SELECT-keyword at the reported error location. For example, instead of having to write 'SELECT ?s { ?s ?p ?o }' this wrapper allows for simply using '?s { ?s ?p ?o }'. Main use case to make it more succinct to pass sparql queries as command line arguments.
Author:
raven
  • Field Details

    • delegate

      protected Function<String,org.apache.jena.query.Query> delegate
  • Constructor Details

    • SparqlQueryParserWrapperSelectShortForm

      public SparqlQueryParserWrapperSelectShortForm(Function<String,org.apache.jena.query.Query> delegate)
  • Method Details