Class OMWordnet

java.lang.Object
com.articulate.sigma.wordNet.OMWordnet
All Implemented Interfaces:
Serializable

public class OMWordnet extends Object implements Serializable
See Also:
  • Field Details

    • wordnets

      public Map<String,Map<String,List<String>>> wordnets
      This code is copyright Articulate Software (c) 2003. Some portions copyright Teknowledge (c) 2003 and reused under the terms of the GNU license. This software is released under the GNU Public License invalid input: '<'http://www.gnu.org/copyleft/gpl.html>. Users of this code also consent, by use of this code, to credit Articulate Software and Teknowledge in any writings, briefings, publications, presentations, or other representations of any software which incorporates, builds on, or uses this code. Please cite the following article in any publication with references: Pease, A., (2003). The Sigma Ontology Development Environment, in Working Notes of the IJCAI-2003 Workshop on Ontology and Distributed Systems, August 9, Acapulco, Mexico. Authors: Adam Pease Infosys LTD.
    • glosses

      public Map<String,Map<String,List<String>>> glosses
    • examples

      public Map<String,Map<String,List<String>>> examples
    • omw

      public static OMWordnet omw
    • disable

      public static boolean disable
    • lcodes

      public static List<String> lcodes
    • lnames

      public static List<String> lnames
  • Constructor Details

    • OMWordnet

      public OMWordnet()
  • Method Details

    • codeToLanguage

      public static String codeToLanguage(String code)
    • languageToCode

      public static String languageToCode(String lang)
    • toOMWsynset

      public static String toOMWsynset(String synset)
      Convert a 9-digit, POS-prefixed WordNet synset to a POS-suffix OMW synset.
    • fromOMWsynset

      public static String fromOMWsynset(String synset)
      Convert a POS-suffix OMW synset to an 8-digit WordNet synset.
    • encoder

      public static void encoder(Object object)
    • decoder

      public static <T> T decoder()
    • serializedOld

      public static boolean serializedOld()
      Check whether sources are newer than serialized version.
    • loadSerialized

      public static void loadSerialized()
      Load the most recently save serialized version.
    • serialize

      public static void serialize()
      save serialized version.
    • serializedExists

      public static boolean serializedExists()
    • readOMWfiles

      public static void readOMWfiles()
      Assumes a fixed set of files in the KBs directory.
    • generateOMWOWLformat

      public static void generateOMWOWLformat(KB kb)
    • formatWords

      public static String formatWords(String term, String kbName, String lang, String href)
      HTML format a list of word senses
      Parameters:
      term - is the SUMO term
      lang - is the SUMO term for a language (EnglishLanguage, FrenchLanguage etc)
    • displaySynset

      public static String displaySynset(String kbName, String synset, String params)
    • main

      public static void main(String[] args)
      A main method, used only for testing. It should not be called during normal operation.