Closed vemonet closed 5 years ago
It is especially to be able to change graph name and base URI without editing the query file
Adding parameters using cli option with a prefix. e.g.:
--var-baseUri
--var-inputGraph
--param-outputGraph
Done in https://github.com/vemonet/rdf4j-sparql-operations/commit/05ad3074374181a0864c38107fb7eed61be206a8 providing parameter like this:
-var graphInput:http://graph/input graphOutput:http://graph/output
Replacing ?_graphInput
and ?_graphOutput
For example for some URI it would be interested to be able to provide a parameter that will act as a variable in the SPARQL query. To avoid having everything hard coded in the query.
For example a prefix:
PREFIX x2rm: <http://data2services/model/>
would becomePREFIX x2rm: <?_x2rm_uri>