Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

check inconsistency with jena

$
0
0
Hello,

we are trying to check inconsistency with jena but the report is
allways empty.

Thanks for help.

java Code:

final OntModel model = ontology.getModel();
// content += model.getReasoner().getReasonerCapabilities() + "\n";
InfModel inferedRDFSModel = ModelFactory.createRDFSModel(model);
ValidityReport reports = inferedRDFSModel.validate();
if (reports.isValid()) {
tab.setText("Keine Inkonsistenzen gefunden!");

Report report = null;
for (Iterator<Report> i = reports.getReports(); i.hasNext();
report = i.next()) {
content += "Report: " + report + "\n";

Viewing all articles
Browse latest Browse all 5648

Latest Images

Trending Articles



Latest Images