/// <summary>
        /// Helper method for raising the <see cref="GraphMerged">Graph Merged</see> event manually
        /// </summary>
        /// <param name="args">Graph Event Arguments</param>
        protected void RaiseGraphMerged(GraphEventArgs args)
        {
            TripleStoreEventHandler d = this.GraphMerged;

            if (d != null)
            {
                d(this, new TripleStoreEventArgs(this, args));
            }
        }
Exemple #2
0
        /// <summary>
        /// Helper method for raising the <see cref="GraphRemoved">Graph Removed</see> event manually
        /// </summary>
        /// <param name="args">Graph Event Arguments</param>
        protected void RaiseGraphRemoved(GraphEventArgs args)
        {
            TripleStoreEventHandler d = this.GraphRemoved;

            if (d != null)
            {
                d(this, new TripleStoreEventArgs(this, args));
            }
            this.DetachEventHandlers(args.Graph);
        }
Exemple #3
0
        /// <summary>
        /// Helper method for raising the <see cref="GraphAdded">Graph Added</see> event manually.
        /// </summary>
        /// <param name="args">Graph Event Arguments.</param>
        protected void RaiseGraphAdded(GraphEventArgs args)
        {
            TripleStoreEventHandler d = GraphAdded;

            if (d != null)
            {
                d(this, new TripleStoreEventArgs(this, args));
            }
            AttachEventHandlers(args.Graph);
        }
Exemple #4
0
 /// <summary>
 /// Event handler to help propogate Graph events from the underlying graph
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="args">Arguments</param>
 protected virtual void OnMerged(Object sender, GraphEventArgs args)
 {
     this.RaiseMerged();
 }
Exemple #5
0
 /// <summary>
 /// Event handler to help propogate Graph events from the underlying graph
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="args">Arguments</param>
 protected virtual void OnCleared(Object sender, GraphEventArgs args)
 {
     this.RaiseCleared();
 }
Exemple #6
0
 /// <summary>
 /// Event handler to help propogate Graph events from the underlying graph
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="args">Arguments</param>
 protected virtual void OnChanged(Object sender, GraphEventArgs args)
 {
     this.RaiseGraphChanged(args.TripleEvent);
 }
Exemple #7
0
 /// <summary>
 /// Event Handler for the <see cref="BaseGraphCollection.GraphAdded">Graph Added</see> event of the underlying Graph Collection which calls the normal event processing of the parent class <see cref="BaseTripleStore">BaseTripleStore</see> and then applies Inference to the newly added Graph
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="args">Graph Event Arguments</param>
 protected override void OnGraphAdded(object sender, GraphEventArgs args)
 {
     base.OnGraphAdded(sender, args);
     this.ApplyInference(args.Graph);
 }
Exemple #8
0
 /// <summary>
 /// Creates a new set of Triple Store Event Arguments
 /// </summary>
 /// <param name="store">Triple Store</param>
 /// <param name="args">Graph Event Arguments</param>
 public TripleStoreEventArgs(ITripleStore store, GraphEventArgs args)
     : this(store)
 {
     this._args = args;
 }
 /// <summary>
 /// Event Handler which handles the <see cref="IGraph.Merged">Merged</see> event of the contained Graphs by raising the Triple Store's <see cref="GraphMerged">Graph Merged</see> event
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="args">Graph Event Arguments</param>
 protected virtual void OnGraphMerged(Object sender, GraphEventArgs args)
 {
     this.RaiseGraphMerged(args);
 }
Exemple #10
0
 /// <summary>
 /// Creates a new set of Triple Store Event Arguments
 /// </summary>
 /// <param name="store">Triple Store</param>
 /// <param name="args">Graph Event Arguments</param>
 public TripleStoreEventArgs(ITripleStore store, GraphEventArgs args)
     : this(store)
 {
     this._args = args;
 }
 /// <summary>
 /// Helper method for raising the <see cref="GraphMerged">Graph Merged</see> event manually
 /// </summary>
 /// <param name="args">Graph Event Arguments</param>
 protected void RaiseGraphMerged(GraphEventArgs args)
 {
     TripleStoreEventHandler d = this.GraphMerged;
     if (d != null)
     {
         d(this, new TripleStoreEventArgs(this, args));
     }
 }
 /// <summary>
 /// Helper method for raising the <see cref="GraphRemoved">Graph Removed</see> event manually
 /// </summary>
 /// <param name="args">Graph Event Arguments</param>
 protected void RaiseGraphRemoved(GraphEventArgs args)
 {
     TripleStoreEventHandler d = this.GraphRemoved;
     if (d != null)
     {
         d(this, new TripleStoreEventArgs(this, args));
     }
     this.DetachEventHandlers(args.Graph);
 }
Exemple #13
0
 /// <summary>
 /// Event Handler which handles the <see cref="IGraph.Merged">Merged</see> event of the contained Graphs by raising the Triple Store's <see cref="GraphMerged">Graph Merged</see> event.
 /// </summary>
 /// <param name="sender">Sender.</param>
 /// <param name="args">Graph Event Arguments.</param>
 protected virtual void OnGraphMerged(Object sender, GraphEventArgs args)
 {
     RaiseGraphMerged(args);
 }
Exemple #14
0
 /// <summary>
 /// Event Handler for the <see cref="BaseGraphCollection.GraphAdded">Graph Added</see> event of the underlying Graph Collection which calls the normal event processing of the parent class <see cref="BaseTripleStore">BaseTripleStore</see> and then applies Inference to the newly added Graph
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="args">Graph Event Arguments</param>
 protected override void OnGraphAdded(object sender, GraphEventArgs args)
 {
     base.OnGraphAdded(sender, args);
     this.ApplyInference(args.Graph);
 }
Exemple #15
0
 /// <summary>
 /// Event Handler which handles the <see cref="BaseGraphCollection.GraphRemoved">Graph Removed</see> event from the underlying Graph Collection and raises the Triple Stores's <see cref="GraphRemoved">Graph Removed</see> event
 /// </summary>
 /// <param name="sender">Sender</param>
 /// <param name="args">Graph Event Arguments</param>
 protected virtual void OnGraphRemoved(Object sender, GraphEventArgs args)
 {
     this.RaiseGraphRemoved(args);
 }
Exemple #16
0
 private void HandleGraphRemoved(Object sender, GraphEventArgs args)
 {
     RaiseGraphRemoved(args.Graph);
 }
Exemple #17
0
 private void HandleGraphAdded(Object sender, GraphEventArgs args)
 {
     this.RaiseGraphAdded(args.Graph);
 }