From b6b85405467e56592886b332b29da30d855fea49 Mon Sep 17 00:00:00 2001 From: Jim Blake Date: Sun, 21 Dec 2014 09:11:22 -0500 Subject: [PATCH] VIVO-778 Let the TBoxReasoner provide its own OntModelSpec. --- .../tboxreasoner/ReasonerConfiguration.java | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/webapp/src/edu/cornell/mannlib/vitro/webapp/tboxreasoner/ReasonerConfiguration.java b/webapp/src/edu/cornell/mannlib/vitro/webapp/tboxreasoner/ReasonerConfiguration.java index 8f6889ba2..ed7f33341 100644 --- a/webapp/src/edu/cornell/mannlib/vitro/webapp/tboxreasoner/ReasonerConfiguration.java +++ b/webapp/src/edu/cornell/mannlib/vitro/webapp/tboxreasoner/ReasonerConfiguration.java @@ -5,9 +5,6 @@ package edu.cornell.mannlib.vitro.webapp.tboxreasoner; import java.util.HashSet; import java.util.Set; -import org.mindswap.pellet.jena.PelletReasonerFactory; - -import com.hp.hpl.jena.ontology.OntModelSpec; import com.hp.hpl.jena.vocabulary.OWL; import com.hp.hpl.jena.vocabulary.RDF; import com.hp.hpl.jena.vocabulary.RDFS; @@ -25,8 +22,6 @@ public class ReasonerConfiguration { private boolean reasonOnAllDatatypePropertyStatements = false; private boolean queryForAllDatatypeProperties = false; - private OntModelSpec ontModelSpec = PelletReasonerFactory.THE_SPEC; - /** * The default reasoner configuration is designed to provide acceptable performance on larger knowledge bases. * It will classify and realize, and add inferred disjointWith statements. @@ -54,8 +49,6 @@ public class ReasonerConfiguration { public static ReasonerConfiguration PSEUDOCOMPLETE_IGNORE_DATAPROPERTIES; static { - - //ask the reasoner only to classify, realize, and infer disjointWith statements (based on a somewhat incomplete information) DEFAULT = new ReasonerConfiguration(); HashSet defaultInferenceDrivingPatternAllowSet = new HashSet<>(); @@ -164,14 +157,6 @@ public class ReasonerConfiguration { this.queryForAllDatatypeProperties = boole; } - public OntModelSpec getOntModelSpec() { - return this.ontModelSpec; - } - - public void setOntModelSpec(OntModelSpec spec) { - this.ontModelSpec = spec; - } - public boolean isIncrementalReasoningEnabled() { return this.incrementalReasoningEnabled; }