/// <summary> /// Creates a new Base Graph using the given Triple Collection. /// </summary> /// <param name="tripleCollection">Triple Collection to use.</param> protected BaseGraph(BaseTripleCollection tripleCollection) { _triples = tripleCollection; _bnodemapper = new BlankNodeMapper(); _nsmapper = new NamespaceMapper(); // Create Event Handlers and attach to the Triple Collection TripleAddedHandler = new TripleEventHandler(OnTripleAsserted); TripleRemovedHandler = new TripleEventHandler(OnTripleRetracted); AttachEventHandlers(_triples); }
protected BaseGraph(BaseTripleCollection tripleCollection, BaseNodeCollection nodeCollection) { this._triples = tripleCollection; this._nodes = nodeCollection; this._bnodemapper = new BlankNodeMapper(); this._nsmapper = new NamespaceMapper(); //Create Event Handlers and attach to the Triple Collection this.TripleAddedHandler = new TripleEventHandler(this.OnTripleAsserted); this.TripleRemovedHandler = new TripleEventHandler(this.OnTripleRetracted); this.AttachEventHandlers(this._triples); }