@Override public void init() throws ComponentInitException { // TODO Auto-generated method stub throw new ComponentInitException("not implemented"); }
@Override public void init() throws ComponentInitException { if (edge == null) { String msg = "Underlying EDGE class not instantiated"; logger.error(msg); throw new ComponentInitException(msg); } logger.debug("Initializing EDGE"); fullyInitialized = false; super.init(); }
@NotNull protected Map parseJson() throws ComponentInitException { JSONObject ret = new JSONObject(); JSONParser parser = new JSONParser(); Object parse = null; try { parse = parser.parse(new InputStreamReader(inputStream), new InsertionOrderedContainerFactory()); } catch (org.json.simple.parser.ParseException e) { throw new ComponentInitException(e.toString(), e); } catch (IOException e) { throw new ComponentInitException(e); } logger.trace("parse was: " + parse.toString()); if (!(parse instanceof Map)) { throw new ComponentInitException("Not a JSON object: " + parse.getClass()); } return (Map) parse; }
throw new ComponentInitException(str); } else if(percentage < 0.10) { logger.warn(str);
public void init() throws ComponentInitException { try { this.Start(); } catch (ParseException e) { throw new ComponentInitException(e); } postProcess(); initialized = true; }
@Override public void init() throws ComponentInitException { try { if (url == null) { /* Copyied from OWLFile */ Path path = Paths.get(fileName); if(!path.isAbsolute() && baseDir != null) {// else relative to base directory path = Paths.get(baseDir, fileName); } URI uri = path.normalize().toUri(); setUrl(uri.toURL().toString()); } kb = KBParser.parseKBFile(new URL(getUrl())); logger.trace("KB File " + getUrl() + " parsed successfully."); } catch (ParseException e) { throw new ComponentInitException("KB file " + getUrl() + " could not be parsed correctly.", e); } catch (FileNotFoundException e) { throw new ComponentInitException("KB file " + getUrl() + " could not be found.", e); } catch (OWLOntologyCreationException e) { throw new ComponentInitException("KB file " + getUrl() + " could not converted to OWL ontology.", e); } catch (MalformedURLException e) { throw new ComponentInitException("KB file URL " + getUrl() + " is invalid.", e); } catch (IOException e) { throw new ComponentInitException("KB file " + getUrl() + " could not be read.", e); } initialized = true; }
@Override public void init() throws ComponentInitException { AbstractReasonerComponent rc = learningProblem.getReasoner(); if (rc instanceof ClosedWorldReasoner) { sourcesOntology = ((ClosedWorldReasoner) rc).getReasonerComponent().getOntology(); } else if (rc instanceof OWLAPIReasoner) { sourcesOntology = ((OWLAPIReasoner) rc).getOntology(); } else { throw new ComponentInitException("Unsupported Reasoning: " + rc.getClass()); } }
throw new ComponentInitException(message); String message = "OWLOntologyCreationException complete ontology NOT created. "; logger.error(message + e1.getMessage()); throw new ComponentInitException(message);
throw new ComponentInitException("No positive examples have been set."); str += missing.toString(); if(missing.size()==allExamples.size()) { throw new ComponentInitException(str); } if(percentage < 0.10) { logger.warn(str);
v1new = (Collection) value.getClass().newInstance(); } catch (InstantiationException e) { throw new ComponentInitException(e); } catch (IllegalAccessException e) { throw new ComponentInitException(e);
throw new ComponentInitException(ex); } catch (MPIException mpiEX) { logger.error("Cannot get the rank of the process"); throw new ComponentInitException(mpiEX); + mpiProcesses + " processes."; logger.error(msg); throw new ComponentInitException(msg); throw new ComponentInitException(mpiEx); throw new ComponentInitException(mpiEx); + " learning problem: " + e.getMessage(); logger.error(msg); throw new ComponentInitException(msg); throw new LearningProblemUnsupportedException(lp.getClass(), this.getClass()); } catch (LearningProblemUnsupportedException e) { throw new ComponentInitException(e.getMessage());
throw new ComponentInitException("The class \"" + classToDescribe + "\" does not exist. Make sure you spelled it correctly."); throw new ComponentInitException("Class " + classToDescribe + " has 0 instances according to \"" + AnnComponentManager.getName(getReasoner().getClass()) + "\". Cannot perform class learning with 0 instances.");
throw new ComponentInitException("SPARQLReasoner only supports a single knowledge source");
!getReasoner().getObjectProperties().containsAll(classExpressionToDescribe.getObjectPropertiesInSignature()) || !getReasoner().getDatatypeProperties().containsAll(classExpressionToDescribe.getDataPropertiesInSignature())) { throw new ComponentInitException("Some entities in \"" + classExpressionToDescribe + "\" do not exist. Make sure you spelled it correctly."); throw new ComponentInitException("Class " + classExpressionToDescribe + " has 0 instances according to \"" + AnnComponentManager.getName(getReasoner().getClass()) + "\". Cannot perform class learning with 0 instances.");
}else{ throw new ComponentInitException("OWL API Reasoner requires an OWLKnowledgeSource. Received a KS of type: " + source.getClass().getName()); logger.error("The loaded ontology is logically inconsistent! One explanation for this is the following minimal set of axioms: " + expGen.getInconsistencyExplanation()); throw new ComponentInitException("Inconsistent ontologies.");
+ " learning problem: " + e.getMessage(); logger.error(msg); throw new ComponentInitException(msg); throw new LearningProblemUnsupportedException(((AbstractClassExpressionLearningProblem) learningProblem).getClass(), this.getClass()); } catch (LearningProblemUnsupportedException e) { throw new ComponentInitException(e.getMessage());
throw new ComponentInitException( "Parameter endpoint URL is required"); throw new ComponentInitException("Parameter instances is required"); throw new ComponentInitException( "A value bigger than 0 is required for parameter recursionDepth"); throw new ComponentInitException( "An ontology schema OWLClassExpression file (ontologyFile) in RDF is required");
throw new ComponentInitException(ilve); } catch (ReasoningMethodUnsupportedException rmue) { throw new ComponentInitException(rmue);
throw new ComponentInitException("DIG does not support the inferences needed in the selected learning algorithm component: " + AnnComponentManager.getName(this));