@@ -82,7 +82,6 @@ public async Task<List<OWLInference>> ApplyToOntologyAsync(OWLOntology ontology)
8282 Task < HashSet < string > > clsAsnAxiomsTask = Task . Run ( ( ) => new HashSet < string > ( reasonerContext . ClassAssertions . Select ( asn => asn . GetXML ( ) ) ) ) ;
8383 Task < HashSet < string > > dtPropAsnAxiomsTask = Task . Run ( ( ) => new HashSet < string > ( reasonerContext . DataPropertyAssertions . Select ( asn => asn . GetXML ( ) ) ) ) ;
8484 Task < HashSet < string > > opPropAsnAxiomsTask = Task . Run ( ( ) => new HashSet < string > ( ontology . GetAssertionAxiomsOfType < OWLObjectPropertyAssertion > ( ) . Select ( asn => asn . GetXML ( ) ) ) ) ;
85- Task < HashSet < string > > diffIdvsAxiomsTask = Task . Run ( ( ) => new HashSet < string > ( ontology . GetAssertionAxiomsOfType < OWLDifferentIndividuals > ( ) . Select ( asn => asn . GetXML ( ) ) ) ) ;
8685 Task < HashSet < string > > sameIdvsAxiomsTask = Task . Run ( ( ) => new HashSet < string > ( ontology . GetAssertionAxiomsOfType < OWLSameIndividual > ( ) . Select ( asn => asn . GetXML ( ) ) ) ) ;
8786 Task < HashSet < string > > dsjClsAxiomsTask = Task . Run ( ( ) => new HashSet < string > ( ontology . GetClassAxiomsOfType < OWLDisjointClasses > ( ) . Select ( asn => asn . GetXML ( ) ) ) ) ;
8887 Task < HashSet < string > > eqvClsAxiomsTask = Task . Run ( ( ) => new HashSet < string > ( ontology . GetClassAxiomsOfType < OWLEquivalentClasses > ( ) . Select ( asn => asn . GetXML ( ) ) ) ) ;
@@ -200,7 +199,7 @@ await Parallel.ForEachAsync(ontology.Rules, async (swrlRule, _) =>
200199
201200 #region Deduplicate & finalize inferences
202201 //Deduplicate inferences (in order to not state already known knowledge)
203- await Task . WhenAll ( clsAsnAxiomsTask , dtPropAsnAxiomsTask , opPropAsnAxiomsTask , diffIdvsAxiomsTask , sameIdvsAxiomsTask , dsjClsAxiomsTask , eqvClsAxiomsTask , subClsAxiomsTask ,
202+ await Task . WhenAll ( clsAsnAxiomsTask , dtPropAsnAxiomsTask , opPropAsnAxiomsTask , sameIdvsAxiomsTask , dsjClsAxiomsTask , eqvClsAxiomsTask , subClsAxiomsTask ,
204203 dsjDtPropAxiomsTask , eqvDtPropAxiomsTask , subDtPropAxiomsTask , dsjOpPropAxiomsTask , eqvOpPropAxiomsTask , subOpPropAxiomsTask , invOpPropAxiomsTask ) ;
205204 foreach ( KeyValuePair < string , List < OWLInference > > inferenceRegistryEntry in inferenceRegistry . Where ( ir => ir . Value ? . Count > 0 ) )
206205 inferenceRegistryEntry . Value . RemoveAll ( inf =>
@@ -213,8 +212,6 @@ await Task.WhenAll(clsAsnAxiomsTask, dtPropAsnAxiomsTask, opPropAsnAxiomsTask, d
213212 return dtPropAsnAxiomsTask . Result . Contains ( inf . Axiom . GetXML ( ) ) ;
214213 case nameof ( OWLObjectPropertyAssertion ) :
215214 return opPropAsnAxiomsTask . Result . Contains ( inf . Axiom . GetXML ( ) ) ;
216- case nameof ( OWLDifferentIndividuals ) :
217- return diffIdvsAxiomsTask . Result . Contains ( inf . Axiom . GetXML ( ) ) ;
218215 case nameof ( OWLSameIndividual ) :
219216 return sameIdvsAxiomsTask . Result . Contains ( inf . Axiom . GetXML ( ) ) ;
220217 case nameof ( OWLDisjointClasses ) :
0 commit comments