Examples of execSelect()


Examples of com.hp.hpl.jena.sparql.engine.QueryExecutionBase.execSelect()

        }
        else
        {
            QueryEngineFactory f = QueryEngineRef.getFactory() ;
            QueryExecution qExec1 = new QueryExecutionBase(query, ds, null, f) ;
            rs1 = ResultSetFactory.makeRewindable(qExec1.execSelect()) ;
            qExec1.close() ;
            expectedLabel = "Standard engine" ;
        }
       
        // ---- Second, execute in DB
View Full Code Here

Examples of com.hp.hpl.jena.sparql.engine.http.QueryEngineHTTP.execSelect()

      endpoint.setDefaultGraphURIs(Collections.singletonList(defaultGraphURI));
    }
    for (String[] param: queryParamsSelect) {
      endpoint.addParam(param[0], param[1]);
    }
    return endpoint.execSelect();
  }
 
  private String preProcessQuery(String query, String resourceURI) {
    return preProcessQuery(query, resourceURI, null);
  }
View Full Code Here

Examples of com.hp.hpl.squirrelrdf.ldap.LdapQueryEngine.execSelect()

        "}"
        );
   
    QueryEngine qe = new LdapQueryEngine(query, config);
    qe.setDataset(DatasetFactory.create());
    ResultSet res = qe.execSelect();
   
    ResultSetFormatter.out(System.out, res);
  }

}
View Full Code Here

Examples of com.hp.hpl.squirrelrdf.ldap.LdapQueryEngine.execSelect()

        "}"
        );
   
    QueryEngine qe = new LdapQueryEngine(query, config);
    qe.setDataset(DatasetFactory.create());
    ResultSet res = qe.execSelect();
    assertTrue("I have results", res.hasNext());
    ResultSetFormatter.out(System.out, res);
  }
 
  /* This will fail -- no lat and long for bristol (?) */
 
View Full Code Here

Examples of com.hp.hpl.squirrelrdf.ldap.LdapQueryEngine.execSelect()

        "}"
        );
   
    QueryEngine qe = new LdapQueryEngine(query, config);
    qe.setDataset(DatasetFactory.create());
    ResultSet res = qe.execSelect();
    assertFalse("I have results", res.hasNext());
  }
 
  /* There is a country, however */
  public void testPosPos()
View Full Code Here

Examples of com.hp.hpl.squirrelrdf.ldap.LdapQueryEngine.execSelect()

        "}"
        );
   
    QueryEngine qe = new LdapQueryEngine(query, config);
    qe.setDataset(DatasetFactory.create());
    ResultSet res = qe.execSelect();
    assertTrue("I have results", res.hasNext());
    QuerySolution result = res.nextSolution();
    assertTrue("I have a country", result.contains("country"));
    assertEquals("I have the correct country", Node.createLiteral("GB"), result.get("country").asNode());
  }
View Full Code Here

Examples of com.hp.hpl.squirrelrdf.ldap.LdapQueryEngine.execSelect()

        "}"
        );
   
    QueryEngine qe = new LdapQueryEngine(query, config);
    qe.setDataset(DatasetFactory.create());
    ResultSet res = qe.execSelect();
    assertTrue("I have results", res.hasNext());
  }
 
  /* Very simple, but possibly tricky... -- negative version of above */
  public void testTripleNotExists()
View Full Code Here

Examples of com.hp.hpl.squirrelrdf.ldap.LdapQueryEngine.execSelect()

        "}"
        );
   
    QueryEngine qe = new LdapQueryEngine(query, config);
    qe.setDataset(DatasetFactory.create());
    ResultSet res = qe.execSelect();
    assertFalse("I have results", res.hasNext());
  }
}
View Full Code Here

Examples of org.wikier.trioo.jtrioo.rdf.sparql.QueryExecutor.execSelect()

      sqg.setUri(uri);
      sqg.visit(metaResource);
      QueryCodeGenerator qg = new QueryCodeGenerator();
      qg.visit(sqg.getQuery());
      QueryExecutor qe = this.session.getQueryExecutor();
      ResultSet rs = qe.execSelect(qg.toString());
      Object obj = null;
      if (rs.hasNext()) {
        obj = InstanceGenerator.create(resourceClass, rs.next());
      }
      rs = null; //FIXME: how a ResultSet can be closed?
View Full Code Here

Examples of virtuoso.jena.driver.VirtuosoQueryExecution.execSelect()

    buffer.append("FROM ").append(RICORDO).append(SPACE);
    buffer.append("WHERE { ?s rcmd:elementOf ?m . ?s ?p <").append(miriumUrn).append("> } GROUP BY ?m");

    System.out.println(buffer.toString());
    VirtuosoQueryExecution vqe = VirtuosoQueryExecutionFactory.create (buffer.toString(), graph);
    return vqe.execSelect();
  }
 
  public ResultSet getVariableQuery(String modelName, String miriumUrn){
    StringBuffer buffer = new StringBuffer();
    buffer.append(INFERANCE).append(SPACE);
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.