diff options
Diffstat (limited to 'src/test/scala/uk/ac/ox/cs/rsacomb/RDFoxConverterSpec.scala')
-rw-r--r-- | src/test/scala/uk/ac/ox/cs/rsacomb/RDFoxConverterSpec.scala | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/test/scala/uk/ac/ox/cs/rsacomb/RDFoxConverterSpec.scala b/src/test/scala/uk/ac/ox/cs/rsacomb/RDFoxConverterSpec.scala index e2da6e4..5c9fa96 100644 --- a/src/test/scala/uk/ac/ox/cs/rsacomb/RDFoxConverterSpec.scala +++ b/src/test/scala/uk/ac/ox/cs/rsacomb/RDFoxConverterSpec.scala | |||
@@ -10,7 +10,7 @@ import tech.oxfordsemantic.jrdfox.logic.datalog.TupleTableAtom | |||
10 | import tech.oxfordsemantic.jrdfox.logic.expression.{Variable, IRI} | 10 | import tech.oxfordsemantic.jrdfox.logic.expression.{Variable, IRI} |
11 | import uk.ac.ox.cs.rsacomb.converter.RDFoxConverter | 11 | import uk.ac.ox.cs.rsacomb.converter.RDFoxConverter |
12 | import uk.ac.ox.cs.rsacomb.suffix.{Empty, Forward, Backward, Inverse} | 12 | import uk.ac.ox.cs.rsacomb.suffix.{Empty, Forward, Backward, Inverse} |
13 | import uk.ac.ox.cs.rsacomb.converter.SkolemStrategy | 13 | import uk.ac.ox.cs.rsacomb.converter.{SkolemStrategy, NoSkolem} |
14 | 14 | ||
15 | object RDFoxConverterSpec { | 15 | object RDFoxConverterSpec { |
16 | 16 | ||
@@ -44,7 +44,7 @@ class RDFoxConverterSpec | |||
44 | val cls = factory.getOWLClass(iriString0) | 44 | val cls = factory.getOWLClass(iriString0) |
45 | val atom = TupleTableAtom.rdf(term0, IRI.RDF_TYPE, IRI.create(iriString0)) | 45 | val atom = TupleTableAtom.rdf(term0, IRI.RDF_TYPE, IRI.create(iriString0)) |
46 | val (res, ext) = | 46 | val (res, ext) = |
47 | convert(cls, term0, List(), SkolemStrategy.None, Empty) | 47 | convert(cls, term0, List(), NoSkolem, Empty) |
48 | res.loneElement shouldEqual atom | 48 | res.loneElement shouldEqual atom |
49 | ext shouldBe empty | 49 | ext shouldBe empty |
50 | } | 50 | } |
@@ -55,13 +55,13 @@ class RDFoxConverterSpec | |||
55 | val cls2 = factory.getOWLClass(iriString2) | 55 | val cls2 = factory.getOWLClass(iriString2) |
56 | val conj = factory.getOWLObjectIntersectionOf(cls0, cls1, cls2) | 56 | val conj = factory.getOWLObjectIntersectionOf(cls0, cls1, cls2) |
57 | val (res0, ext0) = | 57 | val (res0, ext0) = |
58 | convert(cls0, term0, List(), SkolemStrategy.None, Empty) | 58 | convert(cls0, term0, List(), NoSkolem, Empty) |
59 | val (res1, ext1) = | 59 | val (res1, ext1) = |
60 | convert(cls1, term0, List(), SkolemStrategy.None, Empty) | 60 | convert(cls1, term0, List(), NoSkolem, Empty) |
61 | val (res2, ext2) = | 61 | val (res2, ext2) = |
62 | convert(cls2, term0, List(), SkolemStrategy.None, Empty) | 62 | convert(cls2, term0, List(), NoSkolem, Empty) |
63 | val (res, ext) = | 63 | val (res, ext) = |
64 | convert(conj, term0, List(), SkolemStrategy.None, Empty) | 64 | convert(conj, term0, List(), NoSkolem, Empty) |
65 | res should contain theSameElementsAs (res0 ::: res1 ::: res2) | 65 | res should contain theSameElementsAs (res0 ::: res1 ::: res2) |
66 | ext should contain theSameElementsAs (ext0 ::: ext1 ::: ext2) | 66 | ext should contain theSameElementsAs (ext0 ::: ext1 ::: ext2) |
67 | } | 67 | } |
@@ -70,9 +70,9 @@ class RDFoxConverterSpec | |||
70 | val cls0 = factory.getOWLClass(iriString0) | 70 | val cls0 = factory.getOWLClass(iriString0) |
71 | val conj = factory.getOWLObjectIntersectionOf(cls0) | 71 | val conj = factory.getOWLObjectIntersectionOf(cls0) |
72 | val (res0, ext0) = | 72 | val (res0, ext0) = |
73 | convert(cls0, term0, List(), SkolemStrategy.None, Empty) | 73 | convert(cls0, term0, List(), NoSkolem, Empty) |
74 | val (res, ext) = | 74 | val (res, ext) = |
75 | convert(conj, term0, List(), SkolemStrategy.None, Empty) | 75 | convert(conj, term0, List(), NoSkolem, Empty) |
76 | res should contain theSameElementsAs res0 | 76 | res should contain theSameElementsAs res0 |
77 | ext should contain theSameElementsAs ext0 | 77 | ext should contain theSameElementsAs ext0 |
78 | } | 78 | } |