aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/rsacomb/RDFoxUtil.scala
diff options
context:
space:
mode:
authorFederico Igne <federico.igne@cs.ox.ac.uk>2020-08-19 11:11:53 +0100
committerFederico Igne <federico.igne@cs.ox.ac.uk>2020-08-19 11:11:53 +0100
commit3a166085e656be5f957423e6e371b6647b313997 (patch)
treecc3486d5bde7dc692ee71948fd03e907b7badc7f /src/main/scala/rsacomb/RDFoxUtil.scala
parent56a3cc7f1a2d1dc85a262f2648cf246197684caf (diff)
downloadRSAComb-3a166085e656be5f957423e6e371b6647b313997.tar.gz
RSAComb-3a166085e656be5f957423e6e371b6647b313997.zip
Use `rdf(..)` instead of `create(..)` to create `Atom`s
Diffstat (limited to 'src/main/scala/rsacomb/RDFoxUtil.scala')
-rw-r--r--src/main/scala/rsacomb/RDFoxUtil.scala9
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 */
4import java.util.HashMap 4import java.util.HashMap
5import tech.oxfordsemantic.jrdfox.Prefixes 5import tech.oxfordsemantic.jrdfox.Prefixes
6import tech.oxfordsemantic.jrdfox.logic.IRI
6import tech.oxfordsemantic.jrdfox.client.{ 7import tech.oxfordsemantic.jrdfox.client.{
7 ConnectionFactory, 8 ConnectionFactory,
8 ServerConnection, 9 ServerConnection,
9 DataStoreConnection 10 DataStoreConnection
10} 11}
11
12object RDFoxUtil { 12object 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)