aboutsummaryrefslogtreecommitdiff
path: root/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala
diff options
context:
space:
mode:
authorFederico Igne <federico.igne@cs.ox.ac.uk>2021-02-04 18:48:56 +0000
committerFederico Igne <federico.igne@cs.ox.ac.uk>2021-02-04 18:48:56 +0000
commit5a7208dac91c31ffcec37955fff48f1046aac753 (patch)
treecd3dbe4c6cc3d529f35bce56fdbb084e564b9a1c /src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala
parent1cb2165ccbcd6b1210bee1dfb7b527b4d2440901 (diff)
downloadRSAComb-5a7208dac91c31ffcec37955fff48f1046aac753.tar.gz
RSAComb-5a7208dac91c31ffcec37955fff48f1046aac753.zip
Add revised implementation of filtering program
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.scala4
1 files changed, 2 insertions, 2 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 b0b52c7..4243b7b 100644
--- a/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala
+++ b/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala
@@ -410,7 +410,7 @@ class RSAOntology(_ontology: File, val datafiles: File*) {
410 410
411 def filteringProgram(query: ConjunctiveQuery): FilteringProgram = 411 def filteringProgram(query: ConjunctiveQuery): FilteringProgram =
412 Logger.timed( 412 Logger.timed(
413 FilteringProgram(FilterType.FILTER_NAIVE)(query), 413 FilteringProgram(FilterType.REVISED)(query),
414 "Generating filtering program", 414 "Generating filtering program",
415 Logger.DEBUG 415 Logger.DEBUG
416 ) 416 )
@@ -491,7 +491,7 @@ class RSAOntology(_ontology: File, val datafiles: File*) {
491 //} 491 //}
492 492
493 val answers = { 493 val answers = {
494 val ans = RDFoxUtil.buildDescriptionQuery("Ans", query.answer.size) 494 val ans = filter.answerQuery
495 RDFoxUtil 495 RDFoxUtil
496 .submitQuery(data, ans, RSA.Prefixes) 496 .submitQuery(data, ans, RSA.Prefixes)
497 .map(new ConjunctiveQueryAnswers(query.bcq, query.variables, _)) 497 .map(new ConjunctiveQueryAnswers(query.bcq, query.variables, _))