Skip to content

Commit

Permalink
[Fix] Add s-pipes dependencies for tests, update deprecated method
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew-Kulich committed Oct 3, 2022
1 parent cdf8c20 commit addd757
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public class JenaTestUtils {

public static void mapLocalSPipesDefinitionFiles() {
OntDocumentManager dm = OntDocumentManager.getInstance();
dm.setFileManager(FileManager.get());
dm.setFileManager(FileManager.getInternal());
dm.getFileManager().getLocationMapper().addAltEntry("http://onto.fel.cvut.cz/ontologies/s-pipes", "s-pipes.ttl");
dm.getFileManager().getLocationMapper().addAltEntry("http://onto.fel.cvut.cz/ontologies/s-pipes-lib", "s-pipes-lib.ttl");
}
Expand All @@ -24,7 +24,9 @@ public static OntModel loadOntologyClosureFromResources(String path) {
OntModel ontModel = ModelFactory.createOntologyModel(OntModelSpec.OWL_MEM);

OntDocumentManager dm = OntDocumentManager.getInstance();
dm.setFileManager(FileManager.get());
dm.setFileManager(FileManager.getInternal());
mapLocalSPipesDefinitionFiles();

//LocationMapper lm= FileManager.get().getLocationMapper();

// load config
Expand Down

0 comments on commit addd757

Please sign in to comment.