Package org.wikier.trioo.jtrioo.rdf.sparql

Examples of org.wikier.trioo.jtrioo.rdf.sparql.SelectQuery


  private Variable x;
  private SelectQuery query;
 
  public SelectQueryGenerator() {
    this.x = new Variable("x");
    this.query = new SelectQuery();
  }
View Full Code Here


    }
  }

  @SuppressWarnings("rawtypes")
  public Object find(String uri) {
    SelectQuery q = new SelectQuery();
    Variable x = new Variable("x");
    q.addTriplePattern(new TriplePattern(x, new AbbrevRdfType(), new Variable("type")));
    q.addFilter("str(" + x.toString() +") = \"" + uri + "\"");
    QueryCodeGenerator qg = new QueryCodeGenerator();
    qg.visit(q);
    QueryExecutor qe = this.session.getQueryExecutor();
    ResultSet rs = qe.execSelect(qg.toString());
    RDFMetaResource metaResource = new RDFMetaResource(Object.class);
View Full Code Here

TOP

Related Classes of org.wikier.trioo.jtrioo.rdf.sparql.SelectQuery

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.