aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/uk/ac/ox/cs/rsacomb/OWLAxiomSpec.scala
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/scala/uk/ac/ox/cs/rsacomb/OWLAxiomSpec.scala')
-rw-r--r--src/test/scala/uk/ac/ox/cs/rsacomb/OWLAxiomSpec.scala16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/test/scala/uk/ac/ox/cs/rsacomb/OWLAxiomSpec.scala b/src/test/scala/uk/ac/ox/cs/rsacomb/OWLAxiomSpec.scala
index d39dec7..e1ece62 100644
--- a/src/test/scala/uk/ac/ox/cs/rsacomb/OWLAxiomSpec.scala
+++ b/src/test/scala/uk/ac/ox/cs/rsacomb/OWLAxiomSpec.scala
@@ -36,13 +36,7 @@ import tech.oxfordsemantic.jrdfox.logic.expression.{
36import org.semanticweb.owlapi.model.{IRI => OWLIRI} 36import org.semanticweb.owlapi.model.{IRI => OWLIRI}
37import tech.oxfordsemantic.jrdfox.logic.expression.{IRI => RDFIRI} 37import tech.oxfordsemantic.jrdfox.logic.expression.{IRI => RDFIRI}
38 38
39import uk.ac.ox.cs.rsacomb.converter.{ 39import uk.ac.ox.cs.rsacomb.converter._
40 RDFoxAxiomConverter,
41 SkolemStrategy,
42 NoSkolem,
43 Standard,
44 Constant
45}
46import uk.ac.ox.cs.rsacomb.util.RSA 40import uk.ac.ox.cs.rsacomb.util.RSA
47 41
48object OWLAxiomSpec { 42object OWLAxiomSpec {
@@ -216,13 +210,13 @@ class OWLAxiomSpec extends AnyFlatSpec with Matchers with LoneElement {
216 // OWLSubClassOfAxiom #2 (w/ constant skolemization) 210 // OWLSubClassOfAxiom #2 (w/ constant skolemization)
217 (axiom_OWLSubClassOf2.toString + "\n(w/ constant skolemization)") should 211 (axiom_OWLSubClassOf2.toString + "\n(w/ constant skolemization)") should
218 "be converted into a singleton List[Rule]" in { 212 "be converted into a singleton List[Rule]" in {
219 val skolem = Constant(axiom_OWLSubClassOf2.toString) 213 val skolem = Constant(axiom_OWLSubClassOf2)
220 val result = convertAxiom(axiom_OWLSubClassOf2, term_x, skolem) 214 val result = convertAxiom(axiom_OWLSubClassOf2, term_x, skolem)
221 result.loneElement shouldBe a[Rule] 215 result.loneElement shouldBe a[Rule]
222 } 216 }
223 217
224 it should "contain a single atom (Student[?x]) in the body of the rule" in { 218 it should "contain a single atom (Student[?x]) in the body of the rule" in {
225 val skolem = Constant(axiom_OWLSubClassOf2.toString) 219 val skolem = Constant(axiom_OWLSubClassOf2)
226 val result = convertAxiom(axiom_OWLSubClassOf2, term_x, skolem) 220 val result = convertAxiom(axiom_OWLSubClassOf2, term_x, skolem)
227 val body = 221 val body =
228 TupleTableAtom.rdf(term_x, RDFIRI.RDF_TYPE, iri_Student.getIRIString) 222 TupleTableAtom.rdf(term_x, RDFIRI.RDF_TYPE, iri_Student.getIRIString)
@@ -243,13 +237,13 @@ class OWLAxiomSpec extends AnyFlatSpec with Matchers with LoneElement {
243 // OWLSubClassOfAxiom #2 (w/ skolemization) 237 // OWLSubClassOfAxiom #2 (w/ skolemization)
244 (axiom_OWLSubClassOf2.toString + "\n(w/ skolemization)") should 238 (axiom_OWLSubClassOf2.toString + "\n(w/ skolemization)") should
245 "be converted into a singleton List[Rule]" in { 239 "be converted into a singleton List[Rule]" in {
246 val skolem = Standard(axiom_OWLSubClassOf2.toString) 240 val skolem = Standard(axiom_OWLSubClassOf2)
247 val result = convertAxiom(axiom_OWLSubClassOf2, term_x, skolem) 241 val result = convertAxiom(axiom_OWLSubClassOf2, term_x, skolem)
248 result.loneElement shouldBe a[Rule] 242 result.loneElement shouldBe a[Rule]
249 } 243 }
250 244
251 it should "contain an atom (Student[?x]) in the body of the rule" in { 245 it should "contain an atom (Student[?x]) in the body of the rule" in {
252 val skolem = Standard(axiom_OWLSubClassOf2.toString) 246 val skolem = Standard(axiom_OWLSubClassOf2)
253 val result = convertAxiom(axiom_OWLSubClassOf2, term_x, skolem) 247 val result = convertAxiom(axiom_OWLSubClassOf2, term_x, skolem)
254 val body = 248 val body =
255 TupleTableAtom.rdf(term_x, RDFIRI.RDF_TYPE, iri_Student) 249 TupleTableAtom.rdf(term_x, RDFIRI.RDF_TYPE, iri_Student)