Examples of nextBinding()


Examples of com.hp.hpl.jena.query.ResultSet.nextBinding()

        QueryExecution qExec = QueryExecutionFactory.create(query, DatasetFactory.create(dsg)) ;
        try {
            ResultSet rs = qExec.execSelect() ;
            for (; rs.hasNext() ; )
            {
                rs.nextBinding() ;
                counter++ ;
            }
            return counter ;
        } finally { qExec.close() ; }
    }
View Full Code Here

Examples of com.hp.hpl.jena.query.ResultSet.nextBinding()

        List<Node> nodes = new ArrayList<>() ;
        try {
            ResultSet rs = qExec.execSelect() ;
            for (; rs.hasNext() ; )
            {
                Node n = rs.nextBinding().get(v) ;
                nodes.add(n) ;
            }
            return nodes ;
        } finally { qExec.close() ; }
    }
View Full Code Here

Examples of com.hp.hpl.jena.query.ResultSet.nextBinding()

          List<Binding> sdbSelectResult = new ArrayList<Binding>();
          List<Binding> hsqlSelectResult = new ArrayList<Binding>();
         
          while (resultSet.hasNext())
          {
            sdbSelectResult.add(resultSet.nextBinding());
          }
         
          Collections.sort(sdbSelectResult, new BindingComparator(sortingConditions));
       
          resultSet = d2rqQueryExecution.execSelect();
View Full Code Here

Examples of com.hp.hpl.jena.query.ResultSet.nextBinding()

          resultSet = d2rqQueryExecution.execSelect();
         
         
          while (resultSet.hasNext())
          {
            hsqlSelectResult.add(resultSet.nextBinding());
          }
         
          Collections.sort(hsqlSelectResult, new BindingComparator(sortingConditions));

          sdbDataResult = sdbSelectResult;
View Full Code Here

Examples of com.hp.hpl.jena.query.ResultSet.nextBinding()

        QueryExecution qExec = QueryExecutionFactory.create(qs, SDBFactory.connectDataset(store)) ;
        ResultSet rs = qExec.execSelect() ;
        Var var_g = Var.alloc("g") ;
        while(rs.hasNext())
        {
            Node n = rs.nextBinding().get(var_g) ;
            x.add(n) ;
        }
        return x.iterator() ;
    }
   
View Full Code Here

Examples of com.hp.hpl.jena.query.ResultSetRewindable.nextBinding()

      while( real.hasNext() ) {
        final Binding b1 = real.nextBinding();
        expected.reset();
        boolean toAdd = true;
        while( expected.hasNext() ) {
          final Binding b2 = expected.nextBinding();
          if( BindingBase.equals( b1, b2 ) ) {
            toAdd = false;
            break;
          }
        }
View Full Code Here

Examples of com.hp.hpl.jena.query.engine.QueryIterator.nextBinding()

   
    results = map.execute(results, null);
   
    assertTrue("I have a manager for Paul", results.hasNext());
   
    Binding binding = results.nextBinding();
   
    assertEquals("I have the right manager for Paul", Node.createLiteral("Martin John Merry"), binding.get("name"));
  }
 
  /* More email handling -- checks un-emailing*/
 
View Full Code Here

Examples of com.hp.hpl.jena.query.engine.QueryIterator.nextBinding()

   
    assertTrue("I got a result", results.hasNext());
   
    while (results.hasNext())
    {
      Binding nextBinding = results.nextBinding();
      log.info("Name: " + nextBinding.get("name"));
    }
  }
 
  /* Full SPARQL Query */
 
View Full Code Here

Examples of com.hp.hpl.jena.query.engine1.QueryIterSingleton.nextBinding()

   
    results = map.execute(results, null);
   
    assertTrue("I have a manager for Paul", results.hasNext());
   
    Binding binding = results.nextBinding();
   
    assertEquals("I have the right manager for Paul", Node.createLiteral("Martin John Merry"), binding.get("name"));
  }
 
  /* More email handling -- checks un-emailing*/
 
View Full Code Here

Examples of com.hp.hpl.jena.query.engine1.QueryIterSingleton.nextBinding()

   
    assertTrue("I got a result", results.hasNext());
   
    while (results.hasNext())
    {
      Binding nextBinding = results.nextBinding();
      log.info("Name: " + nextBinding.get("name"));
    }
  }
 
  /* Full SPARQL Query */
 
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.