Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions src/main/java/server/FOOPSController.java
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ public String assessPOST(
}
}
f.fairTest();
logger.info("Assessment completed for ontology URI: " + body.getOntologyUri());
return f.exportJSON();
}catch(ResponseStatusException e) {
throw e;
Expand Down Expand Up @@ -233,6 +234,7 @@ public String postTestAssessment(@PathVariable String test_identifier,
f = new FOOPS(targetResource, testIDs);
f.fairTest();
// return f.exportJSONLD();
logger.info("Test assessment completed - test: " + test_identifier + ", resource: " + targetResource);
return applyOstrailsStatusMapping(f.exportJSONLD());


Expand Down Expand Up @@ -302,6 +304,7 @@ public String postResultSetAssessment(@PathVariable String identifier,
f = new FOOPS(targetResource, false);
f.fairTest();
// return f.exportJSONLD();
logger.info("Result set assessment completed - benchmark: " + identifier + ", resource: " + targetResource);
return applyOstrailsStatusMapping(f.exportJSONLD());

}catch(FileTooLargeException el){
Expand Down Expand Up @@ -409,6 +412,7 @@ public String assessPOST(
f = new FOOPS(tempFile.getAbsolutePath(), true);
f.fairTest();
// tempFile.delete();
logger.info("File assessment completed: " + file.getOriginalFilename());
return f.exportJSON();
} catch(FileTooLargeException el){
logger.error("Error: ontology is too big! "+ el.getMessage());
Expand Down
Loading