RdfProcessingToolkit icon indicating copy to clipboard operation
RdfProcessingToolkit copied to clipboard

Environment substitution not working with the new SparqlScriptProcessor.

Open Aklakan opened this issue 4 years ago • 0 comments

Environment sustitution for env: IRIs such as in

$> FOO=bar sparql-integrate file.sparql

file.sparql:
SELECT * { BIND(<env:FOO> AS ?bar) }

stopped working after consolidating lots of logic into the SparqlScriptProcessor.

Although the SparqlScriptProcessor is configured with a parser that is wrapped with a post processor to perform environment substitution, the SparqlScriptProcessor invokes SparqlStmtUtils.processFile(...) which internally creates a new parser instance.

Hence,processFileneeds to be changed to accept a parser as an argument.

Aklakan avatar Jan 23 '21 22:01 Aklakan