Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3
Code Block
import edu.uiuc.ncsa.datastream.util.Query;

//...

Context context = ... // create a tupelo context
Query query = Query.parse("SELECT ?x WHERE {   ?x . } ORDER BY ?x");
Table results = (Table) query.eval(context);
for(Tuple tuple : results)
   processResult(tuple); //do something with the result