public class Searcher extends Object
Constructor and Description |
---|
Searcher()
Instantiates a new searcher.
|
Modifier and Type | Method and Description |
---|---|
void |
findAssociatedSimulations(GraphModelDocument doc)
Find associated simulations.
|
boolean |
hasDbErr()
Checks for a DB err.
|
static void |
main(String[] args)
The main method.
|
List<GraphModelDocument> |
parseSearchResponse(GraphDbManager.Response res)
Parses the search response.
|
void |
parseSedmlResponse(GraphDbManager.Response res,
GraphModelDocument doc)
Parses the search response.
|
void |
retrieveResources(GraphModelDocument doc)
Gets the further resources.
|
List<GraphModelDocument> |
search(String term)
Search.
|
List<GraphModelDocument> |
searchForAnnotation(String search)
Search for annotation.
|
List<GraphModelDocument> |
searchForAuthor(String search)
Search for author.
|
List<GraphModelDocument> |
searchForId(int term)
Search.
|
List<GraphModelDocument> |
searchForModelId(int id)
Search for model id.
|
public boolean hasDbErr()
public List<GraphModelDocument> searchForAnnotation(String search) throws IOException
search
- the searchIOException
- the IO exceptionpublic List<GraphModelDocument> searchForAuthor(String search) throws IOException
search
- the searchIOException
- the IO exceptionpublic List<GraphModelDocument> searchForModelId(int id) throws IOException
id
- the idIOException
- the IO exceptionpublic void findAssociatedSimulations(GraphModelDocument doc) throws IOException
doc
- the docIOException
- the IO exceptionpublic void parseSedmlResponse(GraphDbManager.Response res, GraphModelDocument doc)
res
- the resdoc
- the docpublic List<GraphModelDocument> parseSearchResponse(GraphDbManager.Response res)
res
- the respublic void retrieveResources(GraphModelDocument doc) throws org.apache.http.client.ClientProtocolException, IOException, URISyntaxException
doc
- the docorg.apache.http.client.ClientProtocolException
- the client protocol exceptionIOException
- the IO exceptionURISyntaxException
- the URI syntax exceptionpublic List<GraphModelDocument> searchForId(int term) throws org.apache.http.client.ClientProtocolException, IOException, URISyntaxException
term
- the termorg.apache.http.client.ClientProtocolException
- the client protocol exceptionIOException
- the IO exceptionURISyntaxException
- the URI syntax exceptionpublic List<GraphModelDocument> search(String term) throws org.apache.http.client.ClientProtocolException, IOException, URISyntaxException
term
- the termorg.apache.http.client.ClientProtocolException
- the client protocol exceptionIOException
- the IO exceptionURISyntaxException
- the URI syntax exceptionpublic static void main(String[] args) throws IOException, URISyntaxException
args
- the argsIOException
- the IO exceptionURISyntaxException
- the URI syntax exceptionCopyright © 2019 SEMS project @ University of Rostock. All rights reserved.