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 36699faaf20a636a3c7e104152d381c3ff0b2afa..8304849eaf22e330a3401c08d970eca48addde14 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 @@ -53,18 +53,28 @@ def __is_property_to_generate(property_net): ACTION_SPACING_CODE = '\n ' + +# Policy URI +# ----------------------------------------------------- + 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}') +# ODRL Rule Type URI +# ----------------------------------------------------- + def __compute_odrl_rule_type_uri(graph, net): naming = net.get_attribute_first_value(net.rule_relation_name) odrl_rule_type_uri = f'odrl:{naming}' return produce_uriref(graph, odrl_rule_type_uri) -def __compute_target_ref(graph, target_net_uri): +# Target Reference +# ----------------------------------------------------- + +def __compute_target_ref_from_class_net(graph, target_net_uri): target_net = net.ClassNet(graph, target_net_uri) individual_name = 'any' @@ -74,6 +84,39 @@ def __compute_target_ref(graph, target_net_uri): return f'<http://example.com/asset:{individual_name}.{class_name}>' +def __compute_target_ref_from_individual_net(graph, target_net_uri): + + target_net = net.IndividualNet(graph, target_net_uri) + individual_name = target_net.get_attribute_first_value(target_net.individual_label) + class_net_uri = target_net.get_attribute_first_value(target_net.mother_class_net) + class_net = net.ClassNet(graph, class_net_uri) + class_name = class_net.get_attribute_first_value(class_net.class_name) + if class_name is None: class_name = 'unknown' + + return f'<http://example.com/asset:{individual_name}.{class_name}>' + + +def __compute_target_ref(graph, action_net): + + target_ref = '' + first = True + + for target_net_uri in action_net.target_class_net: + new_ref = __compute_target_ref_from_class_net(graph, target_net_uri) + target_ref = new_ref if first else f'{target_ref}, {new_ref}' + first = False + + for target_net_uri in action_net.target_individual_net: + new_ref = __compute_target_ref_from_individual_net(graph, target_net_uri) + target_ref = new_ref if first else f'{target_ref}, {new_ref}' + first = False + + return target_ref + + +# ODRL Action Code +# ----------------------------------------------------- + def __compute_odrl_action_code(graph, rule_net): action_net_uri = rule_net.get_attribute_first_value(rule_net.rule_action_net) @@ -88,14 +131,7 @@ def __compute_odrl_action_code(graph, rule_net): 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)}' + target_ref = __compute_target_ref(graph, action_net) if target_ref != '': target_ref = f'{ACTION_SPACING_CODE} odrl:target {target_ref} ;' action_string = f"""[ {target_ref} {action_ref} ]""" diff --git a/tenet/scheme/amr_clara_rule/transduction/atom_individual_extractor.py b/tenet/scheme/amr_clara_rule/transduction/atom_individual_extractor.py index 3d2bf6b0c6c5d5a9b991faf7325b28bcc6af13ca..625b00ee1945b781cc98c55e18674e0680f8aaad 100644 --- a/tenet/scheme/amr_clara_rule/transduction/atom_individual_extractor.py +++ b/tenet/scheme/amr_clara_rule/transduction/atom_individual_extractor.py @@ -168,5 +168,9 @@ def extract_atom_individual(graph): # -- Resulting List Update # class_net_list.append(new_class) rule_triple_list += triple_list + + # -- Deprecation: Mother Class Net + mother_class_net = net.ClassNet(graph, pattern.classNet) + rule_triple_list += mother_class_net.deprecate() return rule_label, rule_triple_list \ No newline at end of file diff --git a/tenet/scheme/amr_clara_rule/transduction/odrl_action_extractor.py b/tenet/scheme/amr_clara_rule/transduction/odrl_action_extractor.py index 5c81920052c9fb7a3c5b7801457de828496a4f98..e7959ba635787a1974374c4204da5bdfdfeb8070 100644 --- a/tenet/scheme/amr_clara_rule/transduction/odrl_action_extractor.py +++ b/tenet/scheme/amr_clara_rule/transduction/odrl_action_extractor.py @@ -49,11 +49,77 @@ def __search_target_class(graph, property_net_uri): return query_code, result_set +def __search_target_individual(graph, property_net_uri): + select_data_list = ['?individual_net'] + clause_list = [(property_net_uri, f'amr:role_ARG1', '?individual_net'), + f'?individual_net a [rdfs:subClassOf* net:Individual_Net].', + f'FILTER NOT EXISTS {{ ?individual_net a net:Deprecated_Net. }}'] + query_code = generate_select_query(graph, select_data_list, clause_list) + result_set = graph.query(query_code) + return query_code, result_set + + +def __search_subject_class(graph, property_net_uri): + select_data_list = ['?class_net'] + clause_list = [(property_net_uri, f'amr:role_ARG0', '?class_net'), + f'?class_net a [rdfs:subClassOf* net:Class_Net].', + f'FILTER NOT EXISTS {{ ?class_net a net:Deprecated_Net. }}'] + query_code = generate_select_query(graph, select_data_list, clause_list) + result_set = graph.query(query_code) + return query_code, result_set + + +def __search_subject_individual(graph, property_net_uri): + select_data_list = ['?individual_net'] + clause_list = [(property_net_uri, f'amr:role_ARG0', '?individual_net'), + f'?individual_net a [rdfs:subClassOf* net:Individual_Net].', + f'FILTER NOT EXISTS {{ ?individual_net a net:Deprecated_Net. }}'] + query_code = generate_select_query(graph, select_data_list, clause_list) + result_set = graph.query(query_code) + return query_code, result_set + + #============================================================================== # Useful Computation Method(s) #============================================================================== +def __compute_target_class_net(graph, net_composition, property_net_uri): + result_net_list = [] + _, pattern_set = __search_target_class(graph, property_net_uri) + for pattern in pattern_set: + result_net_list.append(pattern.class_net) + net_composition.append(net.ClassNet(graph, uri=pattern.class_net)) + return result_net_list if len(result_net_list) > 0 else None + + +def __compute_target_individual_net(graph, net_composition, property_net_uri): + result_net_list = [] + _, pattern_set = __search_target_individual(graph, property_net_uri) + for pattern in pattern_set: + result_net_list.append(pattern.individual_net) + net_composition.append(net.IndividualNet(graph, uri=pattern.individual_net)) + return result_net_list if len(result_net_list) > 0 else None + + +def __compute_assignee_class_net(graph, net_composition, property_net_uri): + result_net_list = [] + _, pattern_set = __search_subject_class(graph, property_net_uri) + for pattern in pattern_set: + result_net_list.append(pattern.class_net) + net_composition.append(net.ClassNet(graph, uri=pattern.class_net)) + return result_net_list if len(result_net_list) > 0 else None + + +def __compute_assignee_individual_net(graph, net_composition, property_net_uri): + result_net_list = [] + _, pattern_set = __search_subject_individual(graph, property_net_uri) + for pattern in pattern_set: + result_net_list.append(pattern.individual_net) + net_composition.append(net.IndividualNet(graph, uri=pattern.individual_net)) + return result_net_list if len(result_net_list) > 0 else None + + def __filter_relation(relation_list): result_list = [] for relation in relation_list: @@ -81,14 +147,10 @@ def __construct_action_net(graph, property_net): # -- Data Computation action_net.action_name = property_net.property_name - - target_net_list = [] - _, target_class_pattern_set = __search_target_class(graph, property_net.uri) - for pattern in target_class_pattern_set: - target_net_list.append(pattern.class_net) - net_composition.append(net.ClassNet(graph, uri=pattern.class_net)) - if len(target_net_list) > 0: - action_net.target_net = target_net_list + action_net.target_class_net = __compute_target_class_net(graph, net_composition, property_net.uri) + action_net.target_individual_net = __compute_target_individual_net(graph, net_composition, property_net.uri) + action_net.assignee_class_net = __compute_assignee_class_net(graph, net_composition, property_net.uri) + action_net.assignee_individual_net = __compute_assignee_individual_net(graph, net_composition, property_net.uri) # -- Net Naming action_net.naming = property_net.naming diff --git a/tenet/scheme/amr_master_rule/transduction/atom_individual_extractor.py b/tenet/scheme/amr_master_rule/transduction/atom_individual_extractor.py index 3d2bf6b0c6c5d5a9b991faf7325b28bcc6af13ca..625b00ee1945b781cc98c55e18674e0680f8aaad 100644 --- a/tenet/scheme/amr_master_rule/transduction/atom_individual_extractor.py +++ b/tenet/scheme/amr_master_rule/transduction/atom_individual_extractor.py @@ -168,5 +168,9 @@ def extract_atom_individual(graph): # -- Resulting List Update # class_net_list.append(new_class) rule_triple_list += triple_list + + # -- Deprecation: Mother Class Net + mother_class_net = net.ClassNet(graph, pattern.classNet) + rule_triple_list += mother_class_net.deprecate() return rule_label, rule_triple_list \ No newline at end of file diff --git a/tenet/tenet.log b/tenet/tenet.log index 4b8b3c8582e0d0519ae64aad35e843a63e6eab0c..17a71a1df6c99dcab0cc903f06cf8605d430bc1c 100644 --- a/tenet/tenet.log +++ b/tenet/tenet.log @@ -3,8 +3,8 @@ === 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 - ----- Base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/aos03_factoid.ttl +- INFO - ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 @@ -26,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-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/ + ----- base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/aos03_factoid.ttl + ----- output directory: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/aos03_factoid.ttltenet.tetras-libre.fr_demo_clara_03-20230417/ + ----- sentence output directory: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/technical-data/ + ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/technical-data/ -- Config File Definition ----- schema file: ./structure/amr-rdf-schema.ttl ----- semantic net file: ./structure/odrl-snet-schema.ttl @@ -47,7 +47,7 @@ ----- 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-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03.ttl + ----- output file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/technical-data/tenet.tetras-libre.fr_demo_clara_03.ttl *** - *** - DEBUG - -- Counting number of graph files (sentences) - INFO - ----- Number of Graphs: 5 @@ -66,7 +66,7 @@ - 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 +- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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) @@ -75,68 +75,68 @@ - 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) +- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (559, 0:00:00.028278) - 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) +- INFO - ----- reclassify-concept-1: 5/5 new triples (564, 0:00:00.133775) +- INFO - ----- reclassify-concept-2: 8/8 new triples (572, 0:00:00.069254) +- INFO - ----- reclassify-concept-3: 4/4 new triples (576, 0:00:00.059334) +- INFO - ----- reclassify-concept-4: 8/8 new triples (584, 0:00:00.072751) +- DEBUG - ----- reclassify-concept-5: 0/0 new triple (584, 0:00:00.046561) +- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (584, 0:00:00.061721) +- INFO - ----- reclassify-existing-variable: 25/25 new triples (609, 0:00:00.039417) +- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (609, 0:00:00.065926) +- INFO - ----- add-amr-leaf-for-reclassified-concept: 18/18 new triples (627, 0:00:00.035387) +- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (627, 0:00:00.041213) +- INFO - ----- add-amr-edge-for-core-relation: 15/15 new triples (642, 0:00:00.099573) +- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (642, 0:00:00.077495) +- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (647, 0:00:00.068651) +- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (647, 0:00:00.076442) +- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (647, 0:00:00.075864) +- INFO - ----- update-amr-edge-role-1: 5/5 new triples (652, 0:00:00.037272) +- INFO - ----- add-amr-root: 5/5 new triples (657, 0:00:00.020544) - 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 - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - ----- extract atom classes: 12/12 new triples (669, 0:00:00.065833) +- INFO - ----- extract atom individuals: 8/8 new triples (677, 0:00:00.046942) +- INFO - ----- extract atomic properties: 36/36 new triples (713, 0:00:00.226318) +- INFO - ----- extract atom values: 5/5 new triples (718, 0:00:00.066432) +- INFO - ----- extract atom phenomena: 7/7 new triples (725, 0:00:00.048280) +- INFO - ----- propagate atom relations: 11/30 new triples (736, 0:00:00.454820) - 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) +- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (736, 0:00:00.006895) +- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (736, 0:00:00.013034) +- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (736, 0:00:00.007716) - 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) +- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (736, 0:00:00.010918) +- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (736, 0:00:00.011287) - 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) +- DEBUG - ----- extract composite classes (1): 0/0 new triple (736, 0:00:00.025834) +- DEBUG - ----- extract composite classes (2): 0/0 new triple (736, 0:00:00.020164) - 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) +- INFO - ----- extract ODRL actions: 11/12 new triples (747, 0:00:00.156394) +- INFO - ----- extract ODRL rules: 11/11 new triples (758, 0:00:00.125677) - 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 - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - ----- 101 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) +- INFO - ----- generate ODRL rule: 1/1 new triple (759, 0:00:00.059877) - 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 - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 *** @@ -152,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-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-2/tenet.tetras-libre.fr_demo_clara_03.ttl +- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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) @@ -161,68 +161,68 @@ - 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.033667) +- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (551, 0:00:00.039559) - INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- 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) +- INFO - ----- reclassify-concept-1: 5/5 new triples (556, 0:00:00.116829) +- DEBUG - ----- reclassify-concept-2: 0/0 new triple (556, 0:00:00.070566) +- INFO - ----- reclassify-concept-3: 4/4 new triples (560, 0:00:00.052543) +- INFO - ----- reclassify-concept-4: 4/4 new triples (564, 0:00:00.066255) +- INFO - ----- reclassify-concept-5: 4/4 new triples (568, 0:00:00.047031) +- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (568, 0:00:00.056269) +- INFO - ----- reclassify-existing-variable: 17/17 new triples (585, 0:00:00.034687) +- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (585, 0:00:00.060676) +- INFO - ----- add-amr-leaf-for-reclassified-concept: 12/12 new triples (597, 0:00:00.037658) +- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (597, 0:00:00.029484) +- INFO - ----- add-amr-edge-for-core-relation: 9/9 new triples (606, 0:00:00.104501) +- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (606, 0:00:00.086192) +- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (611, 0:00:00.081757) +- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (611, 0:00:00.069789) +- INFO - ----- add-amr-edge-for-polarity-relation: 5/5 new triples (616, 0:00:00.090799) +- INFO - ----- update-amr-edge-role-1: 5/5 new triples (621, 0:00:00.051268) +- INFO - ----- add-amr-root: 5/5 new triples (626, 0:00:00.032024) - 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-2/tenet.tetras-libre.fr_demo_clara_03_preprocessing.ttl +- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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.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 - ----- extract atom classes: 12/12 new triples (638, 0:00:00.146927) +- INFO - ----- extract atom individuals: 8/8 new triples (646, 0:00:00.046648) +- INFO - ----- extract atomic properties: 13/13 new triples (659, 0:00:00.048675) +- INFO - ----- extract atom values: 10/10 new triples (669, 0:00:00.057319) +- INFO - ----- extract atom phenomena: 7/7 new triples (676, 0:00:00.047222) +- INFO - ----- propagate atom relations: 11/28 new triples (687, 0:00:00.378675) - INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1) -- 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) +- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (687, 0:00:00.007688) +- INFO - ----- analyze "polarity" phenomena (2): 12/14 new triples (699, 0:00:00.064525) +- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (699, 0:00:00.015044) - INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2) -- 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) +- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (699, 0:00:00.014722) +- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (699, 0:00:00.010283) - INFO - --- *** February Transduction *** Sequence: composite class extraction sequence -- 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) +- DEBUG - ----- extract composite classes (1): 0/0 new triple (699, 0:00:00.025958) +- DEBUG - ----- extract composite classes (2): 0/0 new triple (699, 0:00:00.026978) - INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence -- 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) +- INFO - ----- extract ODRL actions: 15/17 new triples (714, 0:00:00.168939) +- INFO - ----- extract ODRL rules: 12/12 new triples (726, 0:00:00.138499) - 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-2/tenet.tetras-libre.fr_demo_clara_03_transduction.ttl +- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - ----- 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 (745, 0:00:00.047868) +- INFO - ----- generate ODRL rule: 1/1 new triple (727, 0:00:00.050296) - 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 - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 *** @@ -238,7 +238,7 @@ - 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 +- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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) @@ -247,68 +247,68 @@ - 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) +- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (555, 0:00:00.042633) - 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) +- INFO - ----- reclassify-concept-1: 5/5 new triples (560, 0:00:00.121815) +- DEBUG - ----- reclassify-concept-2: 0/0 new triple (560, 0:00:00.067102) +- INFO - ----- reclassify-concept-3: 4/4 new triples (564, 0:00:00.054594) +- INFO - ----- reclassify-concept-4: 8/8 new triples (572, 0:00:00.070588) +- INFO - ----- reclassify-concept-5: 4/4 new triples (576, 0:00:00.043840) +- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (576, 0:00:00.050940) +- INFO - ----- reclassify-existing-variable: 22/22 new triples (598, 0:00:00.029905) +- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (598, 0:00:00.055316) +- INFO - ----- add-amr-leaf-for-reclassified-concept: 15/15 new triples (613, 0:00:00.036732) +- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (613, 0:00:00.029616) +- INFO - ----- add-amr-edge-for-core-relation: 12/12 new triples (625, 0:00:00.104075) +- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (625, 0:00:00.085523) +- INFO - ----- add-amr-edge-for-name-relation: 10/10 new triples (635, 0:00:00.084935) +- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (635, 0:00:00.163399) +- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (635, 0:00:00.070915) +- INFO - ----- update-amr-edge-role-1: 6/6 new triples (641, 0:00:00.041842) +- INFO - ----- add-amr-root: 5/5 new triples (646, 0:00:00.025455) - 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 - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - ----- extract atom classes: 18/18 new triples (664, 0:00:00.099904) +- INFO - ----- extract atom individuals: 16/16 new triples (680, 0:00:00.089562) +- INFO - ----- extract atomic properties: 13/13 new triples (693, 0:00:00.044956) +- INFO - ----- extract atom values: 10/10 new triples (703, 0:00:00.053112) +- INFO - ----- extract atom phenomena: 7/7 new triples (710, 0:00:00.043829) +- INFO - ----- propagate atom relations: 15/52 new triples (725, 0:00:00.572624) - 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) +- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (725, 0:00:00.008995) +- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (725, 0:00:00.009510) +- INFO - ----- analyze modifier phenomena (mod): 21/25 new triples (746, 0:00:00.099719) - 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) +- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (746, 0:00:00.013142) +- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (746, 0:00:00.010568) - 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) +- DEBUG - ----- extract composite classes (1): 0/0 new triple (746, 0:00:00.021774) +- DEBUG - ----- extract composite classes (2): 0/0 new triple (746, 0:00:00.027928) - 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) +- INFO - ----- extract ODRL actions: 11/12 new triples (757, 0:00:00.124288) +- INFO - ----- extract ODRL rules: 11/11 new triples (768, 0:00:00.122076) - 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 - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - ----- 122 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) +- INFO - ----- generate ODRL rule: 1/1 new triple (769, 0:00:00.061331) - 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 - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 *** @@ -324,7 +324,7 @@ - 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 +- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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) @@ -333,68 +333,68 @@ - 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) +- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (546, 0:00:00.026003) - 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) +- INFO - ----- reclassify-concept-1: 5/5 new triples (551, 0:00:00.122609) +- DEBUG - ----- reclassify-concept-2: 0/0 new triple (551, 0:00:00.066056) +- INFO - ----- reclassify-concept-3: 4/4 new triples (555, 0:00:00.050867) +- INFO - ----- reclassify-concept-4: 4/4 new triples (559, 0:00:00.060318) +- DEBUG - ----- reclassify-concept-5: 0/0 new triple (559, 0:00:00.057827) +- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (559, 0:00:00.050761) +- INFO - ----- reclassify-existing-variable: 13/13 new triples (572, 0:00:00.031900) +- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (572, 0:00:00.112678) +- INFO - ----- add-amr-leaf-for-reclassified-concept: 9/9 new triples (581, 0:00:00.043785) +- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (581, 0:00:00.040343) +- INFO - ----- add-amr-edge-for-core-relation: 6/6 new triples (587, 0:00:00.111623) +- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (587, 0:00:00.174088) +- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (592, 0:00:00.078472) +- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (592, 0:00:00.077817) +- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (592, 0:00:00.128446) +- INFO - ----- update-amr-edge-role-1: 3/3 new triples (595, 0:00:00.039129) +- INFO - ----- add-amr-root: 5/5 new triples (600, 0:00:00.038090) - 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 - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - ----- extract atom classes: 6/6 new triples (606, 0:00:00.043552) +- INFO - ----- extract atom individuals: 8/8 new triples (614, 0:00:00.058412) +- INFO - ----- extract atomic properties: 12/12 new triples (626, 0:00:00.053410) +- INFO - ----- extract atom values: 5/5 new triples (631, 0:00:00.042118) +- INFO - ----- extract atom phenomena: 7/7 new triples (638, 0:00:00.041336) +- INFO - ----- propagate atom relations: 7/22 new triples (645, 0:00:00.329548) - 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) +- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (645, 0:00:00.006347) +- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (645, 0:00:00.013114) +- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (645, 0:00:00.011006) - 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) +- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (645, 0:00:00.011040) +- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (645, 0:00:00.011731) - 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) +- DEBUG - ----- extract composite classes (1): 0/0 new triple (645, 0:00:00.026680) +- DEBUG - ----- extract composite classes (2): 0/0 new triple (645, 0:00:00.029119) - 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) +- INFO - ----- extract ODRL actions: 11/12 new triples (656, 0:00:00.150244) +- INFO - ----- extract ODRL rules: 11/11 new triples (667, 0:00:00.129207) - 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 - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - ----- 67 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) +- INFO - ----- generate ODRL rule: 1/1 new triple (668, 0:00:00.076169) - 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 - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 *** @@ -410,7 +410,7 @@ - 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 +- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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) @@ -419,68 +419,68 @@ - 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) +- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (550, 0:00:00.027090) - 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) +- INFO - ----- reclassify-concept-1: 5/5 new triples (555, 0:00:00.257633) +- DEBUG - ----- reclassify-concept-2: 0/0 new triple (555, 0:00:00.132597) +- INFO - ----- reclassify-concept-3: 4/4 new triples (559, 0:00:00.052016) +- INFO - ----- reclassify-concept-4: 4/4 new triples (563, 0:00:00.065712) +- INFO - ----- reclassify-concept-5: 4/4 new triples (567, 0:00:00.045513) +- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (567, 0:00:00.042512) +- INFO - ----- reclassify-existing-variable: 17/17 new triples (584, 0:00:00.027844) +- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (584, 0:00:00.056967) +- INFO - ----- add-amr-leaf-for-reclassified-concept: 12/12 new triples (596, 0:00:00.030150) +- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (596, 0:00:00.037799) +- INFO - ----- add-amr-edge-for-core-relation: 9/9 new triples (605, 0:00:00.091401) +- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (605, 0:00:00.114899) +- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (610, 0:00:00.184019) +- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (610, 0:00:00.064280) +- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (610, 0:00:00.074864) +- INFO - ----- update-amr-edge-role-1: 4/4 new triples (614, 0:00:00.035267) +- INFO - ----- add-amr-root: 5/5 new triples (619, 0:00:00.024913) - 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 - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - ----- extract atom classes: 12/12 new triples (631, 0:00:00.072270) +- INFO - ----- extract atom individuals: 8/8 new triples (639, 0:00:00.040712) +- INFO - ----- extract atomic properties: 13/13 new triples (652, 0:00:00.048191) +- INFO - ----- extract atom values: 5/5 new triples (657, 0:00:00.029102) +- INFO - ----- extract atom phenomena: 7/7 new triples (664, 0:00:00.043117) +- INFO - ----- propagate atom relations: 10/26 new triples (674, 0:00:00.396395) - 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) +- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (674, 0:00:00.007896) +- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (674, 0:00:00.014469) +- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (674, 0:00:00.009900) - 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) +- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (674, 0:00:00.012507) +- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (674, 0:00:00.014408) - 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) +- DEBUG - ----- extract composite classes (1): 0/0 new triple (674, 0:00:00.021494) +- DEBUG - ----- extract composite classes (2): 0/0 new triple (674, 0:00:00.028445) - 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) +- INFO - ----- extract ODRL actions: 14/15 new triples (688, 0:00:00.137891) +- INFO - ----- extract ODRL rules: 12/12 new triples (700, 0:00:00.117933) - 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 - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - ----- 81 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) +- INFO - ----- generate ODRL rule: 1/1 new triple (701, 0:00:00.049244) - 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-5/tenet.tetras-libre.fr_demo_clara_03_generation.ttl +- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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-20230414/technical-data/tenet.tetras-libre.fr_demo_clara_03-5/tenet.tetras-libre.fr_demo_clara_03_factoid.ttl) +- DEBUG - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/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 - @@ -490,12 +490,12 @@ - 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-20230414/aos03_factoid.ttl +- INFO - ----- Ontology Turtle File: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/aos03_factoid.ttl - INFO - === Done === - INFO - *** Execution Time *** ----- Function: create_ontology_from_amrld_dir (tenet.main) ------ Total Time: 0:00:12.351450 ------ Process Time: 0:00:12.180537 +----- Total Time: 0:00:13.758264 +----- Process Time: 0:00:13.556367 *** - *** diff --git a/tenet/transduction/net/action_net.py b/tenet/transduction/net/action_net.py index db18533247a76c48104e475ae7b018726e5e83ef..2372218c85d46ae644f97de1a622af8f588294ac 100644 --- a/tenet/transduction/net/action_net.py +++ b/tenet/transduction/net/action_net.py @@ -34,9 +34,14 @@ class ActionNet(Net): self.type_uri = f'net:{self.type_id}' # -- Net Attributes - self.attr_list += ['action_name', 'target_net'] + self.attr_list += ['action_name', + 'target_class_net', 'target_individual_net', + 'assignee_class_net', 'assignee_individual_net'] self._action_name = None - self._target_net = None + self._target_class_net = None + self._target_individual_net = None + self._assignee_class_net = None + self._assignee_individual_net = None #-------------------------------------------------------------------------- @@ -55,11 +60,44 @@ class ActionNet(Net): @property - def target_net(self): - if self._target_net is None: - self._target_net = self.get_value_list_from_graph('target_net') - return self._target_net + def target_class_net(self): + if self._target_class_net is None: + self._target_class_net = self.get_value_list_from_graph('target_class_net') + return self._target_class_net - @target_net.setter - def target_net(self, new_value): - self._target_net = self.set_attribute_value_list(new_value, produce_uriref) + @target_class_net.setter + def target_class_net(self, new_value): + self._target_class_net = self.set_attribute_value_list(new_value, produce_uriref) + + + @property + def target_individual_net(self): + if self._target_individual_net is None: + self._target_individual_net = self.get_value_list_from_graph('target_individual_net') + return self._target_individual_net + + @target_individual_net.setter + def target_individual_net(self, new_value): + self._target_individual_net = self.set_attribute_value_list(new_value, produce_uriref) + + + @property + def assignee_class_net(self): + if self._assignee_class_net is None: + self._assignee_class_net = self.get_value_list_from_graph('assignee_class_net') + return self._assignee_class_net + + @assignee_class_net.setter + def assignee_class_net(self, new_value): + self._assignee_class_net = self.set_attribute_value_list(new_value, produce_uriref) + + + @property + def assignee_individual_net(self): + if self._assignee_individual_net is None: + self._assignee_individual_net = self.get_value_list_from_graph('assignee_individual_net') + return self._assignee_individual_net + + @assignee_individual_net.setter + def assignee_individual_net(self, new_value): + self._assignee_individual_net = self.set_attribute_value_list(new_value, produce_uriref) diff --git a/tenet/transduction/semantic_net_rdf_reference.py b/tenet/transduction/semantic_net_rdf_reference.py index 9af242988fa01f5d58b711502aa180e978c9b054..3419af633e966e08224afc076ec521f67fb52bdf 100644 --- a/tenet/transduction/semantic_net_rdf_reference.py +++ b/tenet/transduction/semantic_net_rdf_reference.py @@ -78,7 +78,10 @@ class SemanticNetReferenceHandle: # Action Net 'action_name': 'hasActionName', - 'target_net': 'hasTargetNet', + 'target_class_net': 'hasTargetClassNet', + 'target_individual_net': 'hasTargetIndividualNet', + 'assignee_class_net': 'hasAssigneeClassNet', + 'assignee_individual_net': 'hasAssigneeIndividualNet', # Rule Net 'rule_relation_name': 'hasRuleRelationName', diff --git a/tests/dev_tests/test_data/odrl-action-devGraph-1.result.ttl b/tests/dev_tests/test_data/odrl-action-devGraph-1.result.ttl index 22d38dedd371b2464492ba757d161a1d9dda7e3e..100f85854231eddc73c268783351352ca958549b 100644 --- a/tests/dev_tests/test_data/odrl-action-devGraph-1.result.ttl +++ b/tests/dev_tests/test_data/odrl-action-devGraph-1.result.ttl @@ -642,27 +642,20 @@ net:Value_Net a owl:Class ; net:action_use_u a net:Action_Net ; net:composeFrom net:atomClass_movie_m, - net:atomProperty_use_u ; + net:atomProperty_use_u, + net:individual_9898_m ; net:coverBaseNode :leaf_use-01_u ; net:coverNode :leaf_movie_m, :leaf_use-01_u ; net:hasActionName "use" ; net:hasNaming "use" ; net:hasStructure "document-01" ; - net:hasTargetNet net:atomClass_movie_m . + net:hasTargetClassNet net:atomClass_movie_m ; + net:hasTargetIndividualNet net:individual_9898_m . net:has_value a owl:AnnotationProperty ; rdfs:subPropertyOf net:netProperty . -net:individual_9898_m a net:Individual_Net ; - :role_name net:value_9898_blankNode ; - net:coverBaseNode :leaf_movie_m ; - net:coverNode :leaf_movie_m ; - net:hasIndividualLabel "9898" ; - net:hasMotherClassNet net:atomClass_movie_m ; - net:hasNaming "9898" ; - net:hasStructure "document-01" . - net:objectType a owl:AnnotationProperty ; rdfs:label "object type" ; rdfs:subPropertyOf net:objectProperty . @@ -803,6 +796,15 @@ net:has_relation_value a owl:AnnotationProperty ; rdfs:label "has relation value" ; rdfs:subPropertyOf net:has_object . +net:individual_9898_m a net:Individual_Net ; + :role_name net:value_9898_blankNode ; + net:coverBaseNode :leaf_movie_m ; + net:coverNode :leaf_movie_m ; + net:hasIndividualLabel "9898" ; + net:hasMotherClassNet net:atomClass_movie_m ; + net:hasNaming "9898" ; + net:hasStructure "document-01" . + :AMR_Element a owl:Class ; rdfs:subClassOf :AMR_Structure . diff --git a/tests/dev_tests/test_data/odrl-action-devGraph-2.result.ttl b/tests/dev_tests/test_data/odrl-action-devGraph-2.result.ttl index 0ddbd80ea7b3be80bb0ecb1802b9481f9f6abade..0e51003d49e281399bce1d2365d02504899e19c0 100644 --- a/tests/dev_tests/test_data/odrl-action-devGraph-2.result.ttl +++ b/tests/dev_tests/test_data/odrl-action-devGraph-2.result.ttl @@ -675,27 +675,21 @@ net:Value_Net a owl:Class ; net:action_play_p a net:Action_Net ; net:composeFrom net:atomClass_movie_m, - net:atomProperty_play_p ; + net:atomProperty_play_p, + net:individual_John_p2 ; net:coverBaseNode :leaf_play-02_p ; net:coverNode :leaf_movie_m, + :leaf_person_p2, :leaf_play-02_p ; net:hasActionName "play" ; + net:hasAssigneeIndividualNet net:individual_John_p2 ; net:hasNaming "play" ; net:hasStructure "document-02" ; - net:hasTargetNet net:atomClass_movie_m . + net:hasTargetClassNet net:atomClass_movie_m . net:has_value a owl:AnnotationProperty ; rdfs:subPropertyOf net:netProperty . -net:individual_John_p2 a net:Individual_Net ; - :role_name net:value_John_blankNode ; - net:coverBaseNode :leaf_person_p2 ; - net:coverNode :leaf_person_p2 ; - net:hasIndividualLabel "John" ; - net:hasMotherClassNet net:atomClass_person_p2 ; - net:hasNaming "John" ; - net:hasStructure "document-02" . - net:objectType a owl:AnnotationProperty ; rdfs:label "object type" ; rdfs:subPropertyOf net:objectProperty . @@ -833,6 +827,15 @@ net:has_relation_value a owl:AnnotationProperty ; rdfs:label "has relation value" ; rdfs:subPropertyOf net:has_object . +net:individual_John_p2 a net:Individual_Net ; + :role_name net:value_John_blankNode ; + net:coverBaseNode :leaf_person_p2 ; + net:coverNode :leaf_person_p2 ; + net:hasIndividualLabel "John" ; + net:hasMotherClassNet net:atomClass_person_p2 ; + net:hasNaming "John" ; + net:hasStructure "document-02" . + net:value_John_blankNode a net:Value_Net ; net:coverAmrValue :value_John ; net:hasNaming "John" ; @@ -907,11 +910,6 @@ rdf:Property a owl:Class . :hasConcept :concept_movie ; :hasVariable :variable_m . -:leaf_person_p2 a :AMR_Leaf ; - :edge_p2_name_John :value_John ; - :hasConcept :concept_person ; - :hasVariable :variable_p2 . - :leaf_play-02_p a :AMR_Leaf ; :edge_p_ARG0_p2 :leaf_person_p2 ; :edge_p_ARG1_m :leaf_movie_m ; @@ -928,6 +926,11 @@ net:has_object a owl:AnnotationProperty ; :AMR_Op_Role a owl:Class ; rdfs:subClassOf :AMR_Role . +:leaf_person_p2 a :AMR_Leaf ; + :edge_p2_name_John :value_John ; + :hasConcept :concept_person ; + :hasVariable :variable_p2 . + :AMR_AnnotationProperty a owl:AnnotationProperty . :AMR_Core_Role a owl:Class ; diff --git a/tests/dev_tests/test_data/odrl-action-devGraph-3.result.ttl b/tests/dev_tests/test_data/odrl-action-devGraph-3.result.ttl index 94b7688083a2ff7a617fbd1e9d0b02a1d1574df3..1cba5c5fad48a19fa0961779940d1616844d0409 100644 --- a/tests/dev_tests/test_data/odrl-action-devGraph-3.result.ttl +++ b/tests/dev_tests/test_data/odrl-action-devGraph-3.result.ttl @@ -662,15 +662,6 @@ net:Individual_Net a owl:Class ; net:has_value a owl:AnnotationProperty ; rdfs:subPropertyOf net:netProperty . -net:individual_John_p2 a net:Individual_Net ; - :role_name net:value_John_blankNode ; - net:coverBaseNode :leaf_person_p2 ; - net:coverNode :leaf_person_p2 ; - net:hasIndividualLabel "John" ; - net:hasMotherClassNet net:atomClass_person_p2 ; - net:hasNaming "John" ; - net:hasStructure "document-03" . - net:objectType a owl:AnnotationProperty ; rdfs:label "object type" ; rdfs:subPropertyOf net:objectProperty . @@ -791,14 +782,17 @@ net:Value_Net a owl:Class ; net:action_play_p a net:Action_Net ; net:composeFrom net:atomClass_movie_m, - net:atomProperty_play_p ; + net:atomProperty_play_p, + net:individual_John_p2 ; net:coverBaseNode :leaf_play-01_p ; net:coverNode :leaf_movie_m, + :leaf_person_p2, :leaf_play-01_p ; net:hasActionName "play" ; + net:hasAssigneeIndividualNet net:individual_John_p2 ; net:hasNaming "play" ; net:hasStructure "document-03" ; - net:hasTargetNet net:atomClass_movie_m . + net:hasTargetClassNet net:atomClass_movie_m . net:objectProperty a owl:AnnotationProperty ; rdfs:label "object attribute" . @@ -851,6 +845,15 @@ net:has_relation_value a owl:AnnotationProperty ; rdfs:label "has relation value" ; rdfs:subPropertyOf net:has_object . +net:individual_John_p2 a net:Individual_Net ; + :role_name net:value_John_blankNode ; + net:coverBaseNode :leaf_person_p2 ; + net:coverNode :leaf_person_p2 ; + net:hasIndividualLabel "John" ; + net:hasMotherClassNet net:atomClass_person_p2 ; + net:hasNaming "John" ; + net:hasStructure "document-03" . + net:value_John_blankNode a net:Value_Net ; net:coverAmrValue :value_John ; net:hasNaming "John" ; @@ -937,11 +940,6 @@ rdf:Property a owl:Class . :AMR_Edge a owl:Class ; rdfs:subClassOf :AMR_Structure . -:leaf_person_p2 a :AMR_Leaf ; - :edge_p2_name_John :value_John ; - :hasConcept :concept_person ; - :hasVariable :variable_p2 . - :leaf_play-01_p a :AMR_Leaf ; :edge_p_ARG0_p2 :leaf_person_p2 ; :edge_p_ARG1_m :leaf_movie_m ; @@ -958,6 +956,11 @@ net:has_object a owl:AnnotationProperty ; :AMR_Op_Role a owl:Class ; rdfs:subClassOf :AMR_Role . +:leaf_person_p2 a :AMR_Leaf ; + :edge_p2_name_John :value_John ; + :hasConcept :concept_person ; + :hasVariable :variable_p2 . + :AMR_AnnotationProperty a owl:AnnotationProperty . :AMR_Core_Role a owl:Class ; 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 7a8521ac233d5fccaac6fb9766cdbf03994ec5b3..8abff8a2de01eca34e02f21d1dc21b7605c2b1c9 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 @@ -4,53 +4,59 @@ @prefix ext-out: <https://tenet.tetras-libre.fr/extract-result#> . @prefix net: <https://tenet.tetras-libre.fr/semantic-net#> . @prefix ns1: <odrl:> . -@prefix ns11: <http://amr.isi.edu/rdf/core-amr#> . +@prefix ns11: <http://amr.isi.edu/frames/ld/v1.2.2/> . @prefix ns2: <http://amr.isi.edu/rdf/amr-terms#> . -@prefix ns21: <http://amr.isi.edu/frames/ld/v1.2.2/> . +@prefix ns3: <http://amr.isi.edu/rdf/core-amr#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix sys: <https://tenet.tetras-libre.fr/base-ontology#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . -ns11:Concept a rdfs:Class, +ns3:Concept a rdfs:Class, owl:Class ; rdfs:label "AMR-Concept" ; rdfs:subClassOf :AMR_Linked_Data . -ns11:Role a rdfs:Class, +ns3:Role a rdfs:Class, owl:Class ; rdfs:label "AMR-Role" ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/test-1#root01> ns11:hasID "test-1" ; - ns11:hasSentence "The sun is a star." ; - ns11:root <http://amr.isi.edu/amr_data/test-1#s> . +<http://amr.isi.edu/amr_data/test-1#root01> ns3:hasID "test-1" ; + ns3:hasSentence "The sun is a star." ; + ns3:root <http://amr.isi.edu/amr_data/test-1#s> . -<http://amr.isi.edu/amr_data/test-2#root01> ns11:hasID "test-2" ; - ns11:hasSentence "Earth is a planet." ; - ns11:root <http://amr.isi.edu/amr_data/test-2#p> . +<http://amr.isi.edu/amr_data/test-2#root01> ns3:hasID "test-2" ; + ns3:hasSentence "Earth is a planet." ; + ns3:root <http://amr.isi.edu/amr_data/test-2#p> . -ns21:possible-01.ARG1 a ns21:FrameRole . +ns11:display-01.ARG1 a ns11:FrameRole . -ns21:use-01.ARG1 a ns21:FrameRole . +ns11:possible-01.ARG1 a ns11:FrameRole . -ns2:domain a ns11:Role, +ns2:domain a ns3:Role, owl:AnnotationProperty, owl:NamedIndividual . -ns11:NamedEntity a ns11:Concept, +ns2:mod a ns3:Role . + +ns2:op1 a ns3:Role . + +ns2:time a ns3:Role . + +ns3:NamedEntity a ns3:Concept, owl:Class, owl:NamedIndividual ; rdfs:label "AMR-EntityType", "AMR-Term" ; rdfs:subClassOf :AMR_Linked_Data . -ns11:hasID a owl:AnnotationProperty . +ns3:hasID a owl:AnnotationProperty . -ns11:hasSentence a owl:AnnotationProperty . +ns3:hasSentence a owl:AnnotationProperty . -ns11:root a owl:AnnotationProperty . +ns3:root a owl:AnnotationProperty . <https://amr.tetras-libre.fr/rdf/schema> a owl:Ontology ; owl:versionIRI :0.1 . @@ -60,15 +66,26 @@ ns11:root a owl:AnnotationProperty . :AMR_Prep_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:edge_m_name_9898 a :AMR_Edge ; - :hasAmrRole :role_name ; - :hasRoleID "name" . +:edge_a_mod_o a :AMR_Edge ; + :hasAmrRole :role_mod ; + :hasRoleID "mod" . + +:edge_a_op1_d2 a :AMR_Edge ; + :hasAmrRole :role_op1 ; + :hasRoleID "op1" . -:edge_p_ARG1_u a :AMR_Edge ; +:edge_d_ARG1_m a :AMR_Edge ; :hasAmrRole :role_ARG1 ; :hasRoleID "ARG1" . -:edge_u_ARG1_m a :AMR_Edge ; +:edge_d_time_a a :AMR_Edge ; + :hasRoleID "time" . + +:edge_m_name_9899 a :AMR_Edge ; + :hasAmrRole :role_name ; + :hasRoleID "name" . + +:edge_p_ARG1_d a :AMR_Edge ; :hasAmrRole :role_ARG1 ; :hasRoleID "ARG1" . @@ -266,20 +283,6 @@ ns11:root a owl:AnnotationProperty . :toReifyWithBaseEdge "ARG0" ; :toReifyWithHeadEdge "ARG1" . -:role_mod a owl:Class ; - rdfs:subClassOf :AMR_NonCore_Role ; - :getDirectPropertyName "hasFeature"^^xsd:string ; - :getPropertyType rdfs:subClassOf, - owl:ObjectProperty ; - :label "mod" ; - :toReifyAsConcept "mod" ; - :toReifyWithBaseEdge "ARG0" ; - :toReifyWithHeadEdge "ARG1" . - -:role_op1 a owl:Class ; - rdfs:subClassOf :AMR_Op_Role ; - :label "op1" . - :role_op2 a owl:Class ; rdfs:subClassOf :AMR_Op_Role ; :label "op2" . @@ -329,11 +332,11 @@ ns11:root a owl:AnnotationProperty . rdfs:subClassOf :AMR_Specific_Role ; :label "quant" . -:root_document-01 a :AMR_Root ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-01#root01> ; +:root_document-02 a :AMR_Root ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#root01> ; :hasRootLeaf :leaf_possible-01_p ; - :hasSentenceID "document-01" ; - :hasSentenceStatement "Movie9898 can be used." . + :hasSentenceID "document-02" ; + :hasSentenceStatement "Movie9899 can be displayed only after 2019.." . :toReifyAsConcept a owl:AnnotationProperty ; rdfs:subPropertyOf :toReify . @@ -401,9 +404,9 @@ cprm:targetOntologyURI a rdf:Property ; rdfs:range xsd:string ; rdfs:subPropertyOf cprm:configParamProperty . -ext-out:policy_document-01 ns1:permission """[ - odrl:target <http://example.com/asset:any.movie> ; - odrl:action use ]""" . +ext-out:policy_document-02 ns1:permission """[ + odrl:target <http://example.com/asset:any.movie>, <http://example.com/asset:9899.movie> ; + odrl:action display ]""" . <https://tenet.tetras-libre.fr/semantic-net> a owl:Ontology . @@ -423,6 +426,22 @@ net:abstractionClass a owl:AnnotationProperty ; rdfs:label "abstraction class" ; rdfs:subPropertyOf net:objectValue . +net:atomProperty_after_a a net:Atom_Property_Net ; + :role_mod net:atomClass_only_o ; + :role_op1 net:atomProperty_date_d2 ; + net:coverBaseNode :leaf_after_a ; + net:coverNode :leaf_after_a ; + net:hasNaming "after" ; + net:hasPropertyName "after" ; + net:hasPropertyName01 "aftering" ; + net:hasPropertyName10 "after-by" ; + net:hasPropertyName12 "after-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "document-02" ; + net:isCoreRoleLinked "true" ; + net:targetArgumentNode :leaf_date-entity_d2, + :leaf_only_o . + net:atomType a owl:AnnotationProperty ; rdfs:label "atom type" ; rdfs:subPropertyOf net:objectType . @@ -539,16 +558,16 @@ net:modCat2 a owl:AnnotationProperty ; net:normal_direction a owl:NamedIndividual . net:rule_permission_p a net:Rule_Net ; - net:composeFrom net:action_use_u, + net:composeFrom net:action_display_d, net:phenomena_possible-modality_p ; net:coverBaseNode :leaf_possible-01_p ; - net:coverNode :leaf_movie_m, - :leaf_possible-01_p, - :leaf_use-01_u ; + net:coverNode :leaf_display-01_d, + :leaf_movie_m, + :leaf_possible-01_p ; net:hasNaming "permission" ; - net:hasRuleActionURI net:action_use_u ; + net:hasRuleActionURI net:action_display_d ; net:hasRuleRelationName "permission" ; - net:hasStructure "document-01" . + net:hasStructure "document-02" . net:type a owl:AnnotationProperty ; rdfs:label "type "@fr ; @@ -558,64 +577,98 @@ net:verbClass a owl:AnnotationProperty ; rdfs:label "verb class" ; rdfs:subPropertyOf net:objectValue . -<http://amr.isi.edu/amr_data/document-01#root01> a ns11:AMR ; - ns11:has-id "document-01" ; - ns11:has-sentence "Movie9898 can be used." ; - ns11:root <http://amr.isi.edu/amr_data/document-01#p> . +<http://amr.isi.edu/amr_data/document-02#root01> a ns3:AMR ; + ns3:has-id "document-02" ; + ns3:has-sentence "Movie9899 can be displayed only after 2019.." ; + ns3:root <http://amr.isi.edu/amr_data/document-02#p> . <http://amr.isi.edu/amr_data/test-1#s> ns2:domain <http://amr.isi.edu/amr_data/test-1#s2> . <http://amr.isi.edu/amr_data/test-2#p> rdfs:label "Earth" . -ns11:AMR a owl:Class ; +ns3:AMR a owl:Class ; rdfs:subClassOf :AMR_Linked_Data . -:AMR_Predicat_Concept a owl:Class ; - rdfs:subClassOf :AMR_Concept . - :AMR_Relation_Concept a owl:Class ; rdfs:subClassOf :AMR_Concept . :AMR_Root a owl:Class ; rdfs:subClassOf :AMR_Structure . -:AMR_Term_Concept a owl:Class ; - rdfs:subClassOf :AMR_Concept . - :AMR_Value a owl:Class ; rdfs:subClassOf :AMR_Element . +:concept_after rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:after ; + :label "after" . + +:concept_date-entity rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:date-entity ; + :label "date-entity" . + +:concept_display-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:display-01 ; + :label "display-01" . + :concept_movie rdfs:subClassOf :AMR_Term_Concept ; :fromAmrLk ns2:movie ; :label "movie" . +:concept_only rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:only ; + :label "only" . + :concept_possible-01 rdfs:subClassOf :AMR_Relation_Concept ; - :fromAmrLk ns21:possible-01 ; + :fromAmrLk ns11:possible-01 ; :hasPhenomenaLink :phenomena_modality_possible ; :label "possible-01" . -:concept_use-01 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns21:use-01 ; - :label "use-01" . +:role_mod a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasFeature"^^xsd:string ; + :getPropertyType rdfs:subClassOf, + owl:ObjectProperty ; + :label "mod" ; + :toReifyAsConcept "mod" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . :role_name a owl:Class, net:Relation ; rdfs:subClassOf :AMR_NonCore_Role ; :label "name" . +:role_op1 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op1" . + +:variable_a a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#a> ; + :label "a" . + +:variable_d a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#d> ; + :label "d" . + +:variable_d2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#d2> ; + :label "d2" . + :variable_m a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-01#m> ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#m> ; :label "m" ; - :name "9898" . + :name "9899" . + +:variable_o a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#o> ; + :label "o" . :variable_p a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-01#p> ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#p> ; :label "p" . -:variable_u a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-01#u> ; - :label "u" . - sys:Degree a owl:Class ; rdfs:subClassOf sys:Out_Structure . @@ -630,12 +683,6 @@ sys:Out_AnnotationProperty a owl:AnnotationProperty . net:Action_Net a owl:Class ; rdfs:subClassOf net:Net . -net:Atom_Class_Net a owl:Class ; - rdfs:subClassOf net:Class_Net . - -net:Atom_Property_Net a owl:Class ; - rdfs:subClassOf net:Property_Net . - net:Individual_Net a owl:Class ; rdfs:subClassOf net:Net . @@ -648,65 +695,100 @@ net:Rule_Net a owl:Class ; net:Value_Net a owl:Class ; rdfs:subClassOf net:Net . +net:atomClass_only_o a net:Atom_Class_Net ; + net:coverBaseNode :leaf_only_o ; + net:coverNode :leaf_only_o ; + net:hasClassName "only" ; + net:hasNaming "only" ; + net:hasStructure "document-02" . + +net:atomProperty_date_d2 a net:Atom_Property_Net ; + net:coverBaseNode :leaf_date-entity_d2 ; + net:coverNode :leaf_date-entity_d2 ; + net:hasNaming "date" ; + net:hasPropertyName "date" ; + net:hasPropertyName01 "dateing" ; + net:hasPropertyName10 "date-by" ; + net:hasPropertyName12 "date-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "document-02" ; + net:isCoreRoleLinked "true" . + net:has_value a owl:AnnotationProperty ; rdfs:subPropertyOf net:netProperty . -net:individual_9898_m a net:Individual_Net ; - :role_name net:value_9898_blankNode ; - net:coverBaseNode :leaf_movie_m ; - net:coverNode :leaf_movie_m ; - net:hasIndividualLabel "9898" ; - net:hasMotherClassNet net:atomClass_movie_m ; - net:hasNaming "9898" ; - net:hasStructure "document-01" . - net:objectType a owl:AnnotationProperty ; rdfs:label "object type" ; rdfs:subPropertyOf net:objectProperty . net:phenomena_possible-modality_p a net:Phenomena_Net ; - :role_ARG1 net:action_use_u, - net:atomProperty_use_u ; + :role_ARG1 net:action_display_d, + net:atomProperty_display_d ; net:coverBaseNode :leaf_possible-01_p ; net:coverNode :leaf_possible-01_p ; net:hasNaming "possible-modality" ; net:hasPhenomenaRef "possible-01" ; net:hasPhenomenaType :phenomena_modality_possible ; - net:hasStructure "document-01" . + net:hasStructure "document-02" . + +<http://amr.isi.edu/amr_data/document-02#a> a ns3:after ; + ns2:mod <http://amr.isi.edu/amr_data/document-02#o> ; + ns2:op1 <http://amr.isi.edu/amr_data/document-02#d2> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/document-02#d> a ns11:display-01 ; + ns11:display-01.ARG1 <http://amr.isi.edu/amr_data/document-02#m> ; + ns2:time <http://amr.isi.edu/amr_data/document-02#a> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/document-02#d2> a ns3:date-entity ; + ns2:year "2019" ; + rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-01#m> a ns2:movie ; - rdfs:label "9898" ; +<http://amr.isi.edu/amr_data/document-02#m> a ns2:movie ; + rdfs:label "9899" ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-01#p> a ns21:possible-01 ; - ns21:possible-01.ARG1 <http://amr.isi.edu/amr_data/document-01#u> ; +<http://amr.isi.edu/amr_data/document-02#o> a ns2:only ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-01#u> a ns21:use-01 ; - ns21:use-01.ARG1 <http://amr.isi.edu/amr_data/document-01#m> ; +<http://amr.isi.edu/amr_data/document-02#p> a ns11:possible-01 ; + ns11:possible-01.ARG1 <http://amr.isi.edu/amr_data/document-02#d> ; rdfs:subClassOf :AMR_Linked_Data . -ns21:FrameRole a ns11:Role, +ns11:FrameRole a ns3:Role, owl:Class, owl:NamedIndividual ; rdfs:label "AMR-PropBank-Role" ; rdfs:subClassOf :AMR_Linked_Data . -ns21:possible-01 a ns11:Frame ; +ns11:display-01 a ns3:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:possible-01 a ns3:Frame ; rdfs:subClassOf :AMR_Linked_Data . -ns21:use-01 a ns11:Frame ; +ns2:movie a ns3:Concept ; rdfs:subClassOf :AMR_Linked_Data . -ns2:movie a ns11:Concept ; +ns2:only a ns3:Concept ; rdfs:subClassOf :AMR_Linked_Data . -ns11:Frame a ns11:Concept, +ns3:Frame a ns3:Concept, owl:Class, owl:NamedIndividual ; rdfs:label "AMR-PropBank-Frame" ; rdfs:subClassOf :AMR_Linked_Data . +ns3:after a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:date-entity a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + :hasLink a owl:AnnotationProperty ; rdfs:subPropertyOf :AMR_AnnotationProperty . @@ -731,43 +813,43 @@ ns11:Frame a ns11:Concept, rdfs:subClassOf :AMR_Core_Role ; :label "ARG1" . -:value_9898 a :AMR_Value ; - rdfs:label "9898" . +:value_9899 a :AMR_Value ; + rdfs:label "9899" . sys:Out_ObjectProperty a owl:ObjectProperty . +net:Atom_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + net:Class_Net a owl:Class ; rdfs:subClassOf net:Net . net:Property_Net a owl:Class ; rdfs:subClassOf net:Net . -net:Relation a owl:Class ; - rdfs:subClassOf net:Net_Structure . - -net:atomProperty_use_u a net:Atom_Property_Net ; +net:atomProperty_display_d a net:Atom_Property_Net ; :role_ARG1 net:atomClass_movie_m, - net:individual_9898_m ; - net:coverBaseNode :leaf_use-01_u ; - net:coverNode :leaf_use-01_u ; - net:hasNaming "use" ; - net:hasPropertyName "use" ; - net:hasPropertyName01 "useing" ; - net:hasPropertyName10 "use-by" ; - net:hasPropertyName12 "use-of" ; + net:individual_9899_m ; + net:coverBaseNode :leaf_display-01_d ; + net:coverNode :leaf_display-01_d ; + net:hasNaming "display" ; + net:hasPropertyName "display" ; + net:hasPropertyName01 "displaying" ; + net:hasPropertyName10 "display-by" ; + net:hasPropertyName12 "display-of" ; net:hasPropertyType owl:ObjectProperty ; - net:hasStructure "document-01" ; + net:hasStructure "document-02" ; net:isCoreRoleLinked "true" ; net:targetArgumentNode :leaf_movie_m . net:objectProperty a owl:AnnotationProperty ; rdfs:label "object attribute" . -net:value_9898_blankNode a net:Value_Net ; - net:coverAmrValue :value_9898 ; - net:hasNaming "9898" ; - net:hasStructure "document-01" ; - net:hasValueLabel "9898" . +net:value_9899_blankNode a net:Value_Net ; + net:coverAmrValue :value_9899 ; + net:hasNaming "9899" ; + net:hasStructure "document-02" ; + net:hasValueLabel "9899" . :AMR_Concept a owl:Class ; rdfs:subClassOf :AMR_Element . @@ -775,12 +857,12 @@ net:value_9898_blankNode a net:Value_Net ; :AMR_Phenomena a owl:Class ; rdfs:subClassOf :AMR_Structure . +:AMR_Predicat_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + :AMR_Specific_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:AMR_Variable a owl:Class ; - rdfs:subClassOf :AMR_Element . - :fromAmrLk a owl:AnnotationProperty ; rdfs:subPropertyOf :AMR_AnnotationProperty . @@ -791,44 +873,72 @@ net:value_9898_blankNode a net:Value_Net ; rdfs:range rdfs:Literal ; rdfs:subPropertyOf :AMR_AnnotationProperty . +:leaf_after_a a :AMR_Leaf ; + :edge_a_mod_o :leaf_only_o ; + :edge_a_op1_d2 :leaf_date-entity_d2 ; + :hasConcept :concept_after ; + :hasVariable :variable_a . + :phenomena_modality a owl:Class ; rdfs:subClassOf :AMR_Phenomena . :toReify a owl:AnnotationProperty ; rdfs:subPropertyOf :AMR_AnnotationProperty . +net:Atom_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + net:Net_Structure a owl:Class ; rdfs:label "Semantic Net Structure" ; rdfs:comment "A semantic net captures a set of nodes, and associates this set with type(s) and value(s)." . -net:action_use_u a net:Action_Net ; +net:action_display_d a net:Action_Net ; net:composeFrom net:atomClass_movie_m, - net:atomProperty_use_u ; - net:coverBaseNode :leaf_use-01_u ; - net:coverNode :leaf_movie_m, - :leaf_use-01_u ; - net:hasActionName "use" ; - net:hasNaming "use" ; - net:hasStructure "document-01" ; - net:hasTargetNet net:atomClass_movie_m . + net:atomProperty_display_d, + net:individual_9899_m ; + net:coverBaseNode :leaf_display-01_d ; + net:coverNode :leaf_display-01_d, + :leaf_movie_m ; + net:hasActionName "display" ; + net:hasNaming "display" ; + net:hasStructure "document-02" ; + net:hasTargetClassNet net:atomClass_movie_m ; + net:hasTargetIndividualNet net:individual_9899_m . net:has_relation_value a owl:AnnotationProperty ; rdfs:label "has relation value" ; rdfs:subPropertyOf net:has_object . +net:individual_9899_m a net:Individual_Net ; + :role_name net:value_9899_blankNode ; + net:coverBaseNode :leaf_movie_m ; + net:coverNode :leaf_movie_m ; + net:hasIndividualLabel "9899" ; + net:hasMotherClassNet net:atomClass_movie_m ; + net:hasNaming "9899" ; + net:hasStructure "document-02" . + :AMR_Element a owl:Class ; rdfs:subClassOf :AMR_Structure . +:leaf_date-entity_d2 a :AMR_Leaf ; + :hasConcept :concept_date-entity ; + :hasVariable :variable_d2 . + +:leaf_only_o a :AMR_Leaf ; + :hasConcept :concept_only ; + :hasVariable :variable_o . + +net:Relation a owl:Class ; + rdfs:subClassOf net:Net_Structure . + net:atomClass_movie_m a net:Atom_Class_Net ; - :role_name net:value_9898_blankNode ; + :role_name net:value_9899_blankNode ; net:coverBaseNode :leaf_movie_m ; net:coverNode :leaf_movie_m ; net:hasClassName "movie" ; net:hasNaming "movie" ; - net:hasStructure "document-01" . - -:AMR_Leaf a owl:Class ; - rdfs:subClassOf :AMR_Structure . + net:hasStructure "document-02" . :AMR_NonCore_Role a owl:Class ; rdfs:subClassOf :AMR_Role . @@ -837,7 +947,7 @@ net:atomClass_movie_m a net:Atom_Class_Net ; rdfs:subClassOf :AMR_Element . :leaf_possible-01_p a :AMR_Leaf ; - :edge_p_ARG1_u :leaf_use-01_u ; + :edge_p_ARG1_d :leaf_display-01_d ; :hasConcept :concept_possible-01 ; :hasVariable :variable_p . @@ -847,18 +957,19 @@ sys:Out_Structure a owl:Class ; net:netProperty a owl:AnnotationProperty ; rdfs:label "netProperty" . -:AMR_Edge a owl:Class ; - rdfs:subClassOf :AMR_Structure . - :AMR_ObjectProperty a owl:ObjectProperty ; rdfs:subPropertyOf owl:topObjectProperty . :AMR_Structure a owl:Class . -:leaf_use-01_u a :AMR_Leaf ; - :edge_u_ARG1_m :leaf_movie_m ; - :hasConcept :concept_use-01 ; - :hasVariable :variable_u . +:AMR_Variable a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:leaf_display-01_d a :AMR_Leaf ; + :edge_d_ARG1_m :leaf_movie_m ; + :edge_d_time_a :leaf_after_a ; + :hasConcept :concept_display-01 ; + :hasVariable :variable_d . cprm:configParamProperty a rdf:Property ; rdfs:label "Config Parameter Property" . @@ -868,8 +979,11 @@ rdf:Property a owl:Class . :AMR_Relation a owl:Class ; rdfs:subClassOf :AMR_Structure . +:AMR_Leaf a owl:Class ; + rdfs:subClassOf :AMR_Structure . + :leaf_movie_m a :AMR_Leaf ; - :edge_m_name_9898 :value_9898 ; + :edge_m_name_9899 :value_9899 ; :hasConcept :concept_movie ; :hasVariable :variable_m . @@ -880,6 +994,9 @@ net:has_object a owl:AnnotationProperty ; rdfs:label "relation" ; rdfs:subPropertyOf net:netProperty . +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . + :AMR_Op_Role a owl:Class ; rdfs:subClassOf :AMR_Role . @@ -888,12 +1005,12 @@ net:has_object a owl:AnnotationProperty ; :AMR_Core_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:AMR_Linked_Data a owl:Class . - net:objectValue a owl:AnnotationProperty ; rdfs:label "valuations"@fr ; rdfs:subPropertyOf net:objectProperty . +:AMR_Linked_Data a owl:Class . + [] a owl:AllDisjointClasses ; owl:members ( sys:Degree sys:Entity sys:Feature ) . diff --git a/tests/dev_tests/test_data/odrl-generation-devGraph-1.ttl b/tests/dev_tests/test_data/odrl-generation-devGraph-1.ttl index bbf6674233a1fc62d365e437e7bf6f353ee1abe4..3ade3fcf01652d5dcffa915bef476adfbbaa89cf 100644 --- a/tests/dev_tests/test_data/odrl-generation-devGraph-1.ttl +++ b/tests/dev_tests/test_data/odrl-generation-devGraph-1.ttl @@ -1,54 +1,60 @@ -@base <https://amr.tetras-libre.fr/rdf/odrl-rule-devGraph-1/result> . +@base <http://https://tenet.tetras-libre.fr/demo/clara/03//transduction> . @prefix : <https://amr.tetras-libre.fr/rdf/schema#> . @prefix cprm: <https://tenet.tetras-libre.fr/config/parameters#> . @prefix net: <https://tenet.tetras-libre.fr/semantic-net#> . -@prefix ns11: <http://amr.isi.edu/rdf/core-amr#> . +@prefix ns11: <http://amr.isi.edu/frames/ld/v1.2.2/> . @prefix ns2: <http://amr.isi.edu/rdf/amr-terms#> . -@prefix ns21: <http://amr.isi.edu/frames/ld/v1.2.2/> . +@prefix ns3: <http://amr.isi.edu/rdf/core-amr#> . @prefix owl: <http://www.w3.org/2002/07/owl#> . @prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . @prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . @prefix sys: <https://tenet.tetras-libre.fr/base-ontology#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . -ns11:Concept a rdfs:Class, +ns3:Concept a rdfs:Class, owl:Class ; rdfs:label "AMR-Concept" ; rdfs:subClassOf :AMR_Linked_Data . -ns11:Role a rdfs:Class, +ns3:Role a rdfs:Class, owl:Class ; rdfs:label "AMR-Role" ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/test-1#root01> ns11:hasID "test-1" ; - ns11:hasSentence "The sun is a star." ; - ns11:root <http://amr.isi.edu/amr_data/test-1#s> . +<http://amr.isi.edu/amr_data/test-1#root01> ns3:hasID "test-1" ; + ns3:hasSentence "The sun is a star." ; + ns3:root <http://amr.isi.edu/amr_data/test-1#s> . -<http://amr.isi.edu/amr_data/test-2#root01> ns11:hasID "test-2" ; - ns11:hasSentence "Earth is a planet." ; - ns11:root <http://amr.isi.edu/amr_data/test-2#p> . +<http://amr.isi.edu/amr_data/test-2#root01> ns3:hasID "test-2" ; + ns3:hasSentence "Earth is a planet." ; + ns3:root <http://amr.isi.edu/amr_data/test-2#p> . -ns21:possible-01.ARG1 a ns21:FrameRole . +ns11:display-01.ARG1 a ns11:FrameRole . -ns21:use-01.ARG1 a ns21:FrameRole . +ns11:possible-01.ARG1 a ns11:FrameRole . -ns2:domain a ns11:Role, +ns2:domain a ns3:Role, owl:AnnotationProperty, owl:NamedIndividual . -ns11:NamedEntity a ns11:Concept, +ns2:mod a ns3:Role . + +ns2:op1 a ns3:Role . + +ns2:time a ns3:Role . + +ns3:NamedEntity a ns3:Concept, owl:Class, owl:NamedIndividual ; rdfs:label "AMR-EntityType", "AMR-Term" ; rdfs:subClassOf :AMR_Linked_Data . -ns11:hasID a owl:AnnotationProperty . +ns3:hasID a owl:AnnotationProperty . -ns11:hasSentence a owl:AnnotationProperty . +ns3:hasSentence a owl:AnnotationProperty . -ns11:root a owl:AnnotationProperty . +ns3:root a owl:AnnotationProperty . <https://amr.tetras-libre.fr/rdf/schema> a owl:Ontology ; owl:versionIRI :0.1 . @@ -58,15 +64,26 @@ ns11:root a owl:AnnotationProperty . :AMR_Prep_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:edge_m_name_9898 a :AMR_Edge ; - :hasAmrRole :role_name ; - :hasRoleID "name" . +:edge_a_mod_o a :AMR_Edge ; + :hasAmrRole :role_mod ; + :hasRoleID "mod" . + +:edge_a_op1_d2 a :AMR_Edge ; + :hasAmrRole :role_op1 ; + :hasRoleID "op1" . -:edge_p_ARG1_u a :AMR_Edge ; +:edge_d_ARG1_m a :AMR_Edge ; :hasAmrRole :role_ARG1 ; :hasRoleID "ARG1" . -:edge_u_ARG1_m a :AMR_Edge ; +:edge_d_time_a a :AMR_Edge ; + :hasRoleID "time" . + +:edge_m_name_9899 a :AMR_Edge ; + :hasAmrRole :role_name ; + :hasRoleID "name" . + +:edge_p_ARG1_d a :AMR_Edge ; :hasAmrRole :role_ARG1 ; :hasRoleID "ARG1" . @@ -264,20 +281,6 @@ ns11:root a owl:AnnotationProperty . :toReifyWithBaseEdge "ARG0" ; :toReifyWithHeadEdge "ARG1" . -:role_mod a owl:Class ; - rdfs:subClassOf :AMR_NonCore_Role ; - :getDirectPropertyName "hasFeature"^^xsd:string ; - :getPropertyType rdfs:subClassOf, - owl:ObjectProperty ; - :label "mod" ; - :toReifyAsConcept "mod" ; - :toReifyWithBaseEdge "ARG0" ; - :toReifyWithHeadEdge "ARG1" . - -:role_op1 a owl:Class ; - rdfs:subClassOf :AMR_Op_Role ; - :label "op1" . - :role_op2 a owl:Class ; rdfs:subClassOf :AMR_Op_Role ; :label "op2" . @@ -327,11 +330,11 @@ ns11:root a owl:AnnotationProperty . rdfs:subClassOf :AMR_Specific_Role ; :label "quant" . -:root_document-01 a :AMR_Root ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-01#root01> ; +:root_document-02 a :AMR_Root ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#root01> ; :hasRootLeaf :leaf_possible-01_p ; - :hasSentenceID "document-01" ; - :hasSentenceStatement "Movie9898 can be used." . + :hasSentenceID "document-02" ; + :hasSentenceStatement "Movie9899 can be displayed only after 2019.." . :toReifyAsConcept a owl:AnnotationProperty ; rdfs:subPropertyOf :toReify . @@ -417,6 +420,22 @@ net:abstractionClass a owl:AnnotationProperty ; rdfs:label "abstraction class" ; rdfs:subPropertyOf net:objectValue . +net:atomProperty_after_a a net:Atom_Property_Net ; + :role_mod net:atomClass_only_o ; + :role_op1 net:atomProperty_date_d2 ; + net:coverBaseNode :leaf_after_a ; + net:coverNode :leaf_after_a ; + net:hasNaming "after" ; + net:hasPropertyName "after" ; + net:hasPropertyName01 "aftering" ; + net:hasPropertyName10 "after-by" ; + net:hasPropertyName12 "after-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "document-02" ; + net:isCoreRoleLinked "true" ; + net:targetArgumentNode :leaf_date-entity_d2, + :leaf_only_o . + net:atomType a owl:AnnotationProperty ; rdfs:label "atom type" ; rdfs:subPropertyOf net:objectType . @@ -533,16 +552,16 @@ net:modCat2 a owl:AnnotationProperty ; net:normal_direction a owl:NamedIndividual . net:rule_permission_p a net:Rule_Net ; - net:composeFrom net:action_use_u, + net:composeFrom net:action_display_d, net:phenomena_possible-modality_p ; net:coverBaseNode :leaf_possible-01_p ; - net:coverNode :leaf_movie_m, - :leaf_possible-01_p, - :leaf_use-01_u ; + net:coverNode :leaf_display-01_d, + :leaf_movie_m, + :leaf_possible-01_p ; net:hasNaming "permission" ; - net:hasRuleActionURI net:action_use_u ; + net:hasRuleActionURI net:action_display_d ; net:hasRuleRelationName "permission" ; - net:hasStructure "document-01" . + net:hasStructure "document-02" . net:type a owl:AnnotationProperty ; rdfs:label "type "@fr ; @@ -552,64 +571,98 @@ net:verbClass a owl:AnnotationProperty ; rdfs:label "verb class" ; rdfs:subPropertyOf net:objectValue . -<http://amr.isi.edu/amr_data/document-01#root01> a ns11:AMR ; - ns11:has-id "document-01" ; - ns11:has-sentence "Movie9898 can be used." ; - ns11:root <http://amr.isi.edu/amr_data/document-01#p> . +<http://amr.isi.edu/amr_data/document-02#root01> a ns3:AMR ; + ns3:has-id "document-02" ; + ns3:has-sentence "Movie9899 can be displayed only after 2019.." ; + ns3:root <http://amr.isi.edu/amr_data/document-02#p> . <http://amr.isi.edu/amr_data/test-1#s> ns2:domain <http://amr.isi.edu/amr_data/test-1#s2> . <http://amr.isi.edu/amr_data/test-2#p> rdfs:label "Earth" . -ns11:AMR a owl:Class ; +ns3:AMR a owl:Class ; rdfs:subClassOf :AMR_Linked_Data . -:AMR_Predicat_Concept a owl:Class ; - rdfs:subClassOf :AMR_Concept . - :AMR_Relation_Concept a owl:Class ; rdfs:subClassOf :AMR_Concept . :AMR_Root a owl:Class ; rdfs:subClassOf :AMR_Structure . -:AMR_Term_Concept a owl:Class ; - rdfs:subClassOf :AMR_Concept . - :AMR_Value a owl:Class ; rdfs:subClassOf :AMR_Element . +:concept_after rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:after ; + :label "after" . + +:concept_date-entity rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:date-entity ; + :label "date-entity" . + +:concept_display-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:display-01 ; + :label "display-01" . + :concept_movie rdfs:subClassOf :AMR_Term_Concept ; :fromAmrLk ns2:movie ; :label "movie" . +:concept_only rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:only ; + :label "only" . + :concept_possible-01 rdfs:subClassOf :AMR_Relation_Concept ; - :fromAmrLk ns21:possible-01 ; + :fromAmrLk ns11:possible-01 ; :hasPhenomenaLink :phenomena_modality_possible ; :label "possible-01" . -:concept_use-01 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns21:use-01 ; - :label "use-01" . +:role_mod a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasFeature"^^xsd:string ; + :getPropertyType rdfs:subClassOf, + owl:ObjectProperty ; + :label "mod" ; + :toReifyAsConcept "mod" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . :role_name a owl:Class, net:Relation ; rdfs:subClassOf :AMR_NonCore_Role ; :label "name" . +:role_op1 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op1" . + +:variable_a a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#a> ; + :label "a" . + +:variable_d a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#d> ; + :label "d" . + +:variable_d2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#d2> ; + :label "d2" . + :variable_m a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-01#m> ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#m> ; :label "m" ; - :name "9898" . + :name "9899" . + +:variable_o a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#o> ; + :label "o" . :variable_p a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-01#p> ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#p> ; :label "p" . -:variable_u a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-01#u> ; - :label "u" . - sys:Degree a owl:Class ; rdfs:subClassOf sys:Out_Structure . @@ -624,12 +677,6 @@ sys:Out_AnnotationProperty a owl:AnnotationProperty . net:Action_Net a owl:Class ; rdfs:subClassOf net:Net . -net:Atom_Class_Net a owl:Class ; - rdfs:subClassOf net:Class_Net . - -net:Atom_Property_Net a owl:Class ; - rdfs:subClassOf net:Property_Net . - net:Individual_Net a owl:Class ; rdfs:subClassOf net:Net . @@ -642,65 +689,100 @@ net:Rule_Net a owl:Class ; net:Value_Net a owl:Class ; rdfs:subClassOf net:Net . +net:atomClass_only_o a net:Atom_Class_Net ; + net:coverBaseNode :leaf_only_o ; + net:coverNode :leaf_only_o ; + net:hasClassName "only" ; + net:hasNaming "only" ; + net:hasStructure "document-02" . + +net:atomProperty_date_d2 a net:Atom_Property_Net ; + net:coverBaseNode :leaf_date-entity_d2 ; + net:coverNode :leaf_date-entity_d2 ; + net:hasNaming "date" ; + net:hasPropertyName "date" ; + net:hasPropertyName01 "dateing" ; + net:hasPropertyName10 "date-by" ; + net:hasPropertyName12 "date-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "document-02" ; + net:isCoreRoleLinked "true" . + net:has_value a owl:AnnotationProperty ; rdfs:subPropertyOf net:netProperty . -net:individual_9898_m a net:Individual_Net ; - :role_name net:value_9898_blankNode ; - net:coverBaseNode :leaf_movie_m ; - net:coverNode :leaf_movie_m ; - net:hasIndividualLabel "9898" ; - net:hasMotherClassNet net:atomClass_movie_m ; - net:hasNaming "9898" ; - net:hasStructure "document-01" . - net:objectType a owl:AnnotationProperty ; rdfs:label "object type" ; rdfs:subPropertyOf net:objectProperty . net:phenomena_possible-modality_p a net:Phenomena_Net ; - :role_ARG1 net:action_use_u, - net:atomProperty_use_u ; + :role_ARG1 net:action_display_d, + net:atomProperty_display_d ; net:coverBaseNode :leaf_possible-01_p ; net:coverNode :leaf_possible-01_p ; net:hasNaming "possible-modality" ; net:hasPhenomenaRef "possible-01" ; net:hasPhenomenaType :phenomena_modality_possible ; - net:hasStructure "document-01" . + net:hasStructure "document-02" . + +<http://amr.isi.edu/amr_data/document-02#a> a ns3:after ; + ns2:mod <http://amr.isi.edu/amr_data/document-02#o> ; + ns2:op1 <http://amr.isi.edu/amr_data/document-02#d2> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/document-02#d> a ns11:display-01 ; + ns11:display-01.ARG1 <http://amr.isi.edu/amr_data/document-02#m> ; + ns2:time <http://amr.isi.edu/amr_data/document-02#a> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/document-02#d2> a ns3:date-entity ; + ns2:year "2019" ; + rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-01#m> a ns2:movie ; - rdfs:label "9898" ; +<http://amr.isi.edu/amr_data/document-02#m> a ns2:movie ; + rdfs:label "9899" ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-01#p> a ns21:possible-01 ; - ns21:possible-01.ARG1 <http://amr.isi.edu/amr_data/document-01#u> ; +<http://amr.isi.edu/amr_data/document-02#o> a ns2:only ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-01#u> a ns21:use-01 ; - ns21:use-01.ARG1 <http://amr.isi.edu/amr_data/document-01#m> ; +<http://amr.isi.edu/amr_data/document-02#p> a ns11:possible-01 ; + ns11:possible-01.ARG1 <http://amr.isi.edu/amr_data/document-02#d> ; rdfs:subClassOf :AMR_Linked_Data . -ns21:FrameRole a ns11:Role, +ns11:FrameRole a ns3:Role, owl:Class, owl:NamedIndividual ; rdfs:label "AMR-PropBank-Role" ; rdfs:subClassOf :AMR_Linked_Data . -ns21:possible-01 a ns11:Frame ; +ns11:display-01 a ns3:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:possible-01 a ns3:Frame ; rdfs:subClassOf :AMR_Linked_Data . -ns21:use-01 a ns11:Frame ; +ns2:movie a ns3:Concept ; rdfs:subClassOf :AMR_Linked_Data . -ns2:movie a ns11:Concept ; +ns2:only a ns3:Concept ; rdfs:subClassOf :AMR_Linked_Data . -ns11:Frame a ns11:Concept, +ns3:Frame a ns3:Concept, owl:Class, owl:NamedIndividual ; rdfs:label "AMR-PropBank-Frame" ; rdfs:subClassOf :AMR_Linked_Data . +ns3:after a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:date-entity a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + :hasLink a owl:AnnotationProperty ; rdfs:subPropertyOf :AMR_AnnotationProperty . @@ -725,43 +807,43 @@ ns11:Frame a ns11:Concept, rdfs:subClassOf :AMR_Core_Role ; :label "ARG1" . -:value_9898 a :AMR_Value ; - rdfs:label "9898" . +:value_9899 a :AMR_Value ; + rdfs:label "9899" . sys:Out_ObjectProperty a owl:ObjectProperty . +net:Atom_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + net:Class_Net a owl:Class ; rdfs:subClassOf net:Net . net:Property_Net a owl:Class ; rdfs:subClassOf net:Net . -net:Relation a owl:Class ; - rdfs:subClassOf net:Net_Structure . - -net:atomProperty_use_u a net:Atom_Property_Net ; +net:atomProperty_display_d a net:Atom_Property_Net ; :role_ARG1 net:atomClass_movie_m, - net:individual_9898_m ; - net:coverBaseNode :leaf_use-01_u ; - net:coverNode :leaf_use-01_u ; - net:hasNaming "use" ; - net:hasPropertyName "use" ; - net:hasPropertyName01 "useing" ; - net:hasPropertyName10 "use-by" ; - net:hasPropertyName12 "use-of" ; + net:individual_9899_m ; + net:coverBaseNode :leaf_display-01_d ; + net:coverNode :leaf_display-01_d ; + net:hasNaming "display" ; + net:hasPropertyName "display" ; + net:hasPropertyName01 "displaying" ; + net:hasPropertyName10 "display-by" ; + net:hasPropertyName12 "display-of" ; net:hasPropertyType owl:ObjectProperty ; - net:hasStructure "document-01" ; + net:hasStructure "document-02" ; net:isCoreRoleLinked "true" ; net:targetArgumentNode :leaf_movie_m . net:objectProperty a owl:AnnotationProperty ; rdfs:label "object attribute" . -net:value_9898_blankNode a net:Value_Net ; - net:coverAmrValue :value_9898 ; - net:hasNaming "9898" ; - net:hasStructure "document-01" ; - net:hasValueLabel "9898" . +net:value_9899_blankNode a net:Value_Net ; + net:coverAmrValue :value_9899 ; + net:hasNaming "9899" ; + net:hasStructure "document-02" ; + net:hasValueLabel "9899" . :AMR_Concept a owl:Class ; rdfs:subClassOf :AMR_Element . @@ -769,12 +851,12 @@ net:value_9898_blankNode a net:Value_Net ; :AMR_Phenomena a owl:Class ; rdfs:subClassOf :AMR_Structure . +:AMR_Predicat_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + :AMR_Specific_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:AMR_Variable a owl:Class ; - rdfs:subClassOf :AMR_Element . - :fromAmrLk a owl:AnnotationProperty ; rdfs:subPropertyOf :AMR_AnnotationProperty . @@ -785,44 +867,72 @@ net:value_9898_blankNode a net:Value_Net ; rdfs:range rdfs:Literal ; rdfs:subPropertyOf :AMR_AnnotationProperty . +:leaf_after_a a :AMR_Leaf ; + :edge_a_mod_o :leaf_only_o ; + :edge_a_op1_d2 :leaf_date-entity_d2 ; + :hasConcept :concept_after ; + :hasVariable :variable_a . + :phenomena_modality a owl:Class ; rdfs:subClassOf :AMR_Phenomena . :toReify a owl:AnnotationProperty ; rdfs:subPropertyOf :AMR_AnnotationProperty . +net:Atom_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + net:Net_Structure a owl:Class ; rdfs:label "Semantic Net Structure" ; rdfs:comment "A semantic net captures a set of nodes, and associates this set with type(s) and value(s)." . -net:action_use_u a net:Action_Net ; +net:action_display_d a net:Action_Net ; net:composeFrom net:atomClass_movie_m, - net:atomProperty_use_u ; - net:coverBaseNode :leaf_use-01_u ; - net:coverNode :leaf_movie_m, - :leaf_use-01_u ; - net:hasActionName "use" ; - net:hasNaming "use" ; - net:hasStructure "document-01" ; - net:hasTargetNet net:atomClass_movie_m . + net:atomProperty_display_d, + net:individual_9899_m ; + net:coverBaseNode :leaf_display-01_d ; + net:coverNode :leaf_display-01_d, + :leaf_movie_m ; + net:hasActionName "display" ; + net:hasNaming "display" ; + net:hasStructure "document-02" ; + net:hasTargetClassNet net:atomClass_movie_m ; + net:hasTargetIndividualNet net:individual_9899_m . net:has_relation_value a owl:AnnotationProperty ; rdfs:label "has relation value" ; rdfs:subPropertyOf net:has_object . +net:individual_9899_m a net:Individual_Net ; + :role_name net:value_9899_blankNode ; + net:coverBaseNode :leaf_movie_m ; + net:coverNode :leaf_movie_m ; + net:hasIndividualLabel "9899" ; + net:hasMotherClassNet net:atomClass_movie_m ; + net:hasNaming "9899" ; + net:hasStructure "document-02" . + :AMR_Element a owl:Class ; rdfs:subClassOf :AMR_Structure . +:leaf_date-entity_d2 a :AMR_Leaf ; + :hasConcept :concept_date-entity ; + :hasVariable :variable_d2 . + +:leaf_only_o a :AMR_Leaf ; + :hasConcept :concept_only ; + :hasVariable :variable_o . + +net:Relation a owl:Class ; + rdfs:subClassOf net:Net_Structure . + net:atomClass_movie_m a net:Atom_Class_Net ; - :role_name net:value_9898_blankNode ; + :role_name net:value_9899_blankNode ; net:coverBaseNode :leaf_movie_m ; net:coverNode :leaf_movie_m ; net:hasClassName "movie" ; net:hasNaming "movie" ; - net:hasStructure "document-01" . - -:AMR_Leaf a owl:Class ; - rdfs:subClassOf :AMR_Structure . + net:hasStructure "document-02" . :AMR_NonCore_Role a owl:Class ; rdfs:subClassOf :AMR_Role . @@ -831,7 +941,7 @@ net:atomClass_movie_m a net:Atom_Class_Net ; rdfs:subClassOf :AMR_Element . :leaf_possible-01_p a :AMR_Leaf ; - :edge_p_ARG1_u :leaf_use-01_u ; + :edge_p_ARG1_d :leaf_display-01_d ; :hasConcept :concept_possible-01 ; :hasVariable :variable_p . @@ -841,18 +951,19 @@ sys:Out_Structure a owl:Class ; net:netProperty a owl:AnnotationProperty ; rdfs:label "netProperty" . -:AMR_Edge a owl:Class ; - rdfs:subClassOf :AMR_Structure . - :AMR_ObjectProperty a owl:ObjectProperty ; rdfs:subPropertyOf owl:topObjectProperty . :AMR_Structure a owl:Class . -:leaf_use-01_u a :AMR_Leaf ; - :edge_u_ARG1_m :leaf_movie_m ; - :hasConcept :concept_use-01 ; - :hasVariable :variable_u . +:AMR_Variable a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:leaf_display-01_d a :AMR_Leaf ; + :edge_d_ARG1_m :leaf_movie_m ; + :edge_d_time_a :leaf_after_a ; + :hasConcept :concept_display-01 ; + :hasVariable :variable_d . cprm:configParamProperty a rdf:Property ; rdfs:label "Config Parameter Property" . @@ -862,8 +973,11 @@ rdf:Property a owl:Class . :AMR_Relation a owl:Class ; rdfs:subClassOf :AMR_Structure . +:AMR_Leaf a owl:Class ; + rdfs:subClassOf :AMR_Structure . + :leaf_movie_m a :AMR_Leaf ; - :edge_m_name_9898 :value_9898 ; + :edge_m_name_9899 :value_9899 ; :hasConcept :concept_movie ; :hasVariable :variable_m . @@ -874,6 +988,9 @@ net:has_object a owl:AnnotationProperty ; rdfs:label "relation" ; rdfs:subPropertyOf net:netProperty . +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . + :AMR_Op_Role a owl:Class ; rdfs:subClassOf :AMR_Role . @@ -882,12 +999,12 @@ net:has_object a owl:AnnotationProperty ; :AMR_Core_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:AMR_Linked_Data a owl:Class . - net:objectValue a owl:AnnotationProperty ; rdfs:label "valuations"@fr ; rdfs:subPropertyOf net:objectProperty . +:AMR_Linked_Data a owl:Class . + [] a owl:AllDisjointClasses ; owl:members ( sys:Degree sys:Entity sys:Feature ) . diff --git a/tests/dev_tests/test_data/odrl-generation-devGraph-2.result.ttl b/tests/dev_tests/test_data/odrl-generation-devGraph-2.result.ttl new file mode 100644 index 0000000000000000000000000000000000000000..a2b2798e91f6b1b03bfeab32dc0f8884f694a6e8 --- /dev/null +++ b/tests/dev_tests/test_data/odrl-generation-devGraph-2.result.ttl @@ -0,0 +1,961 @@ +@base <https://amr.tetras-libre.fr/rdf/odrl-generation-devGraph-2/result> . +@prefix : <https://amr.tetras-libre.fr/rdf/schema#> . +@prefix cprm: <https://tenet.tetras-libre.fr/config/parameters#> . +@prefix ext-out: <https://tenet.tetras-libre.fr/extract-result#> . +@prefix net: <https://tenet.tetras-libre.fr/semantic-net#> . +@prefix ns1: <odrl:> . +@prefix ns11: <http://amr.isi.edu/frames/ld/v1.2.2/> . +@prefix ns2: <http://amr.isi.edu/rdf/amr-terms#> . +@prefix ns21: <http://amr.isi.edu/rdf/core-amr#> . +@prefix ns4: <http://amr.isi.edu/entity-types#> . +@prefix owl: <http://www.w3.org/2002/07/owl#> . +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix sys: <https://tenet.tetras-libre.fr/base-ontology#> . +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . + +ns21:Concept a rdfs:Class, + owl:Class ; + rdfs:label "AMR-Concept" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:Role a rdfs:Class, + owl:Class ; + rdfs:label "AMR-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/test-1#root01> ns21:hasID "test-1" ; + ns21:hasSentence "The sun is a star." ; + ns21:root <http://amr.isi.edu/amr_data/test-1#s> . + +<http://amr.isi.edu/amr_data/test-2#root01> ns21:hasID "test-2" ; + ns21:hasSentence "Earth is a planet." ; + ns21:root <http://amr.isi.edu/amr_data/test-2#p> . + +ns11:obligate-01.ARG2 a ns11:FrameRole . + +ns11:play-02.ARG0 a ns11:FrameRole . + +ns11:play-02.ARG1 a ns11:FrameRole . + +ns2:domain a ns21:Role, + owl:AnnotationProperty, + owl:NamedIndividual . + +ns21:hasID a owl:AnnotationProperty . + +ns21:hasSentence a owl:AnnotationProperty . + +ns21:root a owl:AnnotationProperty . + +<https://amr.tetras-libre.fr/rdf/schema> a owl:Ontology ; + owl:versionIRI :0.1 . + +:AMR_DataProperty a owl:DatatypeProperty . + +:AMR_Prep_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:edge_o_ARG2_p a :AMR_Edge ; + :hasAmrRole :role_ARG2 ; + :hasRoleID "ARG2" . + +:edge_p2_name_John a :AMR_Edge ; + :hasAmrRole :role_name ; + :hasRoleID "name" . + +:edge_p_ARG0_p2 a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_p_ARG1_m a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:fromAmrLkFramerole a owl:AnnotationProperty ; + rdfs:subPropertyOf :fromAmrLk . + +:fromAmrLkRole a owl:AnnotationProperty ; + rdfs:subPropertyOf :fromAmrLk . + +:fromAmrLkRoot a owl:AnnotationProperty ; + rdfs:subPropertyOf :fromAmrLk . + +:getDirectPropertyName a owl:AnnotationProperty ; + rdfs:subPropertyOf :getProperty . + +:getInversePropertyName a owl:AnnotationProperty ; + rdfs:subPropertyOf :getProperty . + +:getPropertyType a owl:AnnotationProperty ; + rdfs:subPropertyOf :getProperty . + +:hasConcept a owl:ObjectProperty ; + rdfs:domain :AMR_Leaf ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasConceptLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasLink . + +:hasEdgeLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasLink . + +:hasReification a owl:AnnotationProperty ; + rdfs:range xsd:boolean ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasReificationConcept a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasReificationDefinition . + +:hasReificationDomain a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasReificationDefinition . + +:hasReificationRange a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasReificationDefinition . + +:hasRelationName a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasRoleID a owl:ObjectProperty ; + rdfs:domain :AMR_Edge ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasRoleTag a owl:ObjectProperty ; + rdfs:domain :AMR_Edge ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasRolesetID a owl:ObjectProperty ; + rdfs:domain :AMR_Edge ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasRootLeaf a owl:ObjectProperty ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasSentenceID a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasSentenceStatement a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasVariable a owl:ObjectProperty ; + rdfs:domain :AMR_Leaf ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:label a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:phenomena_conjunction_and a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "and" ; + :label "conjunction-AND" . + +:phenomena_conjunction_or a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "or" ; + :label "conjunction-OR" . + +:phenomena_degree a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "have-degree-91" ; + :label "degree" . + +:phenomena_modality_possible a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :hasConceptLink "allow-01", + "grant-01", + "likely-01", + "permit-01", + "possible-01" ; + :label "possible-modality" . + +:phenomena_modality_prohibition a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :label "prohibition-modality" . + +:relation_domain a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "domain" . + +:relation_manner a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasManner" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "manner" . + +:relation_mod a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "mod" . + +:relation_name a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "name" . + +:relation_part a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasPart" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "part" . + +:relation_polarity a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "polarity" . + +:relation_quant a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "quant" . + +:role_ARG3 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG3" . + +:role_ARG4 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG4" . + +:role_ARG5 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG5" . + +:role_ARG6 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG6" . + +:role_ARG7 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG7" . + +:role_ARG8 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG8" . + +:role_ARG9 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG9" . + +:role_domain a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :hasRelationName "domain" ; + :label "domain" ; + :toReifyAsConcept "domain" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_have-degree-91 a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :getPropertyType <net:specificProperty> . + +:role_manner a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "manner" ; + :getPropertyType owl:DataProperty ; + :label "manner" ; + :toReifyAsConcept "manner" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_mod a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasFeature"^^xsd:string ; + :getPropertyType rdfs:subClassOf, + owl:ObjectProperty ; + :label "mod" ; + :toReifyAsConcept "mod" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_op1 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op1" . + +:role_op2 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op2" . + +:role_op3 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op3" . + +:role_op4 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op4" . + +:role_op5 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op5" . + +:role_op6 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op6" . + +:role_op7 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op7" . + +:role_op8 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op8" . + +:role_op9 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op9" . + +:role_part a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasPart"^^xsd:string ; + :getInversePropertyName "partOf"^^xsd:string ; + :getPropertyType owl:ObjectProperty ; + :toReifyAsConcept "part" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_polarity a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "polarity" . + +:role_quant a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "quant" . + +:root_document-02 a :AMR_Root ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#root01> ; + :hasRootLeaf :leaf_obligate-01_o ; + :hasSentenceID "document-02" ; + :hasSentenceStatement "John must play the movie." . + +:toReifyAsConcept a owl:AnnotationProperty ; + rdfs:subPropertyOf :toReify . + +:toReifyWithBaseEdge a owl:AnnotationProperty ; + rdfs:subPropertyOf :toReify . + +:toReifyWithHeadEdge a owl:AnnotationProperty ; + rdfs:subPropertyOf :toReify . + +<https://tenet.tetras-libre.fr/base-ontology> a owl:Ontology . + +sys:Event a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Undetermined_Thing a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:fromStructure a owl:AnnotationProperty ; + rdfs:subPropertyOf sys:Out_AnnotationProperty . + +sys:hasDegree a owl:ObjectProperty ; + rdfs:subPropertyOf sys:Out_ObjectProperty . + +sys:hasFeature a owl:ObjectProperty ; + rdfs:subPropertyOf sys:Out_ObjectProperty . + +<https://tenet.tetras-libre.fr/config/parameters> a owl:Ontology . + +cprm:Config_Parameters a owl:Class ; + cprm:baseURI "https://tenet.tetras-libre.fr/" ; + cprm:netURI "https://tenet.tetras-libre.fr/semantic-net#" ; + cprm:newClassRef "new-class#" ; + cprm:newPropertyRef "new-relation#" ; + cprm:objectRef "object_" ; + cprm:targetOntologyURI "https://tenet.tetras-libre.fr/base-ontology/" . + +cprm:baseURI a rdf:Property ; + rdfs:label "Base URI" ; + rdfs:domain cprm:Frame ; + rdfs:range xsd:string ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:netURI a rdf:Property ; + rdfs:label "Net URI" ; + rdfs:domain cprm:Frame ; + rdfs:range xsd:string ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:newClassRef a rdf:Property ; + rdfs:label "Reference for a new class" ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:newPropertyRef a rdf:Property ; + rdfs:label "Reference for a new property" ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:objectRef a rdf:Property ; + rdfs:label "Object Reference" ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:targetOntologyURI a rdf:Property ; + rdfs:label "URI of classes in target ontology" ; + rdfs:domain cprm:Frame ; + rdfs:range xsd:string ; + rdfs:subPropertyOf cprm:configParamProperty . + +ext-out:policy_document-02 ns1:obligation """[ + odrl:action play ]""" . + +<https://tenet.tetras-libre.fr/semantic-net> a owl:Ontology . + +net:Composite_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:Feature a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:abstractionClass a owl:AnnotationProperty ; + rdfs:label "abstraction class" ; + rdfs:subPropertyOf net:objectValue . + +net:atomType a owl:AnnotationProperty ; + rdfs:label "atom type" ; + rdfs:subPropertyOf net:objectType . + +net:compositeProperty_person-play-movie_p2 a net:Composite_Property_Net ; + :role_name net:value_John_blankNode ; + net:composeFrom net:atomClass_movie_m, + net:atomClass_person_p2, + net:atomProperty_play_p ; + net:coverBaseNode :leaf_person_p2 ; + net:coverNode :leaf_movie_m, + :leaf_person_p2, + :leaf_play-02_p ; + net:hasNaming "person-play-movie" ; + net:hasRestriction net:restriction_play-movie_p ; + net:hasStructure "document-02" . + +net:entityClass a owl:AnnotationProperty ; + rdfs:label "entity class" ; + rdfs:subPropertyOf net:objectValue . + +net:featureClass a owl:AnnotationProperty ; + rdfs:label "feature class" ; + rdfs:subPropertyOf net:objectValue . + +net:has_atom a owl:AnnotationProperty ; + rdfs:label "has atom" ; + rdfs:subPropertyOf net:has_object . + +net:has_class a owl:AnnotationProperty ; + rdfs:label "is class" ; + rdfs:subPropertyOf net:objectValue . + +net:has_class_name a owl:AnnotationProperty ; + rdfs:subPropertyOf net:has_value . + +net:has_class_uri a owl:AnnotationProperty ; + rdfs:label "class uri" ; + rdfs:subPropertyOf net:objectValue . + +net:has_concept a owl:AnnotationProperty ; + rdfs:label "concept "@fr ; + rdfs:subPropertyOf net:objectValue . + +net:has_entity a owl:AnnotationProperty ; + rdfs:label "has entity" ; + rdfs:subPropertyOf net:has_object . + +net:has_feature a owl:AnnotationProperty ; + rdfs:label "has feature" ; + rdfs:subPropertyOf net:has_object . + +net:has_instance a owl:AnnotationProperty ; + rdfs:label "entity instance" ; + rdfs:subPropertyOf net:objectValue . + +net:has_instance_uri a owl:AnnotationProperty ; + rdfs:label "instance uri" ; + rdfs:subPropertyOf net:objectValue . + +net:has_item a owl:AnnotationProperty ; + rdfs:label "has item" ; + rdfs:subPropertyOf net:has_object . + +net:has_mother_class a owl:AnnotationProperty ; + rdfs:label "has mother class" ; + rdfs:subPropertyOf net:objectValue . + +net:has_mother_class_uri a owl:AnnotationProperty ; + rdfs:label "parent class uri" ; + rdfs:subPropertyOf net:objectValue . + +net:has_node a owl:AnnotationProperty ; + rdfs:label "UNL Node" ; + rdfs:subPropertyOf net:netProperty . + +net:has_parent a owl:AnnotationProperty ; + rdfs:label "has parent" ; + rdfs:subPropertyOf net:has_object . + +net:has_parent_class a owl:AnnotationProperty ; + rdfs:label "parent class" ; + rdfs:subPropertyOf net:objectValue . + +net:has_parent_class_uri a owl:AnnotationProperty ; + rdfs:label "parent class uri" ; + rdfs:subPropertyOf net:objectValue . + +net:has_possible_domain a owl:AnnotationProperty ; + rdfs:label "has possible domain" ; + rdfs:subPropertyOf net:has_object . + +net:has_possible_range a owl:AnnotationProperty ; + rdfs:label "has possible range" ; + rdfs:subPropertyOf net:has_object . + +net:has_relation a owl:AnnotationProperty ; + rdfs:label "has relation" ; + rdfs:subPropertyOf net:has_relation_value . + +net:has_source a owl:AnnotationProperty ; + rdfs:label "has source" ; + rdfs:subPropertyOf net:has_relation_value . + +net:has_structure a owl:AnnotationProperty ; + rdfs:label "Linguistic Structure (in UNL Document)" ; + rdfs:subPropertyOf net:netProperty . + +net:has_target a owl:AnnotationProperty ; + rdfs:label "has target" ; + rdfs:subPropertyOf net:has_relation_value . + +net:inverse_direction a owl:NamedIndividual . + +net:listGuiding a owl:AnnotationProperty ; + rdfs:label "Guiding connector of a list (or, and)" ; + rdfs:subPropertyOf net:objectValue . + +net:modCat1 a owl:AnnotationProperty ; + rdfs:label "Modality Category (level 1)" ; + rdfs:subPropertyOf net:objectValue . + +net:modCat2 a owl:AnnotationProperty ; + rdfs:label "Modality Category (level 2)" ; + rdfs:subPropertyOf net:objectValue . + +net:normal_direction a owl:NamedIndividual . + +net:rule_obligation_o a net:Rule_Net ; + net:composeFrom net:action_play_p, + net:phenomena_obligation-modality_o ; + net:coverBaseNode :leaf_obligate-01_o ; + net:coverNode :leaf_movie_m, + :leaf_obligate-01_o, + :leaf_play-02_p ; + net:hasNaming "obligation" ; + net:hasRuleActionURI net:action_play_p ; + net:hasRuleRelationName "obligation" ; + net:hasStructure "document-02" . + +net:type a owl:AnnotationProperty ; + rdfs:label "type "@fr ; + rdfs:subPropertyOf net:netProperty . + +net:verbClass a owl:AnnotationProperty ; + rdfs:label "verb class" ; + rdfs:subPropertyOf net:objectValue . + +<http://amr.isi.edu/amr_data/document-02#root01> a ns21:AMR ; + ns21:has-id "document-02" ; + ns21:has-sentence "John must play the movie." ; + ns21:root <http://amr.isi.edu/amr_data/document-02#o> . + +<http://amr.isi.edu/amr_data/test-1#s> ns2:domain <http://amr.isi.edu/amr_data/test-1#s2> . + +<http://amr.isi.edu/amr_data/test-2#p> rdfs:label "Earth" . + +ns21:AMR a owl:Class ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:NamedEntity a ns21:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-EntityType", + "AMR-Term" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Predicat_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Relation_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Root a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Value a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:concept_movie rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:movie ; + :label "movie" . + +:concept_obligate-01 rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns11:obligate-01 ; + :hasPhenomenaLink :phenomena_modality_obligation ; + :label "obligate-01" . + +:concept_person rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns4:person ; + :label "person" . + +:concept_play-02 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:play-02 ; + :label "play-02" . + +:role_ARG0 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG0" . + +:role_ARG1 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG1" . + +:role_ARG2 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG2" . + +:role_name a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_NonCore_Role ; + :label "name" . + +:variable_m a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#m> ; + :label "m" . + +:variable_o a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#o> ; + :label "o" . + +:variable_p a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#p> ; + :label "p" . + +:variable_p2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-02#p2> ; + :label "p2" ; + :name "John" . + +sys:Degree a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Entity a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Feature a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Out_AnnotationProperty a owl:AnnotationProperty . + +net:Action_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Atom_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Composite_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Deprecated_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Individual_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Phenomena_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Rule_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Value_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:has_value a owl:AnnotationProperty ; + rdfs:subPropertyOf net:netProperty . + +net:individual_John_p2 a net:Individual_Net ; + :role_name net:value_John_blankNode ; + net:coverBaseNode :leaf_person_p2 ; + net:coverNode :leaf_person_p2 ; + net:hasIndividualLabel "John" ; + net:hasMotherClassNet net:atomClass_person_p2 ; + net:hasNaming "John" ; + net:hasStructure "document-02" . + +net:objectType a owl:AnnotationProperty ; + rdfs:label "object type" ; + rdfs:subPropertyOf net:objectProperty . + +net:phenomena_obligation-modality_o a net:Phenomena_Net ; + :role_ARG2 net:action_play_p, + net:atomProperty_play_p ; + net:coverBaseNode :leaf_obligate-01_o ; + net:coverNode :leaf_obligate-01_o ; + net:hasNaming "obligation-modality" ; + net:hasPhenomenaRef "obligate-01" ; + net:hasPhenomenaType :phenomena_modality_obligation ; + net:hasStructure "document-02" . + +net:restriction_play-movie_p a net:Restriction_Net ; + net:composeFrom net:atomClass_movie_m, + net:atomProperty_play_p ; + net:coverBaseNode :leaf_play-02_p ; + net:coverNode :leaf_movie_m, + :leaf_play-02_p ; + net:hasNaming "play-movie" ; + net:hasRestrictionNetValue net:atomClass_movie_m ; + net:hasRestrictionOnProperty net:atomProperty_play_p ; + net:hasStructure "document-02" . + +<http://amr.isi.edu/amr_data/document-02#m> a ns2:movie ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/document-02#o> a ns11:obligate-01 ; + ns11:obligate-01.ARG2 <http://amr.isi.edu/amr_data/document-02#p> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/document-02#p> a ns11:play-02 ; + ns11:play-02.ARG0 <http://amr.isi.edu/amr_data/document-02#p2> ; + ns11:play-02.ARG1 <http://amr.isi.edu/amr_data/document-02#m> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/document-02#p2> a ns4:person ; + rdfs:label "John" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns4:person a ns21:NamedEntity ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:obligate-01 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:play-02 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns2:movie a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:Frame a ns21:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Frame" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:hasLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:phenomena_conjunction a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "contrast-01", + "either", + "neither" ; + :label "conjunction" . + +:phenomena_modality_obligation a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :hasConceptLink "obligate-01" ; + :label "obligation-modality" . + +:value_John a :AMR_Value ; + rdfs:label "John" . + +sys:Out_ObjectProperty a owl:ObjectProperty . + +net:Atom_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:Class_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Property_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:objectProperty a owl:AnnotationProperty ; + rdfs:label "object attribute" . + +ns11:FrameRole a ns21:Role, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Concept a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:AMR_Phenomena a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Specific_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:fromAmrLk a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:getProperty a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasReificationDefinition a owl:AnnotationProperty ; + rdfs:range rdfs:Literal ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:phenomena_modality a owl:Class ; + rdfs:subClassOf :AMR_Phenomena . + +:toReify a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +net:Net_Structure a owl:Class ; + rdfs:label "Semantic Net Structure" ; + rdfs:comment "A semantic net captures a set of nodes, and associates this set with type(s) and value(s)." . + +net:action_play_p a net:Action_Net ; + net:composeFrom net:atomClass_movie_m, + net:atomProperty_play_p ; + net:coverBaseNode :leaf_play-02_p ; + net:coverNode :leaf_movie_m, + :leaf_play-02_p ; + net:hasActionName "play" ; + net:hasNaming "play" ; + net:hasStructure "document-02" ; + net:hasTargetNet net:atomClass_movie_m . + +net:atomClass_person_p2 a net:Atom_Class_Net, + net:Deprecated_Net ; + :role_name net:value_John_blankNode ; + net:coverBaseNode :leaf_person_p2 ; + net:coverNode :leaf_person_p2 ; + net:hasClassName "person" ; + net:hasNaming "person" ; + net:hasStructure "document-02" . + +net:has_relation_value a owl:AnnotationProperty ; + rdfs:label "has relation value" ; + rdfs:subPropertyOf net:has_object . + +net:value_John_blankNode a net:Value_Net ; + net:coverAmrValue :value_John ; + net:hasNaming "John" ; + net:hasStructure "document-02" ; + net:hasValueLabel "John" . + +:AMR_Element a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Variable a owl:Class ; + rdfs:subClassOf :AMR_Element . + +net:Relation a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +:AMR_NonCore_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:AMR_Role a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:leaf_obligate-01_o a :AMR_Leaf ; + :edge_o_ARG2_p :leaf_play-02_p ; + :hasConcept :concept_obligate-01 ; + :hasVariable :variable_o . + +sys:Out_Structure a owl:Class ; + rdfs:label "Output Ontology Structure" . + +net:atomProperty_play_p a net:Atom_Property_Net ; + :role_ARG0 net:atomClass_person_p2, + net:individual_John_p2 ; + :role_ARG1 net:atomClass_movie_m ; + net:coverBaseNode :leaf_play-02_p ; + net:coverNode :leaf_play-02_p ; + net:hasNaming "play" ; + net:hasPropertyName "play" ; + net:hasPropertyName01 "playing" ; + net:hasPropertyName10 "play-by" ; + net:hasPropertyName12 "play-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "document-02" ; + net:isCoreRoleLinked "true" ; + net:targetArgumentNode :leaf_movie_m, + :leaf_person_p2 . + +net:netProperty a owl:AnnotationProperty ; + rdfs:label "netProperty" . + +:AMR_Leaf a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_ObjectProperty a owl:ObjectProperty ; + rdfs:subPropertyOf owl:topObjectProperty . + +:AMR_Structure a owl:Class . + +cprm:configParamProperty a rdf:Property ; + rdfs:label "Config Parameter Property" . + +net:atomClass_movie_m a net:Atom_Class_Net ; + net:coverBaseNode :leaf_movie_m ; + net:coverNode :leaf_movie_m ; + net:hasClassName "movie" ; + net:hasNaming "movie" ; + net:hasStructure "document-02" . + +rdf:Property a owl:Class . + +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Relation a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:leaf_movie_m a :AMR_Leaf ; + :hasConcept :concept_movie ; + :hasVariable :variable_m . + +:leaf_person_p2 a :AMR_Leaf ; + :edge_p2_name_John :value_John ; + :hasConcept :concept_person ; + :hasVariable :variable_p2 . + +net:Net a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:has_object a owl:AnnotationProperty ; + rdfs:label "relation" ; + rdfs:subPropertyOf net:netProperty . + +:AMR_Op_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:leaf_play-02_p a :AMR_Leaf ; + :edge_p_ARG0_p2 :leaf_person_p2 ; + :edge_p_ARG1_m :leaf_movie_m ; + :hasConcept :concept_play-02 ; + :hasVariable :variable_p . + +:AMR_AnnotationProperty a owl:AnnotationProperty . + +:AMR_Core_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:AMR_Linked_Data a owl:Class . + +net:objectValue a owl:AnnotationProperty ; + rdfs:label "valuations"@fr ; + rdfs:subPropertyOf net:objectProperty . + +[] a owl:AllDisjointClasses ; + owl:members ( sys:Degree sys:Entity sys:Feature ) . + diff --git a/tests/dev_tests/test_data/odrl-generation-devGraph-3.result.ttl b/tests/dev_tests/test_data/odrl-generation-devGraph-3.result.ttl new file mode 100644 index 0000000000000000000000000000000000000000..7351d3e4bf03c7e2c52c147617a1d9cde3b40908 --- /dev/null +++ b/tests/dev_tests/test_data/odrl-generation-devGraph-3.result.ttl @@ -0,0 +1,991 @@ +@base <https://amr.tetras-libre.fr/rdf/odrl-generation-devGraph-3/result> . +@prefix : <https://amr.tetras-libre.fr/rdf/schema#> . +@prefix cprm: <https://tenet.tetras-libre.fr/config/parameters#> . +@prefix ext-out: <https://tenet.tetras-libre.fr/extract-result#> . +@prefix net: <https://tenet.tetras-libre.fr/semantic-net#> . +@prefix ns1: <odrl:> . +@prefix ns11: <http://amr.isi.edu/rdf/core-amr#> . +@prefix ns2: <http://amr.isi.edu/rdf/amr-terms#> . +@prefix ns3: <http://amr.isi.edu/frames/ld/v1.2.2/> . +@prefix ns4: <http://amr.isi.edu/entity-types#> . +@prefix owl: <http://www.w3.org/2002/07/owl#> . +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix sys: <https://tenet.tetras-libre.fr/base-ontology#> . +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . + +ns11:Concept a rdfs:Class, + owl:Class ; + rdfs:label "AMR-Concept" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:Role a rdfs:Class, + owl:Class ; + rdfs:label "AMR-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/test-1#root01> ns11:hasID "test-1" ; + ns11:hasSentence "The sun is a star." ; + ns11:root <http://amr.isi.edu/amr_data/test-1#s> . + +<http://amr.isi.edu/amr_data/test-2#root01> ns11:hasID "test-2" ; + ns11:hasSentence "Earth is a planet." ; + ns11:root <http://amr.isi.edu/amr_data/test-2#p> . + +ns3:allow-01.ARG1 a ns3:FrameRole . + +ns3:play-01.ARG0 a ns3:FrameRole . + +ns3:play-01.ARG1 a ns3:FrameRole . + +ns2:domain a ns11:Role, + owl:AnnotationProperty, + owl:NamedIndividual . + +ns11:hasID a owl:AnnotationProperty . + +ns11:hasSentence a owl:AnnotationProperty . + +ns11:root a owl:AnnotationProperty . + +<https://amr.tetras-libre.fr/rdf/schema> a owl:Ontology ; + owl:versionIRI :0.1 . + +:AMR_DataProperty a owl:DatatypeProperty . + +:AMR_Prep_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:edge_a_ARG1_p a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_a_polarity_negative a :AMR_Edge ; + :hasAmrRole :role_polarity ; + :hasRoleID "polarity" . + +:edge_p2_name_John a :AMR_Edge ; + :hasAmrRole :role_name ; + :hasRoleID "name" . + +:edge_p_ARG0_p2 a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_p_ARG1_m a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:fromAmrLkFramerole a owl:AnnotationProperty ; + rdfs:subPropertyOf :fromAmrLk . + +:fromAmrLkRole a owl:AnnotationProperty ; + rdfs:subPropertyOf :fromAmrLk . + +:fromAmrLkRoot a owl:AnnotationProperty ; + rdfs:subPropertyOf :fromAmrLk . + +:getDirectPropertyName a owl:AnnotationProperty ; + rdfs:subPropertyOf :getProperty . + +:getInversePropertyName a owl:AnnotationProperty ; + rdfs:subPropertyOf :getProperty . + +:getPropertyType a owl:AnnotationProperty ; + rdfs:subPropertyOf :getProperty . + +:hasConcept a owl:ObjectProperty ; + rdfs:domain :AMR_Leaf ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasConceptLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasLink . + +:hasEdgeLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasLink . + +:hasReification a owl:AnnotationProperty ; + rdfs:range xsd:boolean ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasReificationConcept a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasReificationDefinition . + +:hasReificationDomain a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasReificationDefinition . + +:hasReificationRange a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasReificationDefinition . + +:hasRelationName a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasRoleID a owl:ObjectProperty ; + rdfs:domain :AMR_Edge ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasRoleTag a owl:ObjectProperty ; + rdfs:domain :AMR_Edge ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasRolesetID a owl:ObjectProperty ; + rdfs:domain :AMR_Edge ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasRootLeaf a owl:ObjectProperty ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasSentenceID a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasSentenceStatement a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasVariable a owl:ObjectProperty ; + rdfs:domain :AMR_Leaf ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:label a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:phenomena_conjunction_and a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "and" ; + :label "conjunction-AND" . + +:phenomena_conjunction_or a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "or" ; + :label "conjunction-OR" . + +:phenomena_degree a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "have-degree-91" ; + :label "degree" . + +:phenomena_modality_obligation a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :hasConceptLink "obligate-01" ; + :label "obligation-modality" . + +:relation_domain a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "domain" . + +:relation_manner a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasManner" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "manner" . + +:relation_mod a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "mod" . + +:relation_name a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "name" . + +:relation_part a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasPart" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "part" . + +:relation_polarity a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "polarity" . + +:relation_quant a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "quant" . + +:role_ARG2 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG2" . + +:role_ARG3 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG3" . + +:role_ARG4 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG4" . + +:role_ARG5 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG5" . + +:role_ARG6 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG6" . + +:role_ARG7 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG7" . + +:role_ARG8 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG8" . + +:role_ARG9 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG9" . + +:role_domain a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :hasRelationName "domain" ; + :label "domain" ; + :toReifyAsConcept "domain" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_have-degree-91 a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :getPropertyType <net:specificProperty> . + +:role_manner a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "manner" ; + :getPropertyType owl:DataProperty ; + :label "manner" ; + :toReifyAsConcept "manner" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_mod a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasFeature"^^xsd:string ; + :getPropertyType rdfs:subClassOf, + owl:ObjectProperty ; + :label "mod" ; + :toReifyAsConcept "mod" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_op1 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op1" . + +:role_op2 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op2" . + +:role_op3 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op3" . + +:role_op4 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op4" . + +:role_op5 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op5" . + +:role_op6 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op6" . + +:role_op7 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op7" . + +:role_op8 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op8" . + +:role_op9 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op9" . + +:role_part a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasPart"^^xsd:string ; + :getInversePropertyName "partOf"^^xsd:string ; + :getPropertyType owl:ObjectProperty ; + :toReifyAsConcept "part" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_quant a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "quant" . + +:root_document-03 a :AMR_Root ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-03#root01> ; + :hasRootLeaf :leaf_allow-01_a ; + :hasSentenceID "document-03" ; + :hasSentenceStatement "John is not allowed to play the movie.." . + +:toReifyAsConcept a owl:AnnotationProperty ; + rdfs:subPropertyOf :toReify . + +:toReifyWithBaseEdge a owl:AnnotationProperty ; + rdfs:subPropertyOf :toReify . + +:toReifyWithHeadEdge a owl:AnnotationProperty ; + rdfs:subPropertyOf :toReify . + +<https://tenet.tetras-libre.fr/base-ontology> a owl:Ontology . + +sys:Event a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Undetermined_Thing a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:fromStructure a owl:AnnotationProperty ; + rdfs:subPropertyOf sys:Out_AnnotationProperty . + +sys:hasDegree a owl:ObjectProperty ; + rdfs:subPropertyOf sys:Out_ObjectProperty . + +sys:hasFeature a owl:ObjectProperty ; + rdfs:subPropertyOf sys:Out_ObjectProperty . + +<https://tenet.tetras-libre.fr/config/parameters> a owl:Ontology . + +cprm:Config_Parameters a owl:Class ; + cprm:baseURI "https://tenet.tetras-libre.fr/" ; + cprm:netURI "https://tenet.tetras-libre.fr/semantic-net#" ; + cprm:newClassRef "new-class#" ; + cprm:newPropertyRef "new-relation#" ; + cprm:objectRef "object_" ; + cprm:targetOntologyURI "https://tenet.tetras-libre.fr/base-ontology/" . + +cprm:baseURI a rdf:Property ; + rdfs:label "Base URI" ; + rdfs:domain cprm:Frame ; + rdfs:range xsd:string ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:netURI a rdf:Property ; + rdfs:label "Net URI" ; + rdfs:domain cprm:Frame ; + rdfs:range xsd:string ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:newClassRef a rdf:Property ; + rdfs:label "Reference for a new class" ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:newPropertyRef a rdf:Property ; + rdfs:label "Reference for a new property" ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:objectRef a rdf:Property ; + rdfs:label "Object Reference" ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:targetOntologyURI a rdf:Property ; + rdfs:label "URI of classes in target ontology" ; + rdfs:domain cprm:Frame ; + rdfs:range xsd:string ; + rdfs:subPropertyOf cprm:configParamProperty . + +ext-out:policy_document-03 ns1:prohibition """[ + odrl:action play ]""" . + +<https://tenet.tetras-libre.fr/semantic-net> a owl:Ontology . + +net:Composite_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:Feature a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:abstractionClass a owl:AnnotationProperty ; + rdfs:label "abstraction class" ; + rdfs:subPropertyOf net:objectValue . + +net:atomType a owl:AnnotationProperty ; + rdfs:label "atom type" ; + rdfs:subPropertyOf net:objectType . + +net:compositeProperty_person-play-movie_p2 a net:Composite_Property_Net ; + :role_name net:value_John_blankNode ; + net:composeFrom net:atomClass_movie_m, + net:atomClass_person_p2, + net:atomProperty_play_p ; + net:coverBaseNode :leaf_person_p2 ; + net:coverNode :leaf_movie_m, + :leaf_person_p2, + :leaf_play-01_p ; + net:hasNaming "person-play-movie" ; + net:hasRestriction net:restriction_play-movie_p ; + net:hasStructure "document-03" . + +net:entityClass a owl:AnnotationProperty ; + rdfs:label "entity class" ; + rdfs:subPropertyOf net:objectValue . + +net:featureClass a owl:AnnotationProperty ; + rdfs:label "feature class" ; + rdfs:subPropertyOf net:objectValue . + +net:has_atom a owl:AnnotationProperty ; + rdfs:label "has atom" ; + rdfs:subPropertyOf net:has_object . + +net:has_class a owl:AnnotationProperty ; + rdfs:label "is class" ; + rdfs:subPropertyOf net:objectValue . + +net:has_class_name a owl:AnnotationProperty ; + rdfs:subPropertyOf net:has_value . + +net:has_class_uri a owl:AnnotationProperty ; + rdfs:label "class uri" ; + rdfs:subPropertyOf net:objectValue . + +net:has_concept a owl:AnnotationProperty ; + rdfs:label "concept "@fr ; + rdfs:subPropertyOf net:objectValue . + +net:has_entity a owl:AnnotationProperty ; + rdfs:label "has entity" ; + rdfs:subPropertyOf net:has_object . + +net:has_feature a owl:AnnotationProperty ; + rdfs:label "has feature" ; + rdfs:subPropertyOf net:has_object . + +net:has_instance a owl:AnnotationProperty ; + rdfs:label "entity instance" ; + rdfs:subPropertyOf net:objectValue . + +net:has_instance_uri a owl:AnnotationProperty ; + rdfs:label "instance uri" ; + rdfs:subPropertyOf net:objectValue . + +net:has_item a owl:AnnotationProperty ; + rdfs:label "has item" ; + rdfs:subPropertyOf net:has_object . + +net:has_mother_class a owl:AnnotationProperty ; + rdfs:label "has mother class" ; + rdfs:subPropertyOf net:objectValue . + +net:has_mother_class_uri a owl:AnnotationProperty ; + rdfs:label "parent class uri" ; + rdfs:subPropertyOf net:objectValue . + +net:has_node a owl:AnnotationProperty ; + rdfs:label "UNL Node" ; + rdfs:subPropertyOf net:netProperty . + +net:has_parent a owl:AnnotationProperty ; + rdfs:label "has parent" ; + rdfs:subPropertyOf net:has_object . + +net:has_parent_class a owl:AnnotationProperty ; + rdfs:label "parent class" ; + rdfs:subPropertyOf net:objectValue . + +net:has_parent_class_uri a owl:AnnotationProperty ; + rdfs:label "parent class uri" ; + rdfs:subPropertyOf net:objectValue . + +net:has_possible_domain a owl:AnnotationProperty ; + rdfs:label "has possible domain" ; + rdfs:subPropertyOf net:has_object . + +net:has_possible_range a owl:AnnotationProperty ; + rdfs:label "has possible range" ; + rdfs:subPropertyOf net:has_object . + +net:has_relation a owl:AnnotationProperty ; + rdfs:label "has relation" ; + rdfs:subPropertyOf net:has_relation_value . + +net:has_source a owl:AnnotationProperty ; + rdfs:label "has source" ; + rdfs:subPropertyOf net:has_relation_value . + +net:has_structure a owl:AnnotationProperty ; + rdfs:label "Linguistic Structure (in UNL Document)" ; + rdfs:subPropertyOf net:netProperty . + +net:has_target a owl:AnnotationProperty ; + rdfs:label "has target" ; + rdfs:subPropertyOf net:has_relation_value . + +net:inverse_direction a owl:NamedIndividual . + +net:listGuiding a owl:AnnotationProperty ; + rdfs:label "Guiding connector of a list (or, and)" ; + rdfs:subPropertyOf net:objectValue . + +net:modCat1 a owl:AnnotationProperty ; + rdfs:label "Modality Category (level 1)" ; + rdfs:subPropertyOf net:objectValue . + +net:modCat2 a owl:AnnotationProperty ; + rdfs:label "Modality Category (level 2)" ; + rdfs:subPropertyOf net:objectValue . + +net:normal_direction a owl:NamedIndividual . + +net:rule_prohibition_a a net:Rule_Net ; + net:composeFrom net:action_play_p, + net:phenomena_prohibition-modality_a ; + net:coverBaseNode :leaf_allow-01_a ; + net:coverNode :leaf_allow-01_a, + :leaf_movie_m, + :leaf_play-01_p ; + net:hasNaming "prohibition" ; + net:hasRuleActionURI net:action_play_p ; + net:hasRuleRelationName "prohibition" ; + net:hasStructure "document-03" . + +net:type a owl:AnnotationProperty ; + rdfs:label "type "@fr ; + rdfs:subPropertyOf net:netProperty . + +net:verbClass a owl:AnnotationProperty ; + rdfs:label "verb class" ; + rdfs:subPropertyOf net:objectValue . + +<http://amr.isi.edu/amr_data/document-03#root01> a ns11:AMR ; + ns11:has-id "document-03" ; + ns11:has-sentence "John is not allowed to play the movie.." ; + ns11:root <http://amr.isi.edu/amr_data/document-03#a> . + +<http://amr.isi.edu/amr_data/test-1#s> ns2:domain <http://amr.isi.edu/amr_data/test-1#s2> . + +<http://amr.isi.edu/amr_data/test-2#p> rdfs:label "Earth" . + +ns11:AMR a owl:Class ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:NamedEntity a ns11:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-EntityType", + "AMR-Term" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Predicat_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Relation_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Root a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:concept_allow-01 rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns3:allow-01 ; + :hasPhenomenaLink :phenomena_modality_possible ; + :label "allow-01" . + +:concept_movie rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:movie ; + :label "movie" . + +:concept_person rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns4:person ; + :label "person" . + +:concept_play-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:play-01 ; + :label "play-01" . + +:phenomena_modality_prohibition a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :label "prohibition-modality" . + +:role_ARG0 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG0" . + +:role_name a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_NonCore_Role ; + :label "name" . + +:role_polarity a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "polarity" . + +:variable_a a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-03#a> ; + :label "a" . + +:variable_m a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-03#m> ; + :label "m" . + +:variable_p a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-03#p> ; + :label "p" . + +:variable_p2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-03#p2> ; + :label "p2" ; + :name "John" . + +sys:Degree a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Entity a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Feature a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Out_AnnotationProperty a owl:AnnotationProperty . + +net:Action_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Atom_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Composite_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Individual_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Rule_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:has_value a owl:AnnotationProperty ; + rdfs:subPropertyOf net:netProperty . + +net:individual_John_p2 a net:Individual_Net ; + :role_name net:value_John_blankNode ; + net:coverBaseNode :leaf_person_p2 ; + net:coverNode :leaf_person_p2 ; + net:hasIndividualLabel "John" ; + net:hasMotherClassNet net:atomClass_person_p2 ; + net:hasNaming "John" ; + net:hasStructure "document-03" . + +net:objectType a owl:AnnotationProperty ; + rdfs:label "object type" ; + rdfs:subPropertyOf net:objectProperty . + +net:phenomena_possible-modality_a a net:Deprecated_Net, + net:Phenomena_Net ; + :role_ARG1 net:action_play_p, + net:atomProperty_play_p ; + :role_polarity net:value_negative_blankNode ; + net:coverBaseNode :leaf_allow-01_a ; + net:coverNode :leaf_allow-01_a ; + net:hasNaming "possible-modality" ; + net:hasPhenomenaRef "allow-01" ; + net:hasPhenomenaType :phenomena_modality_possible ; + net:hasStructure "document-03" . + +net:phenomena_prohibition-modality_a a net:Phenomena_Net ; + :role_ARG1 net:action_play_p, + net:atomProperty_play_p ; + :role_polarity net:value_negative_blankNode ; + net:composeFrom net:phenomena_possible-modality_a, + net:value_negative_blankNode ; + net:coverBaseNode :leaf_allow-01_a ; + net:coverNode :leaf_allow-01_a ; + net:hasNaming "prohibition-modality" ; + net:hasPhenomenaRef "not-[rdflib.term.Literal('allow-01')]" ; + net:hasPhenomenaType :phenomena_modality_prohibition ; + net:hasStructure "document-03" . + +net:restriction_play-movie_p a net:Restriction_Net ; + net:composeFrom net:atomClass_movie_m, + net:atomProperty_play_p ; + net:coverBaseNode :leaf_play-01_p ; + net:coverNode :leaf_movie_m, + :leaf_play-01_p ; + net:hasNaming "play-movie" ; + net:hasRestrictionNetValue net:atomClass_movie_m ; + net:hasRestrictionOnProperty net:atomProperty_play_p ; + net:hasStructure "document-03" . + +<http://amr.isi.edu/amr_data/document-03#a> a ns3:allow-01 ; + ns3:allow-01.ARG1 <http://amr.isi.edu/amr_data/document-03#p> ; + ns2:polarity "-" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/document-03#m> a ns2:movie ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/document-03#p> a ns3:play-01 ; + ns3:play-01.ARG0 <http://amr.isi.edu/amr_data/document-03#p2> ; + ns3:play-01.ARG1 <http://amr.isi.edu/amr_data/document-03#m> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/document-03#p2> a ns4:person ; + rdfs:label "John" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns4:person a ns11:NamedEntity ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:allow-01 a ns11:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:play-01 a ns11:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns2:movie a ns11:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:Frame a ns11:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Frame" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Value a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:hasLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:phenomena_conjunction a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "contrast-01", + "either", + "neither" ; + :label "conjunction" . + +:phenomena_modality_possible a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :hasConceptLink "allow-01", + "grant-01", + "likely-01", + "permit-01", + "possible-01" ; + :label "possible-modality" . + +:role_ARG1 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG1" . + +:value_John a :AMR_Value ; + rdfs:label "John" . + +:value_negative a :AMR_Value ; + rdfs:label "negative" . + +sys:Out_ObjectProperty a owl:ObjectProperty . + +net:Atom_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:Class_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Deprecated_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Phenomena_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Property_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Value_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:objectProperty a owl:AnnotationProperty ; + rdfs:label "object attribute" . + +ns3:FrameRole a ns11:Role, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Concept a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:AMR_Phenomena a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Specific_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:fromAmrLk a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:getProperty a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasReificationDefinition a owl:AnnotationProperty ; + rdfs:range rdfs:Literal ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:phenomena_modality a owl:Class ; + rdfs:subClassOf :AMR_Phenomena . + +:toReify a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +net:Net_Structure a owl:Class ; + rdfs:label "Semantic Net Structure" ; + rdfs:comment "A semantic net captures a set of nodes, and associates this set with type(s) and value(s)." . + +net:atomClass_person_p2 a net:Atom_Class_Net, + net:Deprecated_Net ; + :role_name net:value_John_blankNode ; + net:coverBaseNode :leaf_person_p2 ; + net:coverNode :leaf_person_p2 ; + net:hasClassName "person" ; + net:hasNaming "person" ; + net:hasStructure "document-03" . + +net:has_relation_value a owl:AnnotationProperty ; + rdfs:label "has relation value" ; + rdfs:subPropertyOf net:has_object . + +net:value_John_blankNode a net:Value_Net ; + net:coverAmrValue :value_John ; + net:hasNaming "John" ; + net:hasStructure "document-03" ; + net:hasValueLabel "John" . + +net:value_negative_blankNode a net:Value_Net ; + net:coverAmrValue :value_negative ; + net:hasNaming "negative" ; + net:hasStructure "document-03" ; + net:hasValueLabel "negative" . + +:AMR_Element a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Variable a owl:Class ; + rdfs:subClassOf :AMR_Element . + +net:Relation a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:action_play_p a net:Action_Net ; + net:composeFrom net:atomClass_movie_m, + net:atomProperty_play_p ; + net:coverBaseNode :leaf_play-01_p ; + net:coverNode :leaf_movie_m, + :leaf_play-01_p ; + net:hasActionName "play" ; + net:hasNaming "play" ; + net:hasStructure "document-03" ; + net:hasTargetNet net:atomClass_movie_m . + +:AMR_NonCore_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:AMR_Role a owl:Class ; + rdfs:subClassOf :AMR_Element . + +sys:Out_Structure a owl:Class ; + rdfs:label "Output Ontology Structure" . + +net:netProperty a owl:AnnotationProperty ; + rdfs:label "netProperty" . + +:AMR_Leaf a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_ObjectProperty a owl:ObjectProperty ; + rdfs:subPropertyOf owl:topObjectProperty . + +:AMR_Structure a owl:Class . + +cprm:configParamProperty a rdf:Property ; + rdfs:label "Config Parameter Property" . + +net:atomClass_movie_m a net:Atom_Class_Net ; + net:coverBaseNode :leaf_movie_m ; + net:coverNode :leaf_movie_m ; + net:hasClassName "movie" ; + net:hasNaming "movie" ; + net:hasStructure "document-03" . + +net:atomProperty_play_p a net:Atom_Property_Net ; + :role_ARG0 net:atomClass_person_p2, + net:individual_John_p2 ; + :role_ARG1 net:atomClass_movie_m ; + net:coverBaseNode :leaf_play-01_p ; + net:coverNode :leaf_play-01_p ; + net:hasNaming "play" ; + net:hasPropertyName "play" ; + net:hasPropertyName01 "playing" ; + net:hasPropertyName10 "play-by" ; + net:hasPropertyName12 "play-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "document-03" ; + net:isCoreRoleLinked "true" ; + net:targetArgumentNode :leaf_movie_m, + :leaf_person_p2 . + +rdf:Property a owl:Class . + +:AMR_Relation a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:leaf_allow-01_a a :AMR_Leaf ; + :edge_a_ARG1_p :leaf_play-01_p ; + :edge_a_polarity_negative :value_negative ; + :hasConcept :concept_allow-01 ; + :hasVariable :variable_a . + +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:leaf_movie_m a :AMR_Leaf ; + :hasConcept :concept_movie ; + :hasVariable :variable_m . + +:leaf_person_p2 a :AMR_Leaf ; + :edge_p2_name_John :value_John ; + :hasConcept :concept_person ; + :hasVariable :variable_p2 . + +net:Net a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:has_object a owl:AnnotationProperty ; + rdfs:label "relation" ; + rdfs:subPropertyOf net:netProperty . + +:AMR_Op_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:leaf_play-01_p a :AMR_Leaf ; + :edge_p_ARG0_p2 :leaf_person_p2 ; + :edge_p_ARG1_m :leaf_movie_m ; + :hasConcept :concept_play-01 ; + :hasVariable :variable_p . + +:AMR_AnnotationProperty a owl:AnnotationProperty . + +:AMR_Core_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:AMR_Linked_Data a owl:Class . + +net:objectValue a owl:AnnotationProperty ; + rdfs:label "valuations"@fr ; + rdfs:subPropertyOf net:objectProperty . + +[] a owl:AllDisjointClasses ; + owl:members ( sys:Degree sys:Entity sys:Feature ) . + diff --git a/tests/dev_tests/test_rule_odrl_generator.py b/tests/dev_tests/test_rule_odrl_generator.py index ed9d821eeab98fb7414d597e07395f12f5241b78..f2aa84517a881bf86ecf500cfac51ae78b9a7212 100644 --- a/tests/dev_tests/test_rule_odrl_generator.py +++ b/tests/dev_tests/test_rule_odrl_generator.py @@ -138,6 +138,8 @@ if __name__ == '__main__': print('\n *** Unit Test ***') test_rule_application(TEST_FILE_NAME_1, graph_1, rule.generate_odrl_rule) + test_rule_application(TEST_FILE_NAME_2, graph_2, rule.generate_odrl_rule) + test_rule_application(TEST_FILE_NAME_3, graph_3, rule.generate_odrl_rule) print('\n \n') print('\n *** - ***') \ No newline at end of file