Package com.hp.hpl.jena.sparql.engine.iterator

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


                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

            {
                if ( ! vars.contains(v) )
                    vars.add(v) ;
            }
        }
        QueryIterator qIter = new QueryIterPlainWrapper(bindings.iterator()) ;
        return new ResultSetStream(Var.varNames(vars), m, qIter) ;
    }
View Full Code Here

                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

            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

        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

    assertFalse(index.containsCompatibleWithSharedDomain(binding("d", 10))) ;
    assertFalse(index.containsCompatibleWithSharedDomain(binding("abc", 10, 21, 32))) ;
    assertFalse(index.containsCompatibleWithSharedDomain(binding("xyz", 10, 11, 12))) ;
  }

  private QueryIterator fullData() { return new QueryIterPlainWrapper(fData.iterator()) ; }
View Full Code Here

    assertFalse(index.containsCompatibleWithSharedDomain(binding("xyz", 10, 11, 12))) ;
  }

  private QueryIterator fullData() { return new QueryIterPlainWrapper(fData.iterator()) ; }

  private QueryIterator partData() { return new QueryIterPlainWrapper(pData.iterator()) ; }
View Full Code Here

            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

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

TOP

Related Classes of com.hp.hpl.jena.sparql.engine.iterator.QueryIterPlainWrapper

Copyright © 2018 www.massapicom. 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.