/// <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));
            }
        }
示例#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);
        }
示例#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);
        }
示例#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();
 }
示例#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();
 }
示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#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;
 }
示例#11
0
 /// <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));
     }
 }
示例#12
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);
 }
示例#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);
 }
示例#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);
 }
示例#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);
 }
示例#16
0
 private void HandleGraphRemoved(Object sender, GraphEventArgs args)
 {
     RaiseGraphRemoved(args.Graph);
 }
示例#17
0
 private void HandleGraphAdded(Object sender, GraphEventArgs args)
 {
     this.RaiseGraphAdded(args.Graph);
 }