|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectconverters.DBpediaExport
public class DBpediaExport
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.
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 |
---|
public static java.io.File yagoFolder
public static java.io.File dbpediaFolder
public static java.util.Collection<DBpediaExport.ConvertRelation> convertRelations
Constructor Detail |
---|
public DBpediaExport()
Method Detail |
---|
public static java.lang.String dbpediaNameFor(java.lang.String yagoName, boolean yagoPrefix, boolean asString)
public static void convertFacts() throws java.io.IOException
java.io.IOException
public static void fromIniFile(java.io.File initFile) throws java.lang.Exception
initFile
-
java.lang.Exception
public static void main(java.lang.String[] args) throws java.lang.Exception
java.lang.Exception
public static void requestInformation() throws java.lang.Exception
java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |