diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-09-30 19:45:25 +0200 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-09-30 19:45:25 +0200 |
| commit | 6a29b16dee0592fdeb03b26ff87fd00d57555f78 (patch) | |
| tree | f50800aa56a2f1b03a538c0a82eaa739ac671466 /src/main/scala/rsacomb/RSAOntology.scala | |
| parent | 7fd4023ab6d3b8cd379f4119c7bfbeaedca0b7b4 (diff) | |
| download | RSAComb-6a29b16dee0592fdeb03b26ff87fd00d57555f78.tar.gz RSAComb-6a29b16dee0592fdeb03b26ff87fd00d57555f78.zip | |
Add rule generation for unsafe T5 axioms for canonical model
Diffstat (limited to 'src/main/scala/rsacomb/RSAOntology.scala')
| -rw-r--r-- | src/main/scala/rsacomb/RSAOntology.scala | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/scala/rsacomb/RSAOntology.scala b/src/main/scala/rsacomb/RSAOntology.scala index 4b872e5..79b8632 100644 --- a/src/main/scala/rsacomb/RSAOntology.scala +++ b/src/main/scala/rsacomb/RSAOntology.scala | |||
| @@ -73,8 +73,9 @@ trait RSAOntology { | |||
| 73 | axiom <- axioms | 73 | axiom <- axioms |
| 74 | visitor = new RDFoxAxiomConverter( | 74 | visitor = new RDFoxAxiomConverter( |
| 75 | RSA.getFreshVariable(), | 75 | RSA.getFreshVariable(), |
| 76 | unsafe, | ||
| 76 | SkolemStrategy.ConstantRSA(axiom.toString), | 77 | SkolemStrategy.ConstantRSA(axiom.toString), |
| 77 | unsafe | 78 | RSASuffix.None |
| 78 | ) | 79 | ) |
| 79 | rule <- axiom.accept(visitor) | 80 | rule <- axiom.accept(visitor) |
| 80 | } yield rule | 81 | } yield rule |
| @@ -124,7 +125,7 @@ trait RSAOntology { | |||
| 124 | graph.isAcyclic | 125 | graph.isAcyclic |
| 125 | } | 126 | } |
| 126 | 127 | ||
| 127 | private def unsafeRoles: List[OWLObjectPropertyExpression] = { | 128 | lazy val unsafeRoles: List[OWLObjectPropertyExpression] = { |
| 128 | // The reasoner is used to check unsafety condition for the ontology roles | 129 | // The reasoner is used to check unsafety condition for the ontology roles |
| 129 | val factory = new StructuralReasonerFactory() | 130 | val factory = new StructuralReasonerFactory() |
| 130 | val reasoner = factory.createReasoner(ontology) | 131 | val reasoner = factory.createReasoner(ontology) |
