public class VocabularyRetriever extends Object
| Constructor and Description |
|---|
VocabularyRetriever() |
| Modifier and Type | Method and Description |
|---|---|
eu.dnetlib.enabling.tools.SplittedQueryExecutor |
getQueryExecutor() |
List<VocabularyTerm> |
getSynonymsByEncoding(String code,
String encoding) |
VocabularyTerm |
getTermSynonyms(String vocabularyCode,
String termCode) |
Vocabulary |
getVocabulary(String id) |
Vocabulary |
getVocabularyByCode(String code) |
List<Vocabulary> |
listVocabularies() |
void |
setQueryExecutor(eu.dnetlib.enabling.tools.SplittedQueryExecutor queryExecutor) |
@Cacheable(value="vocabularies") public List<Vocabulary> listVocabularies()
@Cacheable(value="terms",
key="#id")
public Vocabulary getVocabulary(String id)
throws VocabularyNotFoundException
VocabularyNotFoundException@Cacheable(value="termsByCode",
key="#code")
public Vocabulary getVocabularyByCode(String code)
throws VocabularyNotFoundException
VocabularyNotFoundException@Cacheable(value="synonymsByCode",
key="#termCode")
public VocabularyTerm getTermSynonyms(String vocabularyCode,
String termCode)
throws VocabularyNotFoundException
VocabularyNotFoundException@Cacheable(value="synonymsByEncoding",
key="#code + \'@@@\' + #encoding")
public List<VocabularyTerm> getSynonymsByEncoding(String code,
String encoding)
throws org.dom4j.DocumentException
org.dom4j.DocumentExceptionpublic eu.dnetlib.enabling.tools.SplittedQueryExecutor getQueryExecutor()
public void setQueryExecutor(eu.dnetlib.enabling.tools.SplittedQueryExecutor queryExecutor)
Copyright © 2026. All rights reserved.