GraphSail extends NotifyingSailBase implements WrapperGraph<T> { public Vertex addVertex(final Value value) { return store.addVertex(value); } GraphSail(final T graph);  GraphSail(final T graph, final String indexedPatterns); T getBaseGraph(); void initializeInternal(); void shutDownInternal(); boolean isWritable(); NotifyingSailConnection getConnectionInternal(); ValueFactory getValueFactory(); void useVolatileStatements(final boolean flag); void enforceUniqueStatements(final boolean flag); Vertex getVertex(final Value value); Vertex addVertex(final Value value); String toString(); static final String SEPARATOR; static final String PREDICATE_PROP; static final char URI_PREFIX; static final Pattern INDEX_PATTERN; static final String BNODE; static final String DEFAULT_NAMESPACE_PREFIX_KEY; static final String NULL_CONTEXT_NATIVE; }
@Test public void testAddVertex() throws Exception { GraphSail gSail = (GraphSail) sail; Value toAdd = new URIImpl("http: assertNull(gSail.getVertex(toAdd)); int count = countVertices(); Vertex added = gSail.addVertex(toAdd); assertNotNull(added); assertEquals(1 + count, countVertices()); assertEquals("http: added = gSail.getVertex(toAdd); assertNotNull(added); assertEquals("http: }