/// <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); }
/// <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); }
/// <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(); }
/// <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(); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
/// <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); }
private void HandleGraphRemoved(Object sender, GraphEventArgs args) { RaiseGraphRemoved(args.Graph); }
private void HandleGraphAdded(Object sender, GraphEventArgs args) { this.RaiseGraphAdded(args.Graph); }