diff options
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.scala | 16 |
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.{ | |||
36 | import org.semanticweb.owlapi.model.{IRI => OWLIRI} | 36 | import org.semanticweb.owlapi.model.{IRI => OWLIRI} |
37 | import tech.oxfordsemantic.jrdfox.logic.expression.{IRI => RDFIRI} | 37 | import tech.oxfordsemantic.jrdfox.logic.expression.{IRI => RDFIRI} |
38 | 38 | ||
39 | import uk.ac.ox.cs.rsacomb.converter.{ | 39 | import uk.ac.ox.cs.rsacomb.converter._ |
40 | RDFoxAxiomConverter, | ||
41 | SkolemStrategy, | ||
42 | NoSkolem, | ||
43 | Standard, | ||
44 | Constant | ||
45 | } | ||
46 | import uk.ac.ox.cs.rsacomb.util.RSA | 40 | import uk.ac.ox.cs.rsacomb.util.RSA |
47 | 41 | ||
48 | object OWLAxiomSpec { | 42 | object 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) |