diff options
Diffstat (limited to 'src/main/scala/rsacomb/RDFox.scala')
| -rw-r--r-- | src/main/scala/rsacomb/RDFox.scala | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/src/main/scala/rsacomb/RDFox.scala b/src/main/scala/rsacomb/RDFox.scala deleted file mode 100644 index a263091..0000000 --- a/src/main/scala/rsacomb/RDFox.scala +++ /dev/null | |||
| @@ -1,24 +0,0 @@ | |||
| 1 | package rsacomb | ||
| 2 | |||
| 3 | /* Java imports */ | ||
| 4 | import java.util.HashMap | ||
| 5 | import tech.oxfordsemantic.jrdfox.client.{ConnectionFactory,ServerConnection,DataStoreConnection} | ||
| 6 | |||
| 7 | object RDFox { | ||
| 8 | |||
| 9 | def openConnection(dataStore: String): (ServerConnection,DataStoreConnection) = { | ||
| 10 | val serverUrl = "rdfox:local" | ||
| 11 | val role = "" | ||
| 12 | val password = "" | ||
| 13 | val server = ConnectionFactory.newServerConnection(serverUrl, role, password) | ||
| 14 | server.createDataStore(dataStore,"seq",new HashMap()) | ||
| 15 | val data = server.newDataStoreConnection(dataStore) | ||
| 16 | (server,data) | ||
| 17 | } | ||
| 18 | |||
| 19 | def closeConnection(server: ServerConnection, data: DataStoreConnection): Unit = { | ||
| 20 | server.close(); | ||
| 21 | data.close(); | ||
| 22 | } | ||
| 23 | |||
| 24 | } // object RDFox \ No newline at end of file | ||
