// Connect to the server, which must already be running.
AllegroGraphConnection ags = new AllegroGraphConnection();
try {
ags.enable();
} catch (Exception e) {
throw new AllegroGraphException("Server connection problem.", e);
}
// Access a store -- default is read-write access
System.out.println("Access: open a store, creating if necessary.");
AllegroGraph ts = ags.access("ooici", "/tmp");