Morre
, MorreCrawlerInterface
, Serializable
public class HttpMorreClient extends Object implements Morre, MorreCrawlerInterface, Serializable
Constructor | Description |
---|---|
HttpMorreClient(String morreUrl) |
Modifier and Type | Method | Description |
---|---|---|
boolean |
addModel(CrawledModel model) |
Adds a model to the database.
|
List<ModelResult> |
aggregatedModelQuery(String query,
String aggregationType,
String rankersWeights) |
Returns the available features for a given query type.
|
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> |
doSimpleAggregatedModelQuery(String queryType,
String keyword,
String aggregationType,
String rankersWeights) |
Searches for a Person 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 and an aggregation 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
- the morre client exceptionMorreCommunicationException
- the morre communication exceptionMorreException
- the morre exceptionpublic List<ModelResult> aggregatedModelQuery(String query, String aggregationType, String rankersWeights) throws MorreClientException, MorreCommunicationException, MorreException
Morre
aggregatedModelQuery
in interface Morre
query
- the queryaggregationType
- the aggregation typerankersWeights
- the ranker weightsMorreClientException
- the morre client exceptionMorreCommunicationException
- the morre communication exceptionMorreException
- the morre exceptionpublic List<String> getQueryFeatures(String queryType) throws MorreException, MorreClientException, MorreCommunicationException
Morre
getQueryFeatures
in interface Morre
queryType
- the query typeMorreException
- the morre exceptionMorreClientException
- the morre client exceptionMorreCommunicationException
- the morre communication exceptionpublic List<ModelResult> doModelQuery(String queryType, FeatureSet features) throws MorreClientException, MorreCommunicationException, MorreException
Morre
getQueryFeatures
.doModelQuery
in interface Morre
queryType
- the query typefeatures
- the featuresModelResults
MorreClientException
- the morre client exceptionMorreCommunicationException
- the morre communication exceptionMorreException
- the morre exceptionpublic 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
queryType
- the query typekeyword
- StringModelResults
MorreException
- the morre exceptionMorreClientException
- the morre client exceptionMorreCommunicationException
- the morre communication exceptionpublic List<ModelResult> doSimpleAggregatedModelQuery(String queryType, String keyword, String aggregationType, String rankersWeights) throws MorreException, MorreClientException, MorreCommunicationException
Morre
getQueryFeatures
.doSimpleAggregatedModelQuery
in interface Morre
queryType
- the query typekeyword
- the keywordaggregationType
- the aggregation typerankersWeights
- the rankers weightsPersonResults
MorreException
- the morre exceptionMorreClientException
- the morre client exceptionMorreCommunicationException
- the morre communication exceptionpublic List<PersonResult> doPersonQuery(FeatureSet features) throws MorreClientException, MorreCommunicationException, MorreException
Morre
getQueryFeatures
.doPersonQuery
in interface Morre
features
- the featuresPersonResults
MorreClientException
- the morre client exceptionMorreCommunicationException
- the morre communication exceptionMorreException
- the morre exceptionpublic List<AnnotationResult> doAnnotationQuery(String query) throws MorreClientException, MorreCommunicationException, MorreException
Morre
doAnnotationQuery
in interface Morre
query
- StringAnnotationResults
MorreClientException
- the morre client exceptionMorreCommunicationException
- the morre communication exceptionMorreException
- the morre exceptionpublic List<PublicationResult> doPublicationQuery(FeatureSet features) throws MorreException, MorreClientException, MorreCommunicationException
Morre
getQueryFeatures
.doPublicationQuery
in interface Morre
features
- the featuresPublicationResults
MorreException
- the morre exceptionMorreClientException
- the morre client exceptionMorreCommunicationException
- the morre communication exceptionpublic List<String> getModelHistory(String fileId) throws MorreClientException, MorreCommunicationException, MorreException
MorreCrawlerInterface
getModelHistory
in interface MorreCrawlerInterface
fileId
- the file idMorreClientException
- the morre client exceptionMorreCommunicationException
- the morre communication exceptionMorreException
- the morre exceptionpublic CrawledModel getModelVersion(String fileId, String versionId) throws MorreClientException, MorreCommunicationException, MorreException
MorreCrawlerInterface
getModelVersion
in interface MorreCrawlerInterface
fileId
- the file idversionId
- the version idMorreClientException
- the morre client exceptionMorreCommunicationException
- the morre communication exceptionMorreException
- the morre exceptionpublic CrawledModel getLatestModelVersion(String fileId) throws MorreClientException, MorreCommunicationException, MorreException
MorreCrawlerInterface
getLatestModelVersion
in interface MorreCrawlerInterface
fileId
- the file idMorreClientException
- the morre client exceptionMorreCommunicationException
- the morre communication exceptionMorreException
- the morre exceptionpublic boolean addModel(CrawledModel model) throws MorreClientException, MorreCommunicationException, MorreException
MorreCrawlerInterface
addModel
in interface MorreCrawlerInterface
model
- the modelMorreClientException
- the morre client exceptionMorreCommunicationException
- the morre communication exceptionMorreException
- the morre exceptionCopyright © 2018 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.