Morre, MorreCrawlerInterface, Serializablepublic 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
MalformedURLExceptionpublic List<ModelResult> modelQuery(String query) throws MorreClientException, MorreCommunicationException, MorreException
MorremodelQuery in interface Morrequery - StringModelResultsMorreClientException - the morre client exceptionMorreCommunicationException - the morre communication exceptionMorreException - the morre exceptionpublic List<ModelResult> aggregatedModelQuery(String query, String aggregationType, String rankersWeights) throws MorreClientException, MorreCommunicationException, MorreException
MorreaggregatedModelQuery in interface Morrequery - 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
MorregetQueryFeatures in interface MorrequeryType - 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
MorregetQueryFeatures.doModelQuery in interface MorrequeryType - the query typefeatures - the featuresModelResultsMorreClientException - the morre client exceptionMorreCommunicationException - the morre communication exceptionMorreException - the morre exceptionpublic List<ModelResult> doSimpleModelQuery(String queryType, String keyword) throws MorreException, MorreClientException, MorreCommunicationException
MorrequeryType
Note: Only some queryTypes are supporting this method!doSimpleModelQuery in interface MorrequeryType - the query typekeyword - StringModelResultsMorreException - 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
MorregetQueryFeatures.doSimpleAggregatedModelQuery in interface MorrequeryType - the query typekeyword - the keywordaggregationType - the aggregation typerankersWeights - the rankers weightsPersonResultsMorreException - the morre exceptionMorreClientException - the morre client exceptionMorreCommunicationException - the morre communication exceptionpublic List<PersonResult> doPersonQuery(FeatureSet features) throws MorreClientException, MorreCommunicationException, MorreException
MorregetQueryFeatures.doPersonQuery in interface Morrefeatures - the featuresPersonResultsMorreClientException - the morre client exceptionMorreCommunicationException - the morre communication exceptionMorreException - the morre exceptionpublic List<AnnotationResult> doAnnotationQuery(String query) throws MorreClientException, MorreCommunicationException, MorreException
MorredoAnnotationQuery in interface Morrequery - StringAnnotationResultsMorreClientException - the morre client exceptionMorreCommunicationException - the morre communication exceptionMorreException - the morre exceptionpublic List<PublicationResult> doPublicationQuery(FeatureSet features) throws MorreException, MorreClientException, MorreCommunicationException
MorregetQueryFeatures.doPublicationQuery in interface Morrefeatures - the featuresPublicationResultsMorreException - the morre exceptionMorreClientException - the morre client exceptionMorreCommunicationException - the morre communication exceptionpublic List<String> getModelHistory(String fileId) throws MorreClientException, MorreCommunicationException, MorreException
MorreCrawlerInterfacegetModelHistory in interface MorreCrawlerInterfacefileId - the file idMorreClientException - the morre client exceptionMorreCommunicationException - the morre communication exceptionMorreException - the morre exceptionpublic CrawledModel getModelVersion(String fileId, String versionId) throws MorreClientException, MorreCommunicationException, MorreException
MorreCrawlerInterfacegetModelVersion in interface MorreCrawlerInterfacefileId - 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
MorreCrawlerInterfacegetLatestModelVersion in interface MorreCrawlerInterfacefileId - the file idMorreClientException - the morre client exceptionMorreCommunicationException - the morre communication exceptionMorreException - the morre exceptionpublic boolean addModel(CrawledModel model) throws MorreClientException, MorreCommunicationException, MorreException
MorreCrawlerInterfaceaddModel in interface MorreCrawlerInterfacemodel - the modelMorreClientException - the morre client exceptionMorreCommunicationException - the morre communication exceptionMorreException - the morre exceptionCopyright © 2018 SEMS (Simulation Experiment Management for Systems Biology). All rights reserved.