Take this query
select ?x ?p ?y
where {
service <x-sparql-anything:> {
fx:properties fx:location $_file; fx:media-type "text/plain"; fx:txt.split "\n".
[] fx:anySlot ?line.
?x ?p ?y
}
}
This invocation returns the file lines:
sparql-anything -q test.rq -v file=my.txt
This invocation returns the list of files in cwd:
sparql-anything -q test.rq -v file= my.txt
The only difference is that there is a space after =.
IMHO that is confusing and undesirable.
If someone really wants a leading space in a param,
maybe a call like this could work: -v 'mySpace= ... and more... '
Take this query
This invocation returns the file lines:
This invocation returns the list of files in cwd:
The only difference is that there is a space after
=.IMHO that is confusing and undesirable.
If someone really wants a leading space in a param,
maybe a call like this could work:
-v 'mySpace= ... and more... '