protected void writeBNode(BNode bNode) throws IOException { writer.write("_:"); writer.write(bNode.getID()); }
protected void writeBNode(BNode bNode) throws IOException { writer.write("_:"); writer.write(bNode.getID()); }
protected void writeBNode(BNode bNode) throws IOException { writer.write("_:"); writer.write(bNode.getID()); }
protected void writeBNode(BNode bNode) throws IOException { writer.write("_:"); writer.write(bNode.getID()); }
private void writeBNode(BNode bnode) throws IOException { out.writeByte(BNODE_RECORD_MARKER); writeString(bnode.getID()); }
private void writeBNode(BNode bnode) throws IOException { out.writeByte(BNODE_RECORD_MARKER); writeString(bnode.getID()); }
private void writeBNode(BNode bNode) throws IOException { xmlWriter.textElement(BNODE_TAG, bNode.getID()); }
private void writeBNode(BNode bnode) throws IOException { out.writeByte(BNODE_RECORD_MARKER); writeString(bnode.getID()); }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o instanceof BNode) { BNode otherNode = (BNode)o; return this.getID().equals(otherNode.getID()); } return false; }
@Override public boolean equals(Object o) { if (this == o) { return true; } if (o instanceof BNode) { BNode otherNode = (BNode)o; return this.getID().equals(otherNode.getID()); } return false; }
private void writeBNode(BNode bnode) throws IOException { out.writeByte(BNODE_VALUE); writeString(bnode.getID()); }
private void writeBNode(BNode bNode) throws IOException { xmlWriter.textElement(BNODE_TAG, bNode.getID()); }
private void writeBNode(BNode bnode) throws IOException { out.writeByte(BNODE_VALUE); writeString(bnode.getID()); }
private void writeBNode(BNode bnode) throws IOException { out.writeByte(BNODE_VALUE); writeString(bnode.getID()); }
protected void serialize(BNode bnode, XMLWriter xmlWriter) throws IOException { if (bnode != null) { xmlWriter.textElement(TransactionXMLConstants.BNODE_TAG, bnode.getID()); } else { serializeNull(xmlWriter); } }
protected void serialize(BNode bnode, XMLWriter xmlWriter) throws IOException { if (bnode != null) { xmlWriter.textElement(TransactionXMLConstants.BNODE_TAG, bnode.getID()); } else { serializeNull(xmlWriter); } }
private String generateIdentifier(RepositoryConnection conn, KnowledgeBase kb) { ValueFactory vf = conn.getValueFactory(); // default value of basePrefix is IriConstants.INCEPTION_NAMESPACE String basePrefix = kb.getBasePrefix(); return basePrefix + vf.createBNode().getID(); }
/** * See {@link #getOrCreateMemValue(Value)} for description. */ public synchronized MemBNode getOrCreateMemBNode(BNode bnode) { MemBNode memBNode = getMemBNode(bnode); if (memBNode == null) { memBNode = new MemBNode(this, bnode.getID()); boolean wasNew = bnodeRegistry.add(memBNode); assert wasNew : "Created a duplicate MemBNode for bnode " + bnode; } return memBNode; }
@Override public AGGraph createGraph() { // Get an unused blank node id from the server. Note that using // createAnon() would generate an illegal id based on a uuid. String id = conn.getValueFactory().createBNode().getID(); Node anon = NodeFactory.createBlankNode(id); return new AGGraph(this, anon); }