Package org.wikier.trioo.jtrioo.rdf

Examples of org.wikier.trioo.jtrioo.rdf.AbbrevRdfType


    }

  }
 
  public void visit(CURIE rdftype) {
    this.query.addTriplePattern(new TriplePattern(this.x, new AbbrevRdfType(), rdftype));
  }
View Full Code Here


    if (this.uri != null) {
      subject = new URIRef(this.uri);
    } else {
      subject = this.x;
    }
    this.query.addTriplePattern(new TriplePattern(subject, new AbbrevRdfType(), rdftype));
  }
View Full Code Here

    if (this.uri != null) {
      subject = new URIRef(this.uri);
    } else {
      subject = this.s;
    }
    this.query.addTriplePattern(new TriplePattern(subject, new AbbrevRdfType(), rdftype));
  }
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());
View Full Code Here

TOP

Related Classes of org.wikier.trioo.jtrioo.rdf.AbbrevRdfType

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.