Package com.hp.hpl.jena.query

Examples of com.hp.hpl.jena.query.QueryExecution.execConstruct()


      Model result = qe.execDescribe();
      queryResults.setType(QueryResultsType.MODEL);
      queryResults.setModel(result);
      qe.close();
    } else if (isConstructQuery()) { // CONSTRUCT
      Model result = qe.execConstruct();
      queryResults.setType(QueryResultsType.MODEL);
      queryResults.setModel(result);
      qe.close();
    } else {
      logger.error("Unsupported query type");
View Full Code Here


        Model model = JenaToClerezzaConverter.clerezzaMGraphToJenaModel(mGraph);

        Query sparqlQuery = QueryFactory.create(query, Syntax.syntaxARQ);
        QueryExecution qexec = QueryExecutionFactory.create(sparqlQuery, model);

        return JenaToClerezzaConverter.jenaModelToClerezzaMGraph(qexec.execConstruct()).getGraph();

    }

    /**
     * Method borrowed from the old ontonet ClerezzaStorage
View Full Code Here

    }
   
    logger.debug("Performing SPARQL query over Jena's engine");
    logger.debug("Query: \n" + query + "\n");
    QueryExecution qe = QueryExecutionFactory.create(q, this.session.getModel());
    Model result = qe.execConstruct();
    qe.close();
    return result;
  }

  public boolean execInsert(String query) {
View Full Code Here

      throw new IllegalArgumentException(qpe);
    }
    logger.debug("Performing SPARQL query over remote endpoint at " + endpoint);
    logger.debug("Query: \n" + query + "\n");
    QueryExecution qe = QueryExecutionFactory.sparqlService(endpoint, q);
    Model result = qe.execConstruct();
    qe.close();
    return result;
  }

  public boolean execInsert(String query) { //FIXME: awaiting for the Jena's QueryExecution implementation
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.