}
@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();
}
}