Skip to content

Commit b2da298

Browse files
committed
Regionize code for better readability
1 parent d68b350 commit b2da298

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

OWLSharp/Reasoner/OWLReasoner.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,14 @@ public OWLReasoner AddRule(OWLEnums.OWLReasonerRules rule)
6262
/// Applies the reasoner to the given ontology. If specified, it automatically merges the inferences into the ontology.
6363
/// </summary>
6464
/// <returns>The list of discovered inferences</returns>
65-
public async Task<List<OWLInference>> ApplyToOntologyAsync(OWLOntology ontology, bool mergeInferences=false)
65+
public async Task<List<OWLInference>> ApplyToOntologyAsync(OWLOntology ontology, bool shouldMergeInferences=false)
6666
{
6767
List<OWLInference> inferences = new List<OWLInference>();
6868
Rules = Rules.Distinct().ToList();
6969

7070
if (ontology != null)
7171
{
72+
#region Discover inferences
7273
OWLEvents.RaiseInfo($"Launching OWL2/SWRL reasoner on ontology '{ontology.IRI}'...");
7374

7475
#region Init registry & context
@@ -256,9 +257,10 @@ await Task.WhenAll(clsAsnAxiomsTask, dtPropAsnAxiomsTask, opPropAsnAxiomsTask, s
256257
#endregion
257258

258259
OWLEvents.RaiseInfo($"Completed OWL2/SWRL reasoner on ontology {ontology.IRI} => {inferences.Count} inferences");
260+
#endregion
259261

260262
#region Merge inferences
261-
if (mergeInferences)
263+
if (shouldMergeInferences)
262264
{
263265
OWLEvents.RaiseInfo($"Merging OWL2/SWRL inferences into ontology '{ontology.IRI}'...");
264266

0 commit comments

Comments
 (0)