@Override public GraphQueryResult evaluate(final IPreparedQueryListener listener) throws Exception { setupConnectOptions(); return mgr.graphResults(opts, getQueryId(), listener); }
public GraphQueryResult getServiceDescription(final UUID uuid) throws Exception { // TODO Unit test when isolated by a transaction. The server is already // creating a tx for this so it might hit a fence post. final ConnectOptions opts = mgr.newConnectOptions(sparqlEndpointURL, uuid, tx); opts.method = "GET"; opts.setAcceptHeader(ConnectOptions.DEFAULT_GRAPH_ACCEPT_HEADER); return mgr .graphResults(opts, uuid, null/* preparedListener */); }
/** * Obtain a <a href="http://vocab.deri.ie/void/"> VoID </a> description of * the configured KBs. Each KB has its own namespace and corresponds to a * VoID "data set". * <p> * Note: This method uses an HTTP GET and hence can be cached by the server. * * @param uuid * The {@link UUID} to be associated with this request. * * @return A <a href="http://vocab.deri.ie/void/"> VoID </a> description of * the configured KBs. * * @throws Exception */ public GraphQueryResult getRepositoryDescriptions(final UUID uuid) throws Exception { final ConnectOptions opts = newConnectOptions(baseServiceURL + "/namespace", uuid, null/* tx */); opts.method = "GET"; opts.setAcceptHeader(ConnectOptions.DEFAULT_GRAPH_ACCEPT_HEADER); // Note: asynchronous result set processing. return graphResults(opts, uuid, null /* listener */); }
GraphQueryResult result = mgr.graphResults(opts, null, null);