public void HandleGraphRemoved(Object sender, TripleStoreEventArgs args) { this._graphRemoved = true; Console.WriteLine("GraphRemoved event occurred on a " + sender.GetType().Name + " instance"); TestTools.ShowGraph(args.GraphEvent.Graph); Console.WriteLine(); }
public void HandleGraphChanged(Object sender, TripleStoreEventArgs args) { this._graphChanged = true; Console.WriteLine("GraphChanged event occurred on a " + sender.GetType().Name + " instance"); if (args.GraphEvent != null && args.GraphEvent.TripleEvent != null) { Console.WriteLine(" Event was a Triple Event"); Console.WriteLine(" " + args.GraphEvent.TripleEvent.Triple.ToString()); Console.WriteLine((args.GraphEvent.TripleEvent.WasAsserted ? " Triple was asserted" : " Triple was retracted")); } Console.WriteLine(); }
/// <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, TripleStoreEventArgs args) { this.RaiseGraphMerged(args.GraphEvent); }
/// <summary> /// Event Handler which handles the <see cref="IGraph.Cleared">Cleared</see> event of the contained Graphs by raising the Triple Stores's <see cref="GraphCleared">Graph Cleared</see> event. /// </summary> /// <param name="sender">Sender.</param> /// <param name="args">Graph Event Arguments.</param> protected virtual void OnGraphCleared(Object sender, TripleStoreEventArgs args) { RaiseGraphCleared(args.GraphEvent); }