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 given query String
|
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 |
List<PublicationResult> |
doPublicationQuery(FeatureSet features)
Searches for a Publication on the basis of the given features
The available features can be retrieved by
getQueryFeatures |
List<ModelResult> |
doSimpleModelQuery(String queryType,
String keyword)
Performs a simple query with only one keyword field for the given
queryType
Note: Only some queryTypes are supporting this method! |
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
query
- StringModelResults
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
ModelResults
MorreClientException
MorreCommunicationException
MorreException
public List<ModelResult> doSimpleModelQuery(String queryType, String keyword) throws MorreException, MorreClientException, MorreCommunicationException
Morre
queryType
Note: Only some queryTypes are supporting this method!doSimpleModelQuery
in interface Morre
keyword
- StringModelResults
MorreException
MorreClientException
MorreCommunicationException
public List<PersonResult> doPersonQuery(FeatureSet features) throws MorreClientException, MorreCommunicationException, MorreException
Morre
getQueryFeatures
doPersonQuery
in interface Morre
PersonResults
MorreClientException
MorreCommunicationException
MorreException
public List<AnnotationResult> doAnnotationQuery(String query) throws MorreClientException, MorreCommunicationException, MorreException
Morre
doAnnotationQuery
in interface Morre
query
- StringAnnotationResults
MorreClientException
MorreCommunicationException
MorreException
public List<PublicationResult> doPublicationQuery(FeatureSet features) throws MorreException, MorreClientException, MorreCommunicationException
Morre
getQueryFeatures
doPublicationQuery
in interface Morre
PublicationResults
MorreException
MorreClientException
MorreCommunicationException
public List<String> getModelHistory(String fileId) throws MorreClientException, MorreCommunicationException, MorreException
MorreCrawlerInterface
getModelHistory
in interface MorreCrawlerInterface
MorreCommunicationException
MorreException
MorreClientException
public CrawledModel getModelVersion(String fileId, String versionId) throws MorreClientException, MorreCommunicationException, MorreException
MorreCrawlerInterface
getModelVersion
in interface MorreCrawlerInterface
MorreCommunicationException
MorreException
MorreClientException
public CrawledModel getLatestModelVersion(String fileId) throws MorreClientException, MorreCommunicationException, MorreException
MorreCrawlerInterface
getLatestModelVersion
in interface MorreCrawlerInterface
MorreCommunicationException
MorreException
MorreClientException
public boolean addModel(CrawledModel model) throws MorreClientException, MorreCommunicationException
MorreCrawlerInterface
addModel
in interface MorreCrawlerInterface
MorreCommunicationException
MorreClientException
Copyright © 2014 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.