Examples of RdbmsValue


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

    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

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

  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)
        return new EmptyRdbmsStatementIteration();
View Full Code Here

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

  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;
      if (p == null) {
View Full Code Here

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

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

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

 
  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;

    List<RdbmsStatement> removedStatements = Collections.emptyList();
View Full Code Here

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

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

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

    throws RdbmsException
  {
    try {
      if (r == null)
        return ValueTable.NIL_ID;
      RdbmsValue value = asRdbmsValue(r, predicate);
      if (value instanceof RdbmsURI)
        return uris.getInternalId((RdbmsURI)value);
      if (value instanceof RdbmsBNode)
        return bnodes.getInternalId((RdbmsBNode)value);
      return literals.getInternalId((RdbmsLiteral)value);
View Full Code Here

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

    throws SQLException, InterruptedException
  {
    throwException();
    List<RdbmsValue> values = new ArrayList<RdbmsValue>(getChunkSize());
    Map<Long, Number> map = new HashMap<Long, Number>(getChunkSize());
    RdbmsValue taken = queue.poll();
    while (taken != null) {
      values.clear();
      values.add(taken);
      synchronized (assignIds) {
        assignIds(values, map);
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.