public class HttpMorreClient extends Object implements Morre, MorreCrawlerInterface, Serializable
Constructor and Description |
---|
HttpMorreClient(String morreUrl) |
Modifier and Type | Method and Description |
---|---|
boolean |
addModel(CrawledModel model)
Adds a model to the database
|
List<AnnotationResult> |
doAnnotationQuery(String query)
Searches for Annotations on the basis of the gives features
The available features can be retrieved by
getQueryFeatures |
List<ModelResult> |
doModelQuery(String queryType,
FeatureSet features)
Performs a more complex query of the given type
The available features can be retrieved by
getQueryFeatures |
List<PersonResult> |
doPersonQuery(FeatureSet features)
Searches for a Person on the basis of the given features
The available features can be retrieved by
getQueryFeatures |
CrawledModel |
getLatestModelVersion(String fileId)
Returns the latest version of a model as dataholder object
|
List<String> |
getModelHistory(String fileId)
Returns all available versions of this model as String List
|
CrawledModel |
getModelVersion(String fileId,
String versionId)
Returns one specific version of a model as dataholder object
|
List<String> |
getQueryFeatures(String queryType)
Returns the available features for a given query type
|
List<ModelResult> |
modelQuery(String query)
Searches for a model on the basis of a simple query
|
public HttpMorreClient(String morreUrl) throws MalformedURLException
MalformedURLException
public List<ModelResult> modelQuery(String query) throws MorreClientException, MorreCommunicationException, MorreException
Morre
modelQuery
in interface Morre
MorreClientException
MorreCommunicationException
MorreException
public List<String> getQueryFeatures(String queryType) throws MorreException, MorreClientException, MorreCommunicationException
Morre
getQueryFeatures
in interface Morre
MorreException
MorreClientException
MorreCommunicationException
public List<ModelResult> doModelQuery(String queryType, FeatureSet features) throws MorreClientException, MorreCommunicationException, MorreException
Morre
getQueryFeatures
doModelQuery
in interface Morre
MorreCommunicationException
MorreException
MorreClientException
public List<PersonResult> doPersonQuery(FeatureSet features) throws MorreClientException, MorreCommunicationException, MorreException
Morre
getQueryFeatures
doPersonQuery
in interface Morre
MorreClientException
MorreCommunicationException
MorreException
public List<AnnotationResult> doAnnotationQuery(String query) throws MorreClientException, MorreCommunicationException, MorreException
Morre
getQueryFeatures
doAnnotationQuery
in interface Morre
MorreClientException
MorreCommunicationException
MorreException
public List<String> getModelHistory(String fileId) throws MalformedURLException, MorreCommunicationException
MorreCrawlerInterface
getModelHistory
in interface MorreCrawlerInterface
MalformedURLException
MorreCommunicationException
public CrawledModel getModelVersion(String fileId, String versionId) throws MalformedURLException, MorreCommunicationException
MorreCrawlerInterface
getModelVersion
in interface MorreCrawlerInterface
MalformedURLException
MorreCommunicationException
public CrawledModel getLatestModelVersion(String fileId) throws MalformedURLException, MorreCommunicationException
MorreCrawlerInterface
getLatestModelVersion
in interface MorreCrawlerInterface
MalformedURLException
MorreCommunicationException
public boolean addModel(CrawledModel model) throws MalformedURLException, MorreCommunicationException
MorreCrawlerInterface
addModel
in interface MorreCrawlerInterface
MalformedURLException
MorreCommunicationException
Copyright © 2013 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.