Class BabelNetConfiguration

java.lang.Object
it.uniroma1.lcl.babelnet.BabelNetConfiguration

public class BabelNetConfiguration extends Object
The PropertiesConfiguration hub for the BabelNet API.
Author:
navigli
  • Field Details

    • DOCUMENTATION_URL

      public static final String DOCUMENTATION_URL
      URL of the BabelNet guide
      See Also:
    • CONFIG_FILE

      public static String CONFIG_FILE
      BabelNet .properties filename
    • CONFIG_VAR_FILE

      public static String CONFIG_VAR_FILE
      BabelNet .var.properties filename
  • Method Details

    • 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