converters
Class AlchConverter

java.lang.Object
  extended by converters.AlchConverter

public class AlchConverter
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 YAGO to the DB format required by Alchemy

Author:
Fabian M. Suchanek

Field Summary
static java.io.File outputFolder
          target output folder
static boolean test
          set to true to run as test only top 100 of each file
static java.io.File yagoFolder
          the yago folder
 
Constructor Summary
AlchConverter()
           
 
Method Summary
static void entityList(java.io.Writer out)
          creates the entity list
static void facts(java.io.File outputFolder)
          creates the fact list
static void fromIniFile(java.io.File initFile)
          reads the parameters from the ini file
static void main(java.lang.String[] args)
          main method requires no args but a yago ini path can be provided
static java.lang.String mlnNameFor(java.lang.Object entity)
          minimises the entity name
static void requestInformation()
          request information instead of using yago.ini file
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

yagoFolder

public static java.io.File yagoFolder
the yago folder


outputFolder

public static java.io.File outputFolder
target output folder


test

public static boolean test
set to true to run as test only top 100 of each file

Constructor Detail

AlchConverter

public AlchConverter()
Method Detail

mlnNameFor

public static java.lang.String mlnNameFor(java.lang.Object entity)
minimises the entity name


entityList

public static void entityList(java.io.Writer out)
                       throws java.lang.Exception
creates the entity list

Parameters:
out -
Throws:
java.lang.Exception

facts

public static void facts(java.io.File outputFolder)
                  throws java.lang.Exception
creates the fact list

Parameters:
outputFolder - file
Throws:
java.lang.Exception

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
main method requires no args but a yago ini path can be provided

Parameters:
args -
Throws:
java.lang.Exception

fromIniFile

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

Parameters:
initFile -
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