Skip to content

Instantly share code, notes, and snippets.

@justin2004
Last active April 6, 2022 13:33
Show Gist options
  • Select an option

  • Save justin2004/16e457a741c0a69921b14ab229efdee0 to your computer and use it in GitHub Desktop.

Select an option

Save justin2004/16e457a741c0a69921b14ab229efdee0 to your computer and use it in GitHub Desktop.
jdb
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment