diff --git a/tenet/scheme/amr_master_rule/__init__.py b/tenet/scheme/amr_master_rule/__init__.py index b0a57843aaa89647bbf4eff412693870337b65f3..9b920b5681e7489c56d20e092967e134a5e7b117 100644 --- a/tenet/scheme/amr_master_rule/__init__.py +++ b/tenet/scheme/amr_master_rule/__init__.py @@ -2,6 +2,9 @@ from scheme.amr_master_rule.nov_preprocessing.nov_amr_reification import * from scheme.amr_master_rule.nov_preprocessing.nov_amrld_correcting import * from scheme.amr_master_rule.preprocessing.amr_reification_1 import * from scheme.amr_master_rule.preprocessing.amr_reification_2 import * +from scheme.amr_master_rule.preprocessing.amr_reification_3 import * +from scheme.amr_master_rule.preprocessing.amr_reification_4 import * +from scheme.amr_master_rule.preprocessing.amr_reification_5 import * from scheme.amr_master_rule.transduction.extractor.atom_class_extractor import * from scheme.amr_master_rule.transduction.extractor.atom_individual_extractor import * diff --git a/tenet/scheme/amr_master_rule/preprocessing/amr_reification_2.py b/tenet/scheme/amr_master_rule/preprocessing/amr_reification_2.py index bb19ed88a5584794444517870261773f9d57420c..2e41327f235f43ee361cc4f9c0d8d369c2064cc8 100644 --- a/tenet/scheme/amr_master_rule/preprocessing/amr_reification_2.py +++ b/tenet/scheme/amr_master_rule/preprocessing/amr_reification_2.py @@ -5,7 +5,7 @@ # TENET: Rule to reify AMR element (from AMR-LK to AMR-RDF format) #------------------------------------------------------------------------------ # Reclassify LK concept to AMR Predicat concept for concept (1) corresponding -# to a predicat (ns3 concept) and (1) not corresponding to a phenomena. +# to a predicat (ns3 concept) and (2) not corresponding to a relation. #============================================================================== from rdflib import Graph diff --git a/tenet/scheme/amr_master_rule/preprocessing/amr_reification_3.py b/tenet/scheme/amr_master_rule/preprocessing/amr_reification_3.py new file mode 100644 index 0000000000000000000000000000000000000000..da5d41e6c0983ce05b058d7f80345e1e2548109d --- /dev/null +++ b/tenet/scheme/amr_master_rule/preprocessing/amr_reification_3.py @@ -0,0 +1,88 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Rule to reify AMR element (from AMR-LK to AMR-RDF format) +#------------------------------------------------------------------------------ +# Reclassify LK concept to AMR Predicat concept for concept (1) corresponding +# to a frame and (2) not corresponding to a relation. +#============================================================================== + +from rdflib import Graph + +import transduction +from transduction import net +from transduction.query_builder import generate_select_query +from transduction.rdfterm_computer import ( produce_uriref, produce_literal ) + + +#============================================================================== +# Pattern Search: leaf{variable, concept} +#============================================================================== + +def __search_pattern(graph): + select_data_list = ['?amrlk_concept', '?label_1', '?label_2'] + clause_list = [f'?amrlk_concept a ns3:Frame.', + f'FILTER NOT EXISTS {{ ?amrC rdfs:subClassOf amr:AMR_Relation_Concept ; amr:fromAmrLk ?amrlk_concept.}}', + f'BIND (strafter(str(?amrlk_concept), str(ns1:)) AS ?label_1).', + f'BIND (strafter(str(?amrlk_concept), "#") AS ?label_2).', + f'FILTER NOT EXISTS {{ ?amrlk_concept rdfs:comment "bug". }}'] + query_code = generate_select_query(graph, select_data_list, clause_list) + result_set = graph.query(query_code) + return query_code, result_set + + + +#============================================================================== +# Construct Method(s) +#============================================================================== + +def __reclassify_as_amr_predicat_concept( + graph, amrlk_concept, label_1, label_2): + + triple_list = [] + + label = label_1 if len(label_1) > 0 else label_2 + new_concept_uri = produce_uriref(graph, f'amr_concept_{label}') + + # -- New concept + relation = produce_uriref(graph, 'rdfs:subClassOf') + value = produce_uriref(graph, 'amr:AMR_Predicat_Concept') + triple_list.append((new_concept_uri, relation, value)) + + # -- Label + relation = produce_uriref(graph, 'amr:label') + triple_list.append((new_concept_uri, relation, label)) + + # -- AMR-LK trace + relation = produce_uriref(graph, 'amr:fromAmrLk') + triple_list.append((new_concept_uri, relation, amrlk_concept)) + + # -- Classification of the original concept as LinkedData (for tracing) + relation = produce_uriref(graph, 'rdfs:subClassOf') + value = produce_uriref(graph, 'amr:AMR_Linked_Data') + triple_list.append((amrlk_concept, relation, value)) + + return triple_list + + + +#============================================================================== +# Main Method +#============================================================================== + +def reclassify_concept_3(graph): + + # -- Rule Initialization + rule_label = 'reclassify AMR-LD concept (3)' + + # -- Search for patterns + _, pattern_set = __search_pattern(graph) + + # -- Selection Analyzing (1) + rule_triple_list = [] + for pattern in pattern_set: + rule_triple_list += __reclassify_as_amr_predicat_concept( + graph, pattern.amrlk_concept, pattern.label_1, pattern.label_2) + + return rule_label, rule_triple_list \ No newline at end of file diff --git a/tenet/scheme/amr_master_rule/preprocessing/amr_reification_4.py b/tenet/scheme/amr_master_rule/preprocessing/amr_reification_4.py new file mode 100644 index 0000000000000000000000000000000000000000..76dc292e431aade0950776a461b3acf7a31985ec --- /dev/null +++ b/tenet/scheme/amr_master_rule/preprocessing/amr_reification_4.py @@ -0,0 +1,91 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Rule to reify AMR element (from AMR-LK to AMR-RDF format) +#------------------------------------------------------------------------------ +# Reclassify LK concept to AMR Term concept for concept (1) corresponding +# to a term (ns2 concept) and (1) not corresponding to a relation. +#============================================================================== + +from rdflib import Graph + +import transduction +from transduction import net +from transduction.query_builder import generate_select_query +from transduction.rdfterm_computer import ( produce_uriref, produce_literal ) + + +#============================================================================== +# Pattern Search: leaf{variable, concept} +#============================================================================== + +def __search_pattern(graph): + select_data_list = ['?amrlk_concept', '?label_1', '?label_2'] + clause_list = [f'?amrlk_concept a ns3:Concept.', + f'FILTER ( CONTAINS(str(?amrlk_concept), str(ns2:)) ).', + f'FILTER ( ?amrlk_concept != ns3:Frame ).', + f'FILTER ( ?amrlk_concept != ns3:NamedEntity ).', + f'FILTER NOT EXISTS {{ ?amrC rdfs:subClassOf amr:AMR_Relation_Concept ; amr:fromAmrLk ?amrlk_concept.}}', + f'BIND (strafter(str(?amrlk_concept), str(ns1:)) AS ?label_1).', + f'BIND (strafter(str(?amrlk_concept), "#") AS ?label_2).', + f'FILTER NOT EXISTS {{ ?amrlk_concept rdfs:comment "bug". }}'] + query_code = generate_select_query(graph, select_data_list, clause_list) + result_set = graph.query(query_code) + return query_code, result_set + + + +#============================================================================== +# Construct Method(s) +#============================================================================== + +def __reclassify_as_amr_term_concept( + graph, amrlk_concept, label_1, label_2): + + triple_list = [] + + label = label_1 if len(label_1) > 0 else label_2 + new_concept_uri = produce_uriref(graph, f'amr_concept_{label}') + + # -- New concept + relation = produce_uriref(graph, 'rdfs:subClassOf') + value = produce_uriref(graph, 'amr:AMR_Term_Concept') + triple_list.append((new_concept_uri, relation, value)) + + # -- Label + relation = produce_uriref(graph, 'amr:label') + triple_list.append((new_concept_uri, relation, label)) + + # -- AMR-LK trace + relation = produce_uriref(graph, 'amr:fromAmrLk') + triple_list.append((new_concept_uri, relation, amrlk_concept)) + + # -- Classification of the original concept as LinkedData (for tracing) + relation = produce_uriref(graph, 'rdfs:subClassOf') + value = produce_uriref(graph, 'amr:AMR_Linked_Data') + triple_list.append((amrlk_concept, relation, value)) + + return triple_list + + + +#============================================================================== +# Main Method +#============================================================================== + +def reclassify_concept_4(graph): + + # -- Rule Initialization + rule_label = 'reclassify AMR-LD concept (4)' + + # -- Search for patterns + _, pattern_set = __search_pattern(graph) + + # -- Selection Analyzing (1) + rule_triple_list = [] + for pattern in pattern_set: + rule_triple_list += __reclassify_as_amr_term_concept( + graph, pattern.amrlk_concept, pattern.label_1, pattern.label_2) + + return rule_label, rule_triple_list \ No newline at end of file diff --git a/tenet/scheme/amr_master_rule/preprocessing/amr_reification_5.py b/tenet/scheme/amr_master_rule/preprocessing/amr_reification_5.py new file mode 100644 index 0000000000000000000000000000000000000000..40459d2d240599b056c57b1db4e2639527121b8a --- /dev/null +++ b/tenet/scheme/amr_master_rule/preprocessing/amr_reification_5.py @@ -0,0 +1,88 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Rule to reify AMR element (from AMR-LK to AMR-RDF format) +#------------------------------------------------------------------------------ +# Reclassify LK concept to AMR Predicat concept for concept (1) corresponding +# to a named entity and (1) not corresponding to a relation. +#============================================================================== + +from rdflib import Graph + +import transduction +from transduction import net +from transduction.query_builder import generate_select_query +from transduction.rdfterm_computer import ( produce_uriref, produce_literal ) + + +#============================================================================== +# Pattern Search: leaf{variable, concept} +#============================================================================== + +def __search_pattern(graph): + select_data_list = ['?amrlk_concept', '?label_1', '?label_2'] + clause_list = [f'?amrlk_concept a ns3:NamedEntity.', + f'FILTER NOT EXISTS {{ ?amrC rdfs:subClassOf amr:AMR_Relation_Concept ; amr:fromAmrLk ?amrlk_concept.}}', + f'BIND (strafter(str(?amrlk_concept), str(ns1:)) AS ?label_1).', + f'BIND (strafter(str(?amrlk_concept), "#") AS ?label_2).', + f'FILTER NOT EXISTS {{ ?amrlk_concept rdfs:comment "bug". }}'] + query_code = generate_select_query(graph, select_data_list, clause_list) + result_set = graph.query(query_code) + return query_code, result_set + + + +#============================================================================== +# Construct Method(s) +#============================================================================== + +def __reclassify_as_amr_term_concept( + graph, amrlk_concept, label_1, label_2): + + triple_list = [] + + label = label_1 if len(label_1) > 0 else label_2 + new_concept_uri = produce_uriref(graph, f'amr_concept_{label}') + + # -- New concept + relation = produce_uriref(graph, 'rdfs:subClassOf') + value = produce_uriref(graph, 'amr:AMR_Term_Concept') + triple_list.append((new_concept_uri, relation, value)) + + # -- Label + relation = produce_uriref(graph, 'amr:label') + triple_list.append((new_concept_uri, relation, label)) + + # -- AMR-LK trace + relation = produce_uriref(graph, 'amr:fromAmrLk') + triple_list.append((new_concept_uri, relation, amrlk_concept)) + + # -- Classification of the original concept as LinkedData (for tracing) + relation = produce_uriref(graph, 'rdfs:subClassOf') + value = produce_uriref(graph, 'amr:AMR_Linked_Data') + triple_list.append((amrlk_concept, relation, value)) + + return triple_list + + + +#============================================================================== +# Main Method +#============================================================================== + +def reclassify_concept_5(graph): + + # -- Rule Initialization + rule_label = 'reclassify AMR-LD concept (5)' + + # -- Search for patterns + _, pattern_set = __search_pattern(graph) + + # -- Selection Analyzing (1) + rule_triple_list = [] + for pattern in pattern_set: + rule_triple_list += __reclassify_as_amr_term_concept( + graph, pattern.amrlk_concept, pattern.label_1, pattern.label_2) + + return rule_label, rule_triple_list \ No newline at end of file diff --git a/tenet/scheme/owl_amr_scheme_1.py b/tenet/scheme/owl_amr_scheme_1.py index 90794623196b3c7ad0c4dae07ec6c81a7bd53cf2..9083ed3a7dc4071aa29108e989ad6ccf5be441cb 100644 --- a/tenet/scheme/owl_amr_scheme_1.py +++ b/tenet/scheme/owl_amr_scheme_1.py @@ -70,9 +70,9 @@ nov_amr_reification_sequence = { 'comment': 'AMR reification from AMR-Linked-Data to AMR (tenet) structure', 'rule_key_list': [#'reclassify-concept-1', #'reclassify-concept-2', - 'reclassify-concept-3', - 'reclassify-concept-4', - 'reclassify-concept-5', + #'reclassify-concept-3', + #'reclassify-concept-4', + #'reclassify-concept-5', 'reify-roles-as-concept', 'reclassify-existing-variable', 'add-new-variable-for-reified-concept', @@ -90,6 +90,9 @@ nov_amr_reification_sequence = { amr_reification_sequence = ['AMR reification from AMR-Linked-Data to AMR (tenet) structure', rule.reclassify_concept_1, rule.reclassify_concept_2, + rule.reclassify_concept_3, + rule.reclassify_concept_4, + rule.reclassify_concept_5, ] # --------------------------------------------- diff --git a/tenet/tenet.log b/tenet/tenet.log index 7ebd6f79a744099a1dcf8f7497c3a692f8260388..49db2f215302728ea266f04be476133fcf0db5bb 100644 --- a/tenet/tenet.log +++ b/tenet/tenet.log @@ -2,19 +2,19 @@ - INFO - === Process Initialization === - INFO - -- Process Setting -- INFO - ----- Corpus source: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_data/amrDocuments/dev/solar-system-02/ (amr) -- INFO - ----- Base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev02-20230612/SolarSystemDev02_factoid.ttl -- INFO - ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev02-20230612/technical-data/ -- INFO - ----- Ontology target (id): https://tenet.tetras-libre.fr/demo/02/ +- INFO - ----- Corpus source: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_data/amrDocuments/dev/solar-system-01/ (amr) +- INFO - ----- Base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/SolarSystemDev01_factoid.ttl +- INFO - ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/ +- INFO - ----- Ontology target (id): https://tenet.tetras-libre.fr/demo/01/ - INFO - ----- Current path: /home/lamenji/Workspace/Tetras/tenet/tenet - DEBUG - ----- Config file: /home/lamenji/Workspace/Tetras/tenet/tenet/owl_amr_config.xml - DEBUG - *** Config (Full Parameters) *** -- Base Parameters ----- config file: /home/lamenji/Workspace/Tetras/tenet/tenet/owl_amr_config.xml - ----- uuid: https://tenet.tetras-libre.fr/demo/02/ - ----- technical base name: tenet.tetras-libre.fr_demo_02 - ----- source corpus: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_data/amrDocuments/dev/solar-system-02/ + ----- uuid: https://tenet.tetras-libre.fr/demo/01/ + ----- technical base name: tenet.tetras-libre.fr_demo_01 + ----- source corpus: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_data/amrDocuments/dev/solar-system-01/ ----- target reference: base ----- process level: sentence ----- source type: amr @@ -25,10 +25,10 @@ ----- CTS directory: ./scheme/ ----- target frame directory: ./../input/targetFrameStructure/ ----- input document directory: - ----- base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev02-20230612/SolarSystemDev02_factoid.ttl - ----- output directory: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev02-20230612/SolarSystemDev02_factoid.ttltenet.tetras-libre.fr_demo_02-20230612/ - ----- sentence output directory: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev02-20230612/technical-data/ - ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev02-20230612/technical-data/ + ----- base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/SolarSystemDev01_factoid.ttl + ----- output directory: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/SolarSystemDev01_factoid.ttltenet.tetras-libre.fr_demo_01-20230612/ + ----- sentence output directory: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/ + ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/ -- Config File Definition ----- schema file: ./structure/amr-rdf-schema.ttl ----- semantic net file: ./structure/owl-snet-schema.ttl @@ -40,13 +40,13 @@ ----- ontology suffix: -ontology.ttl ----- ontology seed suffix: -ontology-seed.ttl -- Source File Definition - ----- source sentence file: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_data/amrDocuments/dev/solar-system-02/**/*.ttl + ----- source sentence file: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_data/amrDocuments/dev/solar-system-01/**/*.ttl -- Target File Definition ----- frame ontology file: ./../input/targetFrameStructure/base-ontology.ttl ----- frame ontology seed file: ./../input/targetFrameStructure/base-ontology-seed.ttl -- Output ----- ontology namespace: https://tenet.tetras-libre.fr/base-ontology/ - ----- output file: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev02-20230612/technical-data/tenet.tetras-libre.fr_demo_02.ttl + ----- output file: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01.ttl *** - *** - DEBUG - -- Counting number of graph files (sentences) - INFO - ----- Number of Graphs: 1 @@ -63,111 +63,111 @@ - DEBUG - -------- Base Ontology produced as output (550) - DEBUG - --- Source Data Import - DEBUG - ----- Sentence Loading -- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_data/amrDocuments/dev/solar-system-02/SSC-02-01.stog.amr.ttl (625) +- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_data/amrDocuments/dev/solar-system-01/SSC-01-01.stog.amr.ttl (598) - DEBUG - --- Export work graph as turtle -- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev02-20230612/technical-data/tenet.tetras-libre.fr_demo_02-1/tenet.tetras-libre.fr_demo_02.ttl -- INFO - ----- Sentence (id): SSC-02-01 -- INFO - ----- Sentence (text): Of the objects that orbit the Sun directly, the largest are the eight planets, with the remainder being smaller objects, the dwarf planets and small Solar System bodies. +- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01.ttl +- INFO - ----- Sentence (id): SSC-01-01 +- INFO - ----- Sentence (text): The Solar System is the gravitationally bound system of the Sun and the objects that orbit it, either directly or indirectly. - INFO - -- Loading Extraction Scheme (owl_amr_scheme_1) - DEBUG - ----- Step number: 3 - INFO - -- Loading Extraction Rules (amr_master_rule/*) - DEBUG - ----- Total rule number: 18 - INFO - -- Step 1: Preprocessing - INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence -- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (625, 0:00:00.029192) +- INFO - ----- fix-amr-bug-about-system-solar-planet: 5/5 new triples (603, 0:00:00.026848) - INFO - --- Sequence: AMR reification from AMR-Linked-Data to AMR (tenet) structure -- INFO - ----- reclassify AMR-LD concept (1): 10/10 new triples (635, 0:00:00.120178) -- INFO - ----- reclassify AMR-LD concept (2): 8/8 new triples (643, 0:00:00.043660) +- INFO - ----- reclassify AMR-LD concept (1): 10/10 new triples (613, 0:00:00.138673) +- DEBUG - ----- reclassify AMR-LD concept (2): 0/0 new triple (613, 0:00:00.053387) +- INFO - ----- reclassify AMR-LD concept (3): 12/12 new triples (625, 0:00:00.029790) +- INFO - ----- reclassify AMR-LD concept (4): 16/16 new triples (641, 0:00:00.043900) +- INFO - ----- reclassify AMR-LD concept (5): 2/4 new triples (643, 0:00:00.021237) - INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- INFO - ----- reclassify-concept-2: 6/8 new triples (649, 0:00:00.065618) -- INFO - ----- reclassify-concept-3: 12/12 new triples (661, 0:00:00.057086) -- INFO - ----- reclassify-concept-4: 28/28 new triples (689, 0:00:00.061893) -- INFO - ----- reclassify-concept-5: 4/4 new triples (693, 0:00:00.049025) -- INFO - ----- reify-roles-as-concept: 5/5 new triples (698, 0:00:00.049063) -- INFO - ----- reclassify-existing-variable: 81/81 new triples (779, 0:00:00.044992) -- INFO - ----- add-new-variable-for-reified-concept: 4/4 new triples (783, 0:00:00.076470) -- INFO - ----- add-amr-leaf-for-reclassified-concept: 62/62 new triples (845, 0:00:00.091391) -- INFO - ----- add-amr-leaf-for-reified-concept: 4/4 new triples (849, 0:00:00.053341) -- INFO - ----- add-amr-edge-for-core-relation: 54/54 new triples (903, 0:00:00.161844) -- INFO - ----- add-amr-edge-for-reified-concept: 6/6 new triples (909, 0:00:00.169363) -- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (914, 0:00:00.072224) -- INFO - ----- add-value-for-quant-relation: 5/5 new triples (919, 0:00:00.082550) -- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (919, 0:00:00.158482) -- INFO - ----- update-amr-edge-role-1: 22/22 new triples (941, 0:00:00.112555) -- INFO - ----- add-amr-root: 5/5 new triples (946, 0:00:00.025550) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_02_Preprocessing +- INFO - ----- reclassify-concept-5: 3/4 new triples (646, 0:00:00.054250) +- INFO - ----- reify-roles-as-concept: 10/10 new triples (656, 0:00:00.079084) +- INFO - ----- reclassify-existing-variable: 45/45 new triples (701, 0:00:00.045600) +- INFO - ----- add-new-variable-for-reified-concept: 8/8 new triples (709, 0:00:00.078322) +- INFO - ----- add-amr-leaf-for-reclassified-concept: 34/34 new triples (743, 0:00:00.071509) +- INFO - ----- add-amr-leaf-for-reified-concept: 8/8 new triples (751, 0:00:00.047228) +- INFO - ----- add-amr-edge-for-core-relation: 27/27 new triples (778, 0:00:00.159779) +- INFO - ----- add-amr-edge-for-reified-concept: 12/12 new triples (790, 0:00:00.132285) +- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (795, 0:00:00.071683) +- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (795, 0:00:00.078705) +- INFO - ----- add-amr-edge-for-polarity-relation: 5/5 new triples (800, 0:00:00.071751) +- INFO - ----- update-amr-edge-role-1: 15/15 new triples (815, 0:00:00.085121) +- INFO - ----- add-amr-root: 5/5 new triples (820, 0:00:00.026061) +- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_01_Preprocessing - DEBUG - ----- step: Preprocessing -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/02/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev02-20230612/technical-data/tenet.tetras-libre.fr_demo_02-1/tenet.tetras-libre.fr_demo_02_Preprocessing.ttl -- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/02//Preprocessing -- INFO - ----- 321 triples extracted during Preprocessing step +- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/01/ +- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Preprocessing.ttl +- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/01//Preprocessing +- INFO - ----- 222 triples extracted during Preprocessing step - INFO - -- Step 2: Transduction - INFO - --- Sequence: atomic extraction sequence -- INFO - ----- extract atom classes: 66/66 new triples (1012, 0:00:00.302259) -- INFO - ----- extract atom individuals: 8/8 new triples (1020, 0:00:00.048665) -- INFO - ----- extract atomic properties: 72/94 new triples (1092, 0:00:00.293918) -- INFO - ----- extract atom values: 10/10 new triples (1102, 0:00:00.058388) -- INFO - ----- extract atom phenomena: 28/28 new triples (1130, 0:00:00.124475) -- INFO - ----- propagate atom relations: 35/96 new triples (1165, 0:00:01.716416) +- INFO - ----- extract atom classes: 30/36 new triples (850, 0:00:00.225179) +- INFO - ----- extract atom individuals: 8/16 new triples (858, 0:00:00.073329) +- INFO - ----- extract atomic properties: 75/75 new triples (933, 0:00:00.252399) +- INFO - ----- extract atom values: 10/10 new triples (943, 0:00:00.074505) +- INFO - ----- extract atom phenomena: 14/14 new triples (957, 0:00:00.100375) +- INFO - ----- propagate atom relations: 24/68 new triples (981, 0:00:01.095455) - INFO - --- Sequence: classification sequence (1) -- DEBUG - ----- classify modality phenomena: 0/0 new triple (1165, 0:00:00.015857) -- INFO - ----- reclassify argument property to class: 11/14 new triples (1176, 0:00:00.057929) +- DEBUG - ----- classify modality phenomena: 0/0 new triple (981, 0:00:00.022978) +- INFO - ----- reclassify argument property to class: 11/14 new triples (992, 0:00:00.060115) - INFO - --- Sequence: phenomena analyze sequence (1) -- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (1176, 0:00:00.006837) -- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (1176, 0:00:00.010586) -- DEBUG - ----- analyze "polarity" phenomena (3): 0/0 new triple (1176, 0:00:00.010290) -- DEBUG - ----- analyze "polarity" phenomena (4): 0/0 new triple (1176, 0:00:00.028715) -- DEBUG - ----- analyze "polarity" phenomena (5): 0/0 new triple (1176, 0:00:00.030339) -- INFO - ----- analyze modifier phenomena (mod): 43/50 new triples (1219, 0:00:00.133075) -- DEBUG - ----- classify modality phenomena: 0/0 new triple (1219, 0:00:00.016579) +- INFO - ----- analyze "polarity" phenomena (1): 32/36 new triples (1024, 0:00:00.096553) +- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (1024, 0:00:00.013606) +- DEBUG - ----- analyze "polarity" phenomena (3): 0/0 new triple (1024, 0:00:00.017764) +- DEBUG - ----- analyze "polarity" phenomena (4): 0/0 new triple (1024, 0:00:00.032766) +- DEBUG - ----- analyze "polarity" phenomena (5): 0/0 new triple (1024, 0:00:00.028280) +- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (1024, 0:00:00.007924) +- DEBUG - ----- classify modality phenomena: 0/0 new triple (1024, 0:00:00.017540) - INFO - --- Sequence: phenomena analyze sequence (2) -- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (1219, 0:00:00.010112) -- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (1219, 0:00:00.011522) -- INFO - ----- analyze "and" phenomena (1): 5/50 new triples (1224, 0:00:00.116121) -- DEBUG - ----- analyze "and" phenomena (2): 0/0 new triple (1224, 0:00:00.009635) +- INFO - ----- analyze "or" phenomena (1): 1/1 new triple (1025, 0:00:00.070616) +- INFO - ----- analyze "or" phenomena (2): 55/82 new triples (1080, 0:00:00.257929) +- INFO - ----- analyze "and" phenomena (1): 2/14 new triples (1082, 0:00:00.134741) +- DEBUG - ----- analyze "and" phenomena (2): 0/0 new triple (1082, 0:00:00.011266) - INFO - --- Sequence: composite class extraction sequence -- DEBUG - ----- extract composite classes (1): 0/0 new triple (1224, 0:00:00.030878) -- DEBUG - ----- extract composite classes (2): 0/0 new triple (1224, 0:00:00.021832) +- INFO - ----- extract composite classes (1): 127/138 new triples (1209, 0:00:00.467033) +- DEBUG - ----- extract composite classes (2): 0/0 new triple (1209, 0:00:00.026415) - INFO - --- Sequence: classification sequence (2) -- INFO - ----- classify class net as entity from core arguments: 24/132 new triples (1248, 0:00:00.261584) -- DEBUG - ----- classify class net as entity from :part relation: 0/0 new triple (1248, 0:00:00.009631) -- DEBUG - ----- classify class net as entity from degree arguments: 0/0 new triple (1248, 0:00:00.021534) -- DEBUG - ----- Associate mother to class net from :domain relation: 0/0 new triple (1248, 0:00:00.008316) -- DEBUG - ----- Propagate individuals to net with same base node: 0/16 new triple (1248, 0:00:00.085522) -- DEBUG - ----- Propagate individuals to net with domain link: 0/0 new triple (1248, 0:00:00.009092) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_02_Transduction +- INFO - ----- classify class net as entity from core arguments: 10/181 new triples (1219, 0:00:00.276268) +- DEBUG - ----- classify class net as entity from :part relation: 0/0 new triple (1219, 0:00:00.008877) +- DEBUG - ----- classify class net as entity from degree arguments: 0/0 new triple (1219, 0:00:00.014992) +- INFO - ----- Associate mother to class net from :domain relation: 5/34 new triples (1224, 0:00:00.076707) +- DEBUG - ----- Propagate individuals to net with same base node: 0/10 new triple (1224, 0:00:00.024768) +- INFO - ----- Propagate individuals to net with domain link: 3/60 new triples (1227, 0:00:00.111990) +- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_01_Transduction - DEBUG - ----- step: Transduction -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/02/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev02-20230612/technical-data/tenet.tetras-libre.fr_demo_02-1/tenet.tetras-libre.fr_demo_02_Transduction.ttl -- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/02//Transduction -- INFO - ----- 302 triples extracted during Transduction step +- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/01/ +- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Transduction.ttl +- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/01//Transduction +- INFO - ----- 407 triples extracted during Transduction step - INFO - -- Step 3: Generation - INFO - --- Sequence: OWL Generation Sequence -- INFO - ----- generate OWL class: 39/50 new triples (1287, 0:00:00.461895) -- INFO - ----- generate OWL property: 20/20 new triples (1307, 0:00:00.175641) -- INFO - ----- generate OWL individual: 8/12 new triples (1315, 0:00:00.115257) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_02_Generation +- INFO - ----- generate OWL class: 52/55 new triples (1279, 0:00:00.595017) +- INFO - ----- generate OWL property: 29/29 new triples (1308, 0:00:00.233815) +- INFO - ----- generate OWL individual: 6/7 new triples (1314, 0:00:00.061774) +- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_01_Generation - DEBUG - ----- step: Generation -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/02/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev02-20230612/technical-data/tenet.tetras-libre.fr_demo_02-1/tenet.tetras-libre.fr_demo_02_Generation.ttl -- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/02//Generation -- INFO - ----- 67 triples extracted during Generation step -- DEBUG - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev02-20230612/technical-data/tenet.tetras-libre.fr_demo_02-1/tenet.tetras-libre.fr_demo_02_factoid.ttl) -- DEBUG - ----- Number of factoids: 82 -- DEBUG - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/02//factoid +- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/01/ +- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Generation.ttl +- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/01//Generation +- INFO - ----- 87 triples extracted during Generation step +- DEBUG - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_factoid.ttl) +- DEBUG - ----- Number of factoids: 91 +- DEBUG - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/01//factoid - INFO - === Final Ontology Generation === - INFO - -- Making complete factoid graph by merging the result factoids -- INFO - ----- Total factoid number: 82 +- INFO - ----- Total factoid number: 91 - INFO - -- Serializing graph to factoid string -- INFO - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/02//factoid +- INFO - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/01//factoid - INFO - -- Serializing graph to factoid file -- INFO - ----- Ontology Turtle File: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev02-20230612/SolarSystemDev02_factoid.ttl +- INFO - ----- Ontology Turtle File: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/SolarSystemDev01_factoid.ttl - INFO - === Done === - INFO - *** Execution Time *** ----- Function: create_ontology_from_amrld_dir (tenet.main) ------ Total Time: 0:00:06.227962 ------ Process Time: 0:00:06.189664 +----- Total Time: 0:00:06.376937 +----- Process Time: 0:00:06.341222 *** - *** diff --git a/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.log b/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.log index ad8f6690398a78a22d4c6919b9894494faa0868a..9db5c0afe4ec0588d3c821bd7c49bc6017ceff0f 100644 --- a/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.log +++ b/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.log @@ -74,66 +74,67 @@ - DEBUG - ----- Total rule number: 18 - INFO - -- Step 1: Preprocessing - INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence -- INFO - ----- fix-amr-bug-about-system-solar-planet: 5/5 new triples (603, 0:00:00.025399) +- INFO - ----- fix-amr-bug-about-system-solar-planet: 5/5 new triples (603, 0:00:00.026848) - INFO - --- Sequence: AMR reification from AMR-Linked-Data to AMR (tenet) structure -- INFO - ----- reclassify AMR-LD concept (1): 10/10 new triples (613, 0:00:00.129054) -- DEBUG - ----- reclassify AMR-LD concept (2): 0/0 new triple (613, 0:00:00.048767) +- INFO - ----- reclassify AMR-LD concept (1): 10/10 new triples (613, 0:00:00.138673) +- DEBUG - ----- reclassify AMR-LD concept (2): 0/0 new triple (613, 0:00:00.053387) +- INFO - ----- reclassify AMR-LD concept (3): 12/12 new triples (625, 0:00:00.029790) +- INFO - ----- reclassify AMR-LD concept (4): 16/16 new triples (641, 0:00:00.043900) +- INFO - ----- reclassify AMR-LD concept (5): 2/4 new triples (643, 0:00:00.021237) - INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- INFO - ----- reclassify-concept-3: 12/12 new triples (625, 0:00:00.055019) -- INFO - ----- reclassify-concept-4: 16/16 new triples (641, 0:00:00.064418) -- INFO - ----- reclassify-concept-5: 2/4 new triples (643, 0:00:00.060855) -- INFO - ----- reify-roles-as-concept: 10/10 new triples (653, 0:00:00.048290) -- INFO - ----- reclassify-existing-variable: 45/45 new triples (698, 0:00:00.034334) -- INFO - ----- add-new-variable-for-reified-concept: 8/8 new triples (706, 0:00:00.050949) -- INFO - ----- add-amr-leaf-for-reclassified-concept: 33/33 new triples (739, 0:00:00.065862) -- INFO - ----- add-amr-leaf-for-reified-concept: 8/8 new triples (747, 0:00:00.030542) -- INFO - ----- add-amr-edge-for-core-relation: 27/27 new triples (774, 0:00:00.110319) -- INFO - ----- add-amr-edge-for-reified-concept: 12/12 new triples (786, 0:00:00.139988) -- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (791, 0:00:00.123803) -- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (791, 0:00:00.120564) -- INFO - ----- add-amr-edge-for-polarity-relation: 5/5 new triples (796, 0:00:00.133698) -- INFO - ----- update-amr-edge-role-1: 15/15 new triples (811, 0:00:00.113684) -- INFO - ----- add-amr-root: 5/5 new triples (816, 0:00:00.027011) +- INFO - ----- reclassify-concept-5: 3/4 new triples (646, 0:00:00.054250) +- INFO - ----- reify-roles-as-concept: 10/10 new triples (656, 0:00:00.079084) +- INFO - ----- reclassify-existing-variable: 45/45 new triples (701, 0:00:00.045600) +- INFO - ----- add-new-variable-for-reified-concept: 8/8 new triples (709, 0:00:00.078322) +- INFO - ----- add-amr-leaf-for-reclassified-concept: 34/34 new triples (743, 0:00:00.071509) +- INFO - ----- add-amr-leaf-for-reified-concept: 8/8 new triples (751, 0:00:00.047228) +- INFO - ----- add-amr-edge-for-core-relation: 27/27 new triples (778, 0:00:00.159779) +- INFO - ----- add-amr-edge-for-reified-concept: 12/12 new triples (790, 0:00:00.132285) +- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (795, 0:00:00.071683) +- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (795, 0:00:00.078705) +- INFO - ----- add-amr-edge-for-polarity-relation: 5/5 new triples (800, 0:00:00.071751) +- INFO - ----- update-amr-edge-role-1: 15/15 new triples (815, 0:00:00.085121) +- INFO - ----- add-amr-root: 5/5 new triples (820, 0:00:00.026061) - DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_01_Preprocessing - DEBUG - ----- step: Preprocessing - DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/01/ - DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Preprocessing.ttl - DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/01//Preprocessing -- INFO - ----- 218 triples extracted during Preprocessing step +- INFO - ----- 222 triples extracted during Preprocessing step - INFO - -- Step 2: Transduction - INFO - --- Sequence: atomic extraction sequence -- INFO - ----- extract atom classes: 30/30 new triples (846, 0:00:00.143849) -- INFO - ----- extract atom individuals: 8/8 new triples (854, 0:00:00.050459) -- INFO - ----- extract atomic properties: 75/75 new triples (929, 0:00:00.242292) -- INFO - ----- extract atom values: 10/10 new triples (939, 0:00:00.055789) -- INFO - ----- extract atom phenomena: 14/14 new triples (953, 0:00:00.060948) -- INFO - ----- propagate atom relations: 24/68 new triples (977, 0:00:01.098046) +- INFO - ----- extract atom classes: 30/36 new triples (850, 0:00:00.225179) +- INFO - ----- extract atom individuals: 8/16 new triples (858, 0:00:00.073329) +- INFO - ----- extract atomic properties: 75/75 new triples (933, 0:00:00.252399) +- INFO - ----- extract atom values: 10/10 new triples (943, 0:00:00.074505) +- INFO - ----- extract atom phenomena: 14/14 new triples (957, 0:00:00.100375) +- INFO - ----- propagate atom relations: 24/68 new triples (981, 0:00:01.095455) - INFO - --- Sequence: classification sequence (1) -- DEBUG - ----- classify modality phenomena: 0/0 new triple (977, 0:00:00.034256) -- INFO - ----- reclassify argument property to class: 11/14 new triples (988, 0:00:00.147495) +- DEBUG - ----- classify modality phenomena: 0/0 new triple (981, 0:00:00.022978) +- INFO - ----- reclassify argument property to class: 11/14 new triples (992, 0:00:00.060115) - INFO - --- Sequence: phenomena analyze sequence (1) -- INFO - ----- analyze "polarity" phenomena (1): 32/36 new triples (1020, 0:00:00.098623) -- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (1020, 0:00:00.010472) -- DEBUG - ----- analyze "polarity" phenomena (3): 0/0 new triple (1020, 0:00:00.012124) -- DEBUG - ----- analyze "polarity" phenomena (4): 0/0 new triple (1020, 0:00:00.026822) -- DEBUG - ----- analyze "polarity" phenomena (5): 0/0 new triple (1020, 0:00:00.026149) -- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (1020, 0:00:00.006434) -- DEBUG - ----- classify modality phenomena: 0/0 new triple (1020, 0:00:00.016282) +- INFO - ----- analyze "polarity" phenomena (1): 32/36 new triples (1024, 0:00:00.096553) +- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (1024, 0:00:00.013606) +- DEBUG - ----- analyze "polarity" phenomena (3): 0/0 new triple (1024, 0:00:00.017764) +- DEBUG - ----- analyze "polarity" phenomena (4): 0/0 new triple (1024, 0:00:00.032766) +- DEBUG - ----- analyze "polarity" phenomena (5): 0/0 new triple (1024, 0:00:00.028280) +- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (1024, 0:00:00.007924) +- DEBUG - ----- classify modality phenomena: 0/0 new triple (1024, 0:00:00.017540) - INFO - --- Sequence: phenomena analyze sequence (2) -- INFO - ----- analyze "or" phenomena (1): 1/1 new triple (1021, 0:00:00.057233) -- INFO - ----- analyze "or" phenomena (2): 55/82 new triples (1076, 0:00:00.210168) -- INFO - ----- analyze "and" phenomena (1): 2/14 new triples (1078, 0:00:00.107785) -- DEBUG - ----- analyze "and" phenomena (2): 0/0 new triple (1078, 0:00:00.015039) +- INFO - ----- analyze "or" phenomena (1): 1/1 new triple (1025, 0:00:00.070616) +- INFO - ----- analyze "or" phenomena (2): 55/82 new triples (1080, 0:00:00.257929) +- INFO - ----- analyze "and" phenomena (1): 2/14 new triples (1082, 0:00:00.134741) +- DEBUG - ----- analyze "and" phenomena (2): 0/0 new triple (1082, 0:00:00.011266) - INFO - --- Sequence: composite class extraction sequence -- INFO - ----- extract composite classes (1): 127/138 new triples (1205, 0:00:00.447719) -- DEBUG - ----- extract composite classes (2): 0/0 new triple (1205, 0:00:00.023385) +- INFO - ----- extract composite classes (1): 127/138 new triples (1209, 0:00:00.467033) +- DEBUG - ----- extract composite classes (2): 0/0 new triple (1209, 0:00:00.026415) - INFO - --- Sequence: classification sequence (2) -- INFO - ----- classify class net as entity from core arguments: 10/181 new triples (1215, 0:00:00.253527) -- DEBUG - ----- classify class net as entity from :part relation: 0/0 new triple (1215, 0:00:00.008303) -- DEBUG - ----- classify class net as entity from degree arguments: 0/0 new triple (1215, 0:00:00.021332) -- INFO - ----- Associate mother to class net from :domain relation: 5/34 new triples (1220, 0:00:00.088457) -- DEBUG - ----- Propagate individuals to net with same base node: 0/10 new triple (1220, 0:00:00.023679) -- INFO - ----- Propagate individuals to net with domain link: 3/60 new triples (1223, 0:00:00.103294) +- INFO - ----- classify class net as entity from core arguments: 10/181 new triples (1219, 0:00:00.276268) +- DEBUG - ----- classify class net as entity from :part relation: 0/0 new triple (1219, 0:00:00.008877) +- DEBUG - ----- classify class net as entity from degree arguments: 0/0 new triple (1219, 0:00:00.014992) +- INFO - ----- Associate mother to class net from :domain relation: 5/34 new triples (1224, 0:00:00.076707) +- DEBUG - ----- Propagate individuals to net with same base node: 0/10 new triple (1224, 0:00:00.024768) +- INFO - ----- Propagate individuals to net with domain link: 3/60 new triples (1227, 0:00:00.111990) - DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_01_Transduction - DEBUG - ----- step: Transduction - DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/01/ @@ -142,9 +143,9 @@ - INFO - ----- 407 triples extracted during Transduction step - INFO - -- Step 3: Generation - INFO - --- Sequence: OWL Generation Sequence -- INFO - ----- generate OWL class: 52/55 new triples (1275, 0:00:00.552010) -- INFO - ----- generate OWL property: 29/29 new triples (1304, 0:00:00.339397) -- INFO - ----- generate OWL individual: 6/7 new triples (1310, 0:00:00.077528) +- INFO - ----- generate OWL class: 52/55 new triples (1279, 0:00:00.595017) +- INFO - ----- generate OWL property: 29/29 new triples (1308, 0:00:00.233815) +- INFO - ----- generate OWL individual: 6/7 new triples (1314, 0:00:00.061774) - DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_01_Generation - DEBUG - ----- step: Generation - DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/01/ diff --git a/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Generation.ttl b/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Generation.ttl index 09f7f202af7eec2681e3e4d2f58a3f52d579cf74..557c67ded9e9eb4e547b33f5aa13724cb0cea73f 100644 --- a/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Generation.ttl +++ b/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Generation.ttl @@ -690,11 +690,31 @@ net:verbClass a owl:AnnotationProperty ; :hasPhenomenaLink :phenomena_conjunction_and ; :label "and" . +<amr_concept_bind-01> rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:bind-01 ; + :label "bind-01" . + +<amr_concept_gravitation> rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:gravitation ; + :label "gravitation" . + +<amr_concept_object> rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:object ; + :label "object" . + <amr_concept_or> rdfs:subClassOf :AMR_Relation_Concept ; :fromAmrLk ns2:or ; :hasPhenomenaLink :phenomena_conjunction_or ; :label "or" . +<amr_concept_orbit-01> rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:orbit-01 ; + :label "orbit-01" . + +<amr_concept_sun> rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:sun ; + :label "sun" . + <http://amr.isi.edu/amr_data/SSC-01-01#b> a ns3:bind-01 ; ns3:bind-01.ARG0 <http://amr.isi.edu/amr_data/SSC-01-01#g> ; ns3:bind-01.ARG1 <http://amr.isi.edu/amr_data/SSC-01-01#s> ; @@ -725,35 +745,19 @@ ns2:AMR a owl:Class ; :AMR_Root a owl:Class ; rdfs:subClassOf :AMR_Structure . -:concept_bind-01 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns3:bind-01 ; - :label "bind-01" . - -:concept_gravitation rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk ns11:gravitation ; - :label "gravitation" . - :concept_manner rdfs:subClassOf :AMR_Predicat_Concept ; :fromAmrLk ns11:manner ; :isReifiedConcept true ; :label "hasManner" . -:concept_object rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk ns11:object ; - :label "object" . - -:concept_orbit-01 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns3:orbit-01 ; - :label "orbit-01" . - :concept_part rdfs:subClassOf :AMR_Predicat_Concept ; :fromAmrLk ns11:part ; :isReifiedConcept true ; :label "hasPart" . -:concept_sun rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk ns11:sun ; - :label "sun" . +:concept_system rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk <http://amr.isi.edu/entity-types#system> ; + :label "system" . :role_domain a owl:Class, net:Relation ; @@ -1038,6 +1042,15 @@ net:restriction_orbit-hasManner-not-direct-sun_o2 a net:Restriction_Net ; net:hasRestrictionOnProperty net:compositeProperty_orbit-hasManner-not-direct_o2 ; net:hasStructure "SSC-01-01" . +<amr_concept_direct-02> rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:direct-02 ; + :label "direct-02" . + +<amr_concept_system> rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk <http://amr.isi.edu/entity-types#system>, + ns11:system ; + :label "system" . + <http://amr.isi.edu/amr_data/SSC-01-01#a> a ns2:and ; ns11:op1 <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; ns11:op2 <http://amr.isi.edu/amr_data/SSC-01-01#o> ; @@ -1063,10 +1076,6 @@ net:restriction_orbit-hasManner-not-direct-sun_o2 a net:Restriction_Net ; rdfs:label "Solar System" ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/entity-types#system> a ns2:NamedEntity ; - rdfs:label "system" ; - rdfs:subClassOf :AMR_Linked_Data . - ns3:bind-01 a ns2:Frame ; rdfs:subClassOf :AMR_Linked_Data . @@ -1110,15 +1119,6 @@ ns2:or a ns2:Concept ; :AMR_Value a owl:Class ; rdfs:subClassOf :AMR_Element . -:concept_direct-02 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns3:direct-02 ; - :label "direct-02" . - -:concept_system rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk <http://amr.isi.edu/entity-types#system>, - ns11:system ; - :label "system" . - :hasLink a owl:AnnotationProperty ; rdfs:subPropertyOf :AMR_AnnotationProperty . @@ -1197,6 +1197,10 @@ net:value_negative_blankNode a net:Value_Net ; <http://amr.isi.edu/amr_data/SSC-01-01#s2> a ns11:sun ; rdfs:subClassOf :AMR_Linked_Data . +<http://amr.isi.edu/entity-types#system> a ns2:NamedEntity ; + rdfs:label "system" ; + rdfs:subClassOf :AMR_Linked_Data . + ns3:direct-02 a ns2:Frame ; rdfs:subClassOf :AMR_Linked_Data . @@ -1339,9 +1343,6 @@ ns3:FrameRole a ns2:Role, :AMR_Element a owl:Class ; rdfs:subClassOf :AMR_Structure . -:AMR_Term_Concept a owl:Class ; - rdfs:subClassOf :AMR_Concept . - :leaf_and_a a :AMR_Leaf ; :edge_a_op1_s2 :leaf_sun_s2 ; :edge_a_op2_o :leaf_object_o ; @@ -1394,15 +1395,19 @@ net:typeProperty a owl:AnnotationProperty ; :AMR_Role a owl:Class ; rdfs:subClassOf :AMR_Element . +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + :leaf_bind-01_b a :AMR_Leaf ; :edge_b_ARG0_g :leaf_gravitation_g ; :edge_b_ARG1_s :leaf_system_s ; - :hasConcept :concept_bind-01 ; + :hasConcept <amr_concept_bind-01> ; :hasVariable :variable_b . :leaf_system_p a :AMR_Leaf ; :edge_p_name_SolarSystem :value_SolarSystem ; - :hasConcept :concept_system ; + :hasConcept <amr_concept_system>, + :concept_system ; :hasVariable :variable_p . sys:Out_Structure a owl:Class ; @@ -1420,7 +1425,7 @@ net:netProperty a owl:AnnotationProperty ; :AMR_Structure a owl:Class . :leaf_gravitation_g a :AMR_Leaf ; - :hasConcept :concept_gravitation ; + :hasConcept <amr_concept_gravitation> ; :hasVariable :variable_g . cprm:configParamProperty a rdf:Property ; @@ -1490,7 +1495,7 @@ rdf:Property a owl:Class . rdfs:subClassOf :AMR_Structure . :leaf_direct-02_d a :AMR_Leaf ; - :hasConcept :concept_direct-02 ; + :hasConcept <amr_concept_direct-02> ; :hasVariable :variable_d . net:Deprecated_Net a owl:Class ; @@ -1579,11 +1584,11 @@ net:atomClass_system_s a net:Atom_Class_Net, net:hasStructure "SSC-01-01" . :leaf_object_o a :AMR_Leaf ; - :hasConcept :concept_object ; + :hasConcept <amr_concept_object> ; :hasVariable :variable_o . :leaf_sun_s2 a :AMR_Leaf ; - :hasConcept :concept_sun ; + :hasConcept <amr_concept_sun> ; :hasVariable :variable_s2 . :leaf_hasManner_m9 a :AMR_Leaf ; @@ -1598,7 +1603,7 @@ net:atomClass_system_s a net:Atom_Class_Net, :leaf_system_s a :AMR_Leaf ; :edge_s_domain_p :leaf_system_p ; - :hasConcept :concept_system ; + :hasConcept <amr_concept_system> ; :hasVariable :variable_s . net:atomClass_object_o a net:Atom_Class_Net, @@ -1626,7 +1631,7 @@ net:atomClass_sun_s2 a net:Atom_Class_Net, :leaf_orbit-01_o2 a :AMR_Leaf ; :edge_o2_ARG0_o :leaf_object_o ; :edge_o2_ARG1_s2 :leaf_sun_s2 ; - :hasConcept :concept_orbit-01 ; + :hasConcept <amr_concept_orbit-01> ; :hasVariable :variable_o2 . net:objectValue a owl:AnnotationProperty ; @@ -1635,7 +1640,7 @@ net:objectValue a owl:AnnotationProperty ; :leaf_direct-02_d2 a :AMR_Leaf ; :edge_d2_polarity_negative :value_negative ; - :hasConcept :concept_direct-02 ; + :hasConcept <amr_concept_direct-02> ; :hasVariable :variable_d2 . :AMR_Edge a owl:Class ; diff --git a/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Preprocessing.ttl b/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Preprocessing.ttl index 55a588d62558c92f1ce85eb4d53c9741f1d0d641..6b60d6c696eac9e0cbc124b5bd5d581a230a0c48 100644 --- a/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Preprocessing.ttl +++ b/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Preprocessing.ttl @@ -194,7 +194,7 @@ ns2:root a owl:AnnotationProperty . :leaf_bind-01_b a :AMR_Leaf ; :edge_b_ARG0_g :leaf_gravitation_g ; :edge_b_ARG1_s :leaf_system_s ; - :hasConcept :concept_bind-01 ; + :hasConcept <amr_concept_bind-01> ; :hasVariable :variable_b . :leaf_hasManner_m9 a :AMR_Leaf ; @@ -633,11 +633,31 @@ net:verbClass a owl:AnnotationProperty ; :hasPhenomenaLink :phenomena_conjunction_and ; :label "and" . +<amr_concept_bind-01> rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:bind-01 ; + :label "bind-01" . + +<amr_concept_gravitation> rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:gravitation ; + :label "gravitation" . + +<amr_concept_object> rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:object ; + :label "object" . + <amr_concept_or> rdfs:subClassOf :AMR_Relation_Concept ; :fromAmrLk ns2:or ; :hasPhenomenaLink :phenomena_conjunction_or ; :label "or" . +<amr_concept_orbit-01> rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:orbit-01 ; + :label "orbit-01" . + +<amr_concept_sun> rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:sun ; + :label "sun" . + <http://amr.isi.edu/amr_data/SSC-01-01#b> a ns3:bind-01 ; ns3:bind-01.ARG0 <http://amr.isi.edu/amr_data/SSC-01-01#g> ; ns3:bind-01.ARG1 <http://amr.isi.edu/amr_data/SSC-01-01#s> ; @@ -668,35 +688,19 @@ ns2:AMR a owl:Class ; :AMR_Root a owl:Class ; rdfs:subClassOf :AMR_Structure . -:concept_bind-01 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns3:bind-01 ; - :label "bind-01" . - -:concept_gravitation rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk ns11:gravitation ; - :label "gravitation" . - :concept_manner rdfs:subClassOf :AMR_Predicat_Concept ; :fromAmrLk ns11:manner ; :isReifiedConcept true ; :label "hasManner" . -:concept_object rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk ns11:object ; - :label "object" . - -:concept_orbit-01 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns3:orbit-01 ; - :label "orbit-01" . - :concept_part rdfs:subClassOf :AMR_Predicat_Concept ; :fromAmrLk ns11:part ; :isReifiedConcept true ; :label "hasPart" . -:concept_sun rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk ns11:sun ; - :label "sun" . +:concept_system rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk <http://amr.isi.edu/entity-types#system> ; + :label "system" . :leaf_and_a a :AMR_Leaf ; :edge_a_op1_s2 :leaf_sun_s2 ; @@ -705,16 +709,16 @@ ns2:AMR a owl:Class ; :hasVariable :variable_a . :leaf_direct-02_d a :AMR_Leaf ; - :hasConcept :concept_direct-02 ; + :hasConcept <amr_concept_direct-02> ; :hasVariable :variable_d . :leaf_direct-02_d2 a :AMR_Leaf ; :edge_d2_polarity_negative :value_negative ; - :hasConcept :concept_direct-02 ; + :hasConcept <amr_concept_direct-02> ; :hasVariable :variable_d2 . :leaf_gravitation_g a :AMR_Leaf ; - :hasConcept :concept_gravitation ; + :hasConcept <amr_concept_gravitation> ; :hasVariable :variable_g . :leaf_or_o3 a :AMR_Leaf ; @@ -726,12 +730,13 @@ ns2:AMR a owl:Class ; :leaf_orbit-01_o2 a :AMR_Leaf ; :edge_o2_ARG0_o :leaf_object_o ; :edge_o2_ARG1_s2 :leaf_sun_s2 ; - :hasConcept :concept_orbit-01 ; + :hasConcept <amr_concept_orbit-01> ; :hasVariable :variable_o2 . :leaf_system_p a :AMR_Leaf ; :edge_p_name_SolarSystem :value_SolarSystem ; - :hasConcept :concept_system ; + :hasConcept <amr_concept_system>, + :concept_system ; :hasVariable :variable_p . :phenomena_conjunction_and a owl:Class ; @@ -845,6 +850,15 @@ net:objectType a owl:AnnotationProperty ; rdfs:label "object type" ; rdfs:subPropertyOf net:objectProperty . +<amr_concept_direct-02> rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:direct-02 ; + :label "direct-02" . + +<amr_concept_system> rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk <http://amr.isi.edu/entity-types#system>, + ns11:system ; + :label "system" . + <http://amr.isi.edu/amr_data/SSC-01-01#a> a ns2:and ; ns11:op1 <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; ns11:op2 <http://amr.isi.edu/amr_data/SSC-01-01#o> ; @@ -870,10 +884,6 @@ net:objectType a owl:AnnotationProperty ; rdfs:label "Solar System" ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/entity-types#system> a ns2:NamedEntity ; - rdfs:label "system" ; - rdfs:subClassOf :AMR_Linked_Data . - ns3:bind-01 a ns2:Frame ; rdfs:subClassOf :AMR_Linked_Data . @@ -917,24 +927,15 @@ ns2:or a ns2:Concept ; :AMR_Value a owl:Class ; rdfs:subClassOf :AMR_Element . -:concept_direct-02 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns3:direct-02 ; - :label "direct-02" . - -:concept_system rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk <http://amr.isi.edu/entity-types#system>, - ns11:system ; - :label "system" . - :hasLink a owl:AnnotationProperty ; rdfs:subPropertyOf :AMR_AnnotationProperty . :leaf_object_o a :AMR_Leaf ; - :hasConcept :concept_object ; + :hasConcept <amr_concept_object> ; :hasVariable :variable_o . :leaf_sun_s2 a :AMR_Leaf ; - :hasConcept :concept_sun ; + :hasConcept <amr_concept_sun> ; :hasVariable :variable_s2 . :phenomena_conjunction a owl:Class ; @@ -974,6 +975,10 @@ net:objectProperty a owl:AnnotationProperty ; <http://amr.isi.edu/amr_data/SSC-01-01#s2> a ns11:sun ; rdfs:subClassOf :AMR_Linked_Data . +<http://amr.isi.edu/entity-types#system> a ns2:NamedEntity ; + rdfs:label "system" ; + rdfs:subClassOf :AMR_Linked_Data . + ns3:direct-02 a ns2:Frame ; rdfs:subClassOf :AMR_Linked_Data . @@ -1004,7 +1009,7 @@ ns2:Frame a ns2:Concept, :leaf_system_s a :AMR_Leaf ; :edge_s_domain_p :leaf_system_p ; - :hasConcept :concept_system ; + :hasConcept <amr_concept_system> ; :hasVariable :variable_s . :phenomena_modality a owl:Class ; @@ -1030,9 +1035,6 @@ ns3:FrameRole a ns2:Role, :AMR_Element a owl:Class ; rdfs:subClassOf :AMR_Structure . -:AMR_Term_Concept a owl:Class ; - rdfs:subClassOf :AMR_Concept . - :role_ARG0 a owl:Class ; rdfs:subClassOf :AMR_Core_Role ; :label "ARG0" . @@ -1053,6 +1055,9 @@ net:typeProperty a owl:AnnotationProperty ; :AMR_Role a owl:Class ; rdfs:subClassOf :AMR_Element . +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + sys:Out_Structure a owl:Class ; rdfs:label "Output Ontology Structure" . diff --git a/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Transduction.ttl b/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Transduction.ttl index 1ba3ba64e58661d10bab40b9788c77dc238639b9..6d86c28e40bde461e7df73e12cdc37a941eb0a4a 100644 --- a/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Transduction.ttl +++ b/tests/main_tests/test_owl_output/SolarSystemDev01-20230612/technical-data/tenet.tetras-libre.fr_demo_01-1/tenet.tetras-libre.fr_demo_01_Transduction.ttl @@ -651,11 +651,31 @@ net:verbClass a owl:AnnotationProperty ; :hasPhenomenaLink :phenomena_conjunction_and ; :label "and" . +<amr_concept_bind-01> rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:bind-01 ; + :label "bind-01" . + +<amr_concept_gravitation> rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:gravitation ; + :label "gravitation" . + +<amr_concept_object> rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:object ; + :label "object" . + <amr_concept_or> rdfs:subClassOf :AMR_Relation_Concept ; :fromAmrLk ns2:or ; :hasPhenomenaLink :phenomena_conjunction_or ; :label "or" . +<amr_concept_orbit-01> rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:orbit-01 ; + :label "orbit-01" . + +<amr_concept_sun> rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:sun ; + :label "sun" . + <http://amr.isi.edu/amr_data/SSC-01-01#b> a ns3:bind-01 ; ns3:bind-01.ARG0 <http://amr.isi.edu/amr_data/SSC-01-01#g> ; ns3:bind-01.ARG1 <http://amr.isi.edu/amr_data/SSC-01-01#s> ; @@ -686,35 +706,19 @@ ns2:AMR a owl:Class ; :AMR_Root a owl:Class ; rdfs:subClassOf :AMR_Structure . -:concept_bind-01 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns3:bind-01 ; - :label "bind-01" . - -:concept_gravitation rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk ns11:gravitation ; - :label "gravitation" . - :concept_manner rdfs:subClassOf :AMR_Predicat_Concept ; :fromAmrLk ns11:manner ; :isReifiedConcept true ; :label "hasManner" . -:concept_object rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk ns11:object ; - :label "object" . - -:concept_orbit-01 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns3:orbit-01 ; - :label "orbit-01" . - :concept_part rdfs:subClassOf :AMR_Predicat_Concept ; :fromAmrLk ns11:part ; :isReifiedConcept true ; :label "hasPart" . -:concept_sun rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk ns11:sun ; - :label "sun" . +:concept_system rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk <http://amr.isi.edu/entity-types#system> ; + :label "system" . :role_domain a owl:Class, net:Relation ; @@ -964,6 +968,15 @@ net:restriction_orbit-hasManner-not-direct-sun_o2 a net:Restriction_Net ; net:hasRestrictionOnProperty net:compositeProperty_orbit-hasManner-not-direct_o2 ; net:hasStructure "SSC-01-01" . +<amr_concept_direct-02> rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:direct-02 ; + :label "direct-02" . + +<amr_concept_system> rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk <http://amr.isi.edu/entity-types#system>, + ns11:system ; + :label "system" . + <http://amr.isi.edu/amr_data/SSC-01-01#a> a ns2:and ; ns11:op1 <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; ns11:op2 <http://amr.isi.edu/amr_data/SSC-01-01#o> ; @@ -989,10 +1002,6 @@ net:restriction_orbit-hasManner-not-direct-sun_o2 a net:Restriction_Net ; rdfs:label "Solar System" ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/entity-types#system> a ns2:NamedEntity ; - rdfs:label "system" ; - rdfs:subClassOf :AMR_Linked_Data . - ns3:bind-01 a ns2:Frame ; rdfs:subClassOf :AMR_Linked_Data . @@ -1036,15 +1045,6 @@ ns2:or a ns2:Concept ; :AMR_Value a owl:Class ; rdfs:subClassOf :AMR_Element . -:concept_direct-02 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns3:direct-02 ; - :label "direct-02" . - -:concept_system rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk <http://amr.isi.edu/entity-types#system>, - ns11:system ; - :label "system" . - :hasLink a owl:AnnotationProperty ; rdfs:subPropertyOf :AMR_AnnotationProperty . @@ -1115,6 +1115,10 @@ net:value_negative_blankNode a net:Value_Net ; <http://amr.isi.edu/amr_data/SSC-01-01#s2> a ns11:sun ; rdfs:subClassOf :AMR_Linked_Data . +<http://amr.isi.edu/entity-types#system> a ns2:NamedEntity ; + rdfs:label "system" ; + rdfs:subClassOf :AMR_Linked_Data . + ns3:direct-02 a ns2:Frame ; rdfs:subClassOf :AMR_Linked_Data . @@ -1247,9 +1251,6 @@ ns3:FrameRole a ns2:Role, :AMR_Element a owl:Class ; rdfs:subClassOf :AMR_Structure . -:AMR_Term_Concept a owl:Class ; - rdfs:subClassOf :AMR_Concept . - :leaf_and_a a :AMR_Leaf ; :edge_a_op1_s2 :leaf_sun_s2 ; :edge_a_op2_o :leaf_object_o ; @@ -1296,15 +1297,19 @@ net:typeProperty a owl:AnnotationProperty ; :AMR_Role a owl:Class ; rdfs:subClassOf :AMR_Element . +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + :leaf_bind-01_b a :AMR_Leaf ; :edge_b_ARG0_g :leaf_gravitation_g ; :edge_b_ARG1_s :leaf_system_s ; - :hasConcept :concept_bind-01 ; + :hasConcept <amr_concept_bind-01> ; :hasVariable :variable_b . :leaf_system_p a :AMR_Leaf ; :edge_p_name_SolarSystem :value_SolarSystem ; - :hasConcept :concept_system ; + :hasConcept <amr_concept_system>, + :concept_system ; :hasVariable :variable_p . sys:Out_Structure a owl:Class ; @@ -1322,7 +1327,7 @@ net:netProperty a owl:AnnotationProperty ; :AMR_Structure a owl:Class . :leaf_gravitation_g a :AMR_Leaf ; - :hasConcept :concept_gravitation ; + :hasConcept <amr_concept_gravitation> ; :hasVariable :variable_g . sys:Entity a owl:Class ; @@ -1395,7 +1400,7 @@ rdf:Property a owl:Class . rdfs:subClassOf :AMR_Structure . :leaf_direct-02_d a :AMR_Leaf ; - :hasConcept :concept_direct-02 ; + :hasConcept <amr_concept_direct-02> ; :hasVariable :variable_d . net:Deprecated_Net a owl:Class ; @@ -1479,11 +1484,11 @@ net:atomClass_system_s a net:Atom_Class_Net, net:hasStructure "SSC-01-01" . :leaf_object_o a :AMR_Leaf ; - :hasConcept :concept_object ; + :hasConcept <amr_concept_object> ; :hasVariable :variable_o . :leaf_sun_s2 a :AMR_Leaf ; - :hasConcept :concept_sun ; + :hasConcept <amr_concept_sun> ; :hasVariable :variable_s2 . :leaf_hasManner_m9 a :AMR_Leaf ; @@ -1498,7 +1503,7 @@ net:atomClass_system_s a net:Atom_Class_Net, :leaf_system_s a :AMR_Leaf ; :edge_s_domain_p :leaf_system_p ; - :hasConcept :concept_system ; + :hasConcept <amr_concept_system> ; :hasVariable :variable_s . net:atomClass_object_o a net:Atom_Class_Net, @@ -1526,7 +1531,7 @@ net:atomClass_sun_s2 a net:Atom_Class_Net, :leaf_orbit-01_o2 a :AMR_Leaf ; :edge_o2_ARG0_o :leaf_object_o ; :edge_o2_ARG1_s2 :leaf_sun_s2 ; - :hasConcept :concept_orbit-01 ; + :hasConcept <amr_concept_orbit-01> ; :hasVariable :variable_o2 . net:objectValue a owl:AnnotationProperty ; @@ -1535,7 +1540,7 @@ net:objectValue a owl:AnnotationProperty ; :leaf_direct-02_d2 a :AMR_Leaf ; :edge_d2_polarity_negative :value_negative ; - :hasConcept :concept_direct-02 ; + :hasConcept <amr_concept_direct-02> ; :hasVariable :variable_d2 . :AMR_Edge a owl:Class ;