/// <summary> /// Adds inline data to a Graph Pattern respecting any BGP breaks /// </summary> /// <param name="data"></param> internal void AddInlineData(BindingsPattern data) { if (_break) { if (_broken) { _graphPatterns.Last().AddInlineData(data); } else if (_data == null && _graphPatterns.Count == 0) { _data = data; } else { GraphPattern p = new GraphPattern(); p.AddInlineData(data); _graphPatterns.Add(p); } } else if (_isUnion) { BreakBGP(); AddInlineData(data); } else { _data = data; BreakBGP(); } }
/// <summary> /// Adds inline data to a Graph Pattern respecting any BGP breaks /// </summary> /// <param name="data"></param> internal void AddInlineData(BindingsPattern data) { if (this._break) { if (this._broken) { this._graphPatterns.Last().AddInlineData(data); } else if (this._data == null && this._graphPatterns.Count == 0) { this._data = data; } else { GraphPattern p = new GraphPattern(); p.AddInlineData(data); this._graphPatterns.Add(p); } } else if (this._isUnion) { this.BreakBGP(); this.AddInlineData(data); } else { this._data = data; this.BreakBGP(); } }