justin@parens:~/repos/mine/forks/new/sparql.anything$ cat a.txt
next
qtp90045638-25[1] read /app/a.txt
*** Reading commands from /app/a.txt
> >
Step completed: "thread=qtp90045638-25", org.apache.jena.sparql.engine.main.OpExecutor.exec(), line=121 bci=20
121 level-- ;
That works. Now let's try two commands in a file.
justin@parens:~/repos/mine/forks/new/sparql.anything$ cat a.txt
next
list
qtp90045638-25[1] read /app/a.txt
*** Reading commands from /app/a.txt
> No thread specified.
> >
Step completed: "thread=qtp90045638-25", org.apache.jena.sparql.engine.main.OpExecutor.exec(), line=122 bci=30
122 return qIter ;
It looks like list gets executed before the step is completed.
But if I manually run next followed by list it works:
qtp90045638-25[1] next
>
Step completed: "thread=qtp90045638-25", org.apache.jena.sparql.engine.main.OpExecutor.execute(), line=89 bci=11
89 QueryIterator q = exec.exec(op, qIter) ;
qtp90045638-25[1] list
85
86 /** Public interface is via QC.execute. **/
87 static QueryIterator execute(Op op, QueryIterator qIter, ExecutionContext execCxt) {
88 OpExecutor exec = createOpExecutor(execCxt) ;
89 => QueryIterator q = exec.exec(op, qIter) ;
90 return q ;
91 }
92
93 // -------- The object starts here --------
94