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 | 7 |
1 files changed, 3 insertions, 4 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 6a3dca2..993e9df 100644 --- a/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala +++ b/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala | |||
@@ -545,7 +545,7 @@ class RSAOntology(axioms: List[OWLLogicalAxiom], datafiles: List[File]) | |||
545 | RDFoxUtil.addFacts( | 545 | RDFoxUtil.addFacts( |
546 | data, | 546 | data, |
547 | RSAOntology.CanonGraph, | 547 | RSAOntology.CanonGraph, |
548 | (individuals ++ literals) map RSA.Named | 548 | (individuals ++ literals) map RSA.Named(RSAOntology.CanonGraph) |
549 | ) | 549 | ) |
550 | data.evaluateUpdate( | 550 | data.evaluateUpdate( |
551 | null, // the base IRI for the query (if null, a default is used) | 551 | null, // the base IRI for the query (if null, a default is used) |
@@ -569,13 +569,12 @@ class RSAOntology(axioms: List[OWLLogicalAxiom], datafiles: List[File]) | |||
569 | 569 | ||
570 | queries map { query => | 570 | queries map { query => |
571 | { | 571 | { |
572 | //val graph = RSAOntology.FilterGraph(query) | ||
573 | val filter = RSAOntology.filteringProgram(query) | 572 | val filter = RSAOntology.filteringProgram(query) |
573 | |||
574 | /* Add filtering program */ | 574 | /* Add filtering program */ |
575 | Logger print s"Filtering program rules: ${filter.rules.length}" | 575 | Logger print s"Filtering program rules: ${filter.rules.length}" |
576 | RDFoxUtil.addRules(data, filter.rules) | 576 | RDFoxUtil.addRules(data, filter.rules) |
577 | 577 | // TODO: We remove the rules, should we drop the tuple table as well? | |
578 | // We remove the rules, should we drop the tuple table as well? | ||
579 | data.clearRulesAxiomsExplicateFacts() | 578 | data.clearRulesAxiomsExplicateFacts() |
580 | 579 | ||
581 | /* Gather answers to the query */ | 580 | /* Gather answers to the query */ |