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, 4 insertions, 0 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 e2b0e2f..83ebbcb 100644 --- a/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala +++ b/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala | |||
@@ -549,6 +549,8 @@ class RSAOntology(axioms: List[OWLLogicalAxiom], datafiles: List[os.Path]) | |||
549 | RDFoxUtil.addData(data, RSAOntology.CanonGraph, datafiles: _*) | 549 | RDFoxUtil.addData(data, RSAOntology.CanonGraph, datafiles: _*) |
550 | /* Top / equality axiomatization */ | 550 | /* Top / equality axiomatization */ |
551 | RDFoxUtil.addRules(data, topAxioms ++ equalityAxioms) | 551 | RDFoxUtil.addRules(data, topAxioms ++ equalityAxioms) |
552 | Logger.write(topAxioms.mkString("\n"), "canonical_model.datalog") | ||
553 | Logger.write(equalityAxioms.mkString("\n"), "canonical_model.datalog") | ||
552 | /* Generate `named` predicates */ | 554 | /* Generate `named` predicates */ |
553 | // TODO: do I need both to generate all NAMED atoms? | 555 | // TODO: do I need both to generate all NAMED atoms? |
554 | RDFoxUtil.addFacts( | 556 | RDFoxUtil.addFacts( |
@@ -571,6 +573,7 @@ class RSAOntology(axioms: List[OWLLogicalAxiom], datafiles: List[os.Path]) | |||
571 | 573 | ||
572 | /* Add canonical model */ | 574 | /* Add canonical model */ |
573 | Logger print s"Canonical model rules: ${this.canonicalModel.rules.length}" | 575 | Logger print s"Canonical model rules: ${this.canonicalModel.rules.length}" |
576 | Logger.write(canonicalModel.rules.mkString("\n"), "canonical_model.datalog") | ||
574 | RDFoxUtil.addRules(data, this.canonicalModel.rules) | 577 | RDFoxUtil.addRules(data, this.canonicalModel.rules) |
575 | 578 | ||
576 | Logger print s"Canonical model facts: ${this.canonicalModel.facts.length}" | 579 | Logger print s"Canonical model facts: ${this.canonicalModel.facts.length}" |
@@ -586,6 +589,7 @@ class RSAOntology(axioms: List[OWLLogicalAxiom], datafiles: List[os.Path]) | |||
586 | 589 | ||
587 | /* Add filtering program */ | 590 | /* Add filtering program */ |
588 | Logger print s"Filtering program rules: ${filter.rules.length}" | 591 | Logger print s"Filtering program rules: ${filter.rules.length}" |
592 | Logger.write(filter.rules.mkString("\n"), "filter.datalog") | ||
589 | RDFoxUtil.addRules(data, filter.rules) | 593 | RDFoxUtil.addRules(data, filter.rules) |
590 | // TODO: We remove the rules, should we drop the tuple table as well? | 594 | // TODO: We remove the rules, should we drop the tuple table as well? |
591 | data.clearRulesAxiomsExplicateFacts() | 595 | data.clearRulesAxiomsExplicateFacts() |