diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-08-16 16:27:41 +0100 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-08-16 16:27:41 +0100 |
| commit | 99b932a358e0fcf5b463c3a98fb12fdfa393152c (patch) | |
| tree | 9a78d5363937a2707cf516f37f48d2d0c65db5ae /src/main/scala/rsacomb/RDFox.scala | |
| parent | 6fc6fc2bde597c79e66c3dbf8e3a1f94526ea672 (diff) | |
| download | RSAComb-99b932a358e0fcf5b463c3a98fb12fdfa393152c.tar.gz RSAComb-99b932a358e0fcf5b463c3a98fb12fdfa393152c.zip | |
Include built-in rules in RSA check
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 | ||
