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-06-23 16:30:45 +0100
committerFederico Igne <federico.igne@cs.ox.ac.uk>2021-06-23 16:31:07 +0100
commitb4ddcd3f489aa217cda56140274c5b6d91a75c10 (patch)
tree2f9b77ca5e9a15b3a8456798ab1bef4888be9c93 /src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala
parent7ab2d819947c03a6618e273d5996a171f0217119 (diff)
downloadRSAComb-b4ddcd3f489aa217cda56140274c5b6d91a75c10.tar.gz
RSAComb-b4ddcd3f489aa217cda56140274c5b6d91a75c10.zip
Fix automatic query building
The API for the SKOLEM operator is changed in RDFox but the helper functions using it were not ported to the new syntax.
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, 1 insertions, 3 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 c7b3bf0..0e10f89 100644
--- a/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala
+++ b/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala
@@ -556,7 +556,6 @@ class RSAOntology(val original: OWLOntology, val datafiles: File*) {
556 * [[uk.ac.ox.cs.rsacomb.RSAOntology.ask RSAOntology.ask]]. 556 * [[uk.ac.ox.cs.rsacomb.RSAOntology.ask RSAOntology.ask]].
557 * @note This method has been introduced mostly for debugging purposes. 557 * @note This method has been introduced mostly for debugging purposes.
558 * 558 *
559 * @param cq a CQ used to compute the environment.
560 * @param query query to be executed against the environment 559 * @param query query to be executed against the environment
561 * @param prefixes additional prefixes for the query. It defaults to 560 * @param prefixes additional prefixes for the query. It defaults to
562 * an empty set. 561 * an empty set.
@@ -564,7 +563,6 @@ class RSAOntology(val original: OWLOntology, val datafiles: File*) {
564 * @return a collection of answers to the input query. 563 * @return a collection of answers to the input query.
565 */ 564 */
566 def queryDataStore( 565 def queryDataStore(
567 cq: ConjunctiveQuery,
568 query: String, 566 query: String,
569 prefixes: Prefixes = new Prefixes(), 567 prefixes: Prefixes = new Prefixes(),
570 opts: ju.Map[String, String] = new ju.HashMap[String, String]() 568 opts: ju.Map[String, String] = new ju.HashMap[String, String]()
@@ -588,7 +586,7 @@ class RSAOntology(val original: OWLOntology, val datafiles: File*) {
588 cq: ConjunctiveQuery 586 cq: ConjunctiveQuery
589 ): Option[Seq[(Long, Seq[Resource])]] = { 587 ): Option[Seq[(Long, Seq[Resource])]] = {
590 val query = RDFoxUtil.buildDescriptionQuery("QM", cq.variables.length) 588 val query = RDFoxUtil.buildDescriptionQuery("QM", cq.variables.length)
591 queryDataStore(cq, query, RSA.Prefixes) 589 queryDataStore(query, RSA.Prefixes)
592 } 590 }
593 591
594 def self(axiom: OWLSubClassOfAxiom): Set[Term] = { 592 def self(axiom: OWLSubClassOfAxiom): Set[Term] = {