public class Vocabulary extends Object implements IVocabulary
| Constructor and Description |
|---|
Vocabulary() |
| Modifier and Type | Method and Description |
|---|---|
String |
encoding(List<String> keys)
returns the normalized, encoded String for a given key if found, otherwise a special value -depending on the vocabulary- is returned indicating that it couldn't be normalized
|
List<String> |
encoding(List<String> aKeys,
String aDefaultPattern,
String aFilterFunction)
return the encoding for a given list of values using a default pattern and applying a filter function
|
String |
getDelimiter() |
String |
getName() |
Resource |
getResource() |
List<eu.dnetlib.data.collective.transformation.engine.functions.Vocabulary.Term> |
getTerms() |
String |
getVocabularyName() |
boolean |
isCaseSensitive() |
void |
setCaseSensitive(boolean isCaseSensitive) |
void |
setDelimiter(String delimiter) |
void |
setName(String name) |
void |
setResource(List<Map<String,?>> aTermList)
init the encoding with the given list of term parameters
|
void |
setResource(Resource resource)
init the encoding with term parameters from a vocabulary resource profile
|
void |
setTerms(List<eu.dnetlib.data.collective.transformation.engine.functions.Vocabulary.Term> terms) |
public List<eu.dnetlib.data.collective.transformation.engine.functions.Vocabulary.Term> getTerms()
public void setTerms(List<eu.dnetlib.data.collective.transformation.engine.functions.Vocabulary.Term> terms)
terms - the terms to setpublic String getName()
public void setName(String name)
name - the name to setpublic String getVocabularyName()
public String encoding(List<String> keys) throws ProcessingException
encoding in interface IVocabularykey - a list of Strings to encodeProcessingExceptionpublic void setResource(List<Map<String,?>> aTermList)
termList - list of parameters with expected key:value pairs 'name':string, 'encoding':string, 'synonyms':listpublic void setResource(Resource resource)
resource - public Resource getResource()
public void setCaseSensitive(boolean isCaseSensitive)
public boolean isCaseSensitive()
public void setDelimiter(String delimiter)
delimiter - the delimiter to setpublic String getDelimiter()
public List<String> encoding(List<String> aKeys, String aDefaultPattern, String aFilterFunction) throws ProcessingException
IVocabularyencoding in interface IVocabularyProcessingExceptionCopyright © 2025. All rights reserved.