From 54e9d1777f616d8eefc0415de0a2d3cb3442e361 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Aur=C3=A9lien=20Lamercerie?=
 <aurelien.lamercerie@tetras-libre.fr>
Date: Fri, 14 Apr 2023 11:17:22 +0200
Subject: [PATCH] Update AMR Rule: generation.odrl_rule_generator

---
 .../odrl_generation/odrl_rule_generator.py    |  54 +-
 tenet/tenet.log                               | 461 +++++++++++++++---
 .../odrl-generation-devGraph-1.result.ttl     |   4 +-
 tests/dev_tests/test_rule_odrl_generator.py   |   2 +-
 tests/test_tenet_clara_main.py                |  18 +-
 5 files changed, 457 insertions(+), 82 deletions(-)

diff --git a/tenet/scheme/amr_clara_rule/odrl_generation/odrl_rule_generator.py b/tenet/scheme/amr_clara_rule/odrl_generation/odrl_rule_generator.py
index 4fc6e2b2..36699faa 100644
--- a/tenet/scheme/amr_clara_rule/odrl_generation/odrl_rule_generator.py
+++ b/tenet/scheme/amr_clara_rule/odrl_generation/odrl_rule_generator.py
@@ -21,10 +21,10 @@ from transduction.naming_computer import define_composite_naming_2
 
 
 #==============================================================================
-# Pattern Search: Rule and Action Nets
+# Pattern Search: Rule Nets
 #==============================================================================  
        
-def __search_pattern_1(graph):
+def __search_pattern(graph):
     select_data_list = ['?rule_net']
     clause_list = [f'?rule_net a net:Rule_Net.']
     query_code = generate_select_query(graph, select_data_list, clause_list)
@@ -32,14 +32,6 @@ def __search_pattern_1(graph):
     return query_code, result_set
 
 
-def __search_pattern_2(graph):
-    select_data_list = ['?action_net']
-    clause_list = [(f'?action_net a net:Action_Net.')]
-    query_code = generate_select_query(graph, select_data_list, clause_list)
-    result_set = graph.query(query_code) 
-    return query_code, result_set
-
-
 
 #==============================================================================
 # Check Methods
@@ -59,6 +51,8 @@ def __is_property_to_generate(property_net):
 # Generator Methods
 #==============================================================================
 
+ACTION_SPACING_CODE = '\n       '
+
 def __compute_policy_uri(graph, net):    
     structure_name = net.get_attribute_first_value(net.structure)    
     return produce_uriref(graph, f'ext-out:policy_{structure_name}')
@@ -70,21 +64,49 @@ def __compute_odrl_rule_type_uri(graph, net):
     return produce_uriref(graph, odrl_rule_type_uri)
 
 
-def __compute_odrl_action_code(graph, rule_net):
+def __compute_target_ref(graph, target_net_uri):
+    
+    target_net = net.ClassNet(graph, target_net_uri)
+    individual_name = 'any'
+    class_name = target_net.get_attribute_first_value(target_net.class_name)
+    if class_name is None: class_name = 'unknown'
+    
+    return f'<http://example.com/asset:{individual_name}.{class_name}>'
+
+
+def __compute_odrl_action_code(graph, rule_net): 
+    
     action_net_uri = rule_net.get_attribute_first_value(rule_net.rule_action_net)
     if action_net_uri is not None:
-        print(action_net_uri)
         action_net_uri = produce_uriref(graph, action_net_uri)
-        print(action_net_uri)
         action_net = net.ActionNet(graph, action_net_uri)
-    return produce_literal(graph, 'net:x') 
+        
+        action_ref = ''
+        first = True
+        for ref in action_net.action_name:
+            action_ref = ref if first else f'odrl:{action_ref}, {ref}'
+            first = False
+        if action_ref != '': action_ref = f'{ACTION_SPACING_CODE} odrl:action {action_ref}'
+        
+        target_ref = ''
+        first = True
+        for target_net_uri in action_net.target_net:
+            if first:
+                target_ref = __compute_target_ref(graph, target_net_uri) 
+                first = False
+            else:
+                target_ref = f'odrl:{action_ref}, {__compute_target_ref(target_net)}'
+        if target_ref != '': target_ref = f'{ACTION_SPACING_CODE} odrl:target {target_ref} ;'
+    
+    action_string = f"""[ {target_ref} {action_ref} ]"""
+    
+    return produce_literal(graph, action_string) 
 
 
 def __generate_odrl_triple_definition(graph, rule_net):     
     policy_uri = __compute_policy_uri(graph, rule_net)       
     odrl_rule_type_uri = __compute_odrl_rule_type_uri(graph, rule_net)      
     action_definition = __compute_odrl_action_code(graph, rule_net)     
-    # print(f'{policy_uri}, {odrl_rule_type_uri}, {action_definition}')
     return [(policy_uri, odrl_rule_type_uri, action_definition)]
 
   
@@ -100,7 +122,7 @@ def generate_odrl_rule(graph):
     rule_triple_list = []
 
     # -- Get property net listings
-    _, pattern_set = __search_pattern_1(graph)
+    _, pattern_set = __search_pattern(graph)
     
     # -- Triple Definition for 'not deprecated property net'
     for pattern in pattern_set:
