aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala
diff options
context:
space:
mode:
authorFederico Igne <federico.igne@cs.ox.ac.uk>2020-12-04 17:21:32 +0000
committerFederico Igne <federico.igne@cs.ox.ac.uk>2020-12-04 17:21:32 +0000
commitf8ec91676cfdeefc302100033a1b38167d01490f (patch)
tree8ca6d7e4652893ab7ad30fd0dfb509a6ad96cd3e /src/main/scala
parenta808ae8b3dd945fd7aa485cd02bfb7229cb8331d (diff)
downloadRSAComb-f8ec91676cfdeefc302100033a1b38167d01490f.tar.gz
RSAComb-f8ec91676cfdeefc302100033a1b38167d01490f.zip
Fix axiom skolemization
Skolemization should be uniquely bound to the axiom being skolemized. When an axiom is a shortcut for a set of axioms, the skolemization strategy should be updated with the new axiom(s).
Diffstat (limited to 'src/main/scala')
-rw-r--r--src/main/scala/uk/ac/ox/cs/rsacomb/converter/RDFoxConverter.scala6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/scala/uk/ac/ox/cs/rsacomb/converter/RDFoxConverter.scala b/src/main/scala/uk/ac/ox/cs/rsacomb/converter/RDFoxConverter.scala
index 1c8374c..4f4df26 100644
--- a/src/main/scala/uk/ac/ox/cs/rsacomb/converter/RDFoxConverter.scala
+++ b/src/main/scala/uk/ac/ox/cs/rsacomb/converter/RDFoxConverter.scala
@@ -156,7 +156,7 @@ trait RDFoxConverter {
156 case a: OWLEquivalentClassesAxiom => { 156 case a: OWLEquivalentClassesAxiom => {
157 val (atoms, rules) = a.asPairwiseAxioms 157 val (atoms, rules) = a.asPairwiseAxioms
158 .flatMap(_.asOWLSubClassOfAxioms) 158 .flatMap(_.asOWLSubClassOfAxioms)
159 .map(convert(_, term, unsafe, skolem, suffix)) 159 .map(a => convert(a, term, unsafe, skolem dup a, suffix))
160 .unzip 160 .unzip
161 (atoms.flatten, rules.flatten) 161 (atoms.flatten, rules.flatten)
162 } 162 }
@@ -164,7 +164,7 @@ trait RDFoxConverter {
164 case a: OWLEquivalentObjectPropertiesAxiom => { 164 case a: OWLEquivalentObjectPropertiesAxiom => {
165 val (atoms, rules) = a.asPairwiseAxioms 165 val (atoms, rules) = a.asPairwiseAxioms
166 .flatMap(_.asSubObjectPropertyOfAxioms) 166 .flatMap(_.asSubObjectPropertyOfAxioms)
167 .map(convert(_, term, unsafe, skolem, suffix)) 167 .map(a => convert(a, term, unsafe, skolem dup a, suffix))
168 .unzip 168 .unzip
169 (atoms.flatten, rules.flatten) 169 (atoms.flatten, rules.flatten)
170 } 170 }
@@ -191,7 +191,7 @@ trait RDFoxConverter {
191 191
192 case a: OWLInverseObjectPropertiesAxiom => { 192 case a: OWLInverseObjectPropertiesAxiom => {
193 val (atoms, rules) = a.asSubObjectPropertyOfAxioms 193 val (atoms, rules) = a.asSubObjectPropertyOfAxioms
194 .map(convert(_, term, unsafe, skolem, suffix)) 194 .map(a => convert(a, term, unsafe, skolem dup a, suffix))
195 .unzip 195 .unzip
196 (atoms.flatten, rules.flatten) 196 (atoms.flatten, rules.flatten)
197 } 197 }