Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## es.upm.gib.eutilsrdfwrapper.interfaceWeb
Class QuerySessions

    java.lang.Object
      es.upm.gib.eutilsrdfwrapper.interfaceWeb.QuerySessions

    public class QuerySessions

extends java.lang.Object

This class essentially offers the same querying functionality found on the QueryProcessor class. The public methods offered however always return instantly, returning a session identifier for following up the progress of the query, which remains executing on the background.

We can let the library generate the session identifier (in this case the code will make sure that this value is unique) or provide our own value of session identifier (in this case it is responsibility of the client to check that no other query shares this identifier)

The session identifier allows asking for the progress of the submitted query (or asking for the result, if it is complete). The result will be, as usual, the path to the generated results file (or an error message, if it starts with the "@@@" prefix)

Constructor Summary
`QuerySessions()`

Method Summary
`static void` | `addResults(java.lang.String sessionID)`
`static void` | `createResults(java.lang.String sessionID)`
`static java.util.List<java.lang.String>` | `getdbList(java.lang.String sessionID)`
`static org.jdom.Document` | `getDocument(java.lang.String sessionID)`
`static QuerySessions` | `getInstance()` Retrieves the static instance of this singleton
`static Results` | `getResults(java.lang.String sessionID)`
`static void` | `processQuery(java.lang.String sessionID, Results results, java.util.List<java.lang.String> dbList)` Executes a SPARQL query against the arrayexpress database, using a specific experiment.
`static void` | `removeSession(java.lang.String sessionID)`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### QuerySessions

    public QuerySessions()

Method Detail

### getInstance

    public static QuerySessions getInstance()

  Retrieves the static instance of this singleton

  Returns:
    the instance of this singleton

### removeSession

    public static void removeSession(java.lang.String sessionID)

### processQuery

    public static void processQuery(java.lang.String sessionID,
                                    Results results,
                                    java.util.List<java.lang.String> dbList)

  Executes a SPARQL query against the arrayexpress database, using a specific experiment. A file containing the results in SPARQL Result format is generated.

  The query is executed in background. A session identifier is generated and returned by this method. This identifier allows following up the progress of the query

  Parameters:
    `sessionID` - the session identifier to use for this query. This identifier should never match any previously used session identifier

### getResults

    public static Results getResults(java.lang.String sessionID)

### getdbList

    public static java.util.List<java.lang.String> getdbList(java.lang.String sessionID)

### getDocument

    public static org.jdom.Document getDocument(java.lang.String sessionID)

### addResults

    public static void addResults(java.lang.String sessionID)

### createResults

    public static void createResults(java.lang.String sessionID)

Overview | Package | Class | Tree | Deprecated | Index | Help

PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD