Skip to content

Commit

Permalink
Betere wiki codes voor Shacl en RDF meldingen
Browse files Browse the repository at this point in the history
Zie #570

Minor: Verbetering.
  • Loading branch information
arjan authored and arjan committed Dec 23, 2024
1 parent 0256963 commit cb701e4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/nl/imvertor/common/file/RdfFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ public void parse(Configurator configurator) throws Exception {
} else if (ext.equals("yml")) {

// TODO
configurator.getRunner().error(logger,"Not a supported RDF file extension: " + ext,null,"rdf-uns","some-wiki-ref");
configurator.getRunner().error(logger,"Not a supported RDF file extension: \"" + ext + "\"",null,"rdf-uns","RDF-NASRFE1");

} else
configurator.getRunner().fatal(logger,"Not a known RDF file extension: " + ext,null,"rdf-unk","some-wiki-ref");
configurator.getRunner().fatal(logger,"Not a known RDF file extension: \"" + ext + "\"",null,"rdf-unk","RDF-NAKRFE1");

isOpen = true;
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/nl/imvertor/common/file/ShaclFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,14 +113,14 @@ public void parse(Configurator configurator, String ttlDataFilePath) throws Exce
} catch (RepositoryException exception) {
Throwable cause = exception.getCause();
if (cause instanceof ValidationException) {
runner.error(logger, "Shacl validator reports RDF error: " + exception.getMessage());
runner.error(logger, "Shacl validator reports RDF error: \"" + exception.getMessage() + "\"","shacl-parse","SHACL-SVRRE1");
} else
throw exception;
}
}

} catch (Exception e) {
runner.warn(logger, "Shacl validator schema file \"" + getName() + "\" invalid, cannot validate RDF. " + e.getMessage(),"rdf-parse","some-wiki-ref");
runner.warn(logger, "Shacl validator schema file \"" + getName() + "\" invalid, cannot validate RDF: \"" + e.getMessage() + "\"","rdf-parse","SHACL-SVSF1ICVR2");
}

}
Expand Down

0 comments on commit cb701e4

Please sign in to comment.