Package org.aksw.qa.commons.load
Class LoaderController
java.lang.Object
org.aksw.qa.commons.load.LoaderController
Loads both QALD XML and JSON
- Author:
- ricardousbeck tortugaattack jonathanhuthmann
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static InputStreamgetInputStream(Dataset set)static Class<?>Deprecated.loadEventQA(InputStream in)loadNLQ(InputStream file)loadNLQ(InputStream file, String deriveUri)loadTSV(InputStream queries, String name)Use this to load tsv filesloadXML(InputStream file, String questionLang)This methods loads QALD XML files (used in QALD 1 to QALD 5)loadXML(InputStream file, String deriveUri, String questionLang)Deprecated.static InputStreammapDatasetToPath(Dataset set)qald3TestEsdbpediaLoader(String deriveUri, String questionLang)Deprecated.
-
Field Details
-
log
private static org.slf4j.Logger log
-
-
Constructor Details
-
LoaderController
public LoaderController()
-
-
Method Details
-
getInputStream
-
getLoadingAnchor
-
mapDatasetToPath
-
load
-
load
@Deprecated public static List<IQuestion> load(Dataset data, String deriveUri, String questionLang)Deprecated.Use this to load answers from server:AnswerSyncer -
qald3TestEsdbpediaLoader
@Deprecated private static List<IQuestion> qald3TestEsdbpediaLoader(String deriveUri, String questionLang)Deprecated.Use this to load answers from server:AnswerSyncer -
loadXML
This methods loads QALD XML files (used in QALD 1 to QALD 5) -
loadXML
@Deprecated public static List<IQuestion> loadXML(InputStream file, String deriveUri, String questionLang)Deprecated.Use this to load answers from server:AnswerSyncerThis methods loads QALD XML files (used in QALD 1 to QALD 5) and will get the Answers from the given Endpoint deriveUri -
loadNLQ
-
loadNLQ
-
loadTSV
Use this to load tsv files- Throws:
IOException
-
loadEventQA
public static List<IQuestion> loadEventQA(InputStream in) throws UnsupportedEncodingException, IOException
-