RdfProcessingToolkit
RdfProcessingToolkit copied to clipboard
Environment substitution not working with the new SparqlScriptProcessor.
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.