aboutsummaryrefslogtreecommitdiff
path: root/src/test/scala/rsacomb/OWLAxiomSpec.scala
diff options
context:
space:
mode:
authorFederico Igne <federico.igne@cs.ox.ac.uk>2020-11-18 18:07:53 +0000
committerFederico Igne <federico.igne@cs.ox.ac.uk>2020-11-18 18:07:53 +0000
commit4df351d3b1d11fc045005323c38ba3528de631ea (patch)
tree35f809e3def7d55602ed124f7b194db29407ba33 /src/test/scala/rsacomb/OWLAxiomSpec.scala
parente1a04294ed8737444e40323474f4084cb64c1d55 (diff)
downloadRSAComb-4df351d3b1d11fc045005323c38ba3528de631ea.tar.gz
RSAComb-4df351d3b1d11fc045005323c38ba3528de631ea.zip
Rework RSA as a utility object
Diffstat (limited to 'src/test/scala/rsacomb/OWLAxiomSpec.scala')
-rw-r--r--src/test/scala/rsacomb/OWLAxiomSpec.scala8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/test/scala/rsacomb/OWLAxiomSpec.scala b/src/test/scala/rsacomb/OWLAxiomSpec.scala
index 056f428..65333f5 100644
--- a/src/test/scala/rsacomb/OWLAxiomSpec.scala
+++ b/src/test/scala/rsacomb/OWLAxiomSpec.scala
@@ -36,6 +36,8 @@ 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 rsacomb.util.RSA
40
39object OWLAxiomSpec { 41object OWLAxiomSpec {
40 42
41 // IRI 43 // IRI
@@ -53,8 +55,8 @@ object OWLAxiomSpec {
53 val term_x = Variable.create("x") 55 val term_x = Variable.create("x")
54 val term_y = Variable.create("y") 56 val term_y = Variable.create("y")
55 val term_z = Variable.create("z") 57 val term_z = Variable.create("z")
56 val term_c1 = RSA.rsa("c_1") 58 val term_c1 = RSA("c_1")
57 val term_c2 = RSA.rsa("c_2") 59 val term_c2 = RSA("c_2")
58 val term_alice = RDFIRI.create("univ:alice") 60 val term_alice = RDFIRI.create("univ:alice")
59 61
60 // RDFox Predicates 62 // RDFox Predicates
@@ -181,7 +183,7 @@ class OWLAxiomSpec extends AnyFlatSpec with Matchers with LoneElement {
181 // Import required data 183 // Import required data
182 import OWLAxiomSpec._ 184 import OWLAxiomSpec._
183 // Implicit convertion from IRI in OWLAPI to IRI in JRDFox 185 // Implicit convertion from IRI in OWLAPI to IRI in JRDFox
184 import RDFoxUtil._ 186 import rsacomb.implicits.RDFox._
185 187
186 // OWLSubClassOfAxiom #1 188 // OWLSubClassOfAxiom #1
187 axiom_OWLSubClassOf1.toString should "be converted into a singleton List[Rule]" in { 189 axiom_OWLSubClassOf1.toString should "be converted into a singleton List[Rule]" in {