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:39:17 +0100
committerFederico Igne <federico.igne@cs.ox.ac.uk>2021-06-23 16:39:17 +0100
commit9c8efc0410487c301b17c8dfb68b843c7dff403e (patch)
treeeccc647fb29bb523b2176b71135bea43c2538599 /src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala
parent6b4226c41ec2a2439fb44a312ccaff01769e8212 (diff)
parentb4ddcd3f489aa217cda56140274c5b6d91a75c10 (diff)
downloadRSAComb-9c8efc0410487c301b17c8dfb68b843c7dff403e.tar.gz
RSAComb-9c8efc0410487c301b17c8dfb68b843c7dff403e.zip
Merge branch 'master' into approximation
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 247b5d5..bbbbcf3 100644
--- a/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala
+++ b/src/main/scala/uk/ac/ox/cs/rsacomb/RSAOntology.scala
@@ -591,7 +591,6 @@ class RSAOntology(val axioms: List[OWLLogicalAxiom], val datafiles: File*) {
591 * [[uk.ac.ox.cs.rsacomb.RSAOntology.ask RSAOntology.ask]]. 591 * [[uk.ac.ox.cs.rsacomb.RSAOntology.ask RSAOntology.ask]].
592 * @note This method has been introduced mostly for debugging purposes. 592 * @note This method has been introduced mostly for debugging purposes.
593 * 593 *
594 * @param cq a CQ used to compute the environment.
595 * @param query query to be executed against the environment 594 * @param query query to be executed against the environment
596 * @param prefixes additional prefixes for the query. It defaults to 595 * @param prefixes additional prefixes for the query. It defaults to
597 * an empty set. 596 * an empty set.
@@ -599,7 +598,6 @@ class RSAOntology(val axioms: List[OWLLogicalAxiom], val datafiles: File*) {
599 * @return a collection of answers to the input query. 598 * @return a collection of answers to the input query.
600 */ 599 */
601 def queryDataStore( 600 def queryDataStore(
602 cq: ConjunctiveQuery,
603 query: String, 601 query: String,
604 prefixes: Prefixes = new Prefixes(), 602 prefixes: Prefixes = new Prefixes(),
605 opts: ju.Map[String, String] = new ju.HashMap[String, String]() 603 opts: ju.Map[String, String] = new ju.HashMap[String, String]()
@@ -623,7 +621,7 @@ class RSAOntology(val axioms: List[OWLLogicalAxiom], val datafiles: File*) {
623 cq: ConjunctiveQuery 621 cq: ConjunctiveQuery
624 ): Option[Seq[(Long, Seq[Resource])]] = { 622 ): Option[Seq[(Long, Seq[Resource])]] = {
625 val query = RDFoxUtil.buildDescriptionQuery("QM", cq.variables.length) 623 val query = RDFoxUtil.buildDescriptionQuery("QM", cq.variables.length)
626 queryDataStore(cq, query, RSA.Prefixes) 624 queryDataStore(query, RSA.Prefixes)
627 } 625 }
628 626
629 def self(axiom: OWLSubClassOfAxiom): Set[Term] = { 627 def self(axiom: OWLSubClassOfAxiom): Set[Term] = {