diff --git a/tenet/scheme/amr_clara_rule/__init__.py b/tenet/scheme/amr_clara_rule/__init__.py index 882dc7792649eb6f1e12859958b7cec396cd8b05..fa79ee9a40cd48786ea19990ddbc9c9e48c788c5 100644 --- a/tenet/scheme/amr_clara_rule/__init__.py +++ b/tenet/scheme/amr_clara_rule/__init__.py @@ -13,6 +13,7 @@ from scheme.amr_clara_rule.transduction.composite_class_extractor_2 import * from scheme.amr_clara_rule.transduction.phenomena_polarity_analyzer_1 import * from scheme.amr_clara_rule.transduction.phenomena_polarity_analyzer_2 import * +from scheme.amr_clara_rule.transduction.phenomena_polarity_analyzer_3 import * from scheme.amr_clara_rule.transduction.phenomena_mod_analyzer_1 import * from scheme.amr_clara_rule.transduction.phenomena_or_analyzer_1 import * from scheme.amr_clara_rule.transduction.phenomena_or_analyzer_2 import * diff --git a/tenet/scheme/amr_clara_rule/transduction/phenomena_polarity_analyzer_3.py b/tenet/scheme/amr_clara_rule/transduction/phenomena_polarity_analyzer_3.py new file mode 100644 index 0000000000000000000000000000000000000000..1604039e5c74f46ee5b100735044695e94505da6 --- /dev/null +++ b/tenet/scheme/amr_clara_rule/transduction/phenomena_polarity_analyzer_3.py @@ -0,0 +1,117 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Rule to negative polarity phenomena (rule 3) +#------------------------------------------------------------------------------ +# Net Expansion AMR rule to analyse negative polarity phenomena +# Rule: polarity(phenomena, 'negative') => phenomena +#============================================================================== + +import rdflib +from rdflib import Graph + +import transduction +from transduction import net +from transduction.query_builder import generate_select_query +from transduction.naming_computer import define_axiom_naming +from transduction.naming_computer import define_composite_naming_2 + + +#============================================================================== +# Pattern Search: polarity(phenomena, 'negative') +#============================================================================== + +POLARITY_RELATION = 'amr:role_polarity' +PHENOMENA_TYPE_RELATION = 'net:hasPhenomenaType' +POSSIBLE_PHENOMENA_URI = 'amr:phenomena_modality_prohibition' + +def __search_pattern(graph): + select_data_list = ['?phenomena_net', '?value_net'] + clause_list = [f'?phenomena_net a [rdfs:subClassOf* net:Phenomena_Net].', + f'FILTER NOT EXISTS {{ ?phenomena_net a net:Deprecated_Net. }}', + f'?phenomena_net {PHENOMENA_TYPE_RELATION} {POSSIBLE_PHENOMENA_URI}.', + f'?phenomena_net {POLARITY_RELATION} ?value_net.', + ('?value_net', 'net:hasValueLabel', rdflib.term.Literal('negative'))] + 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 __filter_relation(relation_list): + result_list = [] + for relation in relation_list: + check = True + (s, p, o) = relation + if s == o: check = False + if p == POLARITY_RELATION: check = False + if check: result_list.append(relation) + return result_list + + +def __propagate_relation(target_net, base_net): + target_net.input_relation_list = base_net.input_relation_list + out_relation_list = __filter_relation(base_net.output_relation_list) + target_net.output_relation_list = out_relation_list + + + +#============================================================================== +# Construct Method(s) +#============================================================================== + +def __construct_phenomena_net(graph, origin_phenomena_net, value_net): + + # -- Net Composition + new_phenomena_net = net.PhenomenaNet(graph) + new_phenomena_net.compose(origin_phenomena_net, value_net) + + # -- Data Computation + new_phenomena_net.phenomena_type = 'amr:phenomena_modality_possible' + new_phenomena_net.phenomena_ref = f'not-{origin_phenomena_net.phenomena_ref}' + + # -- Net Naming + new_phenomena_net.naming = 'possible-modality' + + # -- Relation Propagation + __propagate_relation(new_phenomena_net, origin_phenomena_net) + + # -- Finalization + new_phenomena_net.finalize() + triple_definition = new_phenomena_net.generate_triple_definition() + + return new_phenomena_net, triple_definition + + + +#============================================================================== +# Main Method +#============================================================================== + +def analyze_phenomena_polarity_3(graph): + + # -- Rule Initialization + rule_label = 'analyze "polarity" phenomena (3)' + rule_triple_list = [] + + # -- Search for patterns + _, pattern_set = __search_pattern(graph) + + # -- Pattern Analysis + for pattern in pattern_set: + origin_phenomena_net = net.PhenomenaNet(graph, uri=pattern.phenomena_net) + value_net = net.ValueNet(graph, uri=pattern.value_net) + + # -- New Negative Property Net + _, triple_list_1 = __construct_phenomena_net(graph, origin_phenomena_net, value_net) + rule_triple_list += triple_list_1 + + # -- Deprecation: Origin Class Net + rule_triple_list += origin_phenomena_net.deprecate() + + return rule_label, rule_triple_list \ No newline at end of file diff --git a/tenet/scheme/amr_scheme_clara_1.py b/tenet/scheme/amr_scheme_clara_1.py index 9e04b82a54832064d27bfbcebf4945f0f0455bd2..454913b95083fbca60a0e8be2ddc35b5db19a81d 100644 --- a/tenet/scheme/amr_scheme_clara_1.py +++ b/tenet/scheme/amr_scheme_clara_1.py @@ -184,6 +184,7 @@ atomic_extraction_sequence = ['atomic extraction sequence', phenomena_analyze_sequence_1 = ['phenomena analyze sequence (1)', rule.analyze_phenomena_polarity_1, rule.analyze_phenomena_polarity_2, + rule.analyze_phenomena_polarity_3, rule.analyze_phenomena_mod_1 ] @@ -221,10 +222,10 @@ scheme = { 'transduction': [transduction_refinement_sequence, atomic_extraction_sequence, - phenomena_analyze_sequence_1, - phenomena_analyze_sequence_2, - composite_class_extraction_sequence, - odrl_extraction_sequence + phenomena_analyze_sequence_1, + phenomena_analyze_sequence_2, + composite_class_extraction_sequence, + odrl_extraction_sequence ], 'generation': [default_refinement_sequence, diff --git a/tenet/structure/amr-rdf-schema.ttl b/tenet/structure/amr-rdf-schema.ttl index 1d2b377a21a8073d0c62cb6429ea669f2208b601..4b0903cadec23b04b7d9f48686285bcccd27e165 100644 --- a/tenet/structure/amr-rdf-schema.ttl +++ b/tenet/structure/amr-rdf-schema.ttl @@ -399,6 +399,7 @@ ns1:Role rdf:type owl:Class ; ### https://amr.tetras-libre.fr/rdf/schema#phenomena_modality_prohibition :phenomena_modality_prohibition rdf:type owl:Class ; rdfs:subClassOf :phenomena_modality ; + :hasConceptLink "prohibit-01" ; :label "prohibition-modality" . diff --git a/tenet/tenet.log b/tenet/tenet.log index cf41f7d30d22bd0f2759d973945a8e4d5537ec72..a1396730afe97306a9dd92d06179499b4254c6f1 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/input/amrDocuments/dev/asail_odrl_sentences/ (amr) -- 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 - ----- Corpus source: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s06.stog.amr.ttl (amr) +- INFO - ----- Base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos06-20230418/aos06_factoid.ttl +- INFO - ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos06-20230418/technical-data/ +- INFO - ----- Ontology target (id): https://tenet.tetras-libre.fr/demo/clara/06/ - INFO - ----- Current path: /home/lamenji/Workspace/Tetras/tenet/tenet - DEBUG - ----- Config file: /home/lamenji/Workspace/Tetras/tenet/tenet/config.xml - DEBUG - *** Config (Full Parameters) *** -- Base Parameters ----- config file: /home/lamenji/Workspace/Tetras/tenet/tenet/config.xml - ----- uuid: https://tenet.tetras-libre.fr/demo/clara/03/ - ----- technical base name: tenet.tetras-libre.fr_demo_clara_03 - ----- source corpus: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/ + ----- uuid: https://tenet.tetras-libre.fr/demo/clara/06/ + ----- technical base name: tenet.tetras-libre.fr_demo_clara_06 + ----- source corpus: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s06.stog.amr.ttl ----- target reference: base ----- process level: sentence ----- source type: amr @@ -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-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/ + ----- base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos06-20230418/aos06_factoid.ttl + ----- output directory: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos06-20230418/aos06_factoid.ttltenet.tetras-libre.fr_demo_clara_06-20230418/ + ----- sentence output directory: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos06-20230418/technical-data/ + ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos06-20230418/technical-data/ -- Config File Definition ----- schema file: ./structure/amr-rdf-schema.ttl ----- semantic net file: ./structure/odrl-snet-schema.ttl @@ -41,461 +41,115 @@ ----- ontology suffix: -ontology.ttl ----- ontology seed suffix: -ontology-seed.ttl -- Source File Definition - ----- source sentence file: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/**/*.ttl + ----- source sentence file: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s06.stog.amr.ttl**/*.ttl -- Target File Definition ----- frame ontology file: ./../input/targetFrameStructure/base-ontology.ttl ----- frame ontology seed file: ./../input/targetFrameStructure/base-ontology-seed.ttl -- Output ----- ontology namespace: https://tenet.tetras-libre.fr/base-ontology/ - ----- output file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/technical-data/tenet.tetras-libre.fr_demo_clara_03.ttl + ----- output file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos06-20230418/technical-data/tenet.tetras-libre.fr_demo_clara_06.ttl *** - *** -- DEBUG - -- Counting number of graph files (sentences) -- INFO - ----- Number of Graphs: 5 - INFO - === Extraction Processing === -- INFO - *** sentence 1 *** - INFO - -- Work Structure Preparation - DEBUG - --- Graph Initialization - DEBUG - ----- Configuration Loading -- DEBUG - -------- RDF Schema (319) -- DEBUG - -------- Semantic Net Definition (465) -- DEBUG - -------- Config Parameter Definition (499) +- DEBUG - -------- RDF Schema (320) +- DEBUG - -------- Semantic Net Definition (466) +- DEBUG - -------- Config Parameter Definition (500) - DEBUG - ----- Frame Ontology Loading -- DEBUG - -------- Base Ontology produced as output (529) +- DEBUG - -------- Base Ontology produced as output (530) - DEBUG - --- Source Data Import - DEBUG - ----- Sentence Loading -- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s05.stog.amr.ttl (559) +- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s06.stog.amr.ttl (552) - DEBUG - --- Export work graph as turtle -- 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) -- DEBUG - ----- Step number: 3 -- INFO - -- Loading Extraction Rules (amr_clara_rule/*) -- DEBUG - ----- Total rule number: 87 -- INFO - -- Applying extraction step: preprocessing -- INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence -- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (559, 0:00:00.040699) -- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- INFO - ----- reclassify-concept-1: 5/5 new triples (564, 0:00:00.156596) -- INFO - ----- reclassify-concept-2: 8/8 new triples (572, 0:00:00.099326) -- INFO - ----- reclassify-concept-3: 4/4 new triples (576, 0:00:00.077252) -- INFO - ----- reclassify-concept-4: 8/8 new triples (584, 0:00:00.100170) -- DEBUG - ----- reclassify-concept-5: 0/0 new triple (584, 0:00:00.072621) -- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (584, 0:00:00.054747) -- INFO - ----- reclassify-existing-variable: 25/25 new triples (609, 0:00:00.032089) -- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (609, 0:00:00.071958) -- INFO - ----- add-amr-leaf-for-reclassified-concept: 18/18 new triples (627, 0:00:00.049350) -- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (627, 0:00:00.047793) -- INFO - ----- add-amr-edge-for-core-relation: 15/15 new triples (642, 0:00:00.123670) -- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (642, 0:00:00.102247) -- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (647, 0:00:00.106721) -- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (647, 0:00:00.103347) -- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (647, 0:00:00.105853) -- INFO - ----- update-amr-edge-role-1: 5/5 new triples (652, 0:00:00.052198) -- INFO - ----- add-amr-root: 5/5 new triples (657, 0:00:00.024627) -- 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-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.093794) -- INFO - ----- extract atom individuals: 8/8 new triples (677, 0:00:00.059105) -- INFO - ----- extract atomic properties: 36/36 new triples (713, 0:00:00.152643) -- INFO - ----- extract atom values: 5/5 new triples (718, 0:00:00.030859) -- INFO - ----- extract atom phenomena: 7/7 new triples (725, 0:00:00.039546) -- INFO - ----- propagate atom relations: 11/30 new triples (736, 0:00:00.580356) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1) -- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (736, 0:00:00.008482) -- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (736, 0:00:00.013547) -- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (736, 0:00:00.008427) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2) -- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (736, 0:00:00.016763) -- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (736, 0:00:00.017750) -- INFO - --- *** February Transduction *** Sequence: composite class extraction sequence -- DEBUG - ----- extract composite classes (1): 0/0 new triple (736, 0:00:00.031002) -- DEBUG - ----- extract composite classes (2): 0/0 new triple (736, 0:00:00.035267) -- INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence -- INFO - ----- extract ODRL actions: 11/12 new triples (747, 0:00:00.129970) -- INFO - ----- extract ODRL rules: 11/11 new triples (758, 0:00:00.169208) -- 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-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 - ----- 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 (759, 0:00:00.089719) -- 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-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-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 *** -- INFO - -- Work Structure Preparation -- DEBUG - --- Graph Initialization -- DEBUG - ----- Configuration Loading -- DEBUG - -------- RDF Schema (319) -- DEBUG - -------- Semantic Net Definition (465) -- DEBUG - -------- Config Parameter Definition (499) -- DEBUG - ----- Frame Ontology Loading -- DEBUG - -------- Base Ontology produced as output (529) -- DEBUG - --- Source Data Import -- DEBUG - ----- Sentence Loading -- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s03.stog.amr.ttl (551) -- DEBUG - --- Export work graph as turtle -- 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 +- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos06-20230418/technical-data/tenet.tetras-libre.fr_demo_clara_06-0/tenet.tetras-libre.fr_demo_clara_06.ttl - INFO - ----- Sentence (id): document-03 -- INFO - ----- Sentence (text): John is not allowed to play the movie.. +- INFO - ----- Sentence (text): John is not allowed to play the movie. - INFO - -- Loading Extraction Scheme (amr_scheme_clara_1) - DEBUG - ----- Step number: 3 - INFO - -- Loading Extraction Rules (amr_clara_rule/*) - DEBUG - ----- Total rule number: 87 - INFO - -- Applying extraction step: preprocessing - INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence -- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (551, 0:00:00.039647) +- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (552, 0:00:00.027393) - INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- INFO - ----- reclassify-concept-1: 5/5 new triples (556, 0:00:00.160346) -- DEBUG - ----- reclassify-concept-2: 0/0 new triple (556, 0:00:00.069641) -- INFO - ----- reclassify-concept-3: 4/4 new triples (560, 0:00:00.048247) -- INFO - ----- reclassify-concept-4: 4/4 new triples (564, 0:00:00.060680) -- INFO - ----- reclassify-concept-5: 4/4 new triples (568, 0:00:00.050426) -- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (568, 0:00:00.057189) -- INFO - ----- reclassify-existing-variable: 17/17 new triples (585, 0:00:00.032604) -- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (585, 0:00:00.067416) -- INFO - ----- add-amr-leaf-for-reclassified-concept: 12/12 new triples (597, 0:00:00.038603) -- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (597, 0:00:00.032168) -- INFO - ----- add-amr-edge-for-core-relation: 9/9 new triples (606, 0:00:00.111007) -- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (606, 0:00:00.099459) -- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (611, 0:00:00.124504) -- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (611, 0:00:00.160495) -- INFO - ----- add-amr-edge-for-polarity-relation: 5/5 new triples (616, 0:00:00.070110) -- INFO - ----- update-amr-edge-role-1: 5/5 new triples (621, 0:00:00.038976) -- INFO - ----- add-amr-root: 5/5 new triples (626, 0:00:00.024764) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_preprocessing +- INFO - ----- reclassify-concept-1: 5/5 new triples (557, 0:00:00.118606) +- DEBUG - ----- reclassify-concept-2: 0/0 new triple (557, 0:00:00.077520) +- INFO - ----- reclassify-concept-3: 4/4 new triples (561, 0:00:00.069388) +- INFO - ----- reclassify-concept-4: 4/4 new triples (565, 0:00:00.058728) +- INFO - ----- reclassify-concept-5: 4/4 new triples (569, 0:00:00.057849) +- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (569, 0:00:00.047485) +- INFO - ----- reclassify-existing-variable: 17/17 new triples (586, 0:00:00.038427) +- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (586, 0:00:00.052393) +- INFO - ----- add-amr-leaf-for-reclassified-concept: 12/12 new triples (598, 0:00:00.051898) +- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (598, 0:00:00.049873) +- INFO - ----- add-amr-edge-for-core-relation: 9/9 new triples (607, 0:00:00.131533) +- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (607, 0:00:00.099449) +- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (612, 0:00:00.167868) +- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (612, 0:00:00.078077) +- INFO - ----- add-amr-edge-for-polarity-relation: 5/5 new triples (617, 0:00:00.075222) +- INFO - ----- update-amr-edge-role-1: 5/5 new triples (622, 0:00:00.048134) +- INFO - ----- add-amr-root: 5/5 new triples (627, 0:00:00.026306) +- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_06_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-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 +- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/06/ +- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos06-20230418/technical-data/tenet.tetras-libre.fr_demo_clara_06-0/tenet.tetras-libre.fr_demo_clara_06_preprocessing.ttl +- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/06//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.083577) -- INFO - ----- extract atom individuals: 8/8 new triples (646, 0:00:00.044505) -- INFO - ----- extract atomic properties: 13/13 new triples (659, 0:00:00.037338) -- INFO - ----- extract atom values: 10/10 new triples (669, 0:00:00.048609) -- INFO - ----- extract atom phenomena: 7/7 new triples (676, 0:00:00.033831) -- INFO - ----- propagate atom relations: 11/28 new triples (687, 0:00:00.327362) +- INFO - ----- extract atom classes: 12/12 new triples (639, 0:00:00.064931) +- INFO - ----- extract atom individuals: 8/8 new triples (647, 0:00:00.040810) +- INFO - ----- extract atomic properties: 13/13 new triples (660, 0:00:00.041424) +- INFO - ----- extract atom values: 10/10 new triples (670, 0:00:00.060569) +- INFO - ----- extract atom phenomena: 7/7 new triples (677, 0:00:00.044437) +- INFO - ----- propagate atom relations: 11/28 new triples (688, 0:00:00.388213) - INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1) -- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (687, 0:00:00.007550) -- INFO - ----- analyze "polarity" phenomena (2): 12/14 new triples (699, 0:00:00.051746) -- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (699, 0:00:00.007847) +- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (688, 0:00:00.011273) +- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (688, 0:00:00.011297) +- INFO - ----- analyze "polarity" phenomena (3): 12/14 new triples (700, 0:00:00.062516) +- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (700, 0:00:00.009401) - INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2) -- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (699, 0:00:00.012678) -- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (699, 0:00:00.016980) +- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (700, 0:00:00.014116) +- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (700, 0:00:00.012088) - INFO - --- *** February Transduction *** Sequence: composite class extraction sequence -- DEBUG - ----- extract composite classes (1): 0/0 new triple (699, 0:00:00.024436) -- DEBUG - ----- extract composite classes (2): 0/0 new triple (699, 0:00:00.019274) +- DEBUG - ----- extract composite classes (1): 0/0 new triple (700, 0:00:00.020955) +- DEBUG - ----- extract composite classes (2): 0/0 new triple (700, 0:00:00.021138) - INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence -- INFO - ----- extract ODRL actions: 15/17 new triples (714, 0:00:00.204687) -- INFO - ----- extract ODRL rules: 12/12 new triples (726, 0:00:00.120175) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_transduction +- INFO - ----- extract ODRL actions: 15/17 new triples (715, 0:00:00.131269) +- INFO - ----- extract ODRL rules: 12/12 new triples (727, 0:00:00.112995) +- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_06_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-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 +- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/06/ +- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos06-20230418/technical-data/tenet.tetras-libre.fr_demo_clara_06-0/tenet.tetras-libre.fr_demo_clara_06_transduction.ttl +- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/06//transduction - INFO - ----- 100 triples extracted during transduction step - INFO - -- Applying extraction step: generation - INFO - --- *** February Transduction *** Sequence: ODRL Rule Generation Sequence -- INFO - ----- generate ODRL rule: 1/1 new triple (727, 0:00:00.089507) -- 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-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-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 *** -- INFO - -- Work Structure Preparation -- DEBUG - --- Graph Initialization -- DEBUG - ----- Configuration Loading -- DEBUG - -------- RDF Schema (319) -- DEBUG - -------- Semantic Net Definition (465) -- DEBUG - -------- Config Parameter Definition (499) -- DEBUG - ----- Frame Ontology Loading -- DEBUG - -------- Base Ontology produced as output (529) -- DEBUG - --- Source Data Import -- DEBUG - ----- Sentence Loading -- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s04.stog.amr.ttl (555) -- DEBUG - --- Export work graph as turtle -- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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) -- DEBUG - ----- Step number: 3 -- INFO - -- Loading Extraction Rules (amr_clara_rule/*) -- DEBUG - ----- Total rule number: 87 -- INFO - -- Applying extraction step: preprocessing -- INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence -- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (555, 0:00:00.032436) -- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- INFO - ----- reclassify-concept-1: 5/5 new triples (560, 0:00:00.140201) -- DEBUG - ----- reclassify-concept-2: 0/0 new triple (560, 0:00:00.068348) -- INFO - ----- reclassify-concept-3: 4/4 new triples (564, 0:00:00.055578) -- INFO - ----- reclassify-concept-4: 8/8 new triples (572, 0:00:00.067631) -- INFO - ----- reclassify-concept-5: 4/4 new triples (576, 0:00:00.054448) -- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (576, 0:00:00.051360) -- INFO - ----- reclassify-existing-variable: 22/22 new triples (598, 0:00:00.035587) -- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (598, 0:00:00.056808) -- INFO - ----- add-amr-leaf-for-reclassified-concept: 15/15 new triples (613, 0:00:00.052995) -- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (613, 0:00:00.032411) -- INFO - ----- add-amr-edge-for-core-relation: 12/12 new triples (625, 0:00:00.103038) -- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (625, 0:00:00.085750) -- INFO - ----- add-amr-edge-for-name-relation: 10/10 new triples (635, 0:00:00.078462) -- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (635, 0:00:00.085153) -- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (635, 0:00:00.081313) -- INFO - ----- update-amr-edge-role-1: 6/6 new triples (641, 0:00:00.046364) -- INFO - ----- add-amr-root: 5/5 new triples (646, 0:00:00.029218) -- 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-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.104911) -- INFO - ----- extract atom individuals: 16/16 new triples (680, 0:00:00.082064) -- INFO - ----- extract atomic properties: 13/13 new triples (693, 0:00:00.045313) -- INFO - ----- extract atom values: 10/10 new triples (703, 0:00:00.058829) -- INFO - ----- extract atom phenomena: 7/7 new triples (710, 0:00:00.043914) -- INFO - ----- propagate atom relations: 15/52 new triples (725, 0:00:00.683994) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1) -- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (725, 0:00:00.008397) -- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (725, 0:00:00.010724) -- INFO - ----- analyze modifier phenomena (mod): 21/25 new triples (746, 0:00:00.088640) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2) -- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (746, 0:00:00.013839) -- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (746, 0:00:00.015017) -- INFO - --- *** February Transduction *** Sequence: composite class extraction sequence -- DEBUG - ----- extract composite classes (1): 0/0 new triple (746, 0:00:00.027307) -- DEBUG - ----- extract composite classes (2): 0/0 new triple (746, 0:00:00.026203) -- INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence -- INFO - ----- extract ODRL actions: 11/12 new triples (757, 0:00:00.128301) -- INFO - ----- extract ODRL rules: 11/11 new triples (768, 0:00:00.130016) -- 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-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 - ----- 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 (769, 0:00:00.106412) -- 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-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-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 *** -- INFO - -- Work Structure Preparation -- DEBUG - --- Graph Initialization -- DEBUG - ----- Configuration Loading -- DEBUG - -------- RDF Schema (319) -- DEBUG - -------- Semantic Net Definition (465) -- DEBUG - -------- Config Parameter Definition (499) -- DEBUG - ----- Frame Ontology Loading -- DEBUG - -------- Base Ontology produced as output (529) -- DEBUG - --- Source Data Import -- DEBUG - ----- Sentence Loading -- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s01.stog.amr.ttl (546) -- DEBUG - --- Export work graph as turtle -- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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) -- DEBUG - ----- Step number: 3 -- INFO - -- Loading Extraction Rules (amr_clara_rule/*) -- DEBUG - ----- Total rule number: 87 -- INFO - -- Applying extraction step: preprocessing -- INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence -- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (546, 0:00:00.030609) -- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- INFO - ----- reclassify-concept-1: 5/5 new triples (551, 0:00:00.130584) -- DEBUG - ----- reclassify-concept-2: 0/0 new triple (551, 0:00:00.080256) -- INFO - ----- reclassify-concept-3: 4/4 new triples (555, 0:00:00.061360) -- INFO - ----- reclassify-concept-4: 4/4 new triples (559, 0:00:00.079235) -- DEBUG - ----- reclassify-concept-5: 0/0 new triple (559, 0:00:00.051615) -- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (559, 0:00:00.053026) -- INFO - ----- reclassify-existing-variable: 13/13 new triples (572, 0:00:00.036897) -- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (572, 0:00:00.058090) -- INFO - ----- add-amr-leaf-for-reclassified-concept: 9/9 new triples (581, 0:00:00.035306) -- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (581, 0:00:00.038039) -- INFO - ----- add-amr-edge-for-core-relation: 6/6 new triples (587, 0:00:00.091569) -- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (587, 0:00:00.076691) -- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (592, 0:00:00.083359) -- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (592, 0:00:00.085060) -- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (592, 0:00:00.171335) -- INFO - ----- update-amr-edge-role-1: 3/3 new triples (595, 0:00:00.030084) -- INFO - ----- add-amr-root: 5/5 new triples (600, 0:00:00.030886) -- 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-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.038735) -- INFO - ----- extract atom individuals: 8/8 new triples (614, 0:00:00.045410) -- INFO - ----- extract atomic properties: 12/12 new triples (626, 0:00:00.047499) -- INFO - ----- extract atom values: 5/5 new triples (631, 0:00:00.030004) -- INFO - ----- extract atom phenomena: 7/7 new triples (638, 0:00:00.043397) -- INFO - ----- propagate atom relations: 7/22 new triples (645, 0:00:00.323948) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1) -- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (645, 0:00:00.010338) -- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (645, 0:00:00.013422) -- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (645, 0:00:00.014244) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2) -- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (645, 0:00:00.016209) -- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (645, 0:00:00.011404) -- INFO - --- *** February Transduction *** Sequence: composite class extraction sequence -- DEBUG - ----- extract composite classes (1): 0/0 new triple (645, 0:00:00.019772) -- DEBUG - ----- extract composite classes (2): 0/0 new triple (645, 0:00:00.023401) -- INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence -- INFO - ----- extract ODRL actions: 11/12 new triples (656, 0:00:00.122957) -- INFO - ----- extract ODRL rules: 11/11 new triples (667, 0:00:00.123182) -- 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-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 - ----- 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 (668, 0:00:00.075617) -- 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-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-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 *** -- INFO - -- Work Structure Preparation -- DEBUG - --- Graph Initialization -- DEBUG - ----- Configuration Loading -- DEBUG - -------- RDF Schema (319) -- DEBUG - -------- Semantic Net Definition (465) -- DEBUG - -------- Config Parameter Definition (499) -- DEBUG - ----- Frame Ontology Loading -- DEBUG - -------- Base Ontology produced as output (529) -- DEBUG - --- Source Data Import -- DEBUG - ----- Sentence Loading -- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s02.stog.amr.ttl (550) -- DEBUG - --- Export work graph as turtle -- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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) -- DEBUG - ----- Step number: 3 -- INFO - -- Loading Extraction Rules (amr_clara_rule/*) -- DEBUG - ----- Total rule number: 87 -- INFO - -- Applying extraction step: preprocessing -- INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence -- DEBUG - ----- fix-amr-bug-about-system-solar-planet: 0/0 new triple (550, 0:00:00.029021) -- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- INFO - ----- reclassify-concept-1: 5/5 new triples (555, 0:00:00.124460) -- DEBUG - ----- reclassify-concept-2: 0/0 new triple (555, 0:00:00.076507) -- INFO - ----- reclassify-concept-3: 4/4 new triples (559, 0:00:00.047862) -- INFO - ----- reclassify-concept-4: 4/4 new triples (563, 0:00:00.066651) -- INFO - ----- reclassify-concept-5: 4/4 new triples (567, 0:00:00.064142) -- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (567, 0:00:00.042669) -- INFO - ----- reclassify-existing-variable: 17/17 new triples (584, 0:00:00.034210) -- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (584, 0:00:00.054638) -- INFO - ----- add-amr-leaf-for-reclassified-concept: 12/12 new triples (596, 0:00:00.043381) -- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (596, 0:00:00.035993) -- INFO - ----- add-amr-edge-for-core-relation: 9/9 new triples (605, 0:00:00.103404) -- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (605, 0:00:00.086091) -- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (610, 0:00:00.087716) -- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (610, 0:00:00.162695) -- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (610, 0:00:00.078522) -- INFO - ----- update-amr-edge-role-1: 4/4 new triples (614, 0:00:00.032990) -- INFO - ----- add-amr-root: 5/5 new triples (619, 0:00:00.029129) -- 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-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.072041) -- INFO - ----- extract atom individuals: 8/8 new triples (639, 0:00:00.049272) -- INFO - ----- extract atomic properties: 13/13 new triples (652, 0:00:00.055421) -- INFO - ----- extract atom values: 5/5 new triples (657, 0:00:00.037579) -- INFO - ----- extract atom phenomena: 7/7 new triples (664, 0:00:00.060009) -- INFO - ----- propagate atom relations: 10/26 new triples (674, 0:00:00.502854) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1) -- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (674, 0:00:00.010919) -- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (674, 0:00:00.013563) -- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (674, 0:00:00.013598) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2) -- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (674, 0:00:00.013685) -- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (674, 0:00:00.010433) -- INFO - --- *** February Transduction *** Sequence: composite class extraction sequence -- DEBUG - ----- extract composite classes (1): 0/0 new triple (674, 0:00:00.022648) -- DEBUG - ----- extract composite classes (2): 0/0 new triple (674, 0:00:00.018601) -- INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence -- INFO - ----- extract ODRL actions: 14/15 new triples (688, 0:00:00.103809) -- INFO - ----- extract ODRL rules: 12/12 new triples (700, 0:00:00.096952) -- 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-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 - ----- 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 (701, 0:00:00.064711) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_generation +- INFO - ----- generate ODRL rule: 1/1 new triple (728, 0:00:00.089116) +- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_06_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-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 +- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/06/ +- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos06-20230418/technical-data/tenet.tetras-libre.fr_demo_clara_06-0/tenet.tetras-libre.fr_demo_clara_06_generation.ttl +- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/06//generation - INFO - ----- 1 triples extracted during generation step -- 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 - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/aos06-20230418/technical-data/tenet.tetras-libre.fr_demo_clara_06-0/tenet.tetras-libre.fr_demo_clara_06_factoid.ttl) - DEBUG - ----- Number of factoids: 1 -- DEBUG - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/clara/03//factoid +- DEBUG - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/clara/06//factoid - INFO - === Final Ontology Generation === - INFO - -- Making complete factoid graph by merging the result factoids -- INFO - ----- Total factoid number: 5 +- INFO - ----- Total factoid number: 1 - INFO - -- Serializing graph to factoid string -- INFO - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/clara/03//factoid +- INFO - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/clara/06//factoid - INFO - -- Serializing graph to factoid file -- INFO - ----- Ontology Turtle File: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/aos03_factoid.ttl +- INFO - ----- Ontology Turtle File: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos06-20230418/aos06_factoid.ttl - INFO - === Done === - INFO - *** Execution Time *** ------ Function: create_ontology_from_amrld_dir (tenet.main) ------ Total Time: 0:00:14.214508 ------ Process Time: 0:00:13.951685 +----- Function: create_ontology_from_amrld_file (tenet.main) +----- Total Time: 0:00:02.828446 +----- Process Time: 0:00:02.793201 *** - *** diff --git a/tests/dev_tests/test_data/negation-devGraph-4.result.ttl b/tests/dev_tests/test_data/negation-devGraph-4.result.ttl new file mode 100644 index 0000000000000000000000000000000000000000..bd7f123da57a5bcddc6967f83e1700d7e7b0ef9e --- /dev/null +++ b/tests/dev_tests/test_data/negation-devGraph-4.result.ttl @@ -0,0 +1,938 @@ +@base <https://amr.tetras-libre.fr/rdf/negation-devGraph-4/result> . +@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 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:play-01.ARG0 a ns3:FrameRole . + +ns3:play-01.ARG1 a ns3:FrameRole . + +ns3:prohibit-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_prohibit-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 . + +<https://tenet.tetras-libre.fr/semantic-net> a owl:Ontology . + +net:Action_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Composite_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:Composite_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Feature a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:Rule_Net a owl:Class ; + rdfs:subClassOf net:Net . + +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: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:phenomena_possible-modality_a a net:Phenomena_Net ; + :role_ARG1 net:atomProperty_play_p ; + :role_polarity net:value_negative_blankNode ; + net:composeFrom net:phenomena_prohibition-modality_a, + net:value_negative_blankNode ; + net:coverBaseNode :leaf_prohibit-01_a ; + net:coverNode :leaf_prohibit-01_a ; + net:hasNaming "possible-modality" ; + net:hasPhenomenaRef "not-[rdflib.term.Literal('prohibit-01')]" ; + net:hasPhenomenaType :phenomena_modality_possible ; + 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_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" . + +:concept_prohibit-01 rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns3:prohibit-01 ; + :hasPhenomenaLink :phenomena_modality_prohibition ; + :label "prohibit-01" . + +: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_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:Atom_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Individual_Net a owl:Class ; + rdfs:subClassOf net:Net . + +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: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_prohibition-modality_a a net:Deprecated_Net, + net:Phenomena_Net ; + :role_ARG1 net:atomProperty_play_p ; + :role_polarity net:value_negative_blankNode ; + net:coverBaseNode :leaf_prohibit-01_a ; + net:coverNode :leaf_prohibit-01_a ; + net:hasNaming "prohibition-modality" ; + net:hasPhenomenaRef "prohibit-01" ; + net:hasPhenomenaType :phenomena_modality_prohibition ; + net:hasStructure "document-03" . + +<http://amr.isi.edu/amr_data/document-03#a> a ns3:prohibit-01 ; + ns3:prohibit-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:play-01 a ns11:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:prohibit-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_prohibition a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :hasConceptLink "prohibit-01" ; + :label "prohibition-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: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: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 . + +net:objectProperty a owl:AnnotationProperty ; + rdfs:label "object attribute" . + +net:value_John_blankNode a net:Value_Net ; + net:coverAmrValue :value_John ; + net:hasNaming "John" ; + net:hasStructure "document-03" ; + net:hasValueLabel "John" . + +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 . + +: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 . + +: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:has_relation_value a owl:AnnotationProperty ; + rdfs:label "has relation value" ; + rdfs:subPropertyOf net:has_object . + +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 . + +:leaf_movie_m a :AMR_Leaf ; + :hasConcept :concept_movie ; + :hasVariable :variable_m . + +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_prohibit-01_a a :AMR_Leaf ; + :edge_a_ARG1_p :leaf_play-01_p ; + :edge_a_polarity_negative :value_negative ; + :hasConcept :concept_prohibit-01 ; + :hasVariable :variable_a . + +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 . + +:leaf_person_p2 a :AMR_Leaf ; + :edge_p2_name_John :value_John ; + :hasConcept :concept_person ; + :hasVariable :variable_p2 . + +cprm:configParamProperty a rdf:Property ; + rdfs:label "Config Parameter Property" . + +rdf:Property a owl:Class . + +:AMR_Relation a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +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 . + +: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/negation-devGraph-4.ttl b/tests/dev_tests/test_data/negation-devGraph-4.ttl new file mode 100644 index 0000000000000000000000000000000000000000..e9849052b253e64c4dfc4ba50baaf54ff6b40f94 --- /dev/null +++ b/tests/dev_tests/test_data/negation-devGraph-4.ttl @@ -0,0 +1,924 @@ +@base <http://https://tenet.tetras-libre.fr/demo/clara/06//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 ns1: <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 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#> . + +ns1:Concept a rdfs:Class, + owl:Class ; + rdfs:label "AMR-Concept" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns1:Role a rdfs:Class, + owl:Class ; + rdfs:label "AMR-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/test-1#root01> ns1:hasID "test-1" ; + ns1:hasSentence "The sun is a star." ; + ns1:root <http://amr.isi.edu/amr_data/test-1#s> . + +<http://amr.isi.edu/amr_data/test-2#root01> ns1:hasID "test-2" ; + ns1:hasSentence "Earth is a planet." ; + ns1:root <http://amr.isi.edu/amr_data/test-2#p> . + +ns3:play-01.ARG0 a ns3:FrameRole . + +ns3:play-01.ARG1 a ns3:FrameRole . + +ns3:prohibit-01.ARG1 a ns3:FrameRole . + +ns2:domain a ns1:Role, + owl:AnnotationProperty, + owl:NamedIndividual . + +ns1:hasID a owl:AnnotationProperty . + +ns1:hasSentence a owl:AnnotationProperty . + +ns1: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" . + +:phenomena_modality_possible a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :hasConceptLink "allow-01", + "grant-01", + "likely-01", + "permit-01", + "possible-01" ; + :label "possible-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_prohibit-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 . + +<https://tenet.tetras-libre.fr/semantic-net> a owl:Ontology . + +net:Action_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Composite_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:Composite_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Feature a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:Rule_Net a owl:Class ; + rdfs:subClassOf net:Net . + +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: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:phenomena_prohibition-modality_a a net:Phenomena_Net ; + :role_ARG1 net:atomProperty_play_p ; + :role_polarity net:value_negative_blankNode ; + net:coverBaseNode :leaf_prohibit-01_a ; + net:coverNode :leaf_prohibit-01_a ; + net:hasNaming "prohibition-modality" ; + net:hasPhenomenaRef "prohibit-01" ; + net:hasPhenomenaType :phenomena_modality_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 ns1:AMR ; + ns1:has-id "document-03" ; + ns1:has-sentence "John is not allowed to play the movie." ; + ns1: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" . + +ns1:AMR a owl:Class ; + rdfs:subClassOf :AMR_Linked_Data . + +ns1:NamedEntity a ns1: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_movie rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:movie ; + :label "movie" . + +:concept_person rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk <http://amr.isi.edu/entity-types#person> ; + :label "person" . + +:concept_play-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:play-01 ; + :label "play-01" . + +:concept_prohibit-01 rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns3:prohibit-01 ; + :hasPhenomenaLink :phenomena_modality_prohibition ; + :label "prohibit-01" . + +: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:Atom_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: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 . + +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:value_negative_blankNode a net:Value_Net ; + net:coverAmrValue :value_negative ; + net:hasNaming "negative" ; + net:hasStructure "document-03" ; + net:hasValueLabel "negative" . + +<http://amr.isi.edu/amr_data/document-03#a> a ns3:prohibit-01 ; + ns3:prohibit-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 <http://amr.isi.edu/entity-types#person> ; + rdfs:label "John" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/entity-types#person> a ns1:NamedEntity ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:play-01 a ns1:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:prohibit-01 a ns1:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns2:movie a ns1:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns1:Frame a ns1: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_prohibition a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :hasConceptLink "prohibit-01" ; + :label "prohibition-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:Property_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Value_Net a owl:Class ; + rdfs:subClassOf net:Net . + +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:objectProperty a owl:AnnotationProperty ; + rdfs:label "object attribute" . + +net:value_John_blankNode a net:Value_Net ; + net:coverAmrValue :value_John ; + net:hasNaming "John" ; + net:hasStructure "document-03" ; + net:hasValueLabel "John" . + +ns3:FrameRole a ns1: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 . + +: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 . + +:leaf_prohibit-01_a a :AMR_Leaf ; + :edge_a_ARG1_p :leaf_play-01_p ; + :edge_a_polarity_negative :value_negative ; + :hasConcept :concept_prohibit-01 ; + :hasVariable :variable_a . + +: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:has_relation_value a owl:AnnotationProperty ; + rdfs:label "has relation value" ; + rdfs:subPropertyOf net:has_object . + +:AMR_Element a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Variable a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:leaf_movie_m a :AMR_Leaf ; + :hasConcept :concept_movie ; + :hasVariable :variable_m . + +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 . + +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 . + +:leaf_person_p2 a :AMR_Leaf ; + :edge_p2_name_John :value_John ; + :hasConcept :concept_person ; + :hasVariable :variable_p2 . + +cprm:configParamProperty a rdf:Property ; + rdfs:label "Config Parameter Property" . + +rdf:Property a owl:Class . + +:AMR_Relation a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +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 . + +: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_phenomena_polarity.py b/tests/dev_tests/test_rule_phenomena_polarity.py index 50de9568ffa038a52413c1343c931189fd0e8d2e..bae5cbba114dd893a465ef5087bd7c576d606c6f 100644 --- a/tests/dev_tests/test_rule_phenomena_polarity.py +++ b/tests/dev_tests/test_rule_phenomena_polarity.py @@ -19,11 +19,14 @@ OUTPUT_DIR_PATH = f'{FILE_PATH}/test_data/' TEST_FILE_NAME_1 = 'negation-devGraph-1' TEST_FILE_NAME_2 = 'negation-devGraph-2' TEST_FILE_NAME_3 = 'negation-devGraph-3' +TEST_FILE_NAME_4 = 'negation-devGraph-4' from context import tenet from tenet.scheme.amr_master_rule.transduction import phenomena_polarity_analyzer_1 as rule_1 from tenet.scheme.amr_clara_rule.transduction import phenomena_polarity_analyzer_2 as rule_2 +from tenet.scheme.amr_clara_rule.transduction import phenomena_polarity_analyzer_3 as rule_3 from tenet.scheme import amr_master_rule as rule +from tenet.scheme import amr_clara_rule from tenet.transduction import net from tenet.transduction.rdfterm_computer import __update_uri_with_prefix @@ -114,6 +117,17 @@ def test_search_pattern_2(graph): return pattern_set +def test_search_pattern_3(graph): + query_code, pattern_set = rule_3.__search_pattern(graph) + print(f'\n ----- query code: {query_code}') + print(f'\n ----- number of selection found: {len(pattern_set)}') + for selection in pattern_set: + result_str = f'>>> ' + result_str += f'{selection.phenomena_net.n3(graph.namespace_manager)}' + print(result_str) + return pattern_set + + #============================================================================== # Unit Test #============================================================================== @@ -138,6 +152,7 @@ if __name__ == '__main__': graph_1 = load_test_graph(TEST_FILE_NAME_1) graph_2 = load_test_graph(TEST_FILE_NAME_2) graph_3 = load_test_graph(TEST_FILE_NAME_3) + graph_4 = load_test_graph(TEST_FILE_NAME_4) print('\n \n') @@ -197,5 +212,19 @@ if __name__ == '__main__': print('\n *** Unit Test ***') test_rule_application(TEST_FILE_NAME_3, graph_3, rule.analyze_phenomena_polarity_2) print('\n \n') + + + print('\n ///////////////////// Extraction Rule 3') + + print('\n *** Step Test ***') + + print('\n -- Step 1: Search Pattern') + pattern_set = test_search_pattern_3(graph_4) + + print('\n \n') + + print('\n *** Unit Test ***') + test_rule_application(TEST_FILE_NAME_4, graph_4, amr_clara_rule.analyze_phenomena_polarity_3) + print('\n \n') print('\n *** - ***') \ No newline at end of file diff --git a/tests/input/amrDocuments/dev/asail_odrl_sentences/s03.stog.amr.ttl b/tests/input/amrDocuments/dev/asail_odrl_sentences/s03.stog.amr.ttl index f487d2183f484611479fe3759a7bf0b8f9830e6c..2261a5c63dcb625d4911a92ec162a7429d20472e 100644 --- a/tests/input/amrDocuments/dev/asail_odrl_sentences/s03.stog.amr.ttl +++ b/tests/input/amrDocuments/dev/asail_odrl_sentences/s03.stog.amr.ttl @@ -11,7 +11,7 @@ ns1:Role a rdfs:Class ; <http://amr.isi.edu/amr_data/document-03#root01> a ns1:AMR ; ns1:has-id "document-03" ; - ns1:has-sentence "John is not allowed to play the movie.." ; + ns1:has-sentence "John is not allowed to play the movie." ; ns1:root <http://amr.isi.edu/amr_data/document-03#a> . ns3:allow-01.ARG1 a ns3:FrameRole . diff --git a/tests/input/amrDocuments/dev/asail_odrl_sentences/s06.stog.amr.ttl b/tests/input/amrDocuments/dev/asail_odrl_sentences/s06.stog.amr.ttl new file mode 100644 index 0000000000000000000000000000000000000000..4d8fbe8ac015c2ef5afd0aed596509e19f7d5af7 --- /dev/null +++ b/tests/input/amrDocuments/dev/asail_odrl_sentences/s06.stog.amr.ttl @@ -0,0 +1,53 @@ +@prefix ns1: <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 rdfs: <http://www.w3.org/2000/01/rdf-schema#> . + +ns1:Concept a rdfs:Class ; + rdfs:label "AMR-Concept" . + +ns1:Role a rdfs:Class ; + rdfs:label "AMR-Role" . + +<http://amr.isi.edu/amr_data/document-03#root01> a ns1:AMR ; + ns1:has-id "document-03" ; + ns1:has-sentence "John is not allowed to play the movie." ; + ns1:root <http://amr.isi.edu/amr_data/document-03#a> . + +ns3:prohibit-01.ARG1 a ns3:FrameRole . + +ns3:play-01.ARG0 a ns3:FrameRole . + +ns3:play-01.ARG1 a ns3:FrameRole . + +<http://amr.isi.edu/amr_data/document-03#a> a ns3:prohibit-01 ; + ns3:prohibit-01.ARG1 <http://amr.isi.edu/amr_data/document-03#p> ; + ns2:polarity "-" . + +<http://amr.isi.edu/amr_data/document-03#m> a ns2:movie . + +<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> . + +<http://amr.isi.edu/amr_data/document-03#p2> a <http://amr.isi.edu/entity-types#person> ; + rdfs:label "John" . + +<http://amr.isi.edu/entity-types#person> a ns1:NamedEntity . + +ns3:prohibit-01 a ns1:Frame . + +ns3:play-01 a ns1:Frame . + +ns2:movie a ns1:Concept . + +ns1:NamedEntity a ns1:Concept ; + rdfs:label "AMR-EntityType", + "AMR-Term" . + +ns1:Frame a ns1:Concept ; + rdfs:label "AMR-PropBank-Frame" . + +ns3:FrameRole a ns1:Role ; + rdfs:label "AMR-PropBank-Role" . + diff --git a/tests/test_tenet_clara_main.py b/tests/test_tenet_clara_main.py index 36a3fb3f3a084e3d4e113c2bdb792452306cb684..e156437a5441d216c09d340eacd371ccab6cc73d 100644 --- a/tests/test_tenet_clara_main.py +++ b/tests/test_tenet_clara_main.py @@ -29,7 +29,7 @@ from context import tenet # -- Input Data test_data_dir = f'{INPUT_DIR_PATH}amrDocuments/' -uuid_num = '03' +uuid_num = '06' amrld_dir_path = f'{test_data_dir}dev/asail_odrl_sentences/' amrld_file_path = f'{amrld_dir_path}s{uuid_num}.stog.amr.ttl' base_output_name = f'aos{uuid_num}' @@ -51,17 +51,17 @@ technical_dir_path = f'{out_dir_path}technical-data/' os.chdir('..') # -- Extraction from a file -# factoids = tenet.create_ontology_from_amrld_file(amrld_file_path, -# onto_prefix=onto_prefix, -# out_file_path=out_file_path, -# technical_dir_path=technical_dir_path) +factoids = tenet.create_ontology_from_amrld_file(amrld_file_path, + onto_prefix=onto_prefix, + out_file_path=out_file_path, + technical_dir_path=technical_dir_path) # -- Extraction from a directory (all files in a directory) -factoids = tenet.create_ontology_from_amrld_dir(amrld_dir_path, - onto_prefix=onto_prefix, - out_file_path=out_file_path, - technical_dir_path=technical_dir_path) +# factoids = tenet.create_ontology_from_amrld_dir(amrld_dir_path, +# onto_prefix=onto_prefix, +# out_file_path=out_file_path, +# technical_dir_path=technical_dir_path) print(factoids)