public abstract class AbstractConceptDictionaryService extends AbstractLanguageService implements ConceptDictionaryService
ALL_MATCHINGMETHODS, EMPTY_LANGUAGEPAIRS, EMPTY_LANGUAGEPATHS, EMPTY_LANGUAGES, MINIMUM_MATCHINGMETHODS| Constructor and Description |
|---|
AbstractConceptDictionaryService()
Constructor that doesn't take parameter(s).
|
AbstractConceptDictionaryService(Collection<Language> supportedLanguages)
Constructor that takes the set of supported languages as a parameter.
|
AbstractConceptDictionaryService(ServiceContext serviceContext,
Collection<Language> supportedLanguages)
Constructor that takes the service context and supported language as a parameter(s).
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract Collection<Concept> |
doGetRelatedConcepts(Language language,
String conceptId,
ConceptualRelation relation)
Runs a search on related concepts.
|
protected abstract Collection<Concept> |
doSearchConcepts(Language language,
String word,
MatchingMethod matchingMethod)
Runs a search on concepts.
|
Concept[] |
getRelatedConcepts(String language,
String conceptId,
String relation)
Gets concepts related to a concept by specific relationships
|
Concept[] |
searchConcepts(String language,
String word,
String matchingMethod)
Search concepts.
|
protected void |
setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)
Sets supported search methods.
|
getSupportedLanguageCollection, getSupportedLanguagePairCollection, getSupportedLanguages, setSupportedLanguageCollection, setSupportedLanguagesacquireSemaphore, checkStartupException, convertLanguagePairs, convertLanguages, doGetLastUpdate, getCurrentServiceContext, getDoDoubleSearch, getEliminateDuplicates, getInitParameter, getInitParameterBoolean, getInitParameterInt, getInitParameterLong, getInitParameters, getInitParameterString, getInitParameterUsingTransformer, getLastUpdate, getLogListener, getMaxResults, getMaxWaitMillisForExternalProcess, getRequestMimeHeaders, getServiceContext, getWorkDirectory, getWorkFile, log, parseDateMacro, processEnd, processEnd, processLap, processStart, releaseSemaphore, setCurrentServiceContext, setDoubleSearchResults, setEliminateDuplicates, setLogListener, setMaxResults, setMaxThreads, setMaxWaitMillisForExternalProcess, setMaxWaitMillisForThread, setMeasureProcessTime, setProcessTimeWarningThreasholdMillis, setStartupExceptiongetComponentServiceFactory, getFile, getServiceName, setComponentServiceFactory, setServiceNamepublic AbstractConceptDictionaryService()
public AbstractConceptDictionaryService(Collection<Language> supportedLanguages)
supportedLanguages - Set of supported languagespublic AbstractConceptDictionaryService(ServiceContext serviceContext, Collection<Language> supportedLanguages)
serviceContext - Service contextsupportedLanguages - Set of supported languagespublic final Concept[] searchConcepts(String language, String word, String matchingMethod) throws AccessLimitExceededException, InvalidParameterException, LanguageNotUniquelyDecidedException, NoAccessPermissionException, NoValidEndpointsException, ProcessFailedException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException, UnsupportedMatchingMethodException
ConceptDictionaryServicesearchConcepts in interface ConceptDictionaryServicelanguage - The language of the concept headword(s)word - Concept headwordmatchingMethod - Search methodAccessLimitExceededException - Exceeded the access limitInvalidParameterException - An invalid parameter givenLanguageNotUniquelyDecidedException - Multiple searchable languages exist, and one is not singly determinedUnsupportedLanguageException - An unsupported language was specified.UnsupportedMatchingMethodException - An unsupported matching method was specified.NoAccessPermissionException - The user making the call does not have execution privileges.NoValidEndpointsException - No valid endpoint exists.ProcessFailedException - The process failed.ServerBusyException - The server is in a busy state and could not complete the process.ServiceNotActiveException - The service is not active.ServiceNotFoundException - The service called was not found.public final Concept[] getRelatedConcepts(String language, String conceptId, String relation) throws AccessLimitExceededException, InvalidParameterException, LanguageNotUniquelyDecidedException, NoAccessPermissionException, ProcessFailedException, NoValidEndpointsException, ServerBusyException, ServiceNotActiveException, ServiceNotFoundException, UnsupportedLanguageException
ConceptDictionaryServicegetRelatedConcepts in interface ConceptDictionaryServicelanguage - Language that expresses the conceptconceptId - The Concept's IDrelation - Relation between conceptsAccessLimitExceededException - Exceeded an access restrictionInvalidParameterException - An invalid parameter was passed.LanguageNotUniquelyDecidedException - Multiple languages supported by the service exist, and one is not singly determined.UnsupportedLanguageException - An unsupported language was specified.NoAccessPermissionException - The user executing the call lacks execution privileges.ProcessFailedException - Process failed.NoValidEndpointsException - No valid endpoint exists.ServerBusyException - Cannot complete the process as the server is in a busy stateServiceNotActiveException - The service is not active.ServiceNotFoundException - The requested service was not found.protected abstract Collection<Concept> doSearchConcepts(Language language, String word, MatchingMethod matchingMethod) throws InvalidParameterException, ProcessFailedException
language - Languageword - WordmatchingMethod - Matching methodInvalidParameterException - An invalid parameter was passedProcessFailedException - Process failedprotected abstract Collection<Concept> doGetRelatedConcepts(Language language, String conceptId, ConceptualRelation relation) throws InvalidParameterException, ProcessFailedException
language - LanguageconceptId - Concept IDrelation - Relation with concept IDInvalidParameterException - An invalid parameter was passedProcessFailedException - Process failedprotected void setSupportedMatchingMethods(Set<MatchingMethod> supportedMatchingMethods)
supportedMatchingMethods - Set of supported search methods