Examples of QueryIterPlainWrapper


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 QueryIterNullIterator.create(execContext) ;
        return new QueryIterPlainWrapper(out.iterator(), execContext) ;
    }
View Full Code Here

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

        return rows.iterator() ;
    }

    @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

                b.add(Var.alloc(subj), info.getIRI()) ;
            if ( subj.isVariable() )
                b.add(Var.alloc(obj), version) ;
            results.add(b) ;
        }
        return new QueryIterPlainWrapper(results.iterator(), execCxt) ;
    }
View Full Code Here

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

            BindingMap b = BindingFactory.create(binding) ;
            b.add(varIndex, idx) ;
            b.add(varMember, member) ;
            bindings.add(b) ;
        }
        return new QueryIterPlainWrapper(bindings.iterator(), execCxt) ;
    }
View Full Code Here

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

        QueryIterator qIter = new QueryIterSQL(rs, binding, execCxt) ;
        List<Binding> results = new ArrayList<Binding>() ;
        for ( ; qIter.hasNext() ; )
            results.add(qIter.nextBinding()) ;
        qIter.close() ;
        return new QueryIterPlainWrapper(results.iterator(), execCxt) ;
    }
View Full Code Here

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

            while ( qIter.hasNext() )
                bindings.add(qIter.nextBinding()) ;
            qIter.close();
           
            // QueryIterPlainWrapper is just to make it ia QuyerIterator again.
            return new GraphIterator(triple, new QueryIterPlainWrapper(bindings.iterator())) ;
        }
    }
View Full Code Here

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

                set(handler.askResult) ;
                return ;
            }

            ResultSetStream rss = new ResultSetStream(handler.variables, model,
                                                      new QueryIterPlainWrapper(handler.results.iterator())) ;
            // Set superclass member
            set(rss) ;
        }
        catch (SAXException ex)
        { throw new ResultSetException("Problems parsing file (SAXException)", ex) ; }
View Full Code Here

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

            Triple t = iter.next() ;
            slot(bindings, input, t.getSubject(),   subjVar, nodeLocalname) ;
            slot(bindings, input, t.getPredicate(), subjVar, nodeLocalname) ;
            slot(bindings, input, t.getObject(),    subjVar, nodeLocalname) ;
        }
        return new QueryIterPlainWrapper(bindings.iterator(), execCxt) ;
    }
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.