private void OnStatementAsserted(object sender, StatementEventArgs e)
            {
                EnsureStatisticsFor(e.Statement.Subject)[e.Statement.Subject]++;
                if (_statementsFilter(e.Statement))
                {
                    EnsureSetFor(e.Statement.Subject).Add(e.Statement);
                }

                var type = _ontologyProvider.GetDomainFor(e.Statement.Predicate);

                if (type != null)
                {
                    Assert(e.Statement.Subject, new Statement(e.Statement.Subject, rdf.type, type), e);
                }

                if (e.Statement.Object != null)
                {
                    if (e.Statement.Predicate.ToString().StartsWith(hydra.Namespace))
                    {
                        _forbiddenHypermedia.Add(e.Statement.Object);
                    }

                    type = _ontologyProvider.GetRangeFor(e.Statement.Predicate);
                    if (type != null)
                    {
                        Assert(e.Statement.Object, new Statement(e.Statement.Object, rdf.type, type), e);
                    }
                }
            }
Beispiel #2
0
        private void OnStatementExecuted(object sender,
                                         StatementEventArgs args)
        {
            ExceptionMessageBox emb = new ExceptionMessageBox();

            emb.Text = args.SqlStatement;
            emb.Show(this);
        }
Beispiel #3
0
        private void ServerStatementExecuted(object sender,
                                             StatementEventArgs e)
        {
            String sTmp = (e.ToString()).Replace("\n", Environment.NewLine);

            EventLogTextBox.AppendText(Properties.Resources.SqlStatementExecuted
                                       + sTmp + Environment.NewLine);
        }
 private void Assert(Iri owner, Statement statement, StatementEventArgs e)
 {
     e.AdditionalStatementsToAssert.Add(statement);
     if (_statementsFilter(statement))
     {
         EnsureSetFor(owner).Add(statement);
     }
 }
Beispiel #5
0
    protected virtual void OnStatementMade(StatementEventArgs e)
    {
        var handler = this.StatementMade;

        if (handler != null)
        {
            handler(this, e);
        }
    }
Beispiel #6
0
 private void OnStatementExecuted(object sender,
                                  StatementEventArgs args)
 {
     Log(args.SqlStatement);
 }
Beispiel #7
0
 private void ServerConnection_StatementExecuted(object sender, StatementEventArgs e)
 {
     QueryCount++;
 }
Beispiel #8
0
        private void ServerStatementExecuted(object sender,
            StatementEventArgs e)
        {
            String sTmp = (e.ToString()).Replace("\n", Environment.NewLine);

            EventLogTextBox.AppendText(Properties.Resources.SqlStatementExecuted 
                + sTmp + Environment.NewLine);
        }
Beispiel #9
0
 private void OnStatementExecuted(object sender,
     StatementEventArgs args)
 {
     ExceptionMessageBox emb = new ExceptionMessageBox();
     emb.Text = args.SqlStatement;
     emb.Show(this);
 }
 private void OnStatementExecuted(object sender, StatementEventArgs args)
 {
     MessageBox.Show(this, args.SqlStatement);
 }