* @throws AllegroGraphException
*/
public static void main(String[] args) throws AllegroGraphException {
// 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");
// addStatements(ts);
getStatements(ts);
// String graphUri = "http://mmisw/org/ont/graph/ooici";
// String filename = "/Users/carueda/mmiworkspace/cisemanticprototype/rdf/cdm.owl";
// loadRdf(ts, filename, graphUri);
// Object context = "<http://example.org/wilburwine>";
// Object context = "<http://mmisw/org/ont/graph/ooici>";
// Object context = null;
// removeAllStatements(ts, context);
ts.closeTripleStore();
// Disconnect from the server
System.out.println("Disconnecting from the server.");
ags.disable();
System.out.println("Done.");
}