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
Class Controller

    java.lang.Object
      es.upm.gib.eutilsrdfwrapper.Controller

    public class Controller

extends java.lang.Object

This class offers the public programmatic interface for launching queries to NCBI2RDF

Queries can be of two types: - SPARQL: in the form of a String - ConceptsQuery: a self-defined non-standard object that represents a query to this software. It allows defining a primary database and (optionally) secondary databases. For each database, we can define elements to be retrieved and filters to be applied. Each database can be linked to another database through a relation

Results can be returned in two forms: - A results object: a self-defined non-standard object that allows dynamically retrieving results from a performed query - A SPARQL results file: an XML file containing the results in SPARQL Results format

Constructor Summary
`Controller()`

Method Summary
`static java.lang.String` | `launchQueryGetPath(ConceptsQuery query)` Performs a query and retrieves the results as a SPARQL Results file
`static java.lang.String` | `launchQueryGetPath(java.lang.String query)` Performs a query and retrieves the results as a SPARQL Results file
`static Results` | `launchQueryGetResults(ConceptsQuery query)` Performs a query and retrieves the results as a Results object which allows retrieving the results as an iterator
`static Results` | `launchQueryGetResults(java.lang.String query)` Performs a query and retrieves the results as a Results object which allows retrieving the results as an iterator
`static void` | `main(java.lang.String[] args)`

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

Constructor Detail

### Controller

    public Controller()

Method Detail

### launchQueryGetResults

    public static Results launchQueryGetResults(ConceptsQuery query)

  Performs a query and retrieves the results as a Results object which allows retrieving the results as an iterator

  Parameters:
    `query` - a ConceptsQuery object containing the query to perform
  Returns:
    a Results object for reading the query results

### launchQueryGetResults

    public static Results launchQueryGetResults(java.lang.String query)

  Performs a query and retrieves the results as a Results object which allows retrieving the results as an iterator

  Parameters:
    `query` - a SPARQL query
  Returns:
    a Results object for reading the query results

### launchQueryGetPath

    public static java.lang.String launchQueryGetPath(ConceptsQuery query)

  Performs a query and retrieves the results as a SPARQL Results file

  Parameters:
    `query` - a ConceptsQuery object containing the query to perform
  Returns:
    the path to the generated SPARQL Results file. This file will contain 100 results

### launchQueryGetPath

    public static java.lang.String launchQueryGetPath(java.lang.String query)

  Performs a query and retrieves the results as a SPARQL Results file

  Parameters:
    `query` - a SPARQL query
  Returns:
    the path to the generated SPARQL Results file. This file will contain as many results as indicated in the LIMIT element of the SPARQL query, or 100 if no limit was indicated in the query

### main

    public static void main(java.lang.String[] args)

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

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