Examples of QueryIterPlainWrapper


Examples of com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper

        parse(in) ;
        if ( model == null )
            model = GraphFactory.makeJenaDefaultModel() ;
        if ( rows != null )
        {
            QueryIterator qIter = new QueryIterPlainWrapper(rows.iterator()) ;
            ResultSet rs = new ResultSetStream(Var.varNames(vars), model, qIter) ;
            super.set(rs) ;
        }
        else
            super.set(booleanResult) ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper

                    s = NodeFunctions.str(n) ;
                b2.add(v, NodeFactory.createLiteral(s)) ;
            }
            bindings.add(b2) ;
        }
        ResultSet rs = new ResultSetStream(resultsActual.getResultVars(), null, new QueryIterPlainWrapper(bindings.iterator())) ;
        return ResultSetFactory.makeRewindable(rs) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper

            if ( seen.contains(b) )
                continue ;
            seen.add(b) ;
            x.add(b) ;
        }
        QueryIterator qIter = new QueryIterPlainWrapper(x.iterator()) ;
        ResultSet rs = new ResultSetStream(results.getResultVars(), ModelFactory.createDefaultModel(), qIter) ;
        return ResultSetFactory.makeRewindable(rs) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper

        List<Binding> solutions = new ArrayList<Binding>() ;
        solutions.add(b1) ;
        solutions.add(b2) ;
       
        QueryIterator qIter = new QueryIterPlainWrapper(solutions.iterator(), null) ;
        ResultSet rs = new ResultSetStream(vars, null, qIter) ;
        return rs ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper

        for (; iter.hasNext();)
        {
            Node n = iter.next() ;
            results.add(BindingFactory.binding(binding, var, n)) ;
        }
        return new QueryIterPlainWrapper(results.iterator()) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper

        if ( out.size() == 0 && includeOnNoMatch )
            out.add(bindingLeft) ;
       
        if ( out.size() == 0 )
            return new QueryIterNullIterator(execContext) ;
        return new QueryIterPlainWrapper(out.iterator(), execContext) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper

    }
    @Override
    public QueryIterator iterator(ExecutionContext execCxt)
    {
        return new QueryIterPlainWrapper(rows.iterator(), execCxt) ;
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper

          }
        } catch ( IOException ex ) {
          throw new ARQException(ex) ;
        }

        return new ResultSetStream(varNames, null, new QueryIterPlainWrapper(bindings.iterator()));
    }
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper

    private SPARQLResult process(InputStream in, Model model)
    {
        parse(in) ;
        if ( rows != null )
        {
            QueryIterator qIter = new QueryIterPlainWrapper(rows.iterator()) ;
            ResultSet rs = new ResultSetStream(Var.varNames(vars), model, qIter) ;
            super.set(rs) ;
        }
        else
            super.set(booleanResult) ;
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper

//    }

    /** Substitute into quad patterns, and build a map of graph name to lists of triples */
    public static MultiMap<Node, Triple> calcTriples(List<Quad> quads, List<Binding> bindings)
    {
        QueryIterator qIter = new QueryIterPlainWrapper(bindings.iterator()) ;
        return subst(quads, qIter) ;
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.