Examples of QueryIterPlainWrapper


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

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

            public Binding convert(String item)
            {
                return BindingFactory.binding(binding, subjectVar, NodeFactory.createLiteral(item)) ;
            }
        });
        return new QueryIterPlainWrapper(it, execCxt);
    }
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(), execCxt) ;
    }
View Full Code Here

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

            if ( count == 0 && ( joinType == LEFT)  )
                // Conditions on left?
                out.add(bindingLeft) ;
        }
       
        return new QueryIterPlainWrapper(out.iterator(), execCxt) ;
    }
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 superclass member
                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) ;
        } catch (IOException ex) {
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

            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

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

            Node gn = iter.next();
            Binding b = BindingFactory.binding(Var.alloc(graphNode), gn) ;
            list.add(b) ;
        }

        QueryIterator qIter = new QueryIterPlainWrapper(list.iterator(), evaluator.getExecContext()) ;
        return TableFactory.create(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.