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 | 9 |
1 files changed, 5 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 5ae0227..4b8e015 100644 --- a/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala +++ b/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala | |||
@@ -589,8 +589,8 @@ class RSAOntology( | |||
589 | 589 | ||
590 | /* Top/equality axiomatization */ | 590 | /* Top/equality axiomatization */ |
591 | RDFoxUtil.addRules(data, topAxioms ++ equalityAxioms) | 591 | RDFoxUtil.addRules(data, topAxioms ++ equalityAxioms) |
592 | Logger.write(topAxioms.mkString("\n"), "canonical_model.datalog") | 592 | Logger.write(topAxioms.mkString("\n"), "axiomatisation.dlog") |
593 | Logger.write(equalityAxioms.mkString("\n"), "canonical_model.datalog") | 593 | Logger.write(equalityAxioms.mkString("\n"), "axiomatisation.dlog") |
594 | 594 | ||
595 | /* Introduce `rsacomb:Named` concept */ | 595 | /* Introduce `rsacomb:Named` concept */ |
596 | data.evaluateUpdate( | 596 | data.evaluateUpdate( |
@@ -608,9 +608,10 @@ class RSAOntology( | |||
608 | 608 | ||
609 | /* Add canonical model */ | 609 | /* Add canonical model */ |
610 | Logger print s"Canonical model facts: ${this.canonicalModel.facts.length}" | 610 | Logger print s"Canonical model facts: ${this.canonicalModel.facts.length}" |
611 | Logger.write(canonicalModel.facts.mkString("\n"), "canonical_model.dlog") | ||
611 | RDFoxUtil.addFacts(data, RSAOntology.CanonGraph, this.canonicalModel.facts) | 612 | RDFoxUtil.addFacts(data, RSAOntology.CanonGraph, this.canonicalModel.facts) |
612 | Logger print s"Canonical model rules: ${this.canonicalModel.rules.length}" | 613 | Logger print s"Canonical model rules: ${this.canonicalModel.rules.length}" |
613 | Logger.write(canonicalModel.rules.mkString("\n"), "canonical_model.datalog") | 614 | Logger.write(canonicalModel.rules.mkString("\n"), "canonical_model.dlog") |
614 | RDFoxUtil.addRules(data, this.canonicalModel.rules) | 615 | RDFoxUtil.addRules(data, this.canonicalModel.rules) |
615 | 616 | ||
616 | RDFoxUtil.closeConnection(server, data) | 617 | RDFoxUtil.closeConnection(server, data) |
@@ -622,7 +623,7 @@ class RSAOntology( | |||
622 | 623 | ||
623 | /* Add filtering program */ | 624 | /* Add filtering program */ |
624 | Logger print s"Filtering program rules: ${filter.rules.length}" | 625 | Logger print s"Filtering program rules: ${filter.rules.length}" |
625 | Logger.write(filter.rules.mkString("\n"), s"filter${query.id}.datalog") | 626 | Logger.write(filter.rules.mkString("\n"), s"filter_query${query.id}.dlog") |
626 | RDFoxUtil.addRules(data, filter.rules) | 627 | RDFoxUtil.addRules(data, filter.rules) |
627 | 628 | ||
628 | // TODO: We remove the rules, should we drop the tuple table as well? | 629 | // TODO: We remove the rules, should we drop the tuple table as well? |