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.aewrapper.queryprocessing
Class QueryProcessorNoExceptions

    java.lang.Object
      es.upm.gib.aewrapper.queryprocessing.QueryProcessorNoExceptions

    public class QueryProcessorNoExceptions

extends java.lang.Object

This class essentially offers the same querying functionality found on the QueryProcessor class. The only difference is that the public methods do not throw any exceptions. Errors are notified through specific String messages instead of the path to the result file. In order to be able to distinguish errors from paths to result file, error messages always begin with the prefix "@@@" (the public static variable ERROR_PREFIX).

Field Summary
`static java.lang.String` | `ERROR_PREFIX`

Method Summary
`static java.lang.String` | `processQuery(java.lang.String queryString, java.util.Collection<java.lang.String> keywords)` Executes a SPARQL query against the arrayexpress database, using a set of keywords for extracting the relevant experiment list.
`static java.lang.String` | `processQuery(java.lang.String queryString, java.util.Collection<java.lang.String> keywords, ProgressNotification progressNotification)` Executes a SPARQL query against the arrayexpress database, using a set of keywords for extracting the relevant experiment list.
`static java.lang.String` | `processQuery(java.lang.String queryString, java.lang.String experiment)` Executes a SPARQL query against the arrayexpress database, using a specific experiment.
`static java.lang.String` | `processQuery(java.lang.String queryString, java.lang.String experiment, ProgressNotification progressNotification)` Executes a SPARQL query against the arrayexpress database, using a specific experiment.

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

Field Detail

### ERROR_PREFIX

    public static final java.lang.String ERROR_PREFIX

See Also:
  Constant Field Values

Method Detail

### processQuery

    public static java.lang.String processQuery(java.lang.String queryString,
                                                java.util.Collection<java.lang.String> keywords)

  Executes a SPARQL query against the arrayexpress database, using a set of keywords for extracting the relevant experiment list. A file containing the results in SPARQL Result format is generated.

  The keyword list should be a non-empty list of strings containing the desired keywords. For example, the following keyword list could be submitted: <'organism', 'rattus', 'mammary', 'glands'>.

  The keyword list will be resolved against the arrayexpress database itself, producing a list of experiment identifiers. The provided SPARQL query will be executed against all those experiments, and the individual results will be integrated into a single result.

  Parameters:
    `queryString` - the SPARQL query
    `keywords` - the keywords for extracting the relevant experiments
  Returns:
    the path to the generated results file, or an error message if there was some error. This result file contains the results to the original SPARQL query, and its format is SPARQL Result format (http://www.w3.org/TR/rdf-sparql-XMLres/).

### processQuery

    public static java.lang.String processQuery(java.lang.String queryString,
                                                java.util.Collection<java.lang.String> keywords,
                                                ProgressNotification progressNotification)

  Executes a SPARQL query against the arrayexpress database, using a set of keywords for extracting the relevant experiment list. A file containing the results in SPARQL Result format is generated.

  The keyword list should be a non-empty list of strings containing the desired keywords. For example, the following keyword list could be submitted: <'organism', 'rattus', 'mammary', 'glands'>.

  The keyword list will be resolved against the arrayexpress database itself, producing a list of experiment identifiers. The provided SPARQL query will be executed against all those experiments, and the individual results will be integrated into a single result.

  A progress notification implementation is used to keep track of the task progress (null if not used).

  Parameters:
    `queryString` - the SPARQL query
    `keywords` - the keywords for extracting the relevant experiments
    `progressNotification` - a progress notification implementation. Its method percentageCompleted(Integer) will be invoked with values from 0 to 100. The completeTask() method will be invoked when the task has been completed successfully
  Returns:
    the path to the generated results file, or an error message if there was some error. This result file contains the results to the original SPARQL query, and its format is SPARQL Result format (http://www.w3.org/TR/rdf-sparql-XMLres/).

### processQuery

    public static java.lang.String processQuery(java.lang.String queryString,
                                                java.lang.String experiment)

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

  Parameters:
    `queryString` - the SPARQL query
    `experiment` - the only experiment to be queried
  Returns:
    the path to the generated results file, or an error message if there was some error. This result file contains the results to the original SPARQL query, and its format is SPARQL Result format (http://www.w3.org/TR/rdf-sparql-XMLres/).

### processQuery

    public static java.lang.String processQuery(java.lang.String queryString,
                                                java.lang.String experiment,
                                                ProgressNotification progressNotification)

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

  A progress notification implementation is used to keep track of the task progress (null if not used).

  Parameters:
    `queryString` - the SPARQL query
    `experiment` - the only experiment to be queried
    `progressNotification` - a progress notification implementation. Its method percentageCompleted(Integer) will be invoked with values from 0 to 100. The completeTask() method will be invoked when the task has been completed successfully
  Returns:
    the path to the generated results file, or an error message if there was some error. This result file contains the results to the original SPARQL query, and its format is SPARQL Result format (http://www.w3.org/TR/rdf-sparql-XMLres/).

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

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