From 1818d6deb118a3496205c3a49267f9b08fa926df Mon Sep 17 00:00:00 2001 From: yzhou Date: Wed, 22 Apr 2015 10:37:58 +0100 Subject: added two interfaces in QueryReasoner for SemFacet removed answer files in the *.conf --- config/fly.conf | 6 +++--- config/lubm.conf | 2 +- config/uobm.conf | 2 +- pom.xml | 4 ++-- src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java | 8 ++++++++ 5 files changed, 15 insertions(+), 7 deletions(-) diff --git a/config/fly.conf b/config/fly.conf index 23e2861..68c36b6 100644 --- a/config/fly.conf +++ b/config/fly.conf @@ -2,11 +2,11 @@ ONTOLOGY=data/fly/fly_anatomy_XP_with_GJ_FC_individuals.owl #QUERY variable points to the file that stores all queries -#QUERY=data/fly/fly.sparql -QUERY=data/fly/test.sparql +QUERY=data/fly/fly.sparql +#QUERY=data/fly/test.sparql #ANSWER variable points to the file to output all answers -ANSWER=data/fly/fly.ans +#ANSWER=data/fly/fly.ans #TO_CLASSIFY switch for the optimisation to specify if the ontology is first classified by HermiT TO_CLASSIFY=false diff --git a/config/lubm.conf b/config/lubm.conf index 6775d84..73ed470 100644 --- a/config/lubm.conf +++ b/config/lubm.conf @@ -8,7 +8,7 @@ ONTOLOGY=data/lubm/univ-bench.owl QUERY=data/lubm/lubm.sparql #ANSWER variable points to the file to output all answers -ANSWER=data/lubm/lubm.ans +#ANSWER=data/lubm/lubm.ans #TO_CLASSIFY switch for the optimisation to specify if the ontology is first classified by HermiT TO_CLASSIFY=true diff --git a/config/uobm.conf b/config/uobm.conf index 52d37f2..acbe78e 100644 --- a/config/uobm.conf +++ b/config/uobm.conf @@ -8,7 +8,7 @@ ONTOLOGY=data/uobm/univ-bench-dl.owl QUERY=data/uobm/uobm.sparql #ANSWER variable points to the file to output all answers -ANSWER=data/uobm/uobm.ans +#ANSWER=data/uobm/uobm.ans #TO_CLASSIFY switch for the optimisation to specify if the ontology is first classified by HermiT TO_CLASSIFY=true diff --git a/pom.xml b/pom.xml index 9ee2be1..391e3e1 100644 --- a/pom.xml +++ b/pom.xml @@ -13,8 +13,8 @@ maven-compiler-plugin 3.1 - 1.7 - 1.7 + 1.8 + 1.8 diff --git a/src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java b/src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java index a484444..4970e7a 100644 --- a/src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java +++ b/src/uk/ac/ox/cs/pagoda/reasoner/QueryReasoner.java @@ -48,6 +48,14 @@ public abstract class QueryReasoner { return pagoda; } + public void setToClassify(boolean flag) { + properties.setToClassify(flag); + } + + public void setToCallHermiT(boolean flag) { + properties.setToCallHermiT(flag); + } + private static QueryReasoner getInstance(OWLOntology o, Properties p) { return getInstance(Type.Full, o, true, true); } -- cgit v1.2.3