Package org.openrdf.sail.rdbms.model

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


  public RdbmsBNode createBNode() {
    return createBNode(bf.createBNode().getID());
  }

  public RdbmsBNode createBNode(String nodeID) {
    RdbmsBNode resource = bnodes.findInCache(nodeID);
    if (resource == null) {
      try {
        BNode impl = vf.createBNode(nodeID);
        resource = new RdbmsBNode(impl);
        bnodes.cache(resource);
      }
      catch (InterruptedException e) {
        throw new RdbmsRuntimeException(e);
      }
View Full Code Here


    assert stringValue != null : "Null stringValue for ID: " + num;
    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

      throw new RdbmsException(e);
    }
  }

  public RdbmsBNode createBNode(String nodeID) {
    RdbmsBNode resource = bnodes.findInCache(nodeID);
    if (resource == null) {
      try {
        BNode impl = vf.createBNode(nodeID);
        resource = new RdbmsBNode(impl);
        bnodes.cache(resource);
      } catch (SQLException e) {
        throw new RdbmsRuntimeException(e);
      } catch (InterruptedException e) {
        throw new RdbmsRuntimeException(e);
View Full Code Here

  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

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

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.