Class OWLtranslator

java.lang.Object
com.articulate.sigma.trans.OWLtranslator

public class OWLtranslator extends Object
Read and write OWL format from Sigma data structures.
  • Field Details

    • ot

      public static OWLtranslator ot
    • initNeeded

      public static boolean initNeeded
    • kb

      public KB kb
  • Constructor Details

    • OWLtranslator

      public OWLtranslator()
  • Method Details

    • removeQuotes

      public static String removeQuotes(String s)
      Remove quotes around a string
    • read

      public static void read(String filename) throws IOException
      Read OWL format.
      Throws:
      IOException
    • writeSUMOTerm

      public void writeSUMOTerm(PrintWriter pw, String term)
      Write OWL format.
    • writeKB

      public void writeKB() throws IOException
      Write OWL format.
      Throws:
      IOException
    • writeKB

      public void writeKB(String path) throws IOException
      Write OWL format.
      Throws:
      IOException
    • writeWordNet

      public void writeWordNet(PrintWriter pw) throws IOException
      Write OWL format for SUMO-WordNet mappings.
      Throws:
      IOException
    • writeTerm

      public void writeTerm(PrintWriter pw, String term)
      Write OWL format for a SUMO or WordNet term.
    • writeSUMOOWLDefs

      public void writeSUMOOWLDefs(PrintWriter pw)
      Write OWL format.
    • writeDefsAsFiles

      public void writeDefsAsFiles()
      Write OWL format.
    • initOnce

      public static void initOnce(String kbName)
    • showHelp

      public static void showHelp()
    • main

      public static void main(String[] args)
      A test method.