Beispiel #1
0
        private static Database.TripletLoader.Loader loadDB(string dbPath)
        {
            var loader = new Database.TripletLoader.Loader(dbPath);
            var graph  = new ComposedGraph(loader.DataLayer);

            WikidataHelper.PreprocessData(loader, graph);
            return(loader);
        }
Beispiel #2
0
        private static void InconsistencyDBTesting(string dbPath)
        {
            var loader = new Database.TripletLoader.Loader(dbPath);
            var graph  = new ComposedGraph(loader.DataLayer);

            WikidataHelper.PreprocessData(loader, graph);

            var manager  = new PoolComputation.StateDialogManager(null, loader.DataLayer);
            var provider = new DialogConsole(manager);

            provider.SimulateInput(
                "name of Czech Republic president",
                "it is Miloš Zeman",
                "name of Russia president",
                "it is Vladimir Putin",
                "name of United States of America president",
                "it is Barack Obama",
                "name of United States of America president",
                "name of Czech Republic president"
                );

            provider.Run();
        }