diff --git a/tenet/tenet.log b/tenet/tenet.log
index 57aa8e28..4b8b3c85 100644
--- a/tenet/tenet.log
+++ b/tenet/tenet.log
@@ -1,6 +1,11 @@
-- DEBUG - handle_close[ddbf9d58da4311edb5fe14abc581ea52]({'header': {'msg_id': '31fe189f-aad39126dac2f71a0a08fe6f_50868_88', 'msg_type': 'comm_close', 'username': 'lamenji', 'session': '31fe189f-aad39126dac2f71a0a08fe6f', 'date': datetime.datetime(2023, 4, 13, 21, 48, 47, 997618, tzinfo=tzutc()), 'version': '5.3'}, 'msg_id': '31fe189f-aad39126dac2f71a0a08fe6f_50868_88', 'msg_type': 'comm_close', 'parent_header': {}, 'metadata': {}, 'content': {'comm_id': 'ddbf9d58da4311edb5fe14abc581ea52', 'data': {}}, 'buffers': []})
-)
-/tenet.tetras-libre.fr/demo/clara/03/
+- INFO - [TENET] Extraction Processing
+- INFO - 
+ === Process Initialization === 
+- INFO - -- Process Setting 
+- INFO - ----- Corpus source: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/ (amr)
+- INFO - ----- Base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/aos03_factoid.ttl
+- INFO - ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/
+- INFO - ----- Ontology target (id): https://tenet.tetras-libre.fr/demo/clara/03/
 - INFO - ----- Current path: /home/lamenji/Workspace/Tetras/tenet/tenet
 - DEBUG - ----- Config file: /home/lamenji/Workspace/Tetras/tenet/tenet/config.xml
 - DEBUG - 
@@ -9,7 +14,7 @@
   ----- config file: /home/lamenji/Workspace/Tetras/tenet/tenet/config.xml
   ----- uuid: https://tenet.tetras-libre.fr/demo/clara/03/
   ----- technical base name: tenet.tetras-libre.fr_demo_clara_03
-  ----- source corpus: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s03.stog.amr.ttl
+  ----- source corpus: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/
   ----- target reference: base
   ----- process level: sentence
   ----- source type: amr
@@ -21,10 +26,10 @@
   ----- CTS directory: ./scheme/
   ----- target frame directory: ./../input/targetFrameStructure/
   ----- input document directory: 
-  ----- base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230413/aos03_factoid.ttl
-  ----- output directory: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230413/aos03_factoid.ttltenet.tetras-libre.fr_demo_clara_03-20230413/
-  ----- sentence output directory: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230413/technical-data/
-  ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230413/technical-data/
+  ----- base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/aos03_factoid.ttl
+  ----- output directory: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/aos03_factoid.ttltenet.tetras-libre.fr_demo_clara_03-20230414/
+  ----- sentence output directory: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/
+  ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/
   -- Config File Definition
   ----- schema file: ./structure/amr-rdf-schema.ttl
   ----- semantic net file: ./structure/odrl-snet-schema.ttl
@@ -36,16 +41,105 @@
   ----- ontology suffix: -ontology.ttl
   ----- ontology seed suffix: -ontology-seed.ttl
   -- Source File Definition
-  ----- source sentence file: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s03.stog.amr.ttl**/*.ttl
+  ----- source sentence file: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/**/*.ttl
   -- Target File Definition
   ----- frame ontology file: ./../input/targetFrameStructure/base-ontology.ttl
   ----- frame ontology seed file: ./../input/targetFrameStructure/base-ontology-seed.ttl
   -- Output
   ----- ontology namespace: https://tenet.tetras-libre.fr/base-ontology/
-  ----- output file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230413/technical-data/tenet.tetras-libre.fr_demo_clara_03.ttl
+  ----- output file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03.ttl
   *** - *** 
+- DEBUG - -- Counting number of graph files (sentences) 
+- INFO - ----- Number of Graphs: 5
 - INFO - 
  === Extraction Processing === 
