diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-11-18 19:13:25 +0000 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-11-18 19:13:25 +0000 |
| commit | 1efc189e90240c162b54cbc50362b46786643dad (patch) | |
| tree | 9beabe0a2af7ba1674aea0060787782aa72e8a83 /src/main/scala/rsacomb/implicits | |
| parent | a45aeff72b82bbc9a52f10929bf15b414c868525 (diff) | |
| download | RSAComb-1efc189e90240c162b54cbc50362b46786643dad.tar.gz RSAComb-1efc189e90240c162b54cbc50362b46786643dad.zip | |
Reorganize project with Java-like folder structure
Diffstat (limited to 'src/main/scala/rsacomb/implicits')
| -rw-r--r-- | src/main/scala/rsacomb/implicits/JavaCollections.scala | 13 | ||||
| -rw-r--r-- | src/main/scala/rsacomb/implicits/RDFox.scala | 20 |
2 files changed, 0 insertions, 33 deletions
diff --git a/src/main/scala/rsacomb/implicits/JavaCollections.scala b/src/main/scala/rsacomb/implicits/JavaCollections.scala deleted file mode 100644 index 69e825b..0000000 --- a/src/main/scala/rsacomb/implicits/JavaCollections.scala +++ /dev/null | |||
| @@ -1,13 +0,0 @@ | |||
| 1 | package rsacomb.implicits | ||
| 2 | |||
| 3 | import scala.collection.JavaConverters._ | ||
| 4 | |||
| 5 | object JavaCollections { | ||
| 6 | |||
| 7 | implicit def javaToScalaList[A](list: java.util.List[A]): List[A] = | ||
| 8 | list.asScala.toList | ||
| 9 | |||
| 10 | implicit def scalaToJavaList[A](list: List[A]): java.util.List[A] = | ||
| 11 | list.asJava | ||
| 12 | |||
| 13 | } | ||
diff --git a/src/main/scala/rsacomb/implicits/RDFox.scala b/src/main/scala/rsacomb/implicits/RDFox.scala deleted file mode 100644 index 44b7c01..0000000 --- a/src/main/scala/rsacomb/implicits/RDFox.scala +++ /dev/null | |||
| @@ -1,20 +0,0 @@ | |||
| 1 | package rsacomb.implicits | ||
| 2 | |||
| 3 | import tech.oxfordsemantic.jrdfox.logic.expression.{IRI => RDFoxIRI} | ||
| 4 | import org.semanticweb.owlapi.model.{IRI => OWLIRI} | ||
| 5 | |||
| 6 | object RDFox { | ||
| 7 | |||
| 8 | implicit def rdfoxToOwlapiIri(iri: RDFoxIRI): OWLIRI = { | ||
| 9 | OWLIRI.create(iri.getIRI) | ||
| 10 | } | ||
| 11 | |||
| 12 | implicit def owlapiToRdfoxIri(iri: OWLIRI): RDFoxIRI = { | ||
| 13 | RDFoxIRI.create(iri.getIRIString()) | ||
| 14 | } | ||
| 15 | |||
| 16 | implicit def stringToRdfoxIri(iri: String): RDFoxIRI = { | ||
| 17 | RDFoxIRI.create(iri) | ||
| 18 | } | ||
| 19 | |||
| 20 | } | ||
