Package org.openrdf.sail.rdbms.model

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


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


  }

  public void removeStatements(Resource subj, URI pred, Value obj, Resource... contexts)
    throws StoreException
  {
    RdbmsResource s = vf.asRdbmsResource(subj);
    RdbmsURI p = vf.asRdbmsURI(pred);
    RdbmsValue o = vf.asRdbmsValue(obj);
    RdbmsResource[] c = vf.asRdbmsResource(contexts);
    triples.remove(s, p, o, c);
  }
View Full Code Here

  public long size(Resource subj, URI pred, Value obj, boolean includeInferred, Resource... contexts)
    throws StoreException
  {
    try {
      RdbmsResource s = vf.asRdbmsResource(subj);
      RdbmsURI p = vf.asRdbmsURI(pred);
      RdbmsValue o = vf.asRdbmsValue(obj);
      return triples.size(s, p, o, vf.asRdbmsResource(contexts));
    }
    catch (SQLException e) {
View Full Code Here

  public RdbmsStatement createStatement(Resource subject, URI predicate, Value object) {
    return createStatement(subject, predicate, object, null);
  }

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

  public Cursor<? extends Statement> getStatements(Resource subj, URI pred, Value obj, Resource... contexts)
    throws StoreException
  {
    RdbmsValueFactory vf = triples.getValueFactory();
    RdbmsResource s = vf.asRdbmsResource(subj);
    RdbmsURI p = vf.asRdbmsURI(pred);
    RdbmsValue o = vf.asRdbmsValue(obj);
    RdbmsResource[] c = vf.asRdbmsResource(contexts);
    return triples.find(s, p, o, c);
  }
View Full Code Here

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

  }

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

  @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);
    return new RdbmsStatement(subj, pred, obj, ctx);
  }
View Full Code Here

  }

  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);
View Full Code Here

    return conn.isClosed();
  }

  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 {
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.