diff options
| author | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-09-07 13:08:31 +0200 |
|---|---|---|
| committer | Federico Igne <federico.igne@cs.ox.ac.uk> | 2020-09-07 13:08:31 +0200 |
| commit | 2b661f3ac6fdb5156168b6775ede24e4c7b53758 (patch) | |
| tree | 0e3514c38fedf41febff82e9bf93aea2ab4d7a7f /src/main/scala/rsacomb/RDFoxUtil.scala | |
| parent | 7e126824e9a6cb456295d2f1535aef975bb63237 (diff) | |
| download | RSAComb-2b661f3ac6fdb5156168b6775ede24e4c7b53758.tar.gz RSAComb-2b661f3ac6fdb5156168b6775ede24e4c7b53758.zip | |
Add setup code to compute the RSA filtering program
Not all rules of the filtering program have been implemented, but the
code for the generation and reification of the rules seems to work.
Diffstat (limited to 'src/main/scala/rsacomb/RDFoxUtil.scala')
| -rw-r--r-- | src/main/scala/rsacomb/RDFoxUtil.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/scala/rsacomb/RDFoxUtil.scala b/src/main/scala/rsacomb/RDFoxUtil.scala index 4cefd83..9699fb4 100644 --- a/src/main/scala/rsacomb/RDFoxUtil.scala +++ b/src/main/scala/rsacomb/RDFoxUtil.scala | |||
| @@ -15,6 +15,10 @@ object RDFoxUtil { | |||
| 15 | IRI.create(iri.getIRIString()) | 15 | IRI.create(iri.getIRIString()) |
| 16 | } | 16 | } |
| 17 | 17 | ||
| 18 | implicit def owlapi2rdfox(iri: String): IRI = { | ||
| 19 | IRI.create(iri) | ||
| 20 | } | ||
| 21 | |||
| 18 | def openConnection( | 22 | def openConnection( |
| 19 | dataStore: String | 23 | dataStore: String |
| 20 | ): (ServerConnection, DataStoreConnection) = { | 24 | ): (ServerConnection, DataStoreConnection) = { |
| @@ -37,7 +41,7 @@ object RDFoxUtil { | |||
| 37 | (server, data) | 41 | (server, data) |
| 38 | } | 42 | } |
| 39 | 43 | ||
| 40 | def query( | 44 | def submitQuery( |
| 41 | data: DataStoreConnection, | 45 | data: DataStoreConnection, |
| 42 | prefixes: Prefixes, | 46 | prefixes: Prefixes, |
| 43 | query: String | 47 | query: String |
