|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectconverters.XMLConverter
public class XMLConverter
This class is part of the YAGO converters (http://mpii.de/yago). It is licensed under the Creative Commons Attribution License (http://creativecommons.org/licenses/by/3.0) by the YAGO team (http://mpii.de/yago). This class converts the Yago Ontology to XML
Field Summary | |
---|---|
static boolean |
deductiveClosure
Tells whether the deductive closure shall be converted as well |
static boolean |
includeFactFacts
Tells whether facts about facts shall be included |
Constructor Summary | |
---|---|
XMLConverter()
|
Method Summary | |
---|---|
static void |
fileToXML(java.io.Writer out,
java.io.File yagoFile,
java.lang.String frame,
java.lang.String... attributes)
This method converts the facts of one YAGO file into an XML file. |
static void |
fromIniFile(java.io.File initFile)
reads the yago.ini file |
static void |
main(java.lang.String[] args)
Converts Yago to XML |
static void |
requestInformation()
request information instead of using yago.ini file |
static void |
writeEntitiesToXML()
This method writes the corresponding dtd for the entities xml document as well as the corresponding entities xml file. |
static void |
writeFactsToXML()
This method writes the corresponding dtd for the facts xml document as well as the corresponding facts xml file. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static boolean deductiveClosure
public static boolean includeFactFacts
Constructor Detail |
---|
public XMLConverter()
Method Detail |
---|
public static void writeFactsToXML() throws java.io.IOException
java.io.IOException
public static void writeEntitiesToXML() throws java.io.IOException
java.io.IOException
public static void fileToXML(java.io.Writer out, java.io.File yagoFile, java.lang.String frame, java.lang.String... attributes) throws java.io.FileNotFoundException, java.io.IOException
out
- - the writer for the XML fileyagoFile
- - the file to read the Yago data fromframe
- - the tag to be put around one itemattributes
- - the names of the columns of the yagoFile
java.io.FileNotFoundException
java.io.IOException
public static void fromIniFile(java.io.File initFile) throws java.lang.Exception
java.lang.Exception
public static void requestInformation() throws java.lang.Exception
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |