diff options
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) |