Ejemplo n.º 1
0
        private void btnInspect_Click(object sender, EventArgs e)
        {
            try
            {
                SparqlQueryParser parser = new SparqlQueryParser();
                Stopwatch         timer  = new Stopwatch();
                timer.Start();
                SparqlQuery query = parser.ParseFromString(this.txtQuery.Text);
                timer.Stop();

                fclsInspect inspect = new fclsInspect(query, timer.ElapsedMilliseconds, this.txtQuery.Text);
                inspect.Show();
            }
            catch (RdfParseException parseEx)
            {
                MessageBox.Show("Query failed to parse:\n" + parseEx.Message, "Query Failed");
            }
            catch (RdfQueryException queryEx)
            {
                MessageBox.Show("Query failed during Execution:\n" + queryEx.Message, "Query Failed");
            }
            catch (Exception ex)
            {
                MessageBox.Show("Query failed:\n" + ex.Message + "\n" + ex.StackTrace, "Query Failed");
            }
        }
Ejemplo n.º 2
0
        private void btnInspect_Click(object sender, EventArgs e)
        {
            try
            {
                SparqlQueryParser parser = new SparqlQueryParser();
                Stopwatch timer = new Stopwatch();
                timer.Start();
                SparqlQuery query = parser.ParseFromString(this.txtQuery.Text);
                timer.Stop();

                fclsInspect inspect = new fclsInspect(query, timer.ElapsedMilliseconds, this.txtQuery.Text);
                inspect.Show();
            }
            catch (RdfParseException parseEx)
            {
                MessageBox.Show("Query failed to parse:\n" + parseEx.Message, "Query Failed");
            }
            catch (RdfQueryException queryEx)
            {
                MessageBox.Show("Query failed during Execution:\n" + queryEx.Message, "Query Failed");
            }
            catch (Exception ex)
            {
                MessageBox.Show("Query failed:\n" + ex.Message + "\n" + ex.StackTrace, "Query Failed");
            }
        }