@Autowired public void setReasoner(AbstractReasonerComponent reasoner) { this.reasoner = reasoner; baseURI = reasoner.getBaseURI(); prefixes = reasoner.getPrefixes(); }
@Override public void init() throws ComponentInitException { heuristic = new DisjunctiveHeuristic(); candidates = new TreeSet<>(heuristic); trees = new TreeSet<>(new ELDescriptionTreeComparator()); if(startClass == null) { startClass = dataFactory.getOWLThing(); } else { try { this.startClass = OWLAPIUtils.classExpressionPropertyExpander(startClass, reasoner, dataFactory); } catch (ManchesterOWLSyntaxParserException e) { logger.info("Error parsing startClass: " + e.getMessage()); this.startClass = dataFactory.getOWLThing(); } } operator = new ELDown(reasoner, instanceBasedDisjoints); operator.init(); baseURI = reasoner.getBaseURI(); prefixes = reasoner.getPrefixes(); minimizer = new OWLClassExpressionMinimizer(dataFactory, reasoner); noise = noisePercentage/100d; initialized = true; }
@Override public void init() throws ComponentInitException { baseURI = reasoner.getBaseURI(); prefixes = reasoner.getPrefixes();
@Override public void init() throws ComponentInitException { baseURI = reasoner.getBaseURI(); prefixes = reasoner.getPrefixes();
@Override public void init() throws ComponentInitException { baseURI = reasoner.getBaseURI(); prefixes = reasoner.getPrefixes();
baseURI = reasoner.getBaseURI(); prefixes = reasoner.getPrefixes();
@Test public void rhoDRDownTest2() throws ParseException, ComponentInitException { StringRenderer.setRenderer(Rendering.DL_SYNTAX); AbstractReasonerComponent reasoner = TestOntologies.getTestOntology(TestOntology.EPC_OE); baseURI = reasoner.getBaseURI(); RhoDRDown op = new RhoDRDown(); op.setReasoner(reasoner); op.setSubHierarchy(reasoner.getClassHierarchy()); op.setObjectPropertyHierarchy(reasoner.getObjectPropertyHierarchy()); op.setDataPropertyHierarchy(reasoner.getDatatypePropertyHierarchy()); op.init(); OWLClassExpression concept = KBParser.parseConcept("(\"http://localhost/aris/sap_model.owl#EPC\" AND EXISTS \"http://localhost/aris/sap_model.owl#hasModelElements\".\"http://localhost/aris/sap_model.owl#Object\")"); Set<OWLClassExpression> results = op.refine(concept,10); for(OWLClassExpression result : results) { System.out.println(result); } int desiredResultSize = 107; if(results.size() != desiredResultSize) { System.out.println(results.size() + " results found, but should be " + desiredResultSize + "."); } assertTrue(results.size()==desiredResultSize); }
baseURI = reasoner.getBaseURI(); prefixes = reasoner.getPrefixes();
AbstractReasonerComponent reasoner = new OWLAPIReasoner(Collections.singleton(ks)); reasoner.init(); baseURI = reasoner.getBaseURI();
baseURI = reasoner.getBaseURI();
baseURI = reasoner.getBaseURI();
String baseURI = reasoner.getBaseURI(); Map<String, String> prefixes = reasoner.getPrefixes();
@Test public void rhoDRDownTest3() throws ParseException, LearningProblemUnsupportedException, ComponentInitException { AbstractReasonerComponent reasoner = TestOntologies.getTestOntology(TestOntology.KRK_ZERO_ONE); baseURI = reasoner.getBaseURI();
AbstractReasonerComponent reasoner = new OWLAPIReasoner(Collections.singleton(ks)); reasoner.init(); baseURI = reasoner.getBaseURI();
AbstractReasonerComponent reasoner = new OWLAPIReasoner(Collections.singleton(ks)); reasoner.init(); baseURI = reasoner.getBaseURI();