diff --git a/cwaf-ontology/src/main/java/be/uclouvain/service/Parser.java b/cwaf-ontology/src/main/java/be/uclouvain/service/Parser.java index c656ca5..b92d68a 100644 --- a/cwaf-ontology/src/main/java/be/uclouvain/service/Parser.java +++ b/cwaf-ontology/src/main/java/be/uclouvain/service/Parser.java @@ -54,7 +54,7 @@ private static Individual parseConfigFile(String filePath, OntModel model, Bag f List lines = Files.readAllLines(Paths.get(filePath)); - Individual file = model.createIndividual(OntCWAF.NS + filePath, OntCWAF.FILE); + Individual file = model.createIndividual(OntCWAF.NS + filePath.replace("\\", "/"), OntCWAF.FILE); file.addLiteral(OntCWAF.FILE_PATH, filePath); file_bag.add(file);