diff options
author | Federico Igne <git@federicoigne.com> | 2021-09-29 16:43:01 +0100 |
---|---|---|
committer | Federico Igne <git@federicoigne.com> | 2021-09-29 16:43:01 +0100 |
commit | a5a4f5eba46c51c2a14e9915bfa34e78bff59030 (patch) | |
tree | 2bb20ae0d2ada44d3cc0cec7fc25d719bfe06f26 /src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala | |
parent | b1799a0af7bd243fb24bff66682f6f848557c27d (diff) | |
download | RSAComb-a5a4f5eba46c51c2a14e9915bfa34e78bff59030.tar.gz RSAComb-a5a4f5eba46c51c2a14e9915bfa34e78bff59030.zip |
Add import of multiple queries
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 0c88f7f..8e05f3a 100644 --- a/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala +++ b/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala | |||
@@ -496,6 +496,8 @@ class RSAOntology(axioms: List[OWLLogicalAxiom], datafiles: List[File]) | |||
496 | def unfold(axiom: OWLSubClassOfAxiom): Set[Term] = | 496 | def unfold(axiom: OWLSubClassOfAxiom): Set[Term] = |
497 | this.self(axiom) | this.cycle(axiom) | 497 | this.self(axiom) | this.cycle(axiom) |
498 | 498 | ||
499 | def ask(queries: Seq[ConjunctiveQuery]): Seq[ConjunctiveQueryAnswers] = ??? | ||
500 | |||
499 | /** Returns the answers to a query | 501 | /** Returns the answers to a query |
500 | * | 502 | * |
501 | * @param query query to execute | 503 | * @param query query to execute |
@@ -553,7 +555,7 @@ class RSAOntology(axioms: List[OWLLogicalAxiom], datafiles: List[File]) | |||
553 | val ans = filter.answerQuery | 555 | val ans = filter.answerQuery |
554 | RDFoxUtil | 556 | RDFoxUtil |
555 | .submitQuery(data, ans, RSA.Prefixes) | 557 | .submitQuery(data, ans, RSA.Prefixes) |
556 | .map(new ConjunctiveQueryAnswers(query.bcq, query.variables, _)) | 558 | .map(new ConjunctiveQueryAnswers(query, query.variables, _)) |
557 | .get | 559 | .get |
558 | } | 560 | } |
559 | 561 | ||