// next lines contain data
while ((line = r.readLine()) != null) {
int i = 0;
t = new StringTokenizer(line, " \t");
final QuerySolutionMap s = new QuerySolutionMap();
while (t.hasMoreTokens()) {
final String token = t.nextToken();
if (token.startsWith("http://")
|| token.startsWith("file:///")) {
s.add(vars.get(i++), JenaUtils.makeRDFNode(
ATermUtils.makeTermAppl(token), m));
} else {
s.add(vars.get(i++), JenaUtils.makeRDFNode(
ATermUtils.makePlainLiteral(token), m));
}
}
solutions.add(s);