Package virtuoso.jena.driver

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


    buffer.append("SELECT DISTINCT ?s ?p").append(SPACE);
    buffer.append("FROM ").append(RICORDO).append(SPACE);
    buffer.append("WHERE { ?s rcmd:elementOf <").append(modelName).append("> . ?s ?p <").append(miriumUrn).append("> }");
       
    VirtuosoQueryExecution vqe = VirtuosoQueryExecutionFactory.create (buffer.toString(), graph);
    return vqe.execSelect();
  }
 
  public ResultSet getVariableQuery(String modelName){
    StringBuffer buffer = new StringBuffer();
    buffer.append(INFERANCE).append(SPACE);
View Full Code Here

    buffer.append("SELECT DISTINCT ?s").append(SPACE);
    buffer.append("FROM ").append(RICORDO).append(SPACE);
    buffer.append("WHERE { ?s rcmd:elementOf <").append(modelName).append("> }");
       
    VirtuosoQueryExecution vqe = VirtuosoQueryExecutionFactory.create (buffer.toString(), graph);
    return vqe.execSelect();
  }
 
  public ResultSet getVariableAnnotationQuery(String variableName){   
    StringBuffer buffer = new StringBuffer();
    buffer.append(INFERANCE).append(SPACE);
View Full Code Here

    buffer.append(RCMD).append(SPACE);
    buffer.append("SELECT DISTINCT ?p ?o").append(SPACE);
    buffer.append("FROM ").append(RICORDO).append(SPACE);
    buffer.append("WHERE { <").append(variableName).append("> ?p ?o . FILTER regex(str(?p), \"biology\")} ");
        VirtuosoQueryExecution vqe = VirtuosoQueryExecutionFactory.create (buffer.toString(), graph);
    return vqe.execSelect();
  }
 
  public void insertAnnotString(String variableName, String property, String annotValue){
    StringBuffer buffer = new StringBuffer();
    buffer.append("INSERT INTO GRAPH  ").append(RICORDO).append(SPACE);
View Full Code Here

        "PREFIX skos: <http://www.w3.org/2004/02/skos/core#> " +
        "SELECT * WHERE { ?s skos:exactMatch ?o } ");

    VirtuosoQueryExecution vqe = VirtuosoQueryExecutionFactory.create (sparql, _graph);

    ResultSet results = vqe.execSelect();
    System.out.println("RESULT:");
    while (results.hasNext()) {
      QuerySolution result = results.nextSolution();
        RDFNode s = result.get("s");
        RDFNode o = result.get("o");
View Full Code Here

//    RESULT:
//       http://example.org/vocres/BBB
//       http://example.org/vocres/CCC
//       http://example.org/vocres/DDD
        
    ResultSet results = vqe.execSelect();
    System.out.println("RESULT:");
    while (results.hasNext()) {
      QuerySolution result = results.nextSolution();
      RDFNode o = result.get("o");
      System.out.println(" "+ o );
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.