Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve documentation and refactor AbstractModuleTestHelper #297

Merged
merged 8 commits into from
Jan 27, 2025
Merged
Original file line number Diff line number Diff line change
Expand Up @@ -116,13 +116,14 @@ public Object getConfigRootModule() {
* @return Returns loaded module from the given file.
*/
public Object getRootModule(String fileName) {
OntModel configModel = getOntModel(fileName);

OntModel ontModel = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);

ontModel.read(
getClass().getResourceAsStream(fileName), null, FileUtils.langTurtle);
getClass().getResourceAsStream(getConfigFilePath()), null, FileUtils.langTurtle);

return getSingleModule(ontModel);
return getSingleModule(configModel);
blcham marked this conversation as resolved.
Show resolved Hide resolved
}

public Path getFilePath(String fileName) throws URISyntaxException {
Expand Down
Loading