From e1a04294ed8737444e40323474f4084cb64c1d55 Mon Sep 17 00:00:00 2001 From: Federico Igne Date: Tue, 17 Nov 2020 14:19:08 +0000 Subject: Remove implicit RSAOntology conversion This was causing problems without giving any significant advantage. Now it will be easier to refactor classes like RSA, RSAOntology, CanonicalModel. --- src/main/scala/rsacomb/RDFoxUtil.scala | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/main/scala/rsacomb/RDFoxUtil.scala') diff --git a/src/main/scala/rsacomb/RDFoxUtil.scala b/src/main/scala/rsacomb/RDFoxUtil.scala index d391d41..653c51f 100644 --- a/src/main/scala/rsacomb/RDFoxUtil.scala +++ b/src/main/scala/rsacomb/RDFoxUtil.scala @@ -15,6 +15,8 @@ import tech.oxfordsemantic.jrdfox.formats.SPARQLParser import tech.oxfordsemantic.jrdfox.logic.expression.{IRI => RDFox_IRI} import org.semanticweb.owlapi.model.{IRI => OWL_IRI} +import scala.collection.JavaConverters._ + object RDFoxUtil { implicit def rdfox2owlapi(iri: RDFox_IRI): OWL_IRI = { @@ -29,6 +31,14 @@ object RDFoxUtil { RDFox_IRI.create(iri) } + implicit def javaToScalaList[A](list: java.util.List[A]): List[A] = { + list.asScala.toList + } + + implicit def scalaToJavaList[A](list: List[A]): java.util.List[A] = { + list.asJava + } + def openConnection( dataStore: String ): (ServerConnection, DataStoreConnection) = { -- cgit v1.2.3