Package it.uniroma1.lcl.babelnet
Class BabelNetConfiguration
- java.lang.Object
-
- it.uniroma1.lcl.babelnet.BabelNetConfiguration
-
public class BabelNetConfiguration extends Object
ThePropertiesConfigurationhub for the BabelNet API.- Author:
- navigli
-
-
Field Summary
Fields Modifier and Type Field Description static StringCONFIG_FILEBabelNet .properties filenamestatic StringCONFIG_VAR_FILEBabelNet .var.properties filenamestatic StringDOCUMENTATION_URLURL of the BabelNet guide
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description List<it.uniroma1.lcl.jlt.util.Language>getBabelLanguages()Gets the BabelNet languages specified in the config fileStringgetBabelNetBaseDir()Gets the BabelNet base directoryStringgetBabelNetDictIndexDir()Gets the BabelNet dictionary index directoryStringgetBabelNetGlossIndexDir()Gets the BabelNet gloss index directoryStringgetBabelNetGraphIndexDir()Gets the BabelNet graph index directoryStringgetBabelNetImageIndexDir()Gets the BabelNet image index directoryStringgetBabelNetImageRestFulUrl()Gets the BabelNet image RESTful URLStringgetBabelNetInfoIndexDir()Gets the BabelNet info index directoryStringgetBabelNetKey()Gets the BabelNet online keyStringgetBabelNetLexiconIndexDir()Gets the BabelNet lexicon index directoryStringgetBabelNetMappingIndexDir()Gets the BabelNet mapping index directoryStringgetBabelNetRestFulUrl()Gets the BabelNet RESTful URLStringgetBadImageListPath()Returns the path of the bad image liststatic BabelNetConfigurationgetInstance()Returns the configuration instanceStringgetPointerListPath()Returns the path of the pointer listStringgetWordNetInfoIndexDir()Gets the WordNet dictionary index directorybooleanisBadImageFilterActive()Returns a boolean specifying whether the bad image filter is activebooleanisMULConversionFilterActive()Returns a boolean specifying whether the MUL conversion is activebooleanisWordAtlasMainSensesSupportActive()Returns a boolean specifying whether the support of the WordAtlas main senses is activevoidsetBabelNetDir(String babelNetDirPath)Sets BabelNetDir pathvoidsetBasePath(String baseAbsolutePath)Sets absolute base pathvoidsetConfigurationFile(File configurationFile)Set the file from which to load the new properties
-
-
-
Field Detail
-
DOCUMENTATION_URL
public static final String DOCUMENTATION_URL
URL of the BabelNet guide- See Also:
- Constant Field Values
-
CONFIG_FILE
public static String CONFIG_FILE
BabelNet .properties filename
-
CONFIG_VAR_FILE
public static String CONFIG_VAR_FILE
BabelNet .var.properties filename
-
-
Method Detail
-
getInstance
public static BabelNetConfiguration getInstance()
Returns the configuration instance- Returns:
- an instance of
BabelNetConfiguration
-
setConfigurationFile
public void setConfigurationFile(File configurationFile)
Set the file from which to load the new properties- Parameters:
configurationFile- the file under the config/ folder to load the properties from
-
getBabelNetBaseDir
public String getBabelNetBaseDir()
Gets the BabelNet base directory- Returns:
- the BabelNet base directory
-
getBabelNetLexiconIndexDir
public String getBabelNetLexiconIndexDir()
Gets the BabelNet lexicon index directory- Returns:
- the BabelNet lexicon index directory
-
getBabelNetDictIndexDir
public String getBabelNetDictIndexDir()
Gets the BabelNet dictionary index directory- Returns:
- the BabelNet dictionary index directory
-
getBabelNetInfoIndexDir
public String getBabelNetInfoIndexDir()
Gets the BabelNet info index directory- Returns:
- the BabelNet info index directory
-
getWordNetInfoIndexDir
public String getWordNetInfoIndexDir()
Gets the WordNet dictionary index directory- Returns:
- the WordNet dictionary index directory
-
getBabelNetGlossIndexDir
public String getBabelNetGlossIndexDir()
Gets the BabelNet gloss index directory- Returns:
- the BabelNet gloss index directory
-
getBabelNetGraphIndexDir
public String getBabelNetGraphIndexDir()
Gets the BabelNet graph index directory- Returns:
- the BabelNet graph index directory
-
getBabelNetImageIndexDir
public String getBabelNetImageIndexDir()
Gets the BabelNet image index directory- Returns:
- the BabelNet image index directory
-
getBabelNetMappingIndexDir
public String getBabelNetMappingIndexDir()
Gets the BabelNet mapping index directory- Returns:
- the BabelNet mapping index directory
-
getBabelNetKey
public String getBabelNetKey()
Gets the BabelNet online key- Returns:
- the BabelNet online key
-
getBabelNetRestFulUrl
public String getBabelNetRestFulUrl()
Gets the BabelNet RESTful URL- Returns:
- the BabelNet RESTful URL
-
getBabelNetImageRestFulUrl
public String getBabelNetImageRestFulUrl()
Gets the BabelNet image RESTful URL- Returns:
- the BabelNet image RESTful URL
-
getBabelLanguages
public List<it.uniroma1.lcl.jlt.util.Language> getBabelLanguages()
Gets the BabelNet languages specified in the config file- Returns:
- the BabelNet languages specified in the config file
-
isBadImageFilterActive
public boolean isBadImageFilterActive()
Returns a boolean specifying whether the bad image filter is active- Returns:
- a boolean specifying whether the bad image filter is active
-
isMULConversionFilterActive
public boolean isMULConversionFilterActive()
Returns a boolean specifying whether the MUL conversion is active- Returns:
- a boolean specifying whether the MUL conversion is active
-
isWordAtlasMainSensesSupportActive
public boolean isWordAtlasMainSensesSupportActive()
Returns a boolean specifying whether the support of the WordAtlas main senses is active- Returns:
- a boolean specifying whether the support of the WordAtlas main senses is active
-
getBadImageListPath
public String getBadImageListPath()
Returns the path of the bad image list- Returns:
- the path of the bad image list
-
getPointerListPath
public String getPointerListPath()
Returns the path of the pointer list- Returns:
- the path of the pointer list
-
setBasePath
public void setBasePath(String baseAbsolutePath)
Sets absolute base path- Parameters:
baseAbsolutePath- the absolute base path
-
setBabelNetDir
public void setBabelNetDir(String babelNetDirPath)
Sets BabelNetDir path- Parameters:
babelNetDirPath- the BabelNetDir path
-
-