Exemple #1
0
 private void buttonFusekiRestart_Click_1(object sender, EventArgs e)
 {
     try
     {
         Fuseki.Start(checkBoxShowFusekiConsole.Checked);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.ToString());
         return;
     }
     if (!checkBoxShowFusekiConsole.Checked)
     {
         MessageBox.Show("restarted");
     }
 }
Exemple #2
0
        public static void ConnectFuseki()
        {
            try
            {
                var server = MainForm.config.FusekiServer;
                Fuseki.Start(MainForm.config.ShowFusekiConsole);
                MainForm.fuseki = new FusekiConnector(string.Format("http://{0}:{1}/ds/data", server, MainForm.config.FusekiPort));
            }
            catch (Exception ex)
            {
                MessageBox.Show("error during building connection to fuseki server. " + ex);
            }

            var connectForm = new ConnectForm();

            connectForm.ShowDialog();
        }