converters
Class DBpediaExport

java.lang.Object
  extended by converters.DBpediaExport

public class DBpediaExport
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 produces the N3 triples for the relations MEANS, TYPE, SUBCLASSOF in order to support the import of these facts to DBpedia. This code is intended as a boilerplate for the DBpedia team. The YAGO team does not actively maintain this code and does not guarantee that the code produces the desired output for DBpedia.

Author:
Fabian M. Suchanek

Nested Class Summary
static class DBpediaExport.ConvertRelation
          Represents a relation that is to be converted
 
Field Summary
static java.util.Collection<DBpediaExport.ConvertRelation> convertRelations
          Relations that are to be converted
static java.io.File dbpediaFolder
          holds the folder for the DBpedia output
static java.io.File yagoFolder
          holds the YAGO folder
 
Constructor Summary
DBpediaExport()
           
 
Method Summary
static void convertFacts()
          Produces the N3 output for DBpedia
static java.lang.String dbpediaNameFor(java.lang.String yagoName, boolean yagoPrefix, boolean asString)
          Creates a DBpedia identifier for a YAGO identifier.
static void fromIniFile(java.io.File initFile)
          reads the parameters from the ini file
static void main(java.lang.String[] args)
          main method for starting a DBpedia export. ini file does not need to be provided.
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
holds the YAGO folder


dbpediaFolder

public static java.io.File dbpediaFolder
holds the folder for the DBpedia output


convertRelations

public static java.util.Collection<DBpediaExport.ConvertRelation> convertRelations
Relations that are to be converted

Constructor Detail

DBpediaExport

public DBpediaExport()
Method Detail

dbpediaNameFor

public static java.lang.String dbpediaNameFor(java.lang.String yagoName,
                                              boolean yagoPrefix,
                                              boolean asString)
Creates a DBpedia identifier for a YAGO identifier. yagoPrefix is TRUE for the prefix "yago:" and FALSE for the prefix "dbpedia:"


convertFacts

public static void convertFacts()
                         throws java.io.IOException
Produces the N3 output for DBpedia

Throws:
java.io.IOException

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

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
main method for starting a DBpedia export. ini file does not need to be provided.

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