logger.error("Only SAREF ontologies with specific versions shall be imported. Their URIs conform to the regular expression `^https://saref.etsi.org/(core|saref4[a-z]{4})/v[1-9][0-9]*\\\\.[1-9][0-9]*\\\\.[1-9][0-9]*/$`");
hasErrors=true;
}
}
}
if(!found){
logger.error(String.format("The current ontology shall be imported: <%s>",version.getRepository().getNamespace()));
hasErrors=true;
}
}
if(hasErrors){
thrownewSAREFPipelineException("There were rrrors while checking the example structure");