diff options
author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2021-04-09 20:52:47 +0100 |
---|---|---|
committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2021-04-09 20:52:47 +0100 |
commit | c6a63f565b8311348a800366c05dc3a6e964872c (patch) | |
tree | fc08c1635d75fb17f65cb1367f5298f564bff2fd /src/main/scala/uk/ac/ox/cs/rsacomb/converter | |
parent | e6048bd85da50a8f40538b968fe7ac3b957fdd97 (diff) | |
download | RSAComb-c6a63f565b8311348a800366c05dc3a6e964872c.tar.gz RSAComb-c6a63f565b8311348a800366c05dc3a6e964872c.zip |
Fix handling of class expression OWLObjectHasSelf
It was not properly handled in the normalization process.
Diffstat (limited to 'src/main/scala/uk/ac/ox/cs/rsacomb/converter')
-rw-r--r-- | src/main/scala/uk/ac/ox/cs/rsacomb/converter/Normalizer.scala | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/src/main/scala/uk/ac/ox/cs/rsacomb/converter/Normalizer.scala b/src/main/scala/uk/ac/ox/cs/rsacomb/converter/Normalizer.scala index 205c369..5329f26 100644 --- a/src/main/scala/uk/ac/ox/cs/rsacomb/converter/Normalizer.scala +++ b/src/main/scala/uk/ac/ox/cs/rsacomb/converter/Normalizer.scala | |||
@@ -401,6 +401,10 @@ class Normalizer() { | |||
401 | factory.getOWLNothing | 401 | factory.getOWLNothing |
402 | ) | 402 | ) |
403 | ) | 403 | ) |
404 | /** Self-restriction over an object property */ | ||
405 | case (sub: OWLObjectHasSelf, _) => notInHornALCHOIQ(a) | ||
406 | case (_, sup: OWLObjectHasSelf) => notInHornALCHOIQ(a) | ||
407 | |||
404 | /** Axiom is already normalized */ | 408 | /** Axiom is already normalized */ |
405 | case _ => Seq(a) | 409 | case _ => Seq(a) |
406 | } | 410 | } |
@@ -507,7 +511,7 @@ class Normalizer() { | |||
507 | 511 | ||
508 | /** Unsupported */ | 512 | /** Unsupported */ |
509 | 513 | ||
510 | case a: OWLAsymmetricObjectPropertyAxiom => notSupported(a) | 514 | case a: OWLAsymmetricObjectPropertyAxiom => notInHornALCHOIQ(a) |
511 | 515 | ||
512 | case a: OWLDatatypeDefinitionAxiom => notSupported(a) | 516 | case a: OWLDatatypeDefinitionAxiom => notSupported(a) |
513 | 517 | ||
@@ -577,7 +581,10 @@ class Normalizer() { | |||
577 | ): Seq[OWLLogicalAxiom] = { | 581 | ): Seq[OWLLogicalAxiom] = { |
578 | /* Update statistics */ | 582 | /* Update statistics */ |
579 | discarded += 1 | 583 | discarded += 1 |
580 | Logger print s"'$axiom' has been ignored because it is not in Horn-ALCHOIQ" | 584 | Logger.print( |
585 | s"'$axiom' has been ignored because it is not in Horn-ALCHOIQ", | ||
586 | Logger.VERBOSE | ||
587 | ) | ||
581 | Seq() | 588 | Seq() |
582 | } | 589 | } |
583 | 590 | ||