@@ -128,7 +125,7 @@ public class ReadOntology extends JobRunner {
for(Strings:PREFIXES.keySet()){
if(prefixes.containsKey(s)){
if(!prefixes.get(s).equals(PREFIXES.get(s))){
logger.warn(String.format(
logger.error(String.format(
"Prefix `%s:` in the ontology file is expected to be equal to `<%s>`. Got: `<%s>`",s,
PREFIXES.get(s),prefixes.get(s)));
}
@@ -139,7 +136,7 @@ public class ReadOntology extends JobRunner {
Stringl=entry.getValue();
if(l.contains("saref")){
if(!l.matches(Constants.REGEX_ONTO_SERIES_URI)){
logger.warn(String.format(
logger.error(String.format(
"Prefix `%s:` in the ontology file contains string \"saref\", but does not seem to match the official SAREF ontologies namespaces: `\\\\%s\\\\`. Got: `<%s>`",