Closed MJRinne closed 10 years ago
Has improved with latest updates. Now the test output is: s,p,o http://instans.org/sub,http://instans.org/pred,http://instans.org/obj http://instans.org/data,http://instans.org/value,1 http://instans.org/data,http://instans.org/value,2
However this: $ instans -r issue5.rq
Does not produce anything yet, so I'm leaving this open for now for further comments or updates. I tested also adding the -e parameter to the end of the line: $ instans -r issue5.rq -e
This doesn't execute the query, but prints the list of commands.
Situation 9.5.2014: Has slightly regressed. No longer prints the first line (from the empty INSERT-WHERE clause), but only the incoming triples:
s,p,o http://instans.org/data,http://instans.org/value,1 http://instans.org/data,http://instans.org/value,2
Situation 9.5.2014 16:52 EET: Working!
A WHERE-clause, which doesn't require or accept any input, is still only processed after some input data (unrelated) is read.
Steps to reproduce:
1) Query (issue5.rq):
PREFIX : http://instans.org/
SELECT * WHERE { ?s ?p ?o }
;
INSERT { :sub :pred :obj } WHERE { }
2) Data (issue5.ttl):
@prefix : http://instans.org/ . :data :value 1 . :data :value 2 .
3) Commant line: $ instans -r issue5.rq -t issue5.ttl
What happens:
The following output is printed: s,p,o http://instans.org/data,http://instans.org/value,1 http://instans.org/sub,http://instans.org/pred,http://instans.org/obj http://instans.org/data,http://instans.org/value,2
What was expected to happen:
The query with no reference to the input was expected to be executed before the input, or even without any input file. With this test the output should be: s,p,o http://instans.org/sub,http://instans.org/pred,http://instans.org/obj http://instans.org/data,http://instans.org/value,1 http://instans.org/data,http://instans.org/value,2
And using the command line (omitting issue5.ttl): $ instans -r issue5.rq
The expected output would be: s,p,o http://instans.org/sub,http://instans.org/pred,http://instans.org/obj