diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-10-06 19:15:17 +0200 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-10-06 19:15:17 +0200 |
| commit | 1d257a9287480014a4664c7808222179b6d2ae1d (patch) | |
| tree | 24ec4a272cea3e7258811820fbb1346283e400c5 /src/main/scala/rsacomb/RSAAxiom.scala | |
| parent | 4cae6afabb48cf5f77d9826881f7e41ffb57baaf (diff) | |
| download | RSAComb-1d257a9287480014a4664c7808222179b6d2ae1d.tar.gz RSAComb-1d257a9287480014a4664c7808222179b6d2ae1d.zip | |
Complete generation of logic program for the canonical model
Diffstat (limited to 'src/main/scala/rsacomb/RSAAxiom.scala')
| -rw-r--r-- | src/main/scala/rsacomb/RSAAxiom.scala | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/main/scala/rsacomb/RSAAxiom.scala b/src/main/scala/rsacomb/RSAAxiom.scala index 50dc37e..aca44b1 100644 --- a/src/main/scala/rsacomb/RSAAxiom.scala +++ b/src/main/scala/rsacomb/RSAAxiom.scala | |||
| @@ -8,6 +8,7 @@ import org.semanticweb.owlapi.model.{ | |||
| 8 | } | 8 | } |
| 9 | import org.semanticweb.owlapi.model.{ | 9 | import org.semanticweb.owlapi.model.{ |
| 10 | OWLObjectPropertyExpression, | 10 | OWLObjectPropertyExpression, |
| 11 | OWLSubObjectPropertyOfAxiom, | ||
| 11 | OWLClass, | 12 | OWLClass, |
| 12 | OWLClassExpression, | 13 | OWLClassExpression, |
| 13 | OWLObjectSomeValuesFrom, | 14 | OWLObjectSomeValuesFrom, |
| @@ -148,11 +149,16 @@ trait RSAAxiom { | |||
| 148 | List() | 149 | List() |
| 149 | } | 150 | } |
| 150 | 151 | ||
| 152 | override def visit( | ||
| 153 | axiom: OWLSubObjectPropertyOfAxiom | ||
| 154 | ): List[OWLObjectPropertyExpression] = | ||
| 155 | List(axiom.getSubProperty(), axiom.getSuperProperty()) | ||
| 156 | |||
| 151 | def doDefault(axiom: OWLAxiom): List[OWLObjectPropertyExpression] = List() | 157 | def doDefault(axiom: OWLAxiom): List[OWLObjectPropertyExpression] = List() |
| 152 | } | 158 | } |
| 153 | 159 | ||
| 154 | /* Exposed methods */ | 160 | /* Exposed methods */ |
| 155 | def objectPropertyExpressionsInSignature | 161 | lazy val objectPropertyExpressionsInSignature |
| 156 | : List[OWLObjectPropertyExpression] = { | 162 | : List[OWLObjectPropertyExpression] = { |
| 157 | val visitor = new RSAAxiomRoleExtractor() | 163 | val visitor = new RSAAxiomRoleExtractor() |
| 158 | axiom.accept(visitor) | 164 | axiom.accept(visitor) |