+- INFO -      *** sentence 1 *** 
+- INFO - -- Work Structure Preparation
+- DEBUG - --- Graph Initialization
+- DEBUG - ----- Configuration Loading
+- DEBUG - -------- RDF Schema (319)
+- DEBUG - -------- Semantic Net Definition (465)
+- DEBUG - -------- Config Parameter Definition (499)
+- DEBUG - ----- Frame Ontology Loading
+- DEBUG - -------- Base Ontology produced as output (529)
+- DEBUG - --- Source Data Import
+- DEBUG - ----- Sentence Loading
+- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s05.stog.amr.ttl (559)
+- DEBUG - --- Export work graph as turtle
+- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-1/tenet.tetras-libre.fr_demo_clara_03.ttl 
+- INFO - ----- Sentence (id): document-02
+- INFO - ----- Sentence (text): Movie9899 can be displayed only after 2019..
+- INFO - -- Loading Extraction Scheme (amr_scheme_clara_1)
+- DEBUG - ----- Step number: 3
+- INFO - -- Loading Extraction Rules (amr_clara_rule/*)
+- DEBUG - ----- Total rule number: 87
+- INFO - -- Applying extraction step: preprocessing
+- INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence
+- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (559, 0:00:00.032689)
+- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence
+- INFO - ----- reclassify-concept-1: 5/5 new triples (564, 0:00:00.113453)
+- INFO - ----- reclassify-concept-2: 8/8 new triples (572, 0:00:00.057627)
+- INFO - ----- reclassify-concept-3: 4/4 new triples (576, 0:00:00.048337)
+- INFO - ----- reclassify-concept-4: 8/8 new triples (584, 0:00:00.059167)
+- DEBUG - ----- reclassify-concept-5: 0/0 new triple (584, 0:00:00.046241)
+- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (584, 0:00:00.046413)
+- INFO - ----- reclassify-existing-variable: 25/25 new triples (609, 0:00:00.039630)
+- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (609, 0:00:00.048291)
+- INFO - ----- add-amr-leaf-for-reclassified-concept: 18/18 new triples (627, 0:00:00.039678)
+- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (627, 0:00:00.031244)
+- INFO - ----- add-amr-edge-for-core-relation: 15/15 new triples (642, 0:00:00.097256)
+- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (642, 0:00:00.077777)
+- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (647, 0:00:00.063678)
+- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (647, 0:00:00.064768)
+- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (647, 0:00:00.075232)
+- INFO - ----- update-amr-edge-role-1: 5/5 new triples (652, 0:00:00.039327)
+- INFO - ----- add-amr-root: 5/5 new triples (657, 0:00:00.034422)
+- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_preprocessing 
+- DEBUG - ----- step: preprocessing
+- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-1/tenet.tetras-libre.fr_demo_clara_03_preprocessing.ttl
+- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//preprocessing
+- INFO - ----- 98 triples extracted during preprocessing step
+- INFO - -- Applying extraction step: transduction
+- INFO - --- *** February Transduction *** Sequence: atomic extraction sequence
+- INFO - ----- extract atom classes: 12/12 new triples (669, 0:00:00.078865)
+- INFO - ----- extract atom individuals: 7/7 new triples (676, 0:00:00.049009)
+- INFO - ----- extract atomic properties: 36/36 new triples (712, 0:00:00.133918)
+- INFO - ----- extract atom values: 5/5 new triples (717, 0:00:00.034363)
+- INFO - ----- extract atom phenomena: 7/7 new triples (724, 0:00:00.046589)
+- INFO - ----- propagate atom relations: 11/24 new triples (735, 0:00:00.487672)
+- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1)
+- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (735, 0:00:00.008278)
+- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (735, 0:00:00.011132)
+- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (735, 0:00:00.007698)
+- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2)
+- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (735, 0:00:00.011673)
+- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (735, 0:00:00.010355)
+- INFO - --- *** February Transduction *** Sequence: composite class extraction sequence
+- DEBUG - ----- extract composite classes (1): 0/0 new triple (735, 0:00:00.023825)
+- DEBUG - ----- extract composite classes (2): 0/0 new triple (735, 0:00:00.015861)
+- INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence
+- INFO - ----- extract ODRL actions: 11/12 new triples (746, 0:00:00.076842)
+- INFO - ----- extract ODRL rules: 11/11 new triples (757, 0:00:00.104348)
+- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_transduction 
+- DEBUG - ----- step: transduction
+- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-1/tenet.tetras-libre.fr_demo_clara_03_transduction.ttl
+- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//transduction
+- INFO - ----- 100 triples extracted during transduction step
+- INFO - -- Applying extraction step: generation
+- INFO - --- *** February Transduction *** Sequence: ODRL Rule Generation Sequence
+- INFO - ----- generate ODRL rule: 1/1 new triple (758, 0:00:00.041789)
+- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_generation 
+- DEBUG - ----- step: generation
+- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-1/tenet.tetras-libre.fr_demo_clara_03_generation.ttl
+- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//generation
+- INFO - ----- 1 triples extracted during generation step
+- DEBUG - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-1/tenet.tetras-libre.fr_demo_clara_03_factoid.ttl)
+- DEBUG - ----- Number of factoids: 1
+- DEBUG - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/clara/03//factoid
+- INFO -      *** sentence 2 *** 
 - INFO - -- Work Structure Preparation
 - DEBUG - --- Graph Initialization
 - DEBUG - ----- Configuration Loading
@@ -58,7 +152,7 @@
 - DEBUG - ----- Sentence Loading
 - DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s03.stog.amr.ttl (551)
 - DEBUG - --- Export work graph as turtle
-- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230413/technical-data/tenet.tetras-libre.fr_demo_clara_03-0/tenet.tetras-libre.fr_demo_clara_03.ttl 
+- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-2/tenet.tetras-libre.fr_demo_clara_03.ttl 
 - INFO - ----- Sentence (id): document-03
 - INFO - ----- Sentence (text): John is not allowed to play the movie..
 - INFO - -- Loading Extraction Scheme (amr_scheme_clara_1)
@@ -67,84 +161,341 @@
 - DEBUG - ----- Total rule number: 87
 - INFO - -- Applying extraction step: preprocessing
 - INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence
-- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (551, 0:00:00.027755)
+- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (551, 0:00:00.033667)
 - INFO - --- *** November Transduction *** Sequence: amr-reification-sequence
-- INFO - ----- reclassify-concept-1: 5/5 new triples (556, 0:00:00.096391)
-- DEBUG - ----- reclassify-concept-2: 0/0 new triple (556, 0:00:00.052021)
-- INFO - ----- reclassify-concept-3: 4/4 new triples (560, 0:00:00.046134)
-- INFO - ----- reclassify-concept-4: 4/4 new triples (564, 0:00:00.056738)
-- INFO - ----- reclassify-concept-5: 4/4 new triples (568, 0:00:00.042466)
-- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (568, 0:00:00.039816)
-- INFO - ----- reclassify-existing-variable: 17/17 new triples (585, 0:00:00.028319)
-- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (585, 0:00:00.059122)
-- INFO - ----- add-amr-leaf-for-reclassified-concept: 12/12 new triples (597, 0:00:00.041588)
-- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (597, 0:00:00.034341)
-- INFO - ----- add-amr-edge-for-core-relation: 9/9 new triples (606, 0:00:00.095954)
-- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (606, 0:00:00.079685)
-- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (611, 0:00:00.101049)
-- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (611, 0:00:00.078799)
-- INFO - ----- add-amr-edge-for-polarity-relation: 5/5 new triples (616, 0:00:00.084544)
-- INFO - ----- update-amr-edge-role-1: 5/5 new triples (621, 0:00:00.045121)
-- INFO - ----- add-amr-root: 5/5 new triples (626, 0:00:00.030758)
+- INFO - ----- reclassify-concept-1: 5/5 new triples (556, 0:00:00.144745)
+- DEBUG - ----- reclassify-concept-2: 0/0 new triple (556, 0:00:00.077586)
+- INFO - ----- reclassify-concept-3: 4/4 new triples (560, 0:00:00.065193)
+- INFO - ----- reclassify-concept-4: 4/4 new triples (564, 0:00:00.085123)
+- INFO - ----- reclassify-concept-5: 4/4 new triples (568, 0:00:00.059515)
+- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (568, 0:00:00.061211)
+- INFO - ----- reclassify-existing-variable: 17/17 new triples (585, 0:00:00.044543)
+- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (585, 0:00:00.066934)
+- INFO - ----- add-amr-leaf-for-reclassified-concept: 12/12 new triples (597, 0:00:00.048579)
+- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (597, 0:00:00.032068)
+- INFO - ----- add-amr-edge-for-core-relation: 9/9 new triples (606, 0:00:00.094769)
+- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (606, 0:00:00.072325)
+- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (611, 0:00:00.066772)
+- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (611, 0:00:00.066200)
+- INFO - ----- add-amr-edge-for-polarity-relation: 5/5 new triples (616, 0:00:00.077073)
+- INFO - ----- update-amr-edge-role-1: 5/5 new triples (621, 0:00:00.053008)
+- INFO - ----- add-amr-root: 5/5 new triples (626, 0:00:00.038327)
 - DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_preprocessing 
 - DEBUG - ----- step: preprocessing
 - DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
-- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230413/technical-data/tenet.tetras-libre.fr_demo_clara_03-0/tenet.tetras-libre.fr_demo_clara_03_preprocessing.ttl
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-2/tenet.tetras-libre.fr_demo_clara_03_preprocessing.ttl
 - DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//preprocessing
 - INFO - ----- 75 triples extracted during preprocessing step
 - INFO - -- Applying extraction step: transduction
 - INFO - --- *** February Transduction *** Sequence: atomic extraction sequence
-- INFO - ----- extract atom classes: 12/12 new triples (638, 0:00:00.067803)
-- INFO - ----- extract atom individuals: 7/7 new triples (645, 0:00:00.047774)
-- INFO - ----- extract atomic properties: 13/13 new triples (658, 0:00:00.049456)
-- INFO - ----- extract atom values: 10/10 new triples (668, 0:00:00.062454)
-- INFO - ----- extract atom phenomena: 7/7 new triples (675, 0:00:00.038464)
-- INFO - ----- propagate atom relations: 11/22 new triples (686, 0:00:00.419121)
+- INFO - ----- extract atom classes: 12/12 new triples (638, 0:00:00.142299)
+- INFO - ----- extract atom individuals: 7/7 new triples (645, 0:00:00.035456)
+- INFO - ----- extract atomic properties: 13/13 new triples (658, 0:00:00.034054)
+- INFO - ----- extract atom values: 10/10 new triples (668, 0:00:00.040624)
+- INFO - ----- extract atom phenomena: 7/7 new triples (675, 0:00:00.028168)
+- INFO - ----- propagate atom relations: 11/22 new triples (686, 0:00:00.241666)
 - INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1)
-- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (686, 0:00:00.009006)
-- INFO - ----- analyze "polarity" phenomena (2): 12/14 new triples (698, 0:00:00.052621)
-- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (698, 0:00:00.006898)
+- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (686, 0:00:00.005817)
+- INFO - ----- analyze "polarity" phenomena (2): 12/14 new triples (698, 0:00:00.049748)
+- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (698, 0:00:00.010824)
 - INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2)
-- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (698, 0:00:00.009443)
-- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (698, 0:00:00.014862)
+- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (698, 0:00:00.019489)
+- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (698, 0:00:00.010669)
 - INFO - --- *** February Transduction *** Sequence: composite class extraction sequence
-- INFO - ----- extract composite classes (1): 23/24 new triples (721, 0:00:00.138688)
-- DEBUG - ----- extract composite classes (2): 0/0 new triple (721, 0:00:00.018134)
+- INFO - ----- extract composite classes (1): 23/24 new triples (721, 0:00:00.101926)
+- DEBUG - ----- extract composite classes (2): 0/0 new triple (721, 0:00:00.020473)
 - INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence
-- INFO - ----- extract ODRL actions: 12/14 new triples (733, 0:00:00.095729)
-- INFO - ----- extract ODRL rules: 11/11 new triples (744, 0:00:00.115878)
+- INFO - ----- extract ODRL actions: 12/14 new triples (733, 0:00:00.083480)
+- INFO - ----- extract ODRL rules: 11/11 new triples (744, 0:00:00.128898)
 - DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_transduction 
 - DEBUG - ----- step: transduction
 - DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
-- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230413/technical-data/tenet.tetras-libre.fr_demo_clara_03-0/tenet.tetras-libre.fr_demo_clara_03_transduction.ttl
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-2/tenet.tetras-libre.fr_demo_clara_03_transduction.ttl
 - DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//transduction
 - INFO - ----- 118 triples extracted during transduction step
 - INFO - -- Applying extraction step: generation
 - INFO - --- *** February Transduction *** Sequence: ODRL Rule Generation Sequence
-- INFO - ----- generate ODRL rule: 1/1 new triple (745, 0:00:00.039938)
+- INFO - ----- generate ODRL rule: 1/1 new triple (745, 0:00:00.047868)
+- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_generation 
+- DEBUG - ----- step: generation
+- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-2/tenet.tetras-libre.fr_demo_clara_03_generation.ttl
+- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//generation
+- INFO - ----- 1 triples extracted during generation step
+- DEBUG - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-2/tenet.tetras-libre.fr_demo_clara_03_factoid.ttl)
+- DEBUG - ----- Number of factoids: 1
+- DEBUG - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/clara/03//factoid
+- INFO -      *** sentence 3 *** 
+- INFO - -- Work Structure Preparation
+- DEBUG - --- Graph Initialization
+- DEBUG - ----- Configuration Loading
+- DEBUG - -------- RDF Schema (319)
+- DEBUG - -------- Semantic Net Definition (465)
+- DEBUG - -------- Config Parameter Definition (499)
+- DEBUG - ----- Frame Ontology Loading
+- DEBUG - -------- Base Ontology produced as output (529)
+- DEBUG - --- Source Data Import
+- DEBUG - ----- Sentence Loading
+- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s04.stog.amr.ttl (555)
+- DEBUG - --- Export work graph as turtle
+- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-3/tenet.tetras-libre.fr_demo_clara_03.ttl 
+- INFO - ----- Sentence (id): document-01
+- INFO - ----- Sentence (text): Movie9899 can be displayed only in Germany.
+- INFO - -- Loading Extraction Scheme (amr_scheme_clara_1)
+- DEBUG - ----- Step number: 3
+- INFO - -- Loading Extraction Rules (amr_clara_rule/*)
+- DEBUG - ----- Total rule number: 87
+- INFO - -- Applying extraction step: preprocessing
+- INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence
+- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (555, 0:00:00.032709)
+- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence
+- INFO - ----- reclassify-concept-1: 5/5 new triples (560, 0:00:00.125943)
+- DEBUG - ----- reclassify-concept-2: 0/0 new triple (560, 0:00:00.066467)
+- INFO - ----- reclassify-concept-3: 4/4 new triples (564, 0:00:00.043423)
+- INFO - ----- reclassify-concept-4: 8/8 new triples (572, 0:00:00.058116)
+- INFO - ----- reclassify-concept-5: 4/4 new triples (576, 0:00:00.056732)
+- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (576, 0:00:00.048008)
+- INFO - ----- reclassify-existing-variable: 22/22 new triples (598, 0:00:00.032459)
+- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (598, 0:00:00.065661)
+- INFO - ----- add-amr-leaf-for-reclassified-concept: 15/15 new triples (613, 0:00:00.035402)
+- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (613, 0:00:00.034399)
+- INFO - ----- add-amr-edge-for-core-relation: 12/12 new triples (625, 0:00:00.093380)
+- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (625, 0:00:00.079443)
+- INFO - ----- add-amr-edge-for-name-relation: 10/10 new triples (635, 0:00:00.062956)
+- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (635, 0:00:00.065017)
+- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (635, 0:00:00.072510)
+- INFO - ----- update-amr-edge-role-1: 6/6 new triples (641, 0:00:00.042943)
+- INFO - ----- add-amr-root: 5/5 new triples (646, 0:00:00.025528)
+- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_preprocessing 
+- DEBUG - ----- step: preprocessing
+- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-3/tenet.tetras-libre.fr_demo_clara_03_preprocessing.ttl
+- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//preprocessing
+- INFO - ----- 91 triples extracted during preprocessing step
+- INFO - -- Applying extraction step: transduction
+- INFO - --- *** February Transduction *** Sequence: atomic extraction sequence
+- INFO - ----- extract atom classes: 18/18 new triples (664, 0:00:00.167823)
+- INFO - ----- extract atom individuals: 14/14 new triples (678, 0:00:00.075488)
+- INFO - ----- extract atomic properties: 13/13 new triples (691, 0:00:00.042244)
+- INFO - ----- extract atom values: 10/10 new triples (701, 0:00:00.052927)
+- INFO - ----- extract atom phenomena: 7/7 new triples (708, 0:00:00.037119)
+- INFO - ----- propagate atom relations: 15/36 new triples (723, 0:00:00.448992)
+- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1)
+- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (723, 0:00:00.007881)
+- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (723, 0:00:00.009716)
+- INFO - ----- analyze modifier phenomena (mod): 22/25 new triples (745, 0:00:00.093238)
+- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2)
+- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (745, 0:00:00.010275)
+- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (745, 0:00:00.009923)
+- INFO - --- *** February Transduction *** Sequence: composite class extraction sequence
+- DEBUG - ----- extract composite classes (1): 0/0 new triple (745, 0:00:00.025560)
+- INFO - ----- extract composite classes (2): 25/26 new triples (770, 0:00:00.121158)
+- INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence
+- INFO - ----- extract ODRL actions: 8/9 new triples (778, 0:00:00.082151)
+- INFO - ----- extract ODRL rules: 10/10 new triples (788, 0:00:00.112528)
+- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_transduction 
+- DEBUG - ----- step: transduction
+- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-3/tenet.tetras-libre.fr_demo_clara_03_transduction.ttl
+- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//transduction
+- INFO - ----- 142 triples extracted during transduction step
+- INFO - -- Applying extraction step: generation
+- INFO - --- *** February Transduction *** Sequence: ODRL Rule Generation Sequence
+- INFO - ----- generate ODRL rule: 1/1 new triple (789, 0:00:00.041552)
+- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_generation 
+- DEBUG - ----- step: generation
+- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-3/tenet.tetras-libre.fr_demo_clara_03_generation.ttl
+- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//generation
+- INFO - ----- 1 triples extracted during generation step
+- DEBUG - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-3/tenet.tetras-libre.fr_demo_clara_03_factoid.ttl)
+- DEBUG - ----- Number of factoids: 1
+- DEBUG - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/clara/03//factoid
+- INFO -      *** sentence 4 *** 
+- INFO - -- Work Structure Preparation
+- DEBUG - --- Graph Initialization
+- DEBUG - ----- Configuration Loading
+- DEBUG - -------- RDF Schema (319)
+- DEBUG - -------- Semantic Net Definition (465)
+- DEBUG - -------- Config Parameter Definition (499)
+- DEBUG - ----- Frame Ontology Loading
+- DEBUG - -------- Base Ontology produced as output (529)
+- DEBUG - --- Source Data Import
+- DEBUG - ----- Sentence Loading
+- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s01.stog.amr.ttl (546)
+- DEBUG - --- Export work graph as turtle
+- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-4/tenet.tetras-libre.fr_demo_clara_03.ttl 
+- INFO - ----- Sentence (id): document-01
+- INFO - ----- Sentence (text): Movie9898 can be used.
+- INFO - -- Loading Extraction Scheme (amr_scheme_clara_1)
+- DEBUG - ----- Step number: 3
+- INFO - -- Loading Extraction Rules (amr_clara_rule/*)
+- DEBUG - ----- Total rule number: 87
+- INFO - -- Applying extraction step: preprocessing
+- INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence
+- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (546, 0:00:00.022646)
+- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence
+- INFO - ----- reclassify-concept-1: 5/5 new triples (551, 0:00:00.094406)
+- DEBUG - ----- reclassify-concept-2: 0/0 new triple (551, 0:00:00.055413)
+- INFO - ----- reclassify-concept-3: 4/4 new triples (555, 0:00:00.050659)
+- INFO - ----- reclassify-concept-4: 4/4 new triples (559, 0:00:00.059644)
+- DEBUG - ----- reclassify-concept-5: 0/0 new triple (559, 0:00:00.051931)
+- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (559, 0:00:00.042179)
+- INFO - ----- reclassify-existing-variable: 13/13 new triples (572, 0:00:00.034511)
+- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (572, 0:00:00.055731)
+- INFO - ----- add-amr-leaf-for-reclassified-concept: 9/9 new triples (581, 0:00:00.038076)
+- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (581, 0:00:00.030008)
+- INFO - ----- add-amr-edge-for-core-relation: 6/6 new triples (587, 0:00:00.085635)
+- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (587, 0:00:00.069057)
+- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (592, 0:00:00.093435)
+- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (592, 0:00:00.144362)
+- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (592, 0:00:00.077145)
+- INFO - ----- update-amr-edge-role-1: 3/3 new triples (595, 0:00:00.032842)
+- INFO - ----- add-amr-root: 5/5 new triples (600, 0:00:00.035563)
+- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_preprocessing 
+- DEBUG - ----- step: preprocessing
+- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-4/tenet.tetras-libre.fr_demo_clara_03_preprocessing.ttl
+- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//preprocessing
+- INFO - ----- 54 triples extracted during preprocessing step
+- INFO - -- Applying extraction step: transduction
+- INFO - --- *** February Transduction *** Sequence: atomic extraction sequence
+- INFO - ----- extract atom classes: 6/6 new triples (606, 0:00:00.037347)
+- INFO - ----- extract atom individuals: 7/7 new triples (613, 0:00:00.052014)
+- INFO - ----- extract atomic properties: 12/12 new triples (625, 0:00:00.043811)
+- INFO - ----- extract atom values: 5/5 new triples (630, 0:00:00.038323)
+- INFO - ----- extract atom phenomena: 7/7 new triples (637, 0:00:00.035959)
+- INFO - ----- propagate atom relations: 7/16 new triples (644, 0:00:00.224966)
+- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1)
+- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (644, 0:00:00.009227)
+- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (644, 0:00:00.012191)
+- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (644, 0:00:00.008071)
+- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2)
+- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (644, 0:00:00.013337)
+- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (644, 0:00:00.010910)
+- INFO - --- *** February Transduction *** Sequence: composite class extraction sequence
+- DEBUG - ----- extract composite classes (1): 0/0 new triple (644, 0:00:00.019597)
+- DEBUG - ----- extract composite classes (2): 0/0 new triple (644, 0:00:00.021332)
+- INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence
+- INFO - ----- extract ODRL actions: 11/12 new triples (655, 0:00:00.083840)
+- INFO - ----- extract ODRL rules: 11/11 new triples (666, 0:00:00.111977)
+- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_transduction 
+- DEBUG - ----- step: transduction
+- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-4/tenet.tetras-libre.fr_demo_clara_03_transduction.ttl
+- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//transduction
+- INFO - ----- 66 triples extracted during transduction step
+- INFO - -- Applying extraction step: generation
+- INFO - --- *** February Transduction *** Sequence: ODRL Rule Generation Sequence
+- INFO - ----- generate ODRL rule: 1/1 new triple (667, 0:00:00.041607)
+- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_generation 
+- DEBUG - ----- step: generation
+- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-4/tenet.tetras-libre.fr_demo_clara_03_generation.ttl
+- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//generation
+- INFO - ----- 1 triples extracted during generation step
+- DEBUG - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-4/tenet.tetras-libre.fr_demo_clara_03_factoid.ttl)
+- DEBUG - ----- Number of factoids: 1
+- DEBUG - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/clara/03//factoid
+- INFO -      *** sentence 5 *** 
+- INFO - -- Work Structure Preparation
+- DEBUG - --- Graph Initialization
+- DEBUG - ----- Configuration Loading
+- DEBUG - -------- RDF Schema (319)
+- DEBUG - -------- Semantic Net Definition (465)
+- DEBUG - -------- Config Parameter Definition (499)
+- DEBUG - ----- Frame Ontology Loading
+- DEBUG - -------- Base Ontology produced as output (529)
+- DEBUG - --- Source Data Import
+- DEBUG - ----- Sentence Loading
+- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s02.stog.amr.ttl (550)
+- DEBUG - --- Export work graph as turtle
+- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-5/tenet.tetras-libre.fr_demo_clara_03.ttl 
+- INFO - ----- Sentence (id): document-02
+- INFO - ----- Sentence (text): John must play the movie.
+- INFO - -- Loading Extraction Scheme (amr_scheme_clara_1)
+- DEBUG - ----- Step number: 3
+- INFO - -- Loading Extraction Rules (amr_clara_rule/*)
+- DEBUG - ----- Total rule number: 87
+- INFO - -- Applying extraction step: preprocessing
+- INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence
+- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (550, 0:00:00.028435)
+- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence
+- INFO - ----- reclassify-concept-1: 5/5 new triples (555, 0:00:00.111751)
+- DEBUG - ----- reclassify-concept-2: 0/0 new triple (555, 0:00:00.057160)
+- INFO - ----- reclassify-concept-3: 4/4 new triples (559, 0:00:00.042429)
+- INFO - ----- reclassify-concept-4: 4/4 new triples (563, 0:00:00.057431)
+- INFO - ----- reclassify-concept-5: 4/4 new triples (567, 0:00:00.042394)
+- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (567, 0:00:00.049607)
+- INFO - ----- reclassify-existing-variable: 17/17 new triples (584, 0:00:00.029315)
+- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (584, 0:00:00.064880)
+- INFO - ----- add-amr-leaf-for-reclassified-concept: 12/12 new triples (596, 0:00:00.035531)
+- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (596, 0:00:00.032617)
+- INFO - ----- add-amr-edge-for-core-relation: 9/9 new triples (605, 0:00:00.099060)
+- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (605, 0:00:00.070803)
+- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (610, 0:00:00.156911)
+- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (610, 0:00:00.074590)
+- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (610, 0:00:00.072578)
+- INFO - ----- update-amr-edge-role-1: 4/4 new triples (614, 0:00:00.033357)
+- INFO - ----- add-amr-root: 5/5 new triples (619, 0:00:00.029836)
+- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_preprocessing 
+- DEBUG - ----- step: preprocessing
+- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-5/tenet.tetras-libre.fr_demo_clara_03_preprocessing.ttl
+- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//preprocessing
+- INFO - ----- 69 triples extracted during preprocessing step
+- INFO - -- Applying extraction step: transduction
+- INFO - --- *** February Transduction *** Sequence: atomic extraction sequence
+- INFO - ----- extract atom classes: 12/12 new triples (631, 0:00:00.068195)
+- INFO - ----- extract atom individuals: 7/7 new triples (638, 0:00:00.049933)
+- INFO - ----- extract atomic properties: 13/13 new triples (651, 0:00:00.139984)
+- INFO - ----- extract atom values: 5/5 new triples (656, 0:00:00.029357)
+- INFO - ----- extract atom phenomena: 7/7 new triples (663, 0:00:00.044308)
+- INFO - ----- propagate atom relations: 10/20 new triples (673, 0:00:00.266383)
+- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1)
+- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (673, 0:00:00.008068)
+- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (673, 0:00:00.011669)
+- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (673, 0:00:00.010195)
+- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2)
+- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (673, 0:00:00.012982)
+- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (673, 0:00:00.010163)
+- INFO - --- *** February Transduction *** Sequence: composite class extraction sequence
+- INFO - ----- extract composite classes (1): 23/24 new triples (696, 0:00:00.174435)
+- DEBUG - ----- extract composite classes (2): 0/0 new triple (696, 0:00:00.020077)
+- INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence
+- INFO - ----- extract ODRL actions: 11/12 new triples (707, 0:00:00.085265)
+- INFO - ----- extract ODRL rules: 11/11 new triples (718, 0:00:00.114627)
+- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_transduction 
+- DEBUG - ----- step: transduction
+- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-5/tenet.tetras-libre.fr_demo_clara_03_transduction.ttl
+- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//transduction
+- INFO - ----- 99 triples extracted during transduction step
+- INFO - -- Applying extraction step: generation
+- INFO - --- *** February Transduction *** Sequence: ODRL Rule Generation Sequence
+- INFO - ----- generate ODRL rule: 1/1 new triple (719, 0:00:00.049850)
 - DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_generation 
 - DEBUG - ----- step: generation
 - DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/
-- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230413/technical-data/tenet.tetras-libre.fr_demo_clara_03-0/tenet.tetras-libre.fr_demo_clara_03_generation.ttl
+- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-5/tenet.tetras-libre.fr_demo_clara_03_generation.ttl
 - DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//generation
 - INFO - ----- 1 triples extracted during generation step
-- DEBUG - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230413/technical-data/tenet.tetras-libre.fr_demo_clara_03-0/tenet.tetras-libre.fr_demo_clara_03_factoid.ttl)
+- DEBUG - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-5/tenet.tetras-libre.fr_demo_clara_03_factoid.ttl)
 - DEBUG - ----- Number of factoids: 1
 - DEBUG - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/clara/03//factoid
 - INFO - 
  === Final Ontology Generation  === 
 - INFO - -- Making complete factoid graph by merging the result factoids
-- INFO - ----- Total factoid number: 1
+- INFO - ----- Total factoid number: 5
 - INFO - -- Serializing graph to factoid string
 - INFO - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/clara/03//factoid
 - INFO - -- Serializing graph to factoid file
-- INFO - ----- Ontology Turtle File: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230413/aos03_factoid.ttl
+- INFO - ----- Ontology Turtle File: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230414/aos03_factoid.ttl
 - INFO - 
  === Done === 
 - INFO - 
   *** Execution Time *** 
------ Function: create_ontology_from_amrld_file (tenet.main)
------ Total Time: 0:00:02.715752
------ Process Time: 0:00:02.630108
+----- Function: create_ontology_from_amrld_dir (tenet.main)
+----- Total Time: 0:00:12.351450
+----- Process Time: 0:00:12.180537
   *** - *** 
-- DEBUG - handle_close[c12677ced9db11edb5fe14abc581ea52]({'header': {'msg_id': 'ffab3b95-4abbba292202b266c50ed0- DEBUG - handle_close[dd509a52da2511edb5fe14abc581ea52]({'header': {'msg_id': 'd976c9c2-b0931d003eee38a633805abf_50868_28', 'msg_type': 'comm_close', 'username': 'lamenji', 'session': 'd976c9c2-b0931d003eee38a633805abf', 'date': datetime.datetime(2023, 4, 13, 21, 48, 47, 54497, tzinfo=tzutc()), 'version': '5.3'}, 'msg_id': 'd976c9c2-b0931d003eee38a633805abf_50868_28', 'msg_type': 'comm_close', 'parent_header': {}, 'metadata': {}, 'content': {'comm_id': 'dd509a52da2511edb5fe14abc581ea52', 'data': {}}, 'buffers': []})
diff --git a/tests/dev_tests/test_data/odrl-generation-devGraph-1.result.ttl b/tests/dev_tests/test_data/odrl-generation-devGraph-1.result.ttl
index 2a6c7a76..7a8521ac 100644
--- a/tests/dev_tests/test_data/odrl-generation-devGraph-1.result.ttl
+++ b/tests/dev_tests/test_data/odrl-generation-devGraph-1.result.ttl
@@ -401,7 +401,9 @@ cprm:targetOntologyURI a rdf:Property ;
     rdfs:range xsd:string ;
     rdfs:subPropertyOf cprm:configParamProperty .
 
-ext-out:policy_document-01 ns1:permission "net:x" .
+ext-out:policy_document-01 ns1:permission """[ 
+        odrl:target <http://example.com/asset:any.movie> ; 
+        odrl:action use ]""" .
 
 <https://tenet.tetras-libre.fr/semantic-net> a owl:Ontology .
 
diff --git a/tests/dev_tests/test_rule_odrl_generator.py b/tests/dev_tests/test_rule_odrl_generator.py
index 9648aab3..ed9d821e 100644
--- a/tests/dev_tests/test_rule_odrl_generator.py
+++ b/tests/dev_tests/test_rule_odrl_generator.py
@@ -92,7 +92,7 @@ def add_triples_in_graph(test_file_name, graph, triple_list):
         
 def test_search_pattern_1(graph):
     print('\n -- Search patterns (1)')
-    _, result_set = dev_rule.__search_pattern_1(graph)
+    _, result_set = dev_rule.__search_pattern(graph)
     print(f'\n ----- number of selection found: {len(result_set)}')
     for selection in result_set: 
         result_str = f'>>> '
diff --git a/tests/test_tenet_clara_main.py b/tests/test_tenet_clara_main.py
index a4c074fb..36a3fb3f 100644
--- a/tests/test_tenet_clara_main.py
+++ b/tests/test_tenet_clara_main.py
@@ -51,19 +51,19 @@ technical_dir_path = f'{out_dir_path}technical-data/'
 
 os.chdir('..')
 # -- Extraction from a file
-factoids = tenet.create_ontology_from_amrld_file(amrld_file_path, 
-                                                  onto_prefix=onto_prefix,
-                                                  out_file_path=out_file_path,
-                                                  technical_dir_path=technical_dir_path)
+# factoids = tenet.create_ontology_from_amrld_file(amrld_file_path, 
+#                                                   onto_prefix=onto_prefix,
+#                                                   out_file_path=out_file_path,
+#                                                   technical_dir_path=technical_dir_path)
 
 
 # -- Extraction from a directory (all files in a directory)
-# factoids = tenet.create_ontology_from_amrld_dir(amrld_dir_path, 
-#                                                 onto_prefix=onto_prefix,
-#                                                 out_file_path=out_file_path,
-#                                                 technical_dir_path=technical_dir_path)
+factoids = tenet.create_ontology_from_amrld_dir(amrld_dir_path, 
+                                                onto_prefix=onto_prefix,
+                                                out_file_path=out_file_path,
+                                                technical_dir_path=technical_dir_path)
 
-# print(factoids)
+print(factoids)
 
 
 # -----------------------------------------------
-- 
GitLab