diff options
Diffstat (limited to 'src/main/scala/rsacomb/RDFoxUtil.scala')
| -rw-r--r-- | src/main/scala/rsacomb/RDFoxUtil.scala | 10 |
1 files changed, 10 insertions, 0 deletions
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 | |||
| 15 | import tech.oxfordsemantic.jrdfox.logic.expression.{IRI => RDFox_IRI} | 15 | import tech.oxfordsemantic.jrdfox.logic.expression.{IRI => RDFox_IRI} |
| 16 | import org.semanticweb.owlapi.model.{IRI => OWL_IRI} | 16 | import org.semanticweb.owlapi.model.{IRI => OWL_IRI} |
| 17 | 17 | ||
| 18 | import scala.collection.JavaConverters._ | ||
| 19 | |||
| 18 | object RDFoxUtil { | 20 | object RDFoxUtil { |
| 19 | 21 | ||
| 20 | implicit def rdfox2owlapi(iri: RDFox_IRI): OWL_IRI = { | 22 | implicit def rdfox2owlapi(iri: RDFox_IRI): OWL_IRI = { |
| @@ -29,6 +31,14 @@ object RDFoxUtil { | |||
| 29 | RDFox_IRI.create(iri) | 31 | RDFox_IRI.create(iri) |
| 30 | } | 32 | } |
| 31 | 33 | ||
| 34 | implicit def javaToScalaList[A](list: java.util.List[A]): List[A] = { | ||
| 35 | list.asScala.toList | ||
| 36 | } | ||
| 37 | |||
| 38 | implicit def scalaToJavaList[A](list: List[A]): java.util.List[A] = { | ||
| 39 | list.asJava | ||
| 40 | } | ||
| 41 | |||
| 32 | def openConnection( | 42 | def openConnection( |
| 33 | dataStore: String | 43 | dataStore: String |
| 34 | ): (ServerConnection, DataStoreConnection) = { | 44 | ): (ServerConnection, DataStoreConnection) = { |
