Package com.complexible.stardog.api

Examples of com.complexible.stardog.api.BooleanQuery


   */
  public boolean ask(String sparql, Map<String, Object> args) {
    Connection connection = dataSource.getConnection();
    Boolean result = null;
    try {
      BooleanQuery query = connection.ask(sparql);
     
      if (args != null) {
        for (Entry<String, Object> arg : args.entrySet()) {          
          query.parameter(arg.getKey(), arg.getValue());
        }
      }

      result = query.execute();
    } catch (StardogException e) {
      log.error("Error sending query to Stardog", e);
      throw new RuntimeException(e);
    } finally {
      dataSource.releaseConnection(connection);
View Full Code Here

TOP

Related Classes of com.complexible.stardog.api.BooleanQuery

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.