GraphSail extends NotifyingSailBase implements WrapperGraph<T> { public Vertex getVertex(final Value value) { return store.getVertex(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 getGetVertex() throws Exception { GraphSail gSail = (GraphSail) sail; SailConnection sc = gSail.getConnection(); try { sc.begin(); Vertex type = gSail.getVertex(RDF.TYPE); assertNull(type); sc.addStatement(RDF.TYPE, RDFS.LABEL, new LiteralImpl("type")); type = gSail.getVertex(RDF.TYPE); assertNotNull(type); assertEquals(RDF.TYPE.stringValue(), type.getProperty(GraphSail.VALUE)); } finally { sc.rollback(); sc.close(); } }