diff options
author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2021-01-23 12:18:35 +0000 |
---|---|---|
committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2021-01-23 12:18:35 +0000 |
commit | 58435546aec92af87bf37255b0646c66a1218df6 (patch) | |
tree | 1936e09c734907dfed961440d534ea16a9a114e5 | |
parent | cf3c93abbc7d1be32a8962340baf8b71a615cc56 (diff) | |
download | RSAComb-58435546aec92af87bf37255b0646c66a1218df6.tar.gz RSAComb-58435546aec92af87bf37255b0646c66a1218df6.zip |
Add OWLDisjointClassesAxiom support
-rw-r--r-- | src/main/scala/uk/ac/ox/cs/rsacomb/converter/RDFoxConverter.scala | 8 |
1 files changed, 7 insertions, 1 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 dadc81c..761cc83 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 | |||
@@ -96,7 +96,6 @@ trait RDFoxConverter { | |||
96 | * - [[org.semanticweb.owlapi.model.OWLDataPropertyRangeAxiom OWLDataPropertyRangeAxiom]] | 96 | * - [[org.semanticweb.owlapi.model.OWLDataPropertyRangeAxiom OWLDataPropertyRangeAxiom]] |
97 | * - [[org.semanticweb.owlapi.model.OWLDatatypeDefinitionAxiom OWLDatatypeDefinitionAxiom]] | 97 | * - [[org.semanticweb.owlapi.model.OWLDatatypeDefinitionAxiom OWLDatatypeDefinitionAxiom]] |
98 | * - [[org.semanticweb.owlapi.model.OWLDifferentIndividualsAxiom OWLDifferentIndividualsAxiom]] | 98 | * - [[org.semanticweb.owlapi.model.OWLDifferentIndividualsAxiom OWLDifferentIndividualsAxiom]] |
99 | * - [[org.semanticweb.owlapi.model.OWLDisjointClassesAxiom OWLDisjointClassesAxiom]] | ||
100 | * - [[org.semanticweb.owlapi.model.OWLDisjointDataPropertiesAxiom OWLDisjointDataPropertiesAxiom]] | 99 | * - [[org.semanticweb.owlapi.model.OWLDisjointDataPropertiesAxiom OWLDisjointDataPropertiesAxiom]] |
101 | * - [[org.semanticweb.owlapi.model.OWLDisjointObjectPropertiesAxiom OWLDisjointObjectPropertiesAxiom]] | 100 | * - [[org.semanticweb.owlapi.model.OWLDisjointObjectPropertiesAxiom OWLDisjointObjectPropertiesAxiom]] |
102 | * - [[org.semanticweb.owlapi.model.OWLDisjointUnionAxiom OWLDisjointUnionAxiom]] | 101 | * - [[org.semanticweb.owlapi.model.OWLDisjointUnionAxiom OWLDisjointUnionAxiom]] |
@@ -173,6 +172,13 @@ trait RDFoxConverter { | |||
173 | case a: OWLDataPropertyRangeAxiom => | 172 | case a: OWLDataPropertyRangeAxiom => |
174 | Result() // ignored | 173 | Result() // ignored |
175 | 174 | ||
175 | case a: OWLDisjointClassesAxiom => { | ||
176 | val body = a.getOperandsAsList.asScala.toSeq | ||
177 | .flatMap((cls) => convert(cls, term, unsafe, NoSkolem, suffix)._1) | ||
178 | val bottom = TupleTableAtom.rdf(term, IRI.RDF_TYPE, IRI.NOTHING) | ||
179 | ResultR(List(Rule.create(bottom, body: _*))) | ||
180 | } | ||
181 | |||
176 | case a: OWLInverseObjectPropertiesAxiom => { | 182 | case a: OWLInverseObjectPropertiesAxiom => { |
177 | val (atoms, rules) = a.asSubObjectPropertyOfAxioms | 183 | val (atoms, rules) = a.asSubObjectPropertyOfAxioms |
178 | .map(a => convert(a, term, unsafe, skolem dup a, suffix)) | 184 | .map(a => convert(a, term, unsafe, skolem dup a, suffix)) |