From 0bed7af3fd72731cfb7580b5d25ef1653c7e1ad7 Mon Sep 17 00:00:00 2001
From: eliott <eliott.sammier@tetras-libre.fr>
Date: Tue, 25 Jun 2024 17:27:54 +0200
Subject: [PATCH] Fix Export stage not loading the correct ontology

---
 tetras_extraction/macao_12/script/src/export.py | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/tetras_extraction/macao_12/script/src/export.py b/tetras_extraction/macao_12/script/src/export.py
index 9c08d164..0cf12aaf 100644
--- a/tetras_extraction/macao_12/script/src/export.py
+++ b/tetras_extraction/macao_12/script/src/export.py
@@ -36,12 +36,11 @@ def main():
     RDF = gateway.jvm.fr.inria.corese.core.logic.RDF
     Transformer = gateway.jvm.fr.inria.corese.core.transform.Transformer
 
-    # Create graph, load Turtle files for schema and content
+    # Create graph, load ontology
     graph = Graph()
     ld = Load.create(graph)
     Property.set(Property.Value.DISABLE_OWL_AUTO_IMPORT, True)
-    ld.parse(RDF_SCHEMA_FILE)
-    ld.parse(RDF_CONTENT_FILE)
+    ld.parse(RDF_FULL_FILE)
 
     # Run STTL transformation
     tr = Transformer.create(graph, MODULE_DIR + "/../templates/")
-- 
GitLab