diff options
Diffstat (limited to 'src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala')
-rw-r--r-- | src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala b/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala index f90e3c1..a965ef9 100644 --- a/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala +++ b/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala | |||
@@ -327,9 +327,11 @@ class RSAOntology(val ontology: OWLOntology) { | |||
327 | def ask(query: ConjunctiveQuery): ConjunctiveQueryAnswers = { | 327 | def ask(query: ConjunctiveQuery): ConjunctiveQueryAnswers = { |
328 | import implicits.JavaCollections._ | 328 | import implicits.JavaCollections._ |
329 | val (server, data) = RDFoxUtil.openConnection(RSAOntology.DataStore) | 329 | val (server, data) = RDFoxUtil.openConnection(RSAOntology.DataStore) |
330 | val filter = this.filteringProgram(query) | ||
330 | RDFoxUtil.addRules(data, this.canonicalModel.rules) | 331 | RDFoxUtil.addRules(data, this.canonicalModel.rules) |
331 | RDFoxUtil.addFacts(data, this.canonicalModel.facts) | 332 | RDFoxUtil.addFacts(data, this.canonicalModel.facts) |
332 | data.addRules(this.filteringProgram(query).rules) | 333 | RDFoxUtil.addRules(data, filter.rules) |
334 | RDFoxUtil.addFacts(data, filter.facts) | ||
333 | val answers = RDFoxUtil | 335 | val answers = RDFoxUtil |
334 | .submitQuery( | 336 | .submitQuery( |
335 | data, | 337 | data, |