Examples of RdbmsURI


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

  public RdbmsStatementIteration find(Resource subj, URI pred, Value obj,
      boolean includeInferred, Resource... ctxs) throws RdbmsException {
    try {
      RdbmsResource s = vf.asRdbmsResource(subj);
      RdbmsURI p = vf.asRdbmsURI(pred);
      RdbmsValue o = vf.asRdbmsValue(obj, pred);
      RdbmsResource[] c = vf.asRdbmsResource(ctxs);
      flush();
      SqlQueryBuilder query = buildSelectQuery(s, p, o, includeInferred, c);
      if (query == null)
View Full Code Here

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

  }

  public int remove(Resource subj, URI pred, Value obj, boolean explicit, Resource... ctxs)
      throws RdbmsException {
    RdbmsResource s = vf.asRdbmsResource(subj);
    RdbmsURI p = vf.asRdbmsURI(pred);
    RdbmsValue o = vf.asRdbmsValue(obj, pred);
    RdbmsResource[] c = vf.asRdbmsResource(ctxs);
    flush();
    try {
      Collection<Number> predicates;
View Full Code Here

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

  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

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

  @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

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

    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

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

  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) {
      throw new QueryEvaluationException(e);
View Full Code Here

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

 

  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

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

    RdbmsResource ctx = asRdbmsResource(context);
    return new RdbmsStatement(subj, pred, obj, explicit, ctx);
  }

  public RdbmsURI createURI(String uri) {
    RdbmsURI resource = uris.findInCache(uri);
    if (resource == null) {
      try {
        URI impl = vf.createURI(uri);
        resource = new RdbmsURI(impl);
        uris.cache(resource);
      } catch (SQLException e) {
        throw new RdbmsRuntimeException(e);
      } catch (InterruptedException e) {
        throw new RdbmsRuntimeException(e);
View Full Code Here

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

  }

  public RdbmsResource getRdbmsResource(Number num, String stringValue) {
    Number id = ids.idOf(num);
    if (ids.isURI(id))
      return new RdbmsURI(id, uris.getIdVersion(), vf.createURI(stringValue));
    return new RdbmsBNode(id, bnodes.getIdVersion(), vf.createBNode(stringValue));
  }
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.