public class OWLtranslator extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
initNeeded |
KB |
kb |
static OWLtranslator |
ot |
| Constructor and Description |
|---|
OWLtranslator() |
| Modifier and Type | Method and Description |
|---|---|
static void |
initOnce(String kbName) |
static void |
main(String[] args)
A test method.
|
static void |
read(String filename)
Read OWL format.
|
static String |
removeQuotes(String s)
Remove quotes around a string
|
void |
writeDefsAsFiles()
Write OWL format.
|
void |
writeKB()
Write OWL format.
|
void |
writeKB(String path)
Write OWL format.
|
void |
writeSUMOOWLDefs(PrintWriter pw)
Write OWL format.
|
void |
writeSUMOTerm(PrintWriter pw,
String term)
Write OWL format.
|
void |
writeTerm(PrintWriter pw,
String term)
Write OWL format for a SUMO or WordNet term.
|
void |
writeWordNet(PrintWriter pw)
Write OWL format for SUMO-WordNet mappings.
|
public static OWLtranslator ot
public static boolean initNeeded
public KB kb
public static void read(String filename) throws IOException
IOExceptionpublic void writeSUMOTerm(PrintWriter pw, String term)
public void writeKB()
throws IOException
IOExceptionpublic void writeKB(String path) throws IOException
IOExceptionpublic void writeWordNet(PrintWriter pw) throws IOException
IOExceptionpublic void writeTerm(PrintWriter pw, String term)
public void writeSUMOOWLDefs(PrintWriter pw)
public void writeDefsAsFiles()
public static void initOnce(String kbName)
public static void main(String[] args)
Copyright © 2015. All rights reserved.