From 7dcec5104be4941b39b9acd7433206f9b2c8660e Mon Sep 17 00:00:00 2001 From: mdesalvo Date: Tue, 21 Nov 2023 19:55:34 +0100 Subject: [PATCH] FIx comment typo and regionize guards --- RDFSharp/Query/Mirella/Algebra/RDFSPARQLEndpoint.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/RDFSharp/Query/Mirella/Algebra/RDFSPARQLEndpoint.cs b/RDFSharp/Query/Mirella/Algebra/RDFSPARQLEndpoint.cs index 3ec339ca..d7399d07 100644 --- a/RDFSharp/Query/Mirella/Algebra/RDFSPARQLEndpoint.cs +++ b/RDFSharp/Query/Mirella/Algebra/RDFSPARQLEndpoint.cs @@ -55,8 +55,10 @@ public class RDFSPARQLEndpoint : RDFDataSource /// public RDFSPARQLEndpoint(Uri baseAddress) { + #region Guards if (baseAddress == null) throw new RDFQueryException("Cannot create RDFSPARQLEndpoint because given \"baseAddress\" parameter is null."); + #endregion BaseAddress = baseAddress; QueryParams = new NameValueCollection(); @@ -67,7 +69,7 @@ public RDFSPARQLEndpoint(Uri baseAddress) #region Interfaces /// - /// Gives the string representation of the variable + /// Gives the string representation of the SPARQL enpoint /// public override string ToString() => BaseAddress.ToString();