diff options
-rw-r--r-- | build.sbt | 38 | ||||
-rw-r--r-- | project/Dependencies.scala | 15 | ||||
-rw-r--r-- | src/test/scala/rsacomb/CanonicalModelSpec.scala | 7 | ||||
-rw-r--r-- | src/test/scala/rsacomb/OWLAxiomSpec.scala | 6 | ||||
-rw-r--r-- | src/test/scala/rsacomb/OWLClassSpec.scala | 6 |
5 files changed, 58 insertions, 14 deletions
@@ -1,16 +1,38 @@ | |||
1 | //import Dependencies._ | 1 | import Dependencies._ |
2 | 2 | ||
3 | ThisBuild / scalaVersion := "2.13.1" | 3 | ThisBuild / scalaVersion := "2.13.3" |
4 | ThisBuild / version := "0.1.0" | 4 | ThisBuild / version := "0.1.0" |
5 | //ThisBuild / organization := "com.example" | 5 | ThisBuild / organization := "uk.ac.ox.cs.rsacomb" |
6 | //ThisBuild / organizationName := "example" | 6 | ThisBuild / organizationName := "Department of Computer Science - University of Oxford" |
7 | ThisBuild / organizationHomepage := Some(url("https://www.cs.ox.ac.uk")) | ||
8 | |||
9 | ThisBuild / scmInfo := Some( | ||
10 | ScmInfo( | ||
11 | url("https://github.com/KRR-Oxford/RSA-combined-approach"), | ||
12 | "scm:git@github.com:KRR-Oxford/RSA-combined-approach.git" | ||
13 | ) | ||
14 | ) | ||
15 | // ThisBuild / developers := List( | ||
16 | // Developer( | ||
17 | // id = "Your identifier", | ||
18 | // name = "Your Name", | ||
19 | // email = "your@email", | ||
20 | // url = url("http://your.url") | ||
21 | // ) | ||
22 | // ) | ||
23 | |||
24 | ThisBuild / description := "Re-implementation of the combined approach for CQ answering over RSA ontologies." | ||
25 | // ThisBuild / licenses := List("Apache 2" -> new URL("http://www.apache.org/licenses/LICENSE-2.0.txt")) | ||
26 | ThisBuild / homepage := Some(url("https://github.com/KRR-Oxford/RSA-combined-approach")) | ||
7 | 27 | ||
8 | lazy val root = (project in file(".")) | 28 | lazy val root = (project in file(".")) |
9 | .settings( | 29 | .settings( |
10 | name := "RSAComb", | 30 | name := "RSAComb", |
11 | libraryDependencies ++= Seq( | 31 | libraryDependencies ++= Seq( |
12 | "org.scalatest" %% "scalatest" % "3.1.0" % "test", | 32 | scalatest % Test, |
13 | "net.sourceforge.owlapi" % "owlapi-apibinding" % "5.1.13", | 33 | scalatestFlatSpec % Test, |
14 | "org.scala-graph" %% "graph-core" % "1.13.2" | 34 | scalatestShouldMatchers % Test, |
35 | apibinding, | ||
36 | graphcore | ||
15 | ) | 37 | ) |
16 | ) | 38 | ) |
diff --git a/project/Dependencies.scala b/project/Dependencies.scala new file mode 100644 index 0000000..1cafe11 --- /dev/null +++ b/project/Dependencies.scala | |||
@@ -0,0 +1,15 @@ | |||
1 | import sbt._ | ||
2 | |||
3 | object Dependencies { | ||
4 | // Versions | ||
5 | lazy val scalatestVersion = "3.2.2" | ||
6 | lazy val owlapiVersion = "5.1.16" | ||
7 | lazy val scalagraphVersion = "1.13.2" | ||
8 | |||
9 | // Libraries | ||
10 | val scalatest = "org.scalatest" %% "scalatest" % scalatestVersion | ||
11 | val scalatestFlatSpec = "org.scalatest" %% "scalatest-flatspec" % scalatestVersion | ||
12 | val scalatestShouldMatchers = "org.scalatest" %% "scalatest-shouldmatchers" % scalatestVersion | ||
13 | val apibinding = "net.sourceforge.owlapi" % "owlapi-apibinding" % owlapiVersion | ||
14 | val graphcore = "org.scala-graph" %% "graph-core" % scalagraphVersion | ||
15 | } | ||
diff --git a/src/test/scala/rsacomb/CanonicalModelSpec.scala b/src/test/scala/rsacomb/CanonicalModelSpec.scala index d783b12..c528328 100644 --- a/src/test/scala/rsacomb/CanonicalModelSpec.scala +++ b/src/test/scala/rsacomb/CanonicalModelSpec.scala | |||
@@ -1,7 +1,10 @@ | |||
1 | package rsacomb | 1 | package rsacomb |
2 | 2 | ||
3 | import java.io.File | 3 | import java.io.File |
4 | import org.scalatest.{FlatSpec, Matchers, LoneElement} | 4 | import org.scalatest.LoneElement |
5 | import org.scalatest.flatspec.AnyFlatSpec | ||
6 | import org.scalatest.matchers.should.Matchers | ||
7 | |||
5 | 8 | ||
6 | import org.semanticweb.owlapi.model._ | 9 | import org.semanticweb.owlapi.model._ |
7 | import uk.ac.manchester.cs.owl.owlapi._ | 10 | import uk.ac.manchester.cs.owl.owlapi._ |
@@ -48,7 +51,7 @@ object Ontology1_CanonicalModelSpec { | |||
48 | } // object OWLAxiomSpec | 51 | } // object OWLAxiomSpec |
49 | 52 | ||
50 | class Ontology1_CanonicalModelSpec | 53 | class Ontology1_CanonicalModelSpec |
51 | extends FlatSpec | 54 | extends AnyFlatSpec |
52 | with Matchers | 55 | with Matchers |
53 | with LoneElement { | 56 | with LoneElement { |
54 | 57 | ||
diff --git a/src/test/scala/rsacomb/OWLAxiomSpec.scala b/src/test/scala/rsacomb/OWLAxiomSpec.scala index c5b8763..a389242 100644 --- a/src/test/scala/rsacomb/OWLAxiomSpec.scala +++ b/src/test/scala/rsacomb/OWLAxiomSpec.scala | |||
@@ -1,7 +1,9 @@ | |||
1 | package rsacomb | 1 | package rsacomb |
2 | 2 | ||
3 | import java.util.ArrayList | 3 | import java.util.ArrayList |
4 | import org.scalatest.{FlatSpec, Matchers, LoneElement} | 4 | import org.scalatest.LoneElement |
5 | import org.scalatest.flatspec.AnyFlatSpec | ||
6 | import org.scalatest.matchers.should.Matchers | ||
5 | 7 | ||
6 | import uk.ac.manchester.cs.owl.owlapi.{OWLSubClassOfAxiomImpl} | 8 | import uk.ac.manchester.cs.owl.owlapi.{OWLSubClassOfAxiomImpl} |
7 | import uk.ac.manchester.cs.owl.owlapi.{ | 9 | import uk.ac.manchester.cs.owl.owlapi.{ |
@@ -168,7 +170,7 @@ object OWLAxiomSpec { | |||
168 | 170 | ||
169 | } // object OWLAxiomSpec | 171 | } // object OWLAxiomSpec |
170 | 172 | ||
171 | class OWLAxiomSpec extends FlatSpec with Matchers with LoneElement { | 173 | class OWLAxiomSpec extends AnyFlatSpec with Matchers with LoneElement { |
172 | 174 | ||
173 | // Import required data | 175 | // Import required data |
174 | import OWLAxiomSpec._ | 176 | import OWLAxiomSpec._ |
diff --git a/src/test/scala/rsacomb/OWLClassSpec.scala b/src/test/scala/rsacomb/OWLClassSpec.scala index d1e9fdb..74c641e 100644 --- a/src/test/scala/rsacomb/OWLClassSpec.scala +++ b/src/test/scala/rsacomb/OWLClassSpec.scala | |||
@@ -1,6 +1,8 @@ | |||
1 | package rsacomb | 1 | package rsacomb |
2 | 2 | ||
3 | import org.scalatest.{FlatSpec, Matchers, LoneElement} | 3 | import org.scalatest.LoneElement |
4 | import org.scalatest.flatspec.AnyFlatSpec | ||
5 | import org.scalatest.matchers.should.Matchers | ||
4 | 6 | ||
5 | import uk.ac.manchester.cs.owl.owlapi.{ | 7 | import uk.ac.manchester.cs.owl.owlapi.{ |
6 | OWLClassImpl, | 8 | OWLClassImpl, |
@@ -99,7 +101,7 @@ object OWLClassSpec { | |||
99 | ) | 101 | ) |
100 | } // object OWLClassSpec | 102 | } // object OWLClassSpec |
101 | 103 | ||
102 | class OWLClassSpec extends FlatSpec with Matchers with LoneElement { | 104 | class OWLClassSpec extends AnyFlatSpec with Matchers with LoneElement { |
103 | // Import required data | 105 | // Import required data |
104 | import OWLClassSpec._ | 106 | import OWLClassSpec._ |
105 | 107 | ||