Package org.openrdf.sail.rdbms.model

Examples of org.openrdf.sail.rdbms.model.RdbmsResource


  @Override
  protected RdbmsStatement convert(ResultSet rs)
    throws SQLException
  {
    RdbmsResource ctx = createResource(rs, 1);
    RdbmsResource subj = createResource(rs, 3);
    RdbmsURI pred = (RdbmsURI)createResource(rs, 5);
    RdbmsValue obj = createValue(rs, 7);
    boolean explicit = rs.getBoolean(10);
    return new RdbmsStatement(subj, pred, obj, explicit, ctx);
  }
View Full Code Here


  @Override
  protected CloseableIteration<? extends Statement, SailException> getStatementsInternal(
      Resource subj, URI pred, Value obj, boolean includeInferred,
      Resource... contexts) throws SailException {
    RdbmsResource s = vf.asRdbmsResource(subj);
    RdbmsURI p = vf.asRdbmsURI(pred);
    RdbmsValue o = vf.asRdbmsValue(obj, pred);
    RdbmsResource[] c = vf.asRdbmsResource(contexts);
    return triples.find(s, p, o, includeInferred, c);
  }
View Full Code Here

      Resource... contexts) throws SailException {
    removeStatements(subj, pred, obj, true, contexts);
 
  protected int removeStatements(Resource subj, URI pred, Value obj,
      boolean explicit, Resource... contexts) throws SailException {
    RdbmsResource s = vf.asRdbmsResource(subj);
    RdbmsURI p = vf.asRdbmsURI(pred);
    RdbmsValue o = vf.asRdbmsValue(obj, pred);
    RdbmsResource[] c = vf.asRdbmsResource(contexts);
   
    int removeCount = 0;
View Full Code Here

  public CloseableIteration getStatements(Resource subj, URI pred, Value obj,
      Resource... contexts) throws QueryEvaluationException {
    try {
      RdbmsValueFactory vf = triples.getValueFactory();
      RdbmsResource s = vf.asRdbmsResource(subj);
      RdbmsURI p = vf.asRdbmsURI(pred);
      RdbmsValue o = vf.asRdbmsValue(obj, pred);
      RdbmsResource[] c = vf.asRdbmsResource(contexts);
      return triples.find(s, p, o, false, c);
    } catch (SailException e) {
View Full Code Here

    return createStatement(subject, predicate, object, true, context);
 

  public RdbmsStatement createStatement(Resource subject, URI predicate,
      Value object, boolean explicit, Resource context) {
    RdbmsResource subj = asRdbmsResource(subject);
    RdbmsURI pred = asRdbmsURI(predicate);
    RdbmsValue obj = asRdbmsValue(object, predicate);
    RdbmsResource ctx = asRdbmsResource(context);
    return new RdbmsStatement(subj, pred, obj, explicit, ctx);
  }
View Full Code Here

TOP

Related Classes of org.openrdf.sail.rdbms.model.RdbmsResource

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.