diff options
Diffstat (limited to 'src/main/scala/rsacomb/RDFoxUtil.scala')
| -rw-r--r-- | src/main/scala/rsacomb/RDFoxUtil.scala | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main/scala/rsacomb/RDFoxUtil.scala b/src/main/scala/rsacomb/RDFoxUtil.scala index 9be7a2d..4cefd83 100644 --- a/src/main/scala/rsacomb/RDFoxUtil.scala +++ b/src/main/scala/rsacomb/RDFoxUtil.scala | |||
| @@ -3,14 +3,18 @@ package rsacomb | |||
| 3 | /* Java imports */ | 3 | /* Java imports */ |
| 4 | import java.util.HashMap | 4 | import java.util.HashMap |
| 5 | import tech.oxfordsemantic.jrdfox.Prefixes | 5 | import tech.oxfordsemantic.jrdfox.Prefixes |
| 6 | import tech.oxfordsemantic.jrdfox.logic.IRI | ||
| 6 | import tech.oxfordsemantic.jrdfox.client.{ | 7 | import tech.oxfordsemantic.jrdfox.client.{ |
| 7 | ConnectionFactory, | 8 | ConnectionFactory, |
| 8 | ServerConnection, | 9 | ServerConnection, |
| 9 | DataStoreConnection | 10 | DataStoreConnection |
| 10 | } | 11 | } |
| 11 | |||
| 12 | object RDFoxUtil { | 12 | object RDFoxUtil { |
| 13 | 13 | ||
| 14 | implicit def owlapi2rdfox(iri: org.semanticweb.owlapi.model.IRI): IRI = { | ||
| 15 | IRI.create(iri.getIRIString()) | ||
| 16 | } | ||
| 17 | |||
| 14 | def openConnection( | 18 | def openConnection( |
| 15 | dataStore: String | 19 | dataStore: String |
| 16 | ): (ServerConnection, DataStoreConnection) = { | 20 | ): (ServerConnection, DataStoreConnection) = { |
| @@ -25,8 +29,9 @@ object RDFoxUtil { | |||
| 25 | /* Create datastore connection | 29 | /* Create datastore connection |
| 26 | */ | 30 | */ |
| 27 | val parameters = new HashMap[String, String]() | 31 | val parameters = new HashMap[String, String]() |
| 32 | parameters.put("owl-in-rdf-support", "relaxed") | ||
| 28 | //parameters.put("equality", "noUNA") | 33 | //parameters.put("equality", "noUNA") |
| 29 | server.createDataStore(dataStore, "seq", parameters) | 34 | server.createDataStore(dataStore, "par-complex-nn", parameters) |
| 30 | val data = server.newDataStoreConnection(dataStore) | 35 | val data = server.newDataStoreConnection(dataStore) |
| 31 | 36 | ||
| 32 | (server, data) | 37 | (server, data) |
