diff --git a/RDFSharp/Model/RDFGraph.cs b/RDFSharp/Model/RDFGraph.cs index fe43f1eb..fe0c3f64 100644 --- a/RDFSharp/Model/RDFGraph.cs +++ b/RDFSharp/Model/RDFGraph.cs @@ -602,7 +602,7 @@ public Task SelectTriplesByLiteralAsync(RDFLiteral literal) /// /// Gets the subgraph containing triples with the specified combination of SPOL accessors
- /// (null values are threated as * selectors. Ensure to keep object and literal mutually exclusive!) + /// (null values are handled as * selectors. Ensure to keep object and literal mutually exclusive!) ///
public RDFGraph this[RDFResource subj, RDFResource pred, RDFResource obj, RDFLiteral lit] => (obj != null && lit != null) ? throw new RDFModelException("Cannot access a graph when both object and literals are given: they must be mutually exclusive!") diff --git a/RDFSharp/Store/Engines/RDFMemoryStore.cs b/RDFSharp/Store/Engines/RDFMemoryStore.cs index 1294519d..61c9fd28 100644 --- a/RDFSharp/Store/Engines/RDFMemoryStore.cs +++ b/RDFSharp/Store/Engines/RDFMemoryStore.cs @@ -593,14 +593,6 @@ public override void ClearQuadruples() public override bool ContainsQuadruple(RDFQuadruple quadruple) => quadruple != null && IndexedQuadruples.ContainsKey(quadruple.QuadrupleID); - /// - /// Gets a store containing quadruples with the specified combination of CSPOL accessors
- /// (null values are threated as * selectors. Ensure to keep object and literal mutually exclusive!) - ///
- public RDFMemoryStore this[RDFContext ctx, RDFResource subj, RDFResource pred, RDFResource obj, RDFLiteral lit] - => (obj != null && lit != null) ? throw new RDFStoreException("Cannot access a memory store when both object and literals are given: they must be mutually exclusive!") - : SelectQuadruples(ctx, subj, pred, obj, lit); - /// /// Gets a store containing quadruples satisfying the given pattern /// diff --git a/RDFSharp/Store/RDFStore.cs b/RDFSharp/Store/RDFStore.cs index 5fe50e96..d44c11be 100644 --- a/RDFSharp/Store/RDFStore.cs +++ b/RDFSharp/Store/RDFStore.cs @@ -383,6 +383,14 @@ public Task UnreifyQuadruplesAsync() #endregion #region Select + /// + /// Gets a memory store containing quadruples with the specified combination of CSPOL accessors
+ /// (null values are handled as * selectors. Ensure to keep object and literal mutually exclusive!) + ///
+ public RDFMemoryStore this[RDFContext ctx, RDFResource subj, RDFResource pred, RDFResource obj, RDFLiteral lit] + => (obj != null && lit != null) ? throw new RDFStoreException("Cannot access a store when both object and literals are given: they must be mutually exclusive!") + : SelectQuadruples(ctx, subj, pred, obj, lit); + /// /// Checks if the store contains the given quadruple ///