Package org.aksw.jenax.stmt.parser.query
Class SparqlQueryParserWrapperSelectShortForm
java.lang.Object
org.aksw.jenax.stmt.parser.query.SparqlQueryParserWrapperSelectShortForm
- All Implemented Interfaces:
Function<String,,org.apache.jena.query.Query> 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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSparqlQueryParserWrapperSelectShortForm(Function<String, org.apache.jena.query.Query> delegate) -
Method Summary
-
Field Details
-
delegate
-
-
Constructor Details
-
SparqlQueryParserWrapperSelectShortForm
-
-
Method Details