converters
Class XMLConverter

java.lang.Object
  extended by converters.XMLConverter

public class XMLConverter
extends java.lang.Object

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

Author:
Gjergji Kasneci and Fabian M. Suchanek

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

deductiveClosure

public static boolean deductiveClosure
Tells whether the deductive closure shall be converted as well


includeFactFacts

public static boolean includeFactFacts
Tells whether facts about facts shall be included

Constructor Detail

XMLConverter

public XMLConverter()
Method Detail

writeFactsToXML

public static void writeFactsToXML()
                            throws java.io.IOException
This method writes the corresponding dtd for the facts xml document as well as the corresponding facts xml file.

Throws:
java.io.IOException

writeEntitiesToXML

public static void writeEntitiesToXML()
                               throws java.io.IOException
This method writes the corresponding dtd for the entities xml document as well as the corresponding entities xml file.

Throws:
java.io.IOException

fileToXML

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
This method converts the facts of one YAGO file into an XML file.

Parameters:
out - - the writer for the XML file
yagoFile - - the file to read the Yago data from
frame - - the tag to be put around one item
attributes - - the names of the columns of the yagoFile
Throws:
java.io.FileNotFoundException
java.io.IOException

fromIniFile

public static void fromIniFile(java.io.File initFile)
                        throws java.lang.Exception
reads the yago.ini file

Throws:
java.lang.Exception

requestInformation

public static void requestInformation()
                               throws java.lang.Exception
request information instead of using yago.ini file

Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Converts Yago to XML

Throws:
java.lang.Exception