Package com.complexible.stardog.api

Examples of com.complexible.stardog.api.GraphQuery


 
  public <T> List<T> construct(String sparql,  Map<String, Object> args, GraphMapper<T> mapper) {
    Connection connection = dataSource.getConnection();
    GraphQueryResult result = null;
    try {
      GraphQuery query = connection.graph(sparql);
     
      if (args != null) {
        for (Entry<String, Object> arg : args.entrySet()) {          
          query.parameter(arg.getKey(), arg.getValue());
        }
      }
     
      ArrayList<T> list = new ArrayList<T>();
     
      result = query.execute();
     
      // return empty lists for empty queries
      if (result == null) {
        return list;
      }
View Full Code Here

TOP

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

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.