rdf

wagjo 2015-09-07T06:33:13.000002Z

does ParametrizedSparqlString validate input query? I would go with an approach that compiles into something that is fast where only bindings are checked at runtime.

joelkuiper 2015-09-07T10:18:30.000003Z

it does so at the textual level, https://jena.apache.org/documentation/javadoc/arq/org/apache/jena/query/ParameterizedSparqlString.html

joelkuiper 2015-09-07T10:19:02.000004Z

I’m not sure where the query parsing is actually done, I assume only when you call .asQuery on the ParameterizedSparqlString

joelkuiper 2015-09-07T10:19:31.000005Z

YeSQL applies another instaparse BNF to the SQL itself to do substitutions

joelkuiper 2015-09-07T10:20:16.000006Z

was thinking of abusing the BNF from Jena itself for a similar purpose, but it will add to the complexity