diff --git a/tenet/scheme/amr_clara_rule/odrl_generation/odrl_rule_generator.py b/tenet/scheme/amr_clara_rule/odrl_generation/odrl_rule_generator.py index 8304849eaf22e330a3401c08d970eca48addde14..f531e6023ebf7f1e43db0d852b12a7524428e69b 100644 --- a/tenet/scheme/amr_clara_rule/odrl_generation/odrl_rule_generator.py +++ b/tenet/scheme/amr_clara_rule/odrl_generation/odrl_rule_generator.py @@ -114,6 +114,49 @@ def __compute_target_ref(graph, action_net): return target_ref +# Assignee Reference +# ----------------------------------------------------- + +def __compute_assignee_ref_from_class_net(graph, assignee_net_uri): + + assignee_net = net.ClassNet(graph, assignee_net_uri) + individual_name = 'any' + class_name = assignee_net.get_attribute_first_value(assignee_net.class_name) + if class_name is None: class_name = 'unknown' + + return f'<http://example.com/asset:{individual_name}.{class_name}>' + + +def __compute_assignee_ref_from_individual_net(graph, assignee_net_uri): + + assignee_net = net.IndividualNet(graph, assignee_net_uri) + individual_name = assignee_net.get_attribute_first_value(assignee_net.individual_label) + class_net_uri = assignee_net.get_attribute_first_value(assignee_net.mother_class_net) + class_net = net.ClassNet(graph, class_net_uri) + class_name = class_net.get_attribute_first_value(class_net.class_name) + if class_name is None: class_name = 'unknown' + + return f'<http://example.com/asset:{individual_name}.{class_name}>' + + +def __compute_assignee_ref(graph, action_net): + + assignee_ref = '' + first = True + + for assignee_net_uri in action_net.assignee_class_net: + new_ref = __compute_assignee_ref_from_class_net(graph, assignee_net_uri) + assignee_ref = new_ref if first else f'{assignee_ref}, {new_ref}' + first = False + + for assignee_net_uri in action_net.assignee_individual_net: + new_ref = __compute_assignee_ref_from_individual_net(graph, assignee_net_uri) + assignee_ref = new_ref if first else f'{assignee_ref}, {new_ref}' + first = False + + return assignee_ref + + # ODRL Action Code # ----------------------------------------------------- @@ -133,8 +176,11 @@ def __compute_odrl_action_code(graph, rule_net): target_ref = __compute_target_ref(graph, action_net) if target_ref != '': target_ref = f'{ACTION_SPACING_CODE} odrl:target {target_ref} ;' + + assignee_ref = __compute_assignee_ref(graph, action_net) + if assignee_ref != '': assignee_ref = f'{ACTION_SPACING_CODE} odrl:assignee {assignee_ref} ;' - action_string = f"""[ {target_ref} {action_ref} ]""" + action_string = f"""[ {target_ref} {assignee_ref} {action_ref} ]""" return produce_literal(graph, action_string) diff --git a/tenet/tenet.log b/tenet/tenet.log index 17a71a1df6c99dcab0cc903f06cf8605d430bc1c..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 --- a/tenet/tenet.log +++ b/tenet/tenet.log @@ -1,501 +0,0 @@ -- INFO - [TENET] Extraction Processing -- INFO - - === Process Initialization === -- INFO - -- Process Setting -- INFO - ----- Corpus source: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/ (amr) -- INFO - ----- Base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/aos03_factoid.ttl -- INFO - ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/technical-data/ -- INFO - ----- Ontology target (id): https://tenet.tetras-libre.fr/demo/clara/03/ -- INFO - ----- Current path: /home/lamenji/Workspace/Tetras/tenet/tenet -- DEBUG - ----- Config file: /home/lamenji/Workspace/Tetras/tenet/tenet/config.xml -- 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/ - ----- target reference: base - ----- process level: sentence - ----- source type: amr - -- Compositional Transduction Scheme (CTS) - ----- CTS reference: amr_scheme_clara_1 - -- Directories - ----- base directory: ./ - ----- structure directory: ./structure/ - ----- 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/ - -- Config File Definition - ----- schema file: ./structure/amr-rdf-schema.ttl - ----- semantic net file: ./structure/odrl-snet-schema.ttl - ----- config param file: ./structure/config-parameters.ttl - ----- base ontology file: ./structure/base-ontology.ttl - ----- CTS file: ./scheme/amr_scheme_clara_1.py - -- Useful References for Ontology - ----- base URI: https://tenet.tetras-libre.fr/working - ----- 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 - -- 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 - *** - *** -- DEBUG - -- Counting number of graph files (sentences) -- INFO - ----- Number of Graphs: 5 -- INFO - - === Extraction Processing === -- INFO - *** sentence 1 *** -- INFO - -- Work Structure Preparation -- DEBUG - --- Graph Initialization -- DEBUG - ----- Configuration Loading -- DEBUG - -------- RDF Schema (319) -- DEBUG - -------- Semantic Net Definition (465) -- DEBUG - -------- Config Parameter Definition (499) -- DEBUG - ----- Frame Ontology Loading -- DEBUG - -------- Base Ontology produced as output (529) -- DEBUG - --- Source Data Import -- DEBUG - ----- Sentence Loading -- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/asail_odrl_sentences/s05.stog.amr.ttl (559) -- DEBUG - --- Export work graph as turtle -- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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.028278) -- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- INFO - ----- reclassify-concept-1: 5/5 new triples (564, 0:00:00.133775) -- INFO - ----- reclassify-concept-2: 8/8 new triples (572, 0:00:00.069254) -- INFO - ----- reclassify-concept-3: 4/4 new triples (576, 0:00:00.059334) -- INFO - ----- reclassify-concept-4: 8/8 new triples (584, 0:00:00.072751) -- DEBUG - ----- reclassify-concept-5: 0/0 new triple (584, 0:00:00.046561) -- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (584, 0:00:00.061721) -- INFO - ----- reclassify-existing-variable: 25/25 new triples (609, 0:00:00.039417) -- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (609, 0:00:00.065926) -- INFO - ----- add-amr-leaf-for-reclassified-concept: 18/18 new triples (627, 0:00:00.035387) -- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (627, 0:00:00.041213) -- INFO - ----- add-amr-edge-for-core-relation: 15/15 new triples (642, 0:00:00.099573) -- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (642, 0:00:00.077495) -- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (647, 0:00:00.068651) -- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (647, 0:00:00.076442) -- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (647, 0:00:00.075864) -- INFO - ----- update-amr-edge-role-1: 5/5 new triples (652, 0:00:00.037272) -- INFO - ----- add-amr-root: 5/5 new triples (657, 0:00:00.020544) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_preprocessing -- DEBUG - ----- step: preprocessing -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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.065833) -- INFO - ----- extract atom individuals: 8/8 new triples (677, 0:00:00.046942) -- INFO - ----- extract atomic properties: 36/36 new triples (713, 0:00:00.226318) -- INFO - ----- extract atom values: 5/5 new triples (718, 0:00:00.066432) -- INFO - ----- extract atom phenomena: 7/7 new triples (725, 0:00:00.048280) -- INFO - ----- propagate atom relations: 11/30 new triples (736, 0:00:00.454820) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1) -- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (736, 0:00:00.006895) -- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (736, 0:00:00.013034) -- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (736, 0:00:00.007716) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2) -- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (736, 0:00:00.010918) -- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (736, 0:00:00.011287) -- INFO - --- *** February Transduction *** Sequence: composite class extraction sequence -- DEBUG - ----- extract composite classes (1): 0/0 new triple (736, 0:00:00.025834) -- DEBUG - ----- extract composite classes (2): 0/0 new triple (736, 0:00:00.020164) -- INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence -- INFO - ----- extract ODRL actions: 11/12 new triples (747, 0:00:00.156394) -- INFO - ----- extract ODRL rules: 11/11 new triples (758, 0:00:00.125677) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_transduction -- DEBUG - ----- step: transduction -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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.059877) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_generation -- DEBUG - ----- step: generation -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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 -- INFO - ----- Sentence (id): document-03 -- 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.039559) -- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- INFO - ----- reclassify-concept-1: 5/5 new triples (556, 0:00:00.116829) -- DEBUG - ----- reclassify-concept-2: 0/0 new triple (556, 0:00:00.070566) -- INFO - ----- reclassify-concept-3: 4/4 new triples (560, 0:00:00.052543) -- INFO - ----- reclassify-concept-4: 4/4 new triples (564, 0:00:00.066255) -- INFO - ----- reclassify-concept-5: 4/4 new triples (568, 0:00:00.047031) -- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (568, 0:00:00.056269) -- INFO - ----- reclassify-existing-variable: 17/17 new triples (585, 0:00:00.034687) -- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (585, 0:00:00.060676) -- INFO - ----- add-amr-leaf-for-reclassified-concept: 12/12 new triples (597, 0:00:00.037658) -- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (597, 0:00:00.029484) -- INFO - ----- add-amr-edge-for-core-relation: 9/9 new triples (606, 0:00:00.104501) -- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (606, 0:00:00.086192) -- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (611, 0:00:00.081757) -- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (611, 0:00:00.069789) -- INFO - ----- add-amr-edge-for-polarity-relation: 5/5 new triples (616, 0:00:00.090799) -- INFO - ----- update-amr-edge-role-1: 5/5 new triples (621, 0:00:00.051268) -- INFO - ----- add-amr-root: 5/5 new triples (626, 0:00:00.032024) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_preprocessing -- DEBUG - ----- step: preprocessing -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/technical-data/tenet.tetras-libre.fr_demo_clara_03-2/tenet.tetras-libre.fr_demo_clara_03_preprocessing.ttl -- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//preprocessing -- INFO - ----- 75 triples extracted during preprocessing step -- INFO - -- Applying extraction step: transduction -- INFO - --- *** February Transduction *** Sequence: atomic extraction sequence -- INFO - ----- extract atom classes: 12/12 new triples (638, 0:00:00.146927) -- INFO - ----- extract atom individuals: 8/8 new triples (646, 0:00:00.046648) -- INFO - ----- extract atomic properties: 13/13 new triples (659, 0:00:00.048675) -- INFO - ----- extract atom values: 10/10 new triples (669, 0:00:00.057319) -- INFO - ----- extract atom phenomena: 7/7 new triples (676, 0:00:00.047222) -- INFO - ----- propagate atom relations: 11/28 new triples (687, 0:00:00.378675) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1) -- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (687, 0:00:00.007688) -- INFO - ----- analyze "polarity" phenomena (2): 12/14 new triples (699, 0:00:00.064525) -- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (699, 0:00:00.015044) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2) -- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (699, 0:00:00.014722) -- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (699, 0:00:00.010283) -- INFO - --- *** February Transduction *** Sequence: composite class extraction sequence -- DEBUG - ----- extract composite classes (1): 0/0 new triple (699, 0:00:00.025958) -- DEBUG - ----- extract composite classes (2): 0/0 new triple (699, 0:00:00.026978) -- INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence -- INFO - ----- extract ODRL actions: 15/17 new triples (714, 0:00:00.168939) -- INFO - ----- extract ODRL rules: 12/12 new triples (726, 0:00:00.138499) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_transduction -- DEBUG - ----- step: transduction -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/technical-data/tenet.tetras-libre.fr_demo_clara_03-2/tenet.tetras-libre.fr_demo_clara_03_transduction.ttl -- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//transduction -- INFO - ----- 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.050296) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_generation -- DEBUG - ----- step: generation -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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.042633) -- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- INFO - ----- reclassify-concept-1: 5/5 new triples (560, 0:00:00.121815) -- DEBUG - ----- reclassify-concept-2: 0/0 new triple (560, 0:00:00.067102) -- INFO - ----- reclassify-concept-3: 4/4 new triples (564, 0:00:00.054594) -- INFO - ----- reclassify-concept-4: 8/8 new triples (572, 0:00:00.070588) -- INFO - ----- reclassify-concept-5: 4/4 new triples (576, 0:00:00.043840) -- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (576, 0:00:00.050940) -- INFO - ----- reclassify-existing-variable: 22/22 new triples (598, 0:00:00.029905) -- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (598, 0:00:00.055316) -- INFO - ----- add-amr-leaf-for-reclassified-concept: 15/15 new triples (613, 0:00:00.036732) -- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (613, 0:00:00.029616) -- INFO - ----- add-amr-edge-for-core-relation: 12/12 new triples (625, 0:00:00.104075) -- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (625, 0:00:00.085523) -- INFO - ----- add-amr-edge-for-name-relation: 10/10 new triples (635, 0:00:00.084935) -- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (635, 0:00:00.163399) -- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (635, 0:00:00.070915) -- INFO - ----- update-amr-edge-role-1: 6/6 new triples (641, 0:00:00.041842) -- INFO - ----- add-amr-root: 5/5 new triples (646, 0:00:00.025455) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_preprocessing -- DEBUG - ----- step: preprocessing -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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.099904) -- INFO - ----- extract atom individuals: 16/16 new triples (680, 0:00:00.089562) -- INFO - ----- extract atomic properties: 13/13 new triples (693, 0:00:00.044956) -- INFO - ----- extract atom values: 10/10 new triples (703, 0:00:00.053112) -- INFO - ----- extract atom phenomena: 7/7 new triples (710, 0:00:00.043829) -- INFO - ----- propagate atom relations: 15/52 new triples (725, 0:00:00.572624) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1) -- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (725, 0:00:00.008995) -- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (725, 0:00:00.009510) -- INFO - ----- analyze modifier phenomena (mod): 21/25 new triples (746, 0:00:00.099719) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2) -- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (746, 0:00:00.013142) -- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (746, 0:00:00.010568) -- INFO - --- *** February Transduction *** Sequence: composite class extraction sequence -- DEBUG - ----- extract composite classes (1): 0/0 new triple (746, 0:00:00.021774) -- DEBUG - ----- extract composite classes (2): 0/0 new triple (746, 0:00:00.027928) -- INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence -- INFO - ----- extract ODRL actions: 11/12 new triples (757, 0:00:00.124288) -- INFO - ----- extract ODRL rules: 11/11 new triples (768, 0:00:00.122076) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_transduction -- DEBUG - ----- step: transduction -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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.061331) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_generation -- DEBUG - ----- step: generation -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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.026003) -- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- INFO - ----- reclassify-concept-1: 5/5 new triples (551, 0:00:00.122609) -- DEBUG - ----- reclassify-concept-2: 0/0 new triple (551, 0:00:00.066056) -- INFO - ----- reclassify-concept-3: 4/4 new triples (555, 0:00:00.050867) -- INFO - ----- reclassify-concept-4: 4/4 new triples (559, 0:00:00.060318) -- DEBUG - ----- reclassify-concept-5: 0/0 new triple (559, 0:00:00.057827) -- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (559, 0:00:00.050761) -- INFO - ----- reclassify-existing-variable: 13/13 new triples (572, 0:00:00.031900) -- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (572, 0:00:00.112678) -- INFO - ----- add-amr-leaf-for-reclassified-concept: 9/9 new triples (581, 0:00:00.043785) -- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (581, 0:00:00.040343) -- INFO - ----- add-amr-edge-for-core-relation: 6/6 new triples (587, 0:00:00.111623) -- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (587, 0:00:00.174088) -- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (592, 0:00:00.078472) -- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (592, 0:00:00.077817) -- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (592, 0:00:00.128446) -- INFO - ----- update-amr-edge-role-1: 3/3 new triples (595, 0:00:00.039129) -- INFO - ----- add-amr-root: 5/5 new triples (600, 0:00:00.038090) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_preprocessing -- DEBUG - ----- step: preprocessing -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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.043552) -- INFO - ----- extract atom individuals: 8/8 new triples (614, 0:00:00.058412) -- INFO - ----- extract atomic properties: 12/12 new triples (626, 0:00:00.053410) -- INFO - ----- extract atom values: 5/5 new triples (631, 0:00:00.042118) -- INFO - ----- extract atom phenomena: 7/7 new triples (638, 0:00:00.041336) -- INFO - ----- propagate atom relations: 7/22 new triples (645, 0:00:00.329548) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1) -- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (645, 0:00:00.006347) -- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (645, 0:00:00.013114) -- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (645, 0:00:00.011006) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2) -- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (645, 0:00:00.011040) -- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (645, 0:00:00.011731) -- INFO - --- *** February Transduction *** Sequence: composite class extraction sequence -- DEBUG - ----- extract composite classes (1): 0/0 new triple (645, 0:00:00.026680) -- DEBUG - ----- extract composite classes (2): 0/0 new triple (645, 0:00:00.029119) -- INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence -- INFO - ----- extract ODRL actions: 11/12 new triples (656, 0:00:00.150244) -- INFO - ----- extract ODRL rules: 11/11 new triples (667, 0:00:00.129207) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_transduction -- DEBUG - ----- step: transduction -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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.076169) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_generation -- DEBUG - ----- step: generation -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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.027090) -- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- INFO - ----- reclassify-concept-1: 5/5 new triples (555, 0:00:00.257633) -- DEBUG - ----- reclassify-concept-2: 0/0 new triple (555, 0:00:00.132597) -- INFO - ----- reclassify-concept-3: 4/4 new triples (559, 0:00:00.052016) -- INFO - ----- reclassify-concept-4: 4/4 new triples (563, 0:00:00.065712) -- INFO - ----- reclassify-concept-5: 4/4 new triples (567, 0:00:00.045513) -- DEBUG - ----- reify-roles-as-concept: 0/0 new triple (567, 0:00:00.042512) -- INFO - ----- reclassify-existing-variable: 17/17 new triples (584, 0:00:00.027844) -- DEBUG - ----- add-new-variable-for-reified-concept: 0/0 new triple (584, 0:00:00.056967) -- INFO - ----- add-amr-leaf-for-reclassified-concept: 12/12 new triples (596, 0:00:00.030150) -- DEBUG - ----- add-amr-leaf-for-reified-concept: 0/0 new triple (596, 0:00:00.037799) -- INFO - ----- add-amr-edge-for-core-relation: 9/9 new triples (605, 0:00:00.091401) -- DEBUG - ----- add-amr-edge-for-reified-concept: 0/0 new triple (605, 0:00:00.114899) -- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (610, 0:00:00.184019) -- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (610, 0:00:00.064280) -- DEBUG - ----- add-amr-edge-for-polarity-relation: 0/0 new triple (610, 0:00:00.074864) -- INFO - ----- update-amr-edge-role-1: 4/4 new triples (614, 0:00:00.035267) -- INFO - ----- add-amr-root: 5/5 new triples (619, 0:00:00.024913) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_preprocessing -- DEBUG - ----- step: preprocessing -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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.072270) -- INFO - ----- extract atom individuals: 8/8 new triples (639, 0:00:00.040712) -- INFO - ----- extract atomic properties: 13/13 new triples (652, 0:00:00.048191) -- INFO - ----- extract atom values: 5/5 new triples (657, 0:00:00.029102) -- INFO - ----- extract atom phenomena: 7/7 new triples (664, 0:00:00.043117) -- INFO - ----- propagate atom relations: 10/26 new triples (674, 0:00:00.396395) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (1) -- DEBUG - ----- analyze "polarity" phenomena (1): 0/0 new triple (674, 0:00:00.007896) -- DEBUG - ----- analyze "polarity" phenomena (2): 0/0 new triple (674, 0:00:00.014469) -- DEBUG - ----- analyze modifier phenomena (mod): 0/0 new triple (674, 0:00:00.009900) -- INFO - --- *** February Transduction *** Sequence: phenomena analyze sequence (2) -- DEBUG - ----- analyze "or" phenomena (1): 0/0 new triple (674, 0:00:00.012507) -- DEBUG - ----- analyze "or" phenomena (2): 0/0 new triple (674, 0:00:00.014408) -- INFO - --- *** February Transduction *** Sequence: composite class extraction sequence -- DEBUG - ----- extract composite classes (1): 0/0 new triple (674, 0:00:00.021494) -- DEBUG - ----- extract composite classes (2): 0/0 new triple (674, 0:00:00.028445) -- INFO - --- *** February Transduction *** Sequence: ODRL extraction sequence -- INFO - ----- extract ODRL actions: 14/15 new triples (688, 0:00:00.137891) -- INFO - ----- extract ODRL rules: 12/12 new triples (700, 0:00:00.117933) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_transduction -- DEBUG - ----- step: transduction -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-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.049244) -- DEBUG - --- Serializing graph to tenet.tetras-libre.fr_demo_clara_03_generation -- DEBUG - ----- step: generation -- DEBUG - ----- id: https://tenet.tetras-libre.fr/demo/clara/03/ -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/technical-data/tenet.tetras-libre.fr_demo_clara_03-5/tenet.tetras-libre.fr_demo_clara_03_generation.ttl -- DEBUG - ----- base: http://https://tenet.tetras-libre.fr/demo/clara/03//generation -- INFO - ----- 1 triples extracted during generation step -- DEBUG - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/technical-data/tenet.tetras-libre.fr_demo_clara_03-5/tenet.tetras-libre.fr_demo_clara_03_factoid.ttl) -- DEBUG - ----- Number of factoids: 1 -- DEBUG - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/clara/03//factoid -- INFO - - === Final Ontology Generation === -- INFO - -- Making complete factoid graph by merging the result factoids -- INFO - ----- Total factoid number: 5 -- INFO - -- Serializing graph to factoid string -- INFO - ----- Graph base: http://https://tenet.tetras-libre.fr/demo/clara/03//factoid -- INFO - -- Serializing graph to factoid file -- INFO - ----- Ontology Turtle File: /home/lamenji/Workspace/Tetras/tenet/tests/output/aos03-20230417/aos03_factoid.ttl -- INFO - - === Done === -- INFO - - *** Execution Time *** ------ Function: create_ontology_from_amrld_dir (tenet.main) ------ Total Time: 0:00:13.758264 ------ Process Time: 0:00:13.556367 - *** - *** diff --git a/tests/dev_tests/test_data/odrl-generation-devGraph-1.result.ttl b/tests/dev_tests/test_data/odrl-generation-devGraph-1.result.ttl index 8abff8a2de01eca34e02f21d1dc21b7605c2b1c9..755d46135540af21359e028ea15047a4db15f6b1 100644 --- a/tests/dev_tests/test_data/odrl-generation-devGraph-1.result.ttl +++ b/tests/dev_tests/test_data/odrl-generation-devGraph-1.result.ttl @@ -405,7 +405,7 @@ cprm:targetOntologyURI a rdf:Property ; rdfs:subPropertyOf cprm:configParamProperty . ext-out:policy_document-02 ns1:permission """[ - odrl:target <http://example.com/asset:any.movie>, <http://example.com/asset:9899.movie> ; + odrl:target <http://example.com/asset:9899.movie> ; odrl:action display ]""" . <https://tenet.tetras-libre.fr/semantic-net> a owl:Ontology . @@ -416,9 +416,6 @@ net:Composite_Class_Net a owl:Class ; net:Composite_Property_Net a owl:Class ; rdfs:subClassOf net:Property_Net . -net:Deprecated_Net a owl:Class ; - rdfs:subClassOf net:Net . - net:Feature a owl:Class ; rdfs:subClassOf net:Net_Structure . @@ -683,6 +680,9 @@ sys:Out_AnnotationProperty a owl:AnnotationProperty . net:Action_Net a owl:Class ; rdfs:subClassOf net:Net . +net:Deprecated_Net a owl:Class ; + rdfs:subClassOf net:Net . + net:Individual_Net a owl:Class ; rdfs:subClassOf net:Net . @@ -827,6 +827,15 @@ net:Class_Net a owl:Class ; net:Property_Net a owl:Class ; rdfs:subClassOf net:Net . +net:atomClass_movie_m a net:Atom_Class_Net, + net:Deprecated_Net ; + :role_name net:value_9899_blankNode ; + net:coverBaseNode :leaf_movie_m ; + net:coverNode :leaf_movie_m ; + net:hasClassName "movie" ; + net:hasNaming "movie" ; + net:hasStructure "document-02" . + net:atomProperty_display_d a net:Atom_Property_Net ; :role_ARG1 net:atomClass_movie_m, net:individual_9899_m ; @@ -893,8 +902,7 @@ net:Net_Structure a owl:Class ; rdfs:comment "A semantic net captures a set of nodes, and associates this set with type(s) and value(s)." . net:action_display_d a net:Action_Net ; - net:composeFrom net:atomClass_movie_m, - net:atomProperty_display_d, + net:composeFrom net:atomProperty_display_d, net:individual_9899_m ; net:coverBaseNode :leaf_display-01_d ; net:coverNode :leaf_display-01_d, @@ -902,7 +910,6 @@ net:action_display_d a net:Action_Net ; net:hasActionName "display" ; net:hasNaming "display" ; net:hasStructure "document-02" ; - net:hasTargetClassNet net:atomClass_movie_m ; net:hasTargetIndividualNet net:individual_9899_m . net:has_relation_value a owl:AnnotationProperty ; @@ -932,14 +939,6 @@ net:individual_9899_m a net:Individual_Net ; net:Relation a owl:Class ; rdfs:subClassOf net:Net_Structure . -net:atomClass_movie_m a net:Atom_Class_Net ; - :role_name net:value_9899_blankNode ; - net:coverBaseNode :leaf_movie_m ; - net:coverNode :leaf_movie_m ; - net:hasClassName "movie" ; - net:hasNaming "movie" ; - net:hasStructure "document-02" . - :AMR_NonCore_Role a owl:Class ; rdfs:subClassOf :AMR_Role . diff --git a/tests/dev_tests/test_data/odrl-generation-devGraph-1.ttl b/tests/dev_tests/test_data/odrl-generation-devGraph-1.ttl index 3ade3fcf01652d5dcffa915bef476adfbbaa89cf..a351a8a76e630835301bff3d72887e5603350983 100644 --- a/tests/dev_tests/test_data/odrl-generation-devGraph-1.ttl +++ b/tests/dev_tests/test_data/odrl-generation-devGraph-1.ttl @@ -410,9 +410,6 @@ net:Composite_Class_Net a owl:Class ; net:Composite_Property_Net a owl:Class ; rdfs:subClassOf net:Property_Net . -net:Deprecated_Net a owl:Class ; - rdfs:subClassOf net:Net . - net:Feature a owl:Class ; rdfs:subClassOf net:Net_Structure . @@ -677,6 +674,9 @@ sys:Out_AnnotationProperty a owl:AnnotationProperty . net:Action_Net a owl:Class ; rdfs:subClassOf net:Net . +net:Deprecated_Net a owl:Class ; + rdfs:subClassOf net:Net . + net:Individual_Net a owl:Class ; rdfs:subClassOf net:Net . @@ -821,6 +821,15 @@ net:Class_Net a owl:Class ; net:Property_Net a owl:Class ; rdfs:subClassOf net:Net . +net:atomClass_movie_m a net:Atom_Class_Net, + net:Deprecated_Net ; + :role_name net:value_9899_blankNode ; + net:coverBaseNode :leaf_movie_m ; + net:coverNode :leaf_movie_m ; + net:hasClassName "movie" ; + net:hasNaming "movie" ; + net:hasStructure "document-02" . + net:atomProperty_display_d a net:Atom_Property_Net ; :role_ARG1 net:atomClass_movie_m, net:individual_9899_m ; @@ -887,8 +896,7 @@ net:Net_Structure a owl:Class ; rdfs:comment "A semantic net captures a set of nodes, and associates this set with type(s) and value(s)." . net:action_display_d a net:Action_Net ; - net:composeFrom net:atomClass_movie_m, - net:atomProperty_display_d, + net:composeFrom net:atomProperty_display_d, net:individual_9899_m ; net:coverBaseNode :leaf_display-01_d ; net:coverNode :leaf_display-01_d, @@ -896,7 +904,6 @@ net:action_display_d a net:Action_Net ; net:hasActionName "display" ; net:hasNaming "display" ; net:hasStructure "document-02" ; - net:hasTargetClassNet net:atomClass_movie_m ; net:hasTargetIndividualNet net:individual_9899_m . net:has_relation_value a owl:AnnotationProperty ; @@ -926,14 +933,6 @@ net:individual_9899_m a net:Individual_Net ; net:Relation a owl:Class ; rdfs:subClassOf net:Net_Structure . -net:atomClass_movie_m a net:Atom_Class_Net ; - :role_name net:value_9899_blankNode ; - net:coverBaseNode :leaf_movie_m ; - net:coverNode :leaf_movie_m ; - net:hasClassName "movie" ; - net:hasNaming "movie" ; - net:hasStructure "document-02" . - :AMR_NonCore_Role a owl:Class ; rdfs:subClassOf :AMR_Role . diff --git a/tests/dev_tests/test_data/odrl-generation-devGraph-2.result.ttl b/tests/dev_tests/test_data/odrl-generation-devGraph-2.result.ttl index a2b2798e91f6b1b03bfeab32dc0f8884f694a6e8..6f05710ddccca1f9c567b015eddc2da3440443e5 100644 --- a/tests/dev_tests/test_data/odrl-generation-devGraph-2.result.ttl +++ b/tests/dev_tests/test_data/odrl-generation-devGraph-2.result.ttl @@ -4,9 +4,9 @@ @prefix ext-out: <https://tenet.tetras-libre.fr/extract-result#> . @prefix net: <https://tenet.tetras-libre.fr/semantic-net#> . @prefix ns1: <odrl:> . -@prefix ns11: <http://amr.isi.edu/frames/ld/v1.2.2/> . +@prefix ns11: <http://amr.isi.edu/rdf/core-amr#> . @prefix ns2: <http://amr.isi.edu/rdf/amr-terms#> . -@prefix ns21: <http://amr.isi.edu/rdf/core-amr#> . +@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#> . @@ -14,39 +14,39 @@ @prefix sys: <https://tenet.tetras-libre.fr/base-ontology#> . @prefix xsd: <http://www.w3.org/2001/XMLSchema#> . -ns21:Concept a rdfs:Class, +ns11:Concept a rdfs:Class, owl:Class ; rdfs:label "AMR-Concept" ; rdfs:subClassOf :AMR_Linked_Data . -ns21:Role a rdfs:Class, +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> ns21:hasID "test-1" ; - ns21:hasSentence "The sun is a star." ; - ns21:root <http://amr.isi.edu/amr_data/test-1#s> . +<http://amr.isi.edu/amr_data/test-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> ns21:hasID "test-2" ; - ns21:hasSentence "Earth is a planet." ; - ns21:root <http://amr.isi.edu/amr_data/test-2#p> . +<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> . -ns11:obligate-01.ARG2 a ns11:FrameRole . +ns3:allow-01.ARG1 a ns3:FrameRole . -ns11:play-02.ARG0 a ns11:FrameRole . +ns3:play-01.ARG0 a ns3:FrameRole . -ns11:play-02.ARG1 a ns11:FrameRole . +ns3:play-01.ARG1 a ns3:FrameRole . -ns2:domain a ns21:Role, +ns2:domain a ns11:Role, owl:AnnotationProperty, owl:NamedIndividual . -ns21:hasID a owl:AnnotationProperty . +ns11:hasID a owl:AnnotationProperty . -ns21:hasSentence a owl:AnnotationProperty . +ns11:hasSentence a owl:AnnotationProperty . -ns21:root a owl:AnnotationProperty . +ns11:root a owl:AnnotationProperty . <https://amr.tetras-libre.fr/rdf/schema> a owl:Ontology ; owl:versionIRI :0.1 . @@ -56,9 +56,13 @@ ns21:root a owl:AnnotationProperty . :AMR_Prep_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:edge_o_ARG2_p a :AMR_Edge ; - :hasAmrRole :role_ARG2 ; - :hasRoleID "ARG2" . +: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 ; @@ -159,18 +163,10 @@ ns21:root a owl:AnnotationProperty . :hasConceptLink "have-degree-91" ; :label "degree" . -:phenomena_modality_possible a owl:Class ; - rdfs:subClassOf :phenomena_modality ; - :hasConceptLink "allow-01", - "grant-01", - "likely-01", - "permit-01", - "possible-01" ; - :label "possible-modality" . - -:phenomena_modality_prohibition a owl:Class ; +:phenomena_modality_obligation a owl:Class ; rdfs:subClassOf :phenomena_modality ; - :label "prohibition-modality" . + :hasConceptLink "obligate-01" ; + :label "obligation-modality" . :relation_domain a owl:Class ; rdfs:subClassOf :AMR_Relation ; @@ -213,6 +209,10 @@ ns21:root a owl:AnnotationProperty . :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" . @@ -317,19 +317,15 @@ ns21:root a owl:AnnotationProperty . :toReifyWithBaseEdge "ARG0" ; :toReifyWithHeadEdge "ARG1" . -:role_polarity a owl:Class ; - rdfs:subClassOf :AMR_Specific_Role ; - :label "polarity" . - :role_quant a owl:Class ; rdfs:subClassOf :AMR_Specific_Role ; :label "quant" . -:root_document-02 a :AMR_Root ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-02#root01> ; - :hasRootLeaf :leaf_obligate-01_o ; - :hasSentenceID "document-02" ; - :hasSentenceStatement "John must play the movie." . +:root_document-03 a :AMR_Root ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-03#root01> ; + :hasRootLeaf :leaf_allow-01_a ; + :hasSentenceID "document-03" ; + :hasSentenceStatement "John is not allowed to play the movie.." . :toReifyAsConcept a owl:AnnotationProperty ; rdfs:subPropertyOf :toReify . @@ -397,7 +393,9 @@ cprm:targetOntologyURI a rdf:Property ; rdfs:range xsd:string ; rdfs:subPropertyOf cprm:configParamProperty . -ext-out:policy_document-02 ns1:obligation """[ +ext-out:policy_document-03 ns1:prohibition """[ + odrl:target <http://example.com/asset:any.movie> ; + odrl:assignee <http://example.com/asset:John.person> ; odrl:action play ]""" . <https://tenet.tetras-libre.fr/semantic-net> a owl:Ontology . @@ -405,6 +403,9 @@ ext-out:policy_document-02 ns1:obligation """[ 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 . @@ -416,19 +417,6 @@ net:atomType a owl:AnnotationProperty ; rdfs:label "atom type" ; rdfs:subPropertyOf net:objectType . -net:compositeProperty_person-play-movie_p2 a net:Composite_Property_Net ; - :role_name net:value_John_blankNode ; - net:composeFrom net:atomClass_movie_m, - net:atomClass_person_p2, - net:atomProperty_play_p ; - net:coverBaseNode :leaf_person_p2 ; - net:coverNode :leaf_movie_m, - :leaf_person_p2, - :leaf_play-02_p ; - net:hasNaming "person-play-movie" ; - net:hasRestriction net:restriction_play-movie_p ; - net:hasStructure "document-02" . - net:entityClass a owl:AnnotationProperty ; rdfs:label "entity class" ; rdfs:subPropertyOf net:objectValue . @@ -540,17 +528,18 @@ net:modCat2 a owl:AnnotationProperty ; net:normal_direction a owl:NamedIndividual . -net:rule_obligation_o a net:Rule_Net ; +net:rule_prohibition_a a net:Rule_Net ; net:composeFrom net:action_play_p, - net:phenomena_obligation-modality_o ; - net:coverBaseNode :leaf_obligate-01_o ; - net:coverNode :leaf_movie_m, - :leaf_obligate-01_o, - :leaf_play-02_p ; - net:hasNaming "obligation" ; + net:phenomena_prohibition-modality_a ; + net:coverBaseNode :leaf_allow-01_a ; + net:coverNode :leaf_allow-01_a, + :leaf_movie_m, + :leaf_person_p2, + :leaf_play-01_p ; + net:hasNaming "prohibition" ; net:hasRuleActionURI net:action_play_p ; - net:hasRuleRelationName "obligation" ; - net:hasStructure "document-02" . + net:hasRuleRelationName "prohibition" ; + net:hasStructure "document-03" . net:type a owl:AnnotationProperty ; rdfs:label "type "@fr ; @@ -560,19 +549,19 @@ net:verbClass a owl:AnnotationProperty ; rdfs:label "verb class" ; rdfs:subPropertyOf net:objectValue . -<http://amr.isi.edu/amr_data/document-02#root01> a ns21:AMR ; - ns21:has-id "document-02" ; - ns21:has-sentence "John must play the movie." ; - ns21:root <http://amr.isi.edu/amr_data/document-02#o> . +<http://amr.isi.edu/amr_data/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" . -ns21:AMR a owl:Class ; +ns11:AMR a owl:Class ; rdfs:subClassOf :AMR_Linked_Data . -ns21:NamedEntity a ns21:Concept, +ns11:NamedEntity a ns11:Concept, owl:Class, owl:NamedIndividual ; rdfs:label "AMR-EntityType", @@ -588,60 +577,56 @@ ns21:NamedEntity a ns21:Concept, :AMR_Root a owl:Class ; rdfs:subClassOf :AMR_Structure . -:AMR_Value a owl:Class ; - rdfs:subClassOf :AMR_Element . +:concept_allow-01 rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns3:allow-01 ; + :hasPhenomenaLink :phenomena_modality_possible ; + :label "allow-01" . :concept_movie rdfs:subClassOf :AMR_Term_Concept ; :fromAmrLk ns2:movie ; :label "movie" . -:concept_obligate-01 rdfs:subClassOf :AMR_Relation_Concept ; - :fromAmrLk ns11:obligate-01 ; - :hasPhenomenaLink :phenomena_modality_obligation ; - :label "obligate-01" . - :concept_person rdfs:subClassOf :AMR_Term_Concept ; :fromAmrLk ns4:person ; :label "person" . -:concept_play-02 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns11:play-02 ; - :label "play-02" . +:concept_play-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:play-01 ; + :label "play-01" . + +:phenomena_modality_prohibition a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :label "prohibition-modality" . :role_ARG0 a owl:Class, net:Relation ; rdfs:subClassOf :AMR_Core_Role ; :label "ARG0" . -:role_ARG1 a owl:Class, - net:Relation ; - rdfs:subClassOf :AMR_Core_Role ; - :label "ARG1" . - -:role_ARG2 a owl:Class, - net:Relation ; - rdfs:subClassOf :AMR_Core_Role ; - :label "ARG2" . - :role_name a owl:Class, net:Relation ; rdfs:subClassOf :AMR_NonCore_Role ; :label "name" . +: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-02#m> ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-03#m> ; :label "m" . -:variable_o a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-02#o> ; - :label "o" . - :variable_p a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-02#p> ; + :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-02#p2> ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-03#p2> ; :label "p2" ; :name "John" . @@ -662,90 +647,74 @@ net:Action_Net a owl:Class ; net:Atom_Property_Net a owl:Class ; rdfs:subClassOf net:Property_Net . -net:Composite_Property_Net a owl:Class ; - rdfs:subClassOf net:Property_Net . - -net:Deprecated_Net a owl:Class ; - rdfs:subClassOf net:Net . - net:Individual_Net a owl:Class ; rdfs:subClassOf net:Net . -net:Phenomena_Net a owl:Class ; - rdfs:subClassOf net:Net . - net:Rule_Net a owl:Class ; rdfs:subClassOf net:Net . -net:Value_Net a owl:Class ; - rdfs:subClassOf net:Net . - net:has_value a owl:AnnotationProperty ; rdfs:subPropertyOf net:netProperty . -net:individual_John_p2 a net:Individual_Net ; - :role_name net:value_John_blankNode ; - net:coverBaseNode :leaf_person_p2 ; - net:coverNode :leaf_person_p2 ; - net:hasIndividualLabel "John" ; - net:hasMotherClassNet net:atomClass_person_p2 ; - net:hasNaming "John" ; - net:hasStructure "document-02" . - net:objectType a owl:AnnotationProperty ; rdfs:label "object type" ; rdfs:subPropertyOf net:objectProperty . -net:phenomena_obligation-modality_o a net:Phenomena_Net ; - :role_ARG2 net:action_play_p, +net:phenomena_possible-modality_a a net:Deprecated_Net, + net:Phenomena_Net ; + :role_ARG1 net:action_play_p, net:atomProperty_play_p ; - net:coverBaseNode :leaf_obligate-01_o ; - net:coverNode :leaf_obligate-01_o ; - net:hasNaming "obligation-modality" ; - net:hasPhenomenaRef "obligate-01" ; - net:hasPhenomenaType :phenomena_modality_obligation ; - net:hasStructure "document-02" . - -net:restriction_play-movie_p a net:Restriction_Net ; - net:composeFrom net:atomClass_movie_m, + :role_polarity net:value_negative_blankNode ; + net:coverBaseNode :leaf_allow-01_a ; + net:coverNode :leaf_allow-01_a ; + net:hasNaming "possible-modality" ; + net:hasPhenomenaRef "allow-01" ; + net:hasPhenomenaType :phenomena_modality_possible ; + net:hasStructure "document-03" . + +net:phenomena_prohibition-modality_a a net:Phenomena_Net ; + :role_ARG1 net:action_play_p, net:atomProperty_play_p ; - net:coverBaseNode :leaf_play-02_p ; - net:coverNode :leaf_movie_m, - :leaf_play-02_p ; - net:hasNaming "play-movie" ; - net:hasRestrictionNetValue net:atomClass_movie_m ; - net:hasRestrictionOnProperty net:atomProperty_play_p ; - net:hasStructure "document-02" . - -<http://amr.isi.edu/amr_data/document-02#m> a ns2:movie ; + :role_polarity net:value_negative_blankNode ; + net:composeFrom net:phenomena_possible-modality_a, + net:value_negative_blankNode ; + net:coverBaseNode :leaf_allow-01_a ; + net:coverNode :leaf_allow-01_a ; + net:hasNaming "prohibition-modality" ; + net:hasPhenomenaRef "not-[rdflib.term.Literal('allow-01')]" ; + net:hasPhenomenaType :phenomena_modality_prohibition ; + net:hasStructure "document-03" . + +<http://amr.isi.edu/amr_data/document-03#a> a ns3:allow-01 ; + ns3:allow-01.ARG1 <http://amr.isi.edu/amr_data/document-03#p> ; + ns2:polarity "-" ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-02#o> a ns11:obligate-01 ; - ns11:obligate-01.ARG2 <http://amr.isi.edu/amr_data/document-02#p> ; +<http://amr.isi.edu/amr_data/document-03#m> a ns2:movie ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-02#p> a ns11:play-02 ; - ns11:play-02.ARG0 <http://amr.isi.edu/amr_data/document-02#p2> ; - ns11:play-02.ARG1 <http://amr.isi.edu/amr_data/document-02#m> ; +<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-02#p2> a ns4:person ; +<http://amr.isi.edu/amr_data/document-03#p2> a ns4:person ; rdfs:label "John" ; rdfs:subClassOf :AMR_Linked_Data . -ns4:person a ns21:NamedEntity ; +ns4:person a ns11:NamedEntity ; rdfs:subClassOf :AMR_Linked_Data . -ns11:obligate-01 a ns21:Frame ; +ns3:allow-01 a ns11:Frame ; rdfs:subClassOf :AMR_Linked_Data . -ns11:play-02 a ns21:Frame ; +ns3:play-01 a ns11:Frame ; rdfs:subClassOf :AMR_Linked_Data . -ns2:movie a ns21:Concept ; +ns2:movie a ns11:Concept ; rdfs:subClassOf :AMR_Linked_Data . -ns21:Frame a ns21:Concept, +ns11:Frame a ns11:Concept, owl:Class, owl:NamedIndividual ; rdfs:label "AMR-PropBank-Frame" ; @@ -754,6 +723,9 @@ ns21:Frame a ns21:Concept, :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 . @@ -764,14 +736,26 @@ ns21:Frame a ns21:Concept, "neither" ; :label "conjunction" . -:phenomena_modality_obligation a owl:Class ; +:phenomena_modality_possible a owl:Class ; rdfs:subClassOf :phenomena_modality ; - :hasConceptLink "obligate-01" ; - :label "obligation-modality" . + :hasConceptLink "allow-01", + "grant-01", + "likely-01", + "permit-01", + "possible-01" ; + :label "possible-modality" . + +:role_ARG1 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG1" . :value_John a :AMR_Value ; rdfs:label "John" . +:value_negative a :AMR_Value ; + rdfs:label "negative" . + sys:Out_ObjectProperty a owl:ObjectProperty . net:Atom_Class_Net a owl:Class ; @@ -780,13 +764,37 @@ net:Atom_Class_Net a owl:Class ; 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:objectProperty a owl:AnnotationProperty ; rdfs:label "object attribute" . -ns11:FrameRole a ns21:Role, +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" ; @@ -821,35 +829,48 @@ net:Net_Structure a owl:Class ; rdfs:label "Semantic Net Structure" ; rdfs:comment "A semantic net captures a set of nodes, and associates this set with type(s) and value(s)." . -net:action_play_p a net:Action_Net ; - net:composeFrom net:atomClass_movie_m, - net:atomProperty_play_p ; - net:coverBaseNode :leaf_play-02_p ; - net:coverNode :leaf_movie_m, - :leaf_play-02_p ; - net:hasActionName "play" ; - net:hasNaming "play" ; - net:hasStructure "document-02" ; - net:hasTargetNet net:atomClass_movie_m . +net:atomClass_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:atomClass_person_p2 a net:Atom_Class_Net, - net:Deprecated_Net ; - :role_name net:value_John_blankNode ; - net:coverBaseNode :leaf_person_p2 ; - net:coverNode :leaf_person_p2 ; - net:hasClassName "person" ; - net:hasNaming "person" ; - net:hasStructure "document-02" . +net: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_relation_value a owl:AnnotationProperty ; rdfs:label "has relation value" ; rdfs:subPropertyOf net:has_object . -net:value_John_blankNode a net:Value_Net ; - net:coverAmrValue :value_John ; +net:individual_John_p2 a net:Individual_Net ; + :role_name net:value_John_blankNode ; + net:coverBaseNode :leaf_person_p2 ; + net:coverNode :leaf_person_p2 ; + net:hasIndividualLabel "John" ; + net:hasMotherClassNet net:atomClass_person_p2 ; net:hasNaming "John" ; - net:hasStructure "document-02" ; - net:hasValueLabel "John" . + net:hasStructure "document-03" . + +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 . @@ -860,37 +881,29 @@ net:value_John_blankNode a net:Value_Net ; net:Relation a owl:Class ; rdfs:subClassOf net:Net_Structure . +net:action_play_p a net:Action_Net ; + net:composeFrom net:atomClass_movie_m, + net:atomProperty_play_p, + net:individual_John_p2 ; + net:coverBaseNode :leaf_play-01_p ; + net:coverNode :leaf_movie_m, + :leaf_person_p2, + :leaf_play-01_p ; + net:hasActionName "play" ; + net:hasAssigneeIndividualNet net:individual_John_p2 ; + net:hasNaming "play" ; + net:hasStructure "document-03" ; + net:hasTargetClassNet net:atomClass_movie_m . + :AMR_NonCore_Role a owl:Class ; rdfs:subClassOf :AMR_Role . :AMR_Role a owl:Class ; rdfs:subClassOf :AMR_Element . -:leaf_obligate-01_o a :AMR_Leaf ; - :edge_o_ARG2_p :leaf_play-02_p ; - :hasConcept :concept_obligate-01 ; - :hasVariable :variable_o . - sys:Out_Structure a owl:Class ; rdfs:label "Output Ontology Structure" . -net:atomProperty_play_p a net:Atom_Property_Net ; - :role_ARG0 net:atomClass_person_p2, - net:individual_John_p2 ; - :role_ARG1 net:atomClass_movie_m ; - net:coverBaseNode :leaf_play-02_p ; - net:coverNode :leaf_play-02_p ; - net:hasNaming "play" ; - net:hasPropertyName "play" ; - net:hasPropertyName01 "playing" ; - net:hasPropertyName10 "play-by" ; - net:hasPropertyName12 "play-of" ; - net:hasPropertyType owl:ObjectProperty ; - net:hasStructure "document-02" ; - net:isCoreRoleLinked "true" ; - net:targetArgumentNode :leaf_movie_m, - :leaf_person_p2 . - net:netProperty a owl:AnnotationProperty ; rdfs:label "netProperty" . @@ -902,27 +915,32 @@ net:netProperty a owl:AnnotationProperty ; :AMR_Structure a owl:Class . +:leaf_movie_m a :AMR_Leaf ; + :hasConcept :concept_movie ; + :hasVariable :variable_m . + +: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 . + cprm:configParamProperty a rdf:Property ; rdfs:label "Config Parameter Property" . -net:atomClass_movie_m a net:Atom_Class_Net ; - net:coverBaseNode :leaf_movie_m ; - net:coverNode :leaf_movie_m ; - net:hasClassName "movie" ; - net:hasNaming "movie" ; - net:hasStructure "document-02" . - rdf:Property a owl:Class . -:AMR_Edge a owl:Class ; - rdfs:subClassOf :AMR_Structure . - :AMR_Relation a owl:Class ; rdfs:subClassOf :AMR_Structure . -:leaf_movie_m a :AMR_Leaf ; - :hasConcept :concept_movie ; - :hasVariable :variable_m . +:leaf_allow-01_a a :AMR_Leaf ; + :edge_a_ARG1_p :leaf_play-01_p ; + :edge_a_polarity_negative :value_negative ; + :hasConcept :concept_allow-01 ; + :hasVariable :variable_a . + +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . :leaf_person_p2 a :AMR_Leaf ; :edge_p2_name_John :value_John ; @@ -939,12 +957,6 @@ net:has_object a owl:AnnotationProperty ; :AMR_Op_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:leaf_play-02_p a :AMR_Leaf ; - :edge_p_ARG0_p2 :leaf_person_p2 ; - :edge_p_ARG1_m :leaf_movie_m ; - :hasConcept :concept_play-02 ; - :hasVariable :variable_p . - :AMR_AnnotationProperty a owl:AnnotationProperty . :AMR_Core_Role a owl:Class ; diff --git a/tests/dev_tests/test_data/odrl-generation-devGraph-2.ttl b/tests/dev_tests/test_data/odrl-generation-devGraph-2.ttl index 80a9bb0a725338cfe39e91ca5808e5cbdf24da1c..e43966efcef67ce9edd7151534b9638d223e835f 100644 --- a/tests/dev_tests/test_data/odrl-generation-devGraph-2.ttl +++ b/tests/dev_tests/test_data/odrl-generation-devGraph-2.ttl @@ -1,50 +1,49 @@ -@base <https://amr.tetras-libre.fr/rdf/odrl-rule-devGraph-2/result> . +@base <http://https://tenet.tetras-libre.fr/demo/clara/03//transduction> . @prefix : <https://amr.tetras-libre.fr/rdf/schema#> . @prefix cprm: <https://tenet.tetras-libre.fr/config/parameters#> . @prefix net: <https://tenet.tetras-libre.fr/semantic-net#> . -@prefix ns11: <http://amr.isi.edu/frames/ld/v1.2.2/> . +@prefix ns1: <http://amr.isi.edu/rdf/core-amr#> . @prefix ns2: <http://amr.isi.edu/rdf/amr-terms#> . -@prefix ns21: <http://amr.isi.edu/rdf/core-amr#> . -@prefix ns4: <http://amr.isi.edu/entity-types#> . +@prefix 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#> . -ns21:Concept a rdfs:Class, +ns1:Concept a rdfs:Class, owl:Class ; rdfs:label "AMR-Concept" ; rdfs:subClassOf :AMR_Linked_Data . -ns21:Role a rdfs:Class, +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> ns21:hasID "test-1" ; - ns21:hasSentence "The sun is a star." ; - ns21:root <http://amr.isi.edu/amr_data/test-1#s> . +<http://amr.isi.edu/amr_data/test-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> ns21:hasID "test-2" ; - ns21:hasSentence "Earth is a planet." ; - ns21:root <http://amr.isi.edu/amr_data/test-2#p> . +<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> . -ns11:obligate-01.ARG2 a ns11:FrameRole . +ns3:allow-01.ARG1 a ns3:FrameRole . -ns11:play-02.ARG0 a ns11:FrameRole . +ns3:play-01.ARG0 a ns3:FrameRole . -ns11:play-02.ARG1 a ns11:FrameRole . +ns3:play-01.ARG1 a ns3:FrameRole . -ns2:domain a ns21:Role, +ns2:domain a ns1:Role, owl:AnnotationProperty, owl:NamedIndividual . -ns21:hasID a owl:AnnotationProperty . +ns1:hasID a owl:AnnotationProperty . -ns21:hasSentence a owl:AnnotationProperty . +ns1:hasSentence a owl:AnnotationProperty . -ns21:root a owl:AnnotationProperty . +ns1:root a owl:AnnotationProperty . <https://amr.tetras-libre.fr/rdf/schema> a owl:Ontology ; owl:versionIRI :0.1 . @@ -54,9 +53,13 @@ ns21:root a owl:AnnotationProperty . :AMR_Prep_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:edge_o_ARG2_p a :AMR_Edge ; - :hasAmrRole :role_ARG2 ; - :hasRoleID "ARG2" . +: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 ; @@ -157,18 +160,10 @@ ns21:root a owl:AnnotationProperty . :hasConceptLink "have-degree-91" ; :label "degree" . -:phenomena_modality_possible a owl:Class ; - rdfs:subClassOf :phenomena_modality ; - :hasConceptLink "allow-01", - "grant-01", - "likely-01", - "permit-01", - "possible-01" ; - :label "possible-modality" . - -:phenomena_modality_prohibition a owl:Class ; +:phenomena_modality_obligation a owl:Class ; rdfs:subClassOf :phenomena_modality ; - :label "prohibition-modality" . + :hasConceptLink "obligate-01" ; + :label "obligation-modality" . :relation_domain a owl:Class ; rdfs:subClassOf :AMR_Relation ; @@ -211,6 +206,10 @@ ns21:root a owl:AnnotationProperty . :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" . @@ -315,19 +314,15 @@ ns21:root a owl:AnnotationProperty . :toReifyWithBaseEdge "ARG0" ; :toReifyWithHeadEdge "ARG1" . -:role_polarity a owl:Class ; - rdfs:subClassOf :AMR_Specific_Role ; - :label "polarity" . - :role_quant a owl:Class ; rdfs:subClassOf :AMR_Specific_Role ; :label "quant" . -:root_document-02 a :AMR_Root ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-02#root01> ; - :hasRootLeaf :leaf_obligate-01_o ; - :hasSentenceID "document-02" ; - :hasSentenceStatement "John must play the movie." . +:root_document-03 a :AMR_Root ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-03#root01> ; + :hasRootLeaf :leaf_allow-01_a ; + :hasSentenceID "document-03" ; + :hasSentenceStatement "John is not allowed to play the movie.." . :toReifyAsConcept a owl:AnnotationProperty ; rdfs:subPropertyOf :toReify . @@ -400,6 +395,9 @@ cprm:targetOntologyURI a rdf:Property ; 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 . @@ -411,19 +409,6 @@ net:atomType a owl:AnnotationProperty ; rdfs:label "atom type" ; rdfs:subPropertyOf net:objectType . -net:compositeProperty_person-play-movie_p2 a net:Composite_Property_Net ; - :role_name net:value_John_blankNode ; - net:composeFrom net:atomClass_movie_m, - net:atomClass_person_p2, - net:atomProperty_play_p ; - net:coverBaseNode :leaf_person_p2 ; - net:coverNode :leaf_movie_m, - :leaf_person_p2, - :leaf_play-02_p ; - net:hasNaming "person-play-movie" ; - net:hasRestriction net:restriction_play-movie_p ; - net:hasStructure "document-02" . - net:entityClass a owl:AnnotationProperty ; rdfs:label "entity class" ; rdfs:subPropertyOf net:objectValue . @@ -535,17 +520,18 @@ net:modCat2 a owl:AnnotationProperty ; net:normal_direction a owl:NamedIndividual . -net:rule_obligation_o a net:Rule_Net ; +net:rule_prohibition_a a net:Rule_Net ; net:composeFrom net:action_play_p, - net:phenomena_obligation-modality_o ; - net:coverBaseNode :leaf_obligate-01_o ; - net:coverNode :leaf_movie_m, - :leaf_obligate-01_o, - :leaf_play-02_p ; - net:hasNaming "obligation" ; + net:phenomena_prohibition-modality_a ; + net:coverBaseNode :leaf_allow-01_a ; + net:coverNode :leaf_allow-01_a, + :leaf_movie_m, + :leaf_person_p2, + :leaf_play-01_p ; + net:hasNaming "prohibition" ; net:hasRuleActionURI net:action_play_p ; - net:hasRuleRelationName "obligation" ; - net:hasStructure "document-02" . + net:hasRuleRelationName "prohibition" ; + net:hasStructure "document-03" . net:type a owl:AnnotationProperty ; rdfs:label "type "@fr ; @@ -555,19 +541,19 @@ net:verbClass a owl:AnnotationProperty ; rdfs:label "verb class" ; rdfs:subPropertyOf net:objectValue . -<http://amr.isi.edu/amr_data/document-02#root01> a ns21:AMR ; - ns21:has-id "document-02" ; - ns21:has-sentence "John must play the movie." ; - ns21:root <http://amr.isi.edu/amr_data/document-02#o> . +<http://amr.isi.edu/amr_data/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" . -ns21:AMR a owl:Class ; +ns1:AMR a owl:Class ; rdfs:subClassOf :AMR_Linked_Data . -ns21:NamedEntity a ns21:Concept, +ns1:NamedEntity a ns1:Concept, owl:Class, owl:NamedIndividual ; rdfs:label "AMR-EntityType", @@ -583,60 +569,56 @@ ns21:NamedEntity a ns21:Concept, :AMR_Root a owl:Class ; rdfs:subClassOf :AMR_Structure . -:AMR_Value a owl:Class ; - rdfs:subClassOf :AMR_Element . +:concept_allow-01 rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns3:allow-01 ; + :hasPhenomenaLink :phenomena_modality_possible ; + :label "allow-01" . :concept_movie rdfs:subClassOf :AMR_Term_Concept ; :fromAmrLk ns2:movie ; :label "movie" . -:concept_obligate-01 rdfs:subClassOf :AMR_Relation_Concept ; - :fromAmrLk ns11:obligate-01 ; - :hasPhenomenaLink :phenomena_modality_obligation ; - :label "obligate-01" . - :concept_person rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk ns4:person ; + :fromAmrLk <http://amr.isi.edu/entity-types#person> ; :label "person" . -:concept_play-02 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns11:play-02 ; - :label "play-02" . +:concept_play-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:play-01 ; + :label "play-01" . + +:phenomena_modality_prohibition a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :label "prohibition-modality" . :role_ARG0 a owl:Class, net:Relation ; rdfs:subClassOf :AMR_Core_Role ; :label "ARG0" . -:role_ARG1 a owl:Class, - net:Relation ; - rdfs:subClassOf :AMR_Core_Role ; - :label "ARG1" . - -:role_ARG2 a owl:Class, - net:Relation ; - rdfs:subClassOf :AMR_Core_Role ; - :label "ARG2" . - :role_name a owl:Class, net:Relation ; rdfs:subClassOf :AMR_NonCore_Role ; :label "name" . +: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-02#m> ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-03#m> ; :label "m" . -:variable_o a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-02#o> ; - :label "o" . - :variable_p a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-02#p> ; + :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-02#p2> ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-03#p2> ; :label "p2" ; :name "John" . @@ -657,90 +639,74 @@ net:Action_Net a owl:Class ; net:Atom_Property_Net a owl:Class ; rdfs:subClassOf net:Property_Net . -net:Composite_Property_Net a owl:Class ; - rdfs:subClassOf net:Property_Net . - -net:Deprecated_Net a owl:Class ; - rdfs:subClassOf net:Net . - net:Individual_Net a owl:Class ; rdfs:subClassOf net:Net . -net:Phenomena_Net a owl:Class ; - rdfs:subClassOf net:Net . - net:Rule_Net a owl:Class ; rdfs:subClassOf net:Net . -net:Value_Net a owl:Class ; - rdfs:subClassOf net:Net . - net:has_value a owl:AnnotationProperty ; rdfs:subPropertyOf net:netProperty . -net:individual_John_p2 a net:Individual_Net ; - :role_name net:value_John_blankNode ; - net:coverBaseNode :leaf_person_p2 ; - net:coverNode :leaf_person_p2 ; - net:hasIndividualLabel "John" ; - net:hasMotherClassNet net:atomClass_person_p2 ; - net:hasNaming "John" ; - net:hasStructure "document-02" . - net:objectType a owl:AnnotationProperty ; rdfs:label "object type" ; rdfs:subPropertyOf net:objectProperty . -net:phenomena_obligation-modality_o a net:Phenomena_Net ; - :role_ARG2 net:action_play_p, +net:phenomena_possible-modality_a a net:Deprecated_Net, + net:Phenomena_Net ; + :role_ARG1 net:action_play_p, net:atomProperty_play_p ; - net:coverBaseNode :leaf_obligate-01_o ; - net:coverNode :leaf_obligate-01_o ; - net:hasNaming "obligation-modality" ; - net:hasPhenomenaRef "obligate-01" ; - net:hasPhenomenaType :phenomena_modality_obligation ; - net:hasStructure "document-02" . - -net:restriction_play-movie_p a net:Restriction_Net ; - net:composeFrom net:atomClass_movie_m, + :role_polarity net:value_negative_blankNode ; + net:coverBaseNode :leaf_allow-01_a ; + net:coverNode :leaf_allow-01_a ; + net:hasNaming "possible-modality" ; + net:hasPhenomenaRef "allow-01" ; + net:hasPhenomenaType :phenomena_modality_possible ; + net:hasStructure "document-03" . + +net:phenomena_prohibition-modality_a a net:Phenomena_Net ; + :role_ARG1 net:action_play_p, net:atomProperty_play_p ; - net:coverBaseNode :leaf_play-02_p ; - net:coverNode :leaf_movie_m, - :leaf_play-02_p ; - net:hasNaming "play-movie" ; - net:hasRestrictionNetValue net:atomClass_movie_m ; - net:hasRestrictionOnProperty net:atomProperty_play_p ; - net:hasStructure "document-02" . - -<http://amr.isi.edu/amr_data/document-02#m> a ns2:movie ; + :role_polarity net:value_negative_blankNode ; + net:composeFrom net:phenomena_possible-modality_a, + net:value_negative_blankNode ; + net:coverBaseNode :leaf_allow-01_a ; + net:coverNode :leaf_allow-01_a ; + net:hasNaming "prohibition-modality" ; + net:hasPhenomenaRef "not-[rdflib.term.Literal('allow-01')]" ; + net:hasPhenomenaType :phenomena_modality_prohibition ; + net:hasStructure "document-03" . + +<http://amr.isi.edu/amr_data/document-03#a> a ns3:allow-01 ; + ns3:allow-01.ARG1 <http://amr.isi.edu/amr_data/document-03#p> ; + ns2:polarity "-" ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-02#o> a ns11:obligate-01 ; - ns11:obligate-01.ARG2 <http://amr.isi.edu/amr_data/document-02#p> ; +<http://amr.isi.edu/amr_data/document-03#m> a ns2:movie ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-02#p> a ns11:play-02 ; - ns11:play-02.ARG0 <http://amr.isi.edu/amr_data/document-02#p2> ; - ns11:play-02.ARG1 <http://amr.isi.edu/amr_data/document-02#m> ; +<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-02#p2> a ns4:person ; +<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 . -ns4:person a ns21:NamedEntity ; +<http://amr.isi.edu/entity-types#person> a ns1:NamedEntity ; rdfs:subClassOf :AMR_Linked_Data . -ns11:obligate-01 a ns21:Frame ; +ns3:allow-01 a ns1:Frame ; rdfs:subClassOf :AMR_Linked_Data . -ns11:play-02 a ns21:Frame ; +ns3:play-01 a ns1:Frame ; rdfs:subClassOf :AMR_Linked_Data . -ns2:movie a ns21:Concept ; +ns2:movie a ns1:Concept ; rdfs:subClassOf :AMR_Linked_Data . -ns21:Frame a ns21:Concept, +ns1:Frame a ns1:Concept, owl:Class, owl:NamedIndividual ; rdfs:label "AMR-PropBank-Frame" ; @@ -749,6 +715,9 @@ ns21:Frame a ns21:Concept, :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 . @@ -759,14 +728,26 @@ ns21:Frame a ns21:Concept, "neither" ; :label "conjunction" . -:phenomena_modality_obligation a owl:Class ; +:phenomena_modality_possible a owl:Class ; rdfs:subClassOf :phenomena_modality ; - :hasConceptLink "obligate-01" ; - :label "obligation-modality" . + :hasConceptLink "allow-01", + "grant-01", + "likely-01", + "permit-01", + "possible-01" ; + :label "possible-modality" . + +:role_ARG1 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG1" . :value_John a :AMR_Value ; rdfs:label "John" . +:value_negative a :AMR_Value ; + rdfs:label "negative" . + sys:Out_ObjectProperty a owl:ObjectProperty . net:Atom_Class_Net a owl:Class ; @@ -775,13 +756,37 @@ net:Atom_Class_Net a owl:Class ; 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:objectProperty a owl:AnnotationProperty ; rdfs:label "object attribute" . -ns11:FrameRole a ns21:Role, +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" ; @@ -816,35 +821,48 @@ net:Net_Structure a owl:Class ; rdfs:label "Semantic Net Structure" ; rdfs:comment "A semantic net captures a set of nodes, and associates this set with type(s) and value(s)." . -net:action_play_p a net:Action_Net ; - net:composeFrom net:atomClass_movie_m, - net:atomProperty_play_p ; - net:coverBaseNode :leaf_play-02_p ; - net:coverNode :leaf_movie_m, - :leaf_play-02_p ; - net:hasActionName "play" ; - net:hasNaming "play" ; - net:hasStructure "document-02" ; - net:hasTargetNet net:atomClass_movie_m . +net:atomClass_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:atomClass_person_p2 a net:Atom_Class_Net, - net:Deprecated_Net ; - :role_name net:value_John_blankNode ; - net:coverBaseNode :leaf_person_p2 ; - net:coverNode :leaf_person_p2 ; - net:hasClassName "person" ; - net:hasNaming "person" ; - net:hasStructure "document-02" . +net: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_relation_value a owl:AnnotationProperty ; rdfs:label "has relation value" ; rdfs:subPropertyOf net:has_object . -net:value_John_blankNode a net:Value_Net ; - net:coverAmrValue :value_John ; +net:individual_John_p2 a net:Individual_Net ; + :role_name net:value_John_blankNode ; + net:coverBaseNode :leaf_person_p2 ; + net:coverNode :leaf_person_p2 ; + net:hasIndividualLabel "John" ; + net:hasMotherClassNet net:atomClass_person_p2 ; net:hasNaming "John" ; - net:hasStructure "document-02" ; - net:hasValueLabel "John" . + net:hasStructure "document-03" . + +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 . @@ -855,37 +873,29 @@ net:value_John_blankNode a net:Value_Net ; net:Relation a owl:Class ; rdfs:subClassOf net:Net_Structure . +net:action_play_p a net:Action_Net ; + net:composeFrom net:atomClass_movie_m, + net:atomProperty_play_p, + net:individual_John_p2 ; + net:coverBaseNode :leaf_play-01_p ; + net:coverNode :leaf_movie_m, + :leaf_person_p2, + :leaf_play-01_p ; + net:hasActionName "play" ; + net:hasAssigneeIndividualNet net:individual_John_p2 ; + net:hasNaming "play" ; + net:hasStructure "document-03" ; + net:hasTargetClassNet net:atomClass_movie_m . + :AMR_NonCore_Role a owl:Class ; rdfs:subClassOf :AMR_Role . :AMR_Role a owl:Class ; rdfs:subClassOf :AMR_Element . -:leaf_obligate-01_o a :AMR_Leaf ; - :edge_o_ARG2_p :leaf_play-02_p ; - :hasConcept :concept_obligate-01 ; - :hasVariable :variable_o . - sys:Out_Structure a owl:Class ; rdfs:label "Output Ontology Structure" . -net:atomProperty_play_p a net:Atom_Property_Net ; - :role_ARG0 net:atomClass_person_p2, - net:individual_John_p2 ; - :role_ARG1 net:atomClass_movie_m ; - net:coverBaseNode :leaf_play-02_p ; - net:coverNode :leaf_play-02_p ; - net:hasNaming "play" ; - net:hasPropertyName "play" ; - net:hasPropertyName01 "playing" ; - net:hasPropertyName10 "play-by" ; - net:hasPropertyName12 "play-of" ; - net:hasPropertyType owl:ObjectProperty ; - net:hasStructure "document-02" ; - net:isCoreRoleLinked "true" ; - net:targetArgumentNode :leaf_movie_m, - :leaf_person_p2 . - net:netProperty a owl:AnnotationProperty ; rdfs:label "netProperty" . @@ -897,27 +907,32 @@ net:netProperty a owl:AnnotationProperty ; :AMR_Structure a owl:Class . +:leaf_movie_m a :AMR_Leaf ; + :hasConcept :concept_movie ; + :hasVariable :variable_m . + +: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 . + cprm:configParamProperty a rdf:Property ; rdfs:label "Config Parameter Property" . -net:atomClass_movie_m a net:Atom_Class_Net ; - net:coverBaseNode :leaf_movie_m ; - net:coverNode :leaf_movie_m ; - net:hasClassName "movie" ; - net:hasNaming "movie" ; - net:hasStructure "document-02" . - rdf:Property a owl:Class . -:AMR_Edge a owl:Class ; - rdfs:subClassOf :AMR_Structure . - :AMR_Relation a owl:Class ; rdfs:subClassOf :AMR_Structure . -:leaf_movie_m a :AMR_Leaf ; - :hasConcept :concept_movie ; - :hasVariable :variable_m . +:leaf_allow-01_a a :AMR_Leaf ; + :edge_a_ARG1_p :leaf_play-01_p ; + :edge_a_polarity_negative :value_negative ; + :hasConcept :concept_allow-01 ; + :hasVariable :variable_a . + +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . :leaf_person_p2 a :AMR_Leaf ; :edge_p2_name_John :value_John ; @@ -934,12 +949,6 @@ net:has_object a owl:AnnotationProperty ; :AMR_Op_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:leaf_play-02_p a :AMR_Leaf ; - :edge_p_ARG0_p2 :leaf_person_p2 ; - :edge_p_ARG1_m :leaf_movie_m ; - :hasConcept :concept_play-02 ; - :hasVariable :variable_p . - :AMR_AnnotationProperty a owl:AnnotationProperty . :AMR_Core_Role a owl:Class ; diff --git a/tests/dev_tests/test_data/odrl-generation-devGraph-3.result.ttl b/tests/dev_tests/test_data/odrl-generation-devGraph-3.result.ttl index 7351d3e4bf03c7e2c52c147617a1d9cde3b40908..90b91ad603b0187db97e704bd425321427952ccf 100644 --- a/tests/dev_tests/test_data/odrl-generation-devGraph-3.result.ttl +++ b/tests/dev_tests/test_data/odrl-generation-devGraph-3.result.ttl @@ -32,16 +32,18 @@ ns11:Role a rdfs:Class, ns11:hasSentence "Earth is a planet." ; ns11:root <http://amr.isi.edu/amr_data/test-2#p> . -ns3:allow-01.ARG1 a ns3:FrameRole . +ns3:display-01.ARG1 a ns3:FrameRole . -ns3:play-01.ARG0 a ns3:FrameRole . +ns3:display-01.ARG2 a ns3:FrameRole . -ns3:play-01.ARG1 a ns3:FrameRole . +ns3:possible-01.ARG1 a ns3:FrameRole . ns2:domain a ns11:Role, owl:AnnotationProperty, owl:NamedIndividual . +ns2:mod a ns11:Role . + ns11:hasID a owl:AnnotationProperty . ns11:hasSentence a owl:AnnotationProperty . @@ -56,23 +58,27 @@ ns11:root a owl:AnnotationProperty . :AMR_Prep_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:edge_a_ARG1_p a :AMR_Edge ; +:edge_c_mod_o a :AMR_Edge ; + :hasAmrRole :role_mod ; + :hasRoleID "mod" . + +:edge_c_name_Germany a :AMR_Edge ; + :hasAmrRole :role_name ; + :hasRoleID "name" . + +:edge_d_ARG1_m a :AMR_Edge ; :hasAmrRole :role_ARG1 ; :hasRoleID "ARG1" . -:edge_a_polarity_negative a :AMR_Edge ; - :hasAmrRole :role_polarity ; - :hasRoleID "polarity" . +:edge_d_ARG2_c a :AMR_Edge ; + :hasAmrRole :role_ARG2 ; + :hasRoleID "ARG2" . -:edge_p2_name_John a :AMR_Edge ; +:edge_m_name_9899 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 ; +:edge_p_ARG1_d a :AMR_Edge ; :hasAmrRole :role_ARG1 ; :hasRoleID "ARG1" . @@ -168,6 +174,10 @@ ns11:root a owl:AnnotationProperty . :hasConceptLink "obligate-01" ; :label "obligation-modality" . +:phenomena_modality_prohibition a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :label "prohibition-modality" . + :relation_domain a owl:Class ; rdfs:subClassOf :AMR_Relation ; :hasReification false ; @@ -209,9 +219,9 @@ ns11:root a owl:AnnotationProperty . :hasReification false ; :hasRelationName "quant" . -:role_ARG2 a owl:Class ; +:role_ARG0 a owl:Class ; rdfs:subClassOf :AMR_Core_Role ; - :label "ARG2" . + :label "ARG0" . :role_ARG3 a owl:Class ; rdfs:subClassOf :AMR_Core_Role ; @@ -262,16 +272,6 @@ ns11:root a owl:AnnotationProperty . :toReifyWithBaseEdge "ARG0" ; :toReifyWithHeadEdge "ARG1" . -:role_mod a owl:Class ; - rdfs:subClassOf :AMR_NonCore_Role ; - :getDirectPropertyName "hasFeature"^^xsd:string ; - :getPropertyType rdfs:subClassOf, - owl:ObjectProperty ; - :label "mod" ; - :toReifyAsConcept "mod" ; - :toReifyWithBaseEdge "ARG0" ; - :toReifyWithHeadEdge "ARG1" . - :role_op1 a owl:Class ; rdfs:subClassOf :AMR_Op_Role ; :label "op1" . @@ -317,15 +317,19 @@ ns11:root a owl:AnnotationProperty . :toReifyWithBaseEdge "ARG0" ; :toReifyWithHeadEdge "ARG1" . +:role_polarity a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "polarity" . + :role_quant a owl:Class ; rdfs:subClassOf :AMR_Specific_Role ; :label "quant" . -:root_document-03 a :AMR_Root ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-03#root01> ; - :hasRootLeaf :leaf_allow-01_a ; - :hasSentenceID "document-03" ; - :hasSentenceStatement "John is not allowed to play the movie.." . +:root_document-01 a :AMR_Root ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-01#root01> ; + :hasRootLeaf :leaf_possible-01_p ; + :hasSentenceID "document-01" ; + :hasSentenceStatement "Movie9899 can be displayed only in Germany." . :toReifyAsConcept a owl:AnnotationProperty ; rdfs:subPropertyOf :toReify . @@ -393,13 +397,14 @@ cprm:targetOntologyURI a rdf:Property ; rdfs:range xsd:string ; rdfs:subPropertyOf cprm:configParamProperty . -ext-out:policy_document-03 ns1:prohibition """[ - odrl:action play ]""" . +ext-out:policy_document-01 ns1:permission """[ + odrl:target <http://example.com/asset:9899.movie> ; + odrl:action display ]""" . <https://tenet.tetras-libre.fr/semantic-net> a owl:Ontology . -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 . @@ -412,19 +417,6 @@ net:atomType a owl:AnnotationProperty ; rdfs:label "atom type" ; rdfs:subPropertyOf net:objectType . -net:compositeProperty_person-play-movie_p2 a net:Composite_Property_Net ; - :role_name net:value_John_blankNode ; - net:composeFrom net:atomClass_movie_m, - net:atomClass_person_p2, - net:atomProperty_play_p ; - net:coverBaseNode :leaf_person_p2 ; - net:coverNode :leaf_movie_m, - :leaf_person_p2, - :leaf_play-01_p ; - net:hasNaming "person-play-movie" ; - net:hasRestriction net:restriction_play-movie_p ; - net:hasStructure "document-03" . - net:entityClass a owl:AnnotationProperty ; rdfs:label "entity class" ; rdfs:subPropertyOf net:objectValue . @@ -520,6 +512,16 @@ net:has_target a owl:AnnotationProperty ; rdfs:label "has target" ; rdfs:subPropertyOf net:has_relation_value . +net:individual_only_o a net:Individual_Net ; + net:composeFrom net:atomClass_only_o ; + net:coverBaseNode :leaf_only_o ; + net:coverNode :leaf_only_o ; + net:hasBaseClassName "Feature" ; + net:hasIndividualLabel "only" ; + net:hasMotherClassNet net:atomClass_only_o ; + net:hasNaming "only" ; + net:hasStructure "document-01" . + net:inverse_direction a owl:NamedIndividual . net:listGuiding a owl:AnnotationProperty ; @@ -536,17 +538,17 @@ net:modCat2 a owl:AnnotationProperty ; net:normal_direction a owl:NamedIndividual . -net:rule_prohibition_a a net:Rule_Net ; - net:composeFrom net:action_play_p, - net:phenomena_prohibition-modality_a ; - net:coverBaseNode :leaf_allow-01_a ; - net:coverNode :leaf_allow-01_a, +net:rule_permission_p a net:Rule_Net ; + net:composeFrom net:action_display_d, + net:phenomena_possible-modality_p ; + net:coverBaseNode :leaf_possible-01_p ; + net:coverNode :leaf_display-01_d, :leaf_movie_m, - :leaf_play-01_p ; - net:hasNaming "prohibition" ; - net:hasRuleActionURI net:action_play_p ; - net:hasRuleRelationName "prohibition" ; - net:hasStructure "document-03" . + :leaf_possible-01_p ; + net:hasNaming "permission" ; + net:hasRuleActionURI net:action_display_d ; + net:hasRuleRelationName "permission" ; + net:hasStructure "document-01" . net:type a owl:AnnotationProperty ; rdfs:label "type "@fr ; @@ -556,10 +558,10 @@ 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/document-01#root01> a ns11:AMR ; + ns11:has-id "document-01" ; + ns11:has-sentence "Movie9899 can be displayed only in Germany." ; + ns11:root <http://amr.isi.edu/amr_data/document-01#p> . <http://amr.isi.edu/amr_data/test-1#s> ns2:domain <http://amr.isi.edu/amr_data/test-1#s2> . @@ -584,59 +586,65 @@ ns11:NamedEntity a ns11:Concept, :AMR_Root a owl:Class ; rdfs:subClassOf :AMR_Structure . -:concept_allow-01 rdfs:subClassOf :AMR_Relation_Concept ; - :fromAmrLk ns3:allow-01 ; - :hasPhenomenaLink :phenomena_modality_possible ; - :label "allow-01" . +:concept_country rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns4:country ; + :label "country" . + +:concept_display-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:display-01 ; + :label "display-01" . :concept_movie rdfs:subClassOf :AMR_Term_Concept ; :fromAmrLk ns2:movie ; :label "movie" . -:concept_person rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk ns4:person ; - :label "person" . - -:concept_play-01 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns3:play-01 ; - :label "play-01" . +:concept_only rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:only ; + :label "only" . -:phenomena_modality_prohibition a owl:Class ; - rdfs:subClassOf :phenomena_modality ; - :label "prohibition-modality" . +:concept_possible-01 rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns3:possible-01 ; + :hasPhenomenaLink :phenomena_modality_possible ; + :label "possible-01" . -:role_ARG0 a owl:Class, +:role_ARG2 a owl:Class, net:Relation ; rdfs:subClassOf :AMR_Core_Role ; - :label "ARG0" . + :label "ARG2" . -:role_name a owl:Class, +:role_mod a owl:Class, net:Relation ; rdfs:subClassOf :AMR_NonCore_Role ; - :label "name" . + :getDirectPropertyName "hasFeature"^^xsd:string ; + :getPropertyType rdfs:subClassOf, + owl:ObjectProperty ; + :label "mod" ; + :toReifyAsConcept "mod" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . -:role_polarity a owl:Class, - net:Relation ; - rdfs:subClassOf :AMR_Specific_Role ; - :label "polarity" . +:variable_c a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-01#c> ; + :label "c" ; + :name "Germany" . -:variable_a a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-03#a> ; - :label "a" . +:variable_d a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-01#d> ; + :label "d" . :variable_m a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-03#m> ; - :label "m" . + :fromAmrLk <http://amr.isi.edu/amr_data/document-01#m> ; + :label "m" ; + :name "9899" . + +:variable_o a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-01#o> ; + :label "o" . :variable_p a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-03#p> ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-01#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 . @@ -654,105 +662,96 @@ net:Action_Net a owl:Class ; net:Atom_Property_Net a owl:Class ; rdfs:subClassOf net:Property_Net . -net:Composite_Property_Net a owl:Class ; - rdfs:subClassOf net:Property_Net . +net:Composite_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . -net:Individual_Net a owl:Class ; +net:Phenomena_Net a owl:Class ; rdfs:subClassOf net:Net . net:Rule_Net a owl:Class ; rdfs:subClassOf net:Net . +net:compositeClass_only-country_c a net:Composite_Class_Net ; + :role_mod net:atomClass_only_o ; + :role_name net:value_Germany_blankNode ; + net:composeFrom net:atomClass_country_c, + net:atomClass_only_o ; + net:coverBaseNode :leaf_country_c ; + net:coverNode :leaf_country_c, + :leaf_only_o ; + net:hasMotherClassNet net:atomClass_country_c ; + net:hasNaming "only-country" ; + net:hasStructure "document-01" . + 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:individual_Germany_c a net:Individual_Net ; + :role_mod net:atomClass_only_o ; + :role_name net:value_Germany_blankNode ; + net:coverBaseNode :leaf_country_c ; + net:coverNode :leaf_country_c ; + net:hasIndividualLabel "Germany" ; + net:hasMotherClassNet net:atomClass_country_c ; + net:hasNaming "Germany" ; + net:hasStructure "document-01" . net:objectType a owl:AnnotationProperty ; rdfs:label "object type" ; rdfs:subPropertyOf net:objectProperty . -net:phenomena_possible-modality_a a net:Deprecated_Net, - net:Phenomena_Net ; - :role_ARG1 net:action_play_p, - net:atomProperty_play_p ; - :role_polarity net:value_negative_blankNode ; - net:coverBaseNode :leaf_allow-01_a ; - net:coverNode :leaf_allow-01_a ; +net:phenomena_possible-modality_p a net:Phenomena_Net ; + :role_ARG1 net:action_display_d, + net:atomProperty_display_d ; + net:coverBaseNode :leaf_possible-01_p ; + net:coverNode :leaf_possible-01_p ; net:hasNaming "possible-modality" ; - net:hasPhenomenaRef "allow-01" ; + net:hasPhenomenaRef "possible-01" ; net:hasPhenomenaType :phenomena_modality_possible ; - net:hasStructure "document-03" . - -net:phenomena_prohibition-modality_a a net:Phenomena_Net ; - :role_ARG1 net:action_play_p, - net:atomProperty_play_p ; - :role_polarity net:value_negative_blankNode ; - net:composeFrom net:phenomena_possible-modality_a, - net:value_negative_blankNode ; - net:coverBaseNode :leaf_allow-01_a ; - net:coverNode :leaf_allow-01_a ; - net:hasNaming "prohibition-modality" ; - net:hasPhenomenaRef "not-[rdflib.term.Literal('allow-01')]" ; - net:hasPhenomenaType :phenomena_modality_prohibition ; - net:hasStructure "document-03" . - -net:restriction_play-movie_p a net:Restriction_Net ; - net:composeFrom net:atomClass_movie_m, - net:atomProperty_play_p ; - net:coverBaseNode :leaf_play-01_p ; - net:coverNode :leaf_movie_m, - :leaf_play-01_p ; - net:hasNaming "play-movie" ; - net:hasRestrictionNetValue net:atomClass_movie_m ; - net:hasRestrictionOnProperty net:atomProperty_play_p ; - net:hasStructure "document-03" . - -<http://amr.isi.edu/amr_data/document-03#a> a ns3:allow-01 ; - ns3:allow-01.ARG1 <http://amr.isi.edu/amr_data/document-03#p> ; - ns2:polarity "-" ; + net:hasStructure "document-01" . + +<http://amr.isi.edu/amr_data/document-01#c> a ns4:country ; + rdfs:label "Germany" ; + ns2:mod <http://amr.isi.edu/amr_data/document-01#o> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/document-01#d> a ns3:display-01 ; + ns3:display-01.ARG1 <http://amr.isi.edu/amr_data/document-01#m> ; + ns3:display-01.ARG2 <http://amr.isi.edu/amr_data/document-01#c> ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-03#m> a ns2:movie ; +<http://amr.isi.edu/amr_data/document-01#m> a ns2:movie ; + rdfs:label "9899" ; 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> ; +<http://amr.isi.edu/amr_data/document-01#o> a ns2:only ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-03#p2> a ns4:person ; - rdfs:label "John" ; +<http://amr.isi.edu/amr_data/document-01#p> a ns3:possible-01 ; + ns3:possible-01.ARG1 <http://amr.isi.edu/amr_data/document-01#d> ; rdfs:subClassOf :AMR_Linked_Data . -ns4:person a ns11:NamedEntity ; +ns4:country a ns11:NamedEntity ; rdfs:subClassOf :AMR_Linked_Data . -ns3:allow-01 a ns11:Frame ; +ns3:display-01 a ns11:Frame ; rdfs:subClassOf :AMR_Linked_Data . -ns3:play-01 a ns11:Frame ; +ns3:possible-01 a ns11:Frame ; rdfs:subClassOf :AMR_Linked_Data . ns2:movie a ns11:Concept ; rdfs:subClassOf :AMR_Linked_Data . +ns2:only 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 . @@ -780,16 +779,18 @@ ns11:Frame a ns11:Concept, rdfs:subClassOf :AMR_Core_Role ; :label "ARG1" . -:value_John a :AMR_Value ; - rdfs:label "John" . +:role_name a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_NonCore_Role ; + :label "name" . -:value_negative a :AMR_Value ; - rdfs:label "negative" . +:value_9899 a :AMR_Value ; + rdfs:label "9899" . -sys:Out_ObjectProperty a owl:ObjectProperty . +:value_Germany a :AMR_Value ; + rdfs:label "Germany" . -net:Atom_Class_Net a owl:Class ; - rdfs:subClassOf net:Class_Net . +sys:Out_ObjectProperty a owl:ObjectProperty . net:Class_Net a owl:Class ; rdfs:subClassOf net:Net . @@ -797,18 +798,49 @@ net:Class_Net a owl:Class ; 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_movie_m a net:Atom_Class_Net, + net:Deprecated_Net ; + :role_name net:value_9899_blankNode ; + net:coverBaseNode :leaf_movie_m ; + net:coverNode :leaf_movie_m ; + net:hasClassName "movie" ; + net:hasNaming "movie" ; + net:hasStructure "document-01" . + +net:atomProperty_display_d a net:Atom_Property_Net ; + :role_ARG1 net:atomClass_movie_m, + net:individual_9899_m ; + :role_ARG2 net:atomClass_country_c, + net:compositeClass_only-country_c, + net:individual_Germany_c ; + net:coverBaseNode :leaf_display-01_d ; + net:coverNode :leaf_display-01_d ; + net:hasNaming "display" ; + net:hasPropertyName "display" ; + net:hasPropertyName01 "displaying" ; + net:hasPropertyName10 "display-by" ; + net:hasPropertyName12 "display-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "document-01" ; + net:isCoreRoleLinked "true" ; + net:targetArgumentNode :leaf_country_c, + :leaf_movie_m . + net:objectProperty a owl:AnnotationProperty ; rdfs:label "object attribute" . +net:value_9899_blankNode a net:Value_Net ; + net:coverAmrValue :value_9899 ; + net:hasNaming "9899" ; + net:hasStructure "document-01" ; + net:hasValueLabel "9899" . + ns3:FrameRole a ns11:Role, owl:Class, owl:NamedIndividual ; @@ -824,6 +856,9 @@ ns3:FrameRole a ns11:Role, :AMR_Specific_Role a owl:Class ; rdfs:subClassOf :AMR_Role . +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + :fromAmrLk a owl:AnnotationProperty ; rdfs:subPropertyOf :AMR_AnnotationProperty . @@ -840,54 +875,61 @@ ns3:FrameRole a ns11:Role, :toReify a owl:AnnotationProperty ; rdfs:subPropertyOf :AMR_AnnotationProperty . +net:Atom_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:Individual_Net a owl:Class ; + rdfs:subClassOf net:Net . + net:Net_Structure a owl:Class ; rdfs:label "Semantic Net Structure" ; rdfs:comment "A semantic net captures a set of nodes, and associates this set with type(s) and value(s)." . -net: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:action_display_d a net:Action_Net ; + net:composeFrom net:atomProperty_display_d, + net:individual_9899_m ; + net:coverBaseNode :leaf_display-01_d ; + net:coverNode :leaf_display-01_d, + :leaf_movie_m ; + net:hasActionName "display" ; + net:hasNaming "display" ; + net:hasStructure "document-01" ; + net:hasTargetIndividualNet net:individual_9899_m . net:has_relation_value a owl:AnnotationProperty ; rdfs:label "has relation value" ; rdfs:subPropertyOf net:has_object . -net:value_John_blankNode a net:Value_Net ; - net:coverAmrValue :value_John ; - net:hasNaming "John" ; - net:hasStructure "document-03" ; - net:hasValueLabel "John" . +net:individual_9899_m a net:Individual_Net ; + :role_name net:value_9899_blankNode ; + net:coverBaseNode :leaf_movie_m ; + net:coverNode :leaf_movie_m ; + net:hasIndividualLabel "9899" ; + net:hasMotherClassNet net:atomClass_movie_m ; + net:hasNaming "9899" ; + net:hasStructure "document-01" . -net:value_negative_blankNode a net:Value_Net ; - net:coverAmrValue :value_negative ; - net:hasNaming "negative" ; - net:hasStructure "document-03" ; - net:hasValueLabel "negative" . +net:value_Germany_blankNode a net:Value_Net ; + net:coverAmrValue :value_Germany ; + net:hasNaming "Germany" ; + net:hasStructure "document-01" ; + net:hasValueLabel "Germany" . :AMR_Element a owl:Class ; rdfs:subClassOf :AMR_Structure . -:AMR_Variable a owl:Class ; - rdfs:subClassOf :AMR_Element . - net:Relation a owl:Class ; rdfs:subClassOf net:Net_Structure . -net:action_play_p a net:Action_Net ; - net:composeFrom net:atomClass_movie_m, - net:atomProperty_play_p ; - net:coverBaseNode :leaf_play-01_p ; - net:coverNode :leaf_movie_m, - :leaf_play-01_p ; - net:hasActionName "play" ; - net:hasNaming "play" ; - net:hasStructure "document-03" ; - net:hasTargetNet net:atomClass_movie_m . +net:atomClass_country_c a net:Atom_Class_Net, + net:Deprecated_Net ; + :role_mod net:atomClass_only_o ; + :role_name net:value_Germany_blankNode ; + net:coverBaseNode :leaf_country_c ; + net:coverNode :leaf_country_c ; + net:hasClassName "country" ; + net:hasNaming "country" ; + net:hasStructure "document-01" . :AMR_NonCore_Role a owl:Class ; rdfs:subClassOf :AMR_Role . @@ -895,70 +937,64 @@ net:action_play_p a net:Action_Net ; :AMR_Role a owl:Class ; rdfs:subClassOf :AMR_Element . +:AMR_Variable a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:leaf_possible-01_p a :AMR_Leaf ; + :edge_p_ARG1_d :leaf_display-01_d ; + :hasConcept :concept_possible-01 ; + :hasVariable :variable_p . + 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_display-01_d a :AMR_Leaf ; + :edge_d_ARG1_m :leaf_movie_m ; + :edge_d_ARG2_c :leaf_country_c ; + :hasConcept :concept_display-01 ; + :hasVariable :variable_d . + +:leaf_only_o a :AMR_Leaf ; + :hasConcept :concept_only ; + :hasVariable :variable_o . + cprm:configParamProperty a rdf:Property ; rdfs:label "Config Parameter Property" . -net:atomClass_movie_m a net:Atom_Class_Net ; - net:coverBaseNode :leaf_movie_m ; - net:coverNode :leaf_movie_m ; - net:hasClassName "movie" ; - net:hasNaming "movie" ; - net:hasStructure "document-03" . - -net:atomProperty_play_p a net:Atom_Property_Net ; - :role_ARG0 net:atomClass_person_p2, - net:individual_John_p2 ; - :role_ARG1 net:atomClass_movie_m ; - net:coverBaseNode :leaf_play-01_p ; - net:coverNode :leaf_play-01_p ; - net:hasNaming "play" ; - net:hasPropertyName "play" ; - net:hasPropertyName01 "playing" ; - net:hasPropertyName10 "play-by" ; - net:hasPropertyName12 "play-of" ; - net:hasPropertyType owl:ObjectProperty ; - net:hasStructure "document-03" ; - net:isCoreRoleLinked "true" ; - net:targetArgumentNode :leaf_movie_m, - :leaf_person_p2 . +net:atomClass_only_o a net:Atom_Class_Net ; + net:coverBaseNode :leaf_only_o ; + net:coverNode :leaf_only_o ; + net:hasClassName "only" ; + net:hasNaming "only" ; + net:hasStructure "document-01" . rdf:Property a owl:Class . -:AMR_Relation a owl:Class ; +:AMR_Leaf a owl:Class ; rdfs:subClassOf :AMR_Structure . -:leaf_allow-01_a a :AMR_Leaf ; - :edge_a_ARG1_p :leaf_play-01_p ; - :edge_a_polarity_negative :value_negative ; - :hasConcept :concept_allow-01 ; - :hasVariable :variable_a . - -:AMR_Edge a owl:Class ; +:AMR_Relation a owl:Class ; rdfs:subClassOf :AMR_Structure . +:leaf_country_c a :AMR_Leaf ; + :edge_c_mod_o :leaf_only_o ; + :edge_c_name_Germany :value_Germany ; + :hasConcept :concept_country ; + :hasVariable :variable_c . + :leaf_movie_m a :AMR_Leaf ; + :edge_m_name_9899 :value_9899 ; :hasConcept :concept_movie ; :hasVariable :variable_m . -:leaf_person_p2 a :AMR_Leaf ; - :edge_p2_name_John :value_John ; - :hasConcept :concept_person ; - :hasVariable :variable_p2 . - net:Net a owl:Class ; rdfs:subClassOf net:Net_Structure . @@ -966,15 +1002,12 @@ net:has_object a owl:AnnotationProperty ; rdfs:label "relation" ; rdfs:subPropertyOf net:netProperty . +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . + :AMR_Op_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:leaf_play-01_p a :AMR_Leaf ; - :edge_p_ARG0_p2 :leaf_person_p2 ; - :edge_p_ARG1_m :leaf_movie_m ; - :hasConcept :concept_play-01 ; - :hasVariable :variable_p . - :AMR_AnnotationProperty a owl:AnnotationProperty . :AMR_Core_Role a owl:Class ; diff --git a/tests/dev_tests/test_data/odrl-generation-devGraph-3.ttl b/tests/dev_tests/test_data/odrl-generation-devGraph-3.ttl index 64383f897fae88b3e5910afb841b391e95ae692e..5135eb5831c9fa86524986f3c969b3cba8a17af5 100644 --- a/tests/dev_tests/test_data/odrl-generation-devGraph-3.ttl +++ b/tests/dev_tests/test_data/odrl-generation-devGraph-3.ttl @@ -1,50 +1,51 @@ -@base <https://amr.tetras-libre.fr/rdf/odrl-rule-devGraph-3/result> . +@base <http://https://tenet.tetras-libre.fr/demo/clara/03//transduction> . @prefix : <https://amr.tetras-libre.fr/rdf/schema#> . @prefix cprm: <https://tenet.tetras-libre.fr/config/parameters#> . @prefix net: <https://tenet.tetras-libre.fr/semantic-net#> . -@prefix ns11: <http://amr.isi.edu/rdf/core-amr#> . +@prefix 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 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, +ns1:Concept a rdfs:Class, owl:Class ; rdfs:label "AMR-Concept" ; rdfs:subClassOf :AMR_Linked_Data . -ns11:Role a rdfs:Class, +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> ns11:hasID "test-1" ; - ns11:hasSentence "The sun is a star." ; - ns11:root <http://amr.isi.edu/amr_data/test-1#s> . +<http://amr.isi.edu/amr_data/test-1#root01> 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> ns11:hasID "test-2" ; - ns11:hasSentence "Earth is a planet." ; - ns11:root <http://amr.isi.edu/amr_data/test-2#p> . +<http://amr.isi.edu/amr_data/test-2#root01> ns1:hasID "test-2" ; + ns1:hasSentence "Earth is a planet." ; + ns1:root <http://amr.isi.edu/amr_data/test-2#p> . -ns3:allow-01.ARG1 a ns3:FrameRole . +ns3:display-01.ARG1 a ns3:FrameRole . -ns3:play-01.ARG0 a ns3:FrameRole . +ns3:display-01.ARG2 a ns3:FrameRole . -ns3:play-01.ARG1 a ns3:FrameRole . +ns3:possible-01.ARG1 a ns3:FrameRole . -ns2:domain a ns11:Role, +ns2:domain a ns1:Role, owl:AnnotationProperty, owl:NamedIndividual . -ns11:hasID a owl:AnnotationProperty . +ns2:mod a ns1:Role . -ns11:hasSentence a owl:AnnotationProperty . +ns1:hasID a owl:AnnotationProperty . -ns11:root 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 . @@ -54,23 +55,27 @@ ns11:root a owl:AnnotationProperty . :AMR_Prep_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:edge_a_ARG1_p a :AMR_Edge ; +:edge_c_mod_o a :AMR_Edge ; + :hasAmrRole :role_mod ; + :hasRoleID "mod" . + +:edge_c_name_Germany a :AMR_Edge ; + :hasAmrRole :role_name ; + :hasRoleID "name" . + +:edge_d_ARG1_m a :AMR_Edge ; :hasAmrRole :role_ARG1 ; :hasRoleID "ARG1" . -:edge_a_polarity_negative a :AMR_Edge ; - :hasAmrRole :role_polarity ; - :hasRoleID "polarity" . +:edge_d_ARG2_c a :AMR_Edge ; + :hasAmrRole :role_ARG2 ; + :hasRoleID "ARG2" . -:edge_p2_name_John a :AMR_Edge ; +:edge_m_name_9899 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 ; +:edge_p_ARG1_d a :AMR_Edge ; :hasAmrRole :role_ARG1 ; :hasRoleID "ARG1" . @@ -166,6 +171,10 @@ ns11:root a owl:AnnotationProperty . :hasConceptLink "obligate-01" ; :label "obligation-modality" . +:phenomena_modality_prohibition a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :label "prohibition-modality" . + :relation_domain a owl:Class ; rdfs:subClassOf :AMR_Relation ; :hasReification false ; @@ -207,9 +216,9 @@ ns11:root a owl:AnnotationProperty . :hasReification false ; :hasRelationName "quant" . -:role_ARG2 a owl:Class ; +:role_ARG0 a owl:Class ; rdfs:subClassOf :AMR_Core_Role ; - :label "ARG2" . + :label "ARG0" . :role_ARG3 a owl:Class ; rdfs:subClassOf :AMR_Core_Role ; @@ -260,16 +269,6 @@ ns11:root a owl:AnnotationProperty . :toReifyWithBaseEdge "ARG0" ; :toReifyWithHeadEdge "ARG1" . -:role_mod a owl:Class ; - rdfs:subClassOf :AMR_NonCore_Role ; - :getDirectPropertyName "hasFeature"^^xsd:string ; - :getPropertyType rdfs:subClassOf, - owl:ObjectProperty ; - :label "mod" ; - :toReifyAsConcept "mod" ; - :toReifyWithBaseEdge "ARG0" ; - :toReifyWithHeadEdge "ARG1" . - :role_op1 a owl:Class ; rdfs:subClassOf :AMR_Op_Role ; :label "op1" . @@ -315,15 +314,19 @@ ns11:root a owl:AnnotationProperty . :toReifyWithBaseEdge "ARG0" ; :toReifyWithHeadEdge "ARG1" . +:role_polarity a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "polarity" . + :role_quant a owl:Class ; rdfs:subClassOf :AMR_Specific_Role ; :label "quant" . -:root_document-03 a :AMR_Root ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-03#root01> ; - :hasRootLeaf :leaf_allow-01_a ; - :hasSentenceID "document-03" ; - :hasSentenceStatement "John is not allowed to play the movie.." . +:root_document-01 a :AMR_Root ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-01#root01> ; + :hasRootLeaf :leaf_possible-01_p ; + :hasSentenceID "document-01" ; + :hasSentenceStatement "Movie9899 can be displayed only in Germany." . :toReifyAsConcept a owl:AnnotationProperty ; rdfs:subPropertyOf :toReify . @@ -393,8 +396,8 @@ cprm:targetOntologyURI a rdf:Property ; <https://tenet.tetras-libre.fr/semantic-net> a owl:Ontology . -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 . @@ -407,19 +410,6 @@ net:atomType a owl:AnnotationProperty ; rdfs:label "atom type" ; rdfs:subPropertyOf net:objectType . -net:compositeProperty_person-play-movie_p2 a net:Composite_Property_Net ; - :role_name net:value_John_blankNode ; - net:composeFrom net:atomClass_movie_m, - net:atomClass_person_p2, - net:atomProperty_play_p ; - net:coverBaseNode :leaf_person_p2 ; - net:coverNode :leaf_movie_m, - :leaf_person_p2, - :leaf_play-01_p ; - net:hasNaming "person-play-movie" ; - net:hasRestriction net:restriction_play-movie_p ; - net:hasStructure "document-03" . - net:entityClass a owl:AnnotationProperty ; rdfs:label "entity class" ; rdfs:subPropertyOf net:objectValue . @@ -515,6 +505,16 @@ net:has_target a owl:AnnotationProperty ; rdfs:label "has target" ; rdfs:subPropertyOf net:has_relation_value . +net:individual_only_o a net:Individual_Net ; + net:composeFrom net:atomClass_only_o ; + net:coverBaseNode :leaf_only_o ; + net:coverNode :leaf_only_o ; + net:hasBaseClassName "Feature" ; + net:hasIndividualLabel "only" ; + net:hasMotherClassNet net:atomClass_only_o ; + net:hasNaming "only" ; + net:hasStructure "document-01" . + net:inverse_direction a owl:NamedIndividual . net:listGuiding a owl:AnnotationProperty ; @@ -531,17 +531,17 @@ net:modCat2 a owl:AnnotationProperty ; net:normal_direction a owl:NamedIndividual . -net:rule_prohibition_a a net:Rule_Net ; - net:composeFrom net:action_play_p, - net:phenomena_prohibition-modality_a ; - net:coverBaseNode :leaf_allow-01_a ; - net:coverNode :leaf_allow-01_a, +net:rule_permission_p a net:Rule_Net ; + net:composeFrom net:action_display_d, + net:phenomena_possible-modality_p ; + net:coverBaseNode :leaf_possible-01_p ; + net:coverNode :leaf_display-01_d, :leaf_movie_m, - :leaf_play-01_p ; - net:hasNaming "prohibition" ; - net:hasRuleActionURI net:action_play_p ; - net:hasRuleRelationName "prohibition" ; - net:hasStructure "document-03" . + :leaf_possible-01_p ; + net:hasNaming "permission" ; + net:hasRuleActionURI net:action_display_d ; + net:hasRuleRelationName "permission" ; + net:hasStructure "document-01" . net:type a owl:AnnotationProperty ; rdfs:label "type "@fr ; @@ -551,19 +551,19 @@ 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/document-01#root01> a ns1:AMR ; + ns1:has-id "document-01" ; + ns1:has-sentence "Movie9899 can be displayed only in Germany." ; + ns1:root <http://amr.isi.edu/amr_data/document-01#p> . <http://amr.isi.edu/amr_data/test-1#s> ns2:domain <http://amr.isi.edu/amr_data/test-1#s2> . <http://amr.isi.edu/amr_data/test-2#p> rdfs:label "Earth" . -ns11:AMR a owl:Class ; +ns1:AMR a owl:Class ; rdfs:subClassOf :AMR_Linked_Data . -ns11:NamedEntity a ns11:Concept, +ns1:NamedEntity a ns1:Concept, owl:Class, owl:NamedIndividual ; rdfs:label "AMR-EntityType", @@ -579,59 +579,65 @@ ns11:NamedEntity a ns11:Concept, :AMR_Root a owl:Class ; rdfs:subClassOf :AMR_Structure . -:concept_allow-01 rdfs:subClassOf :AMR_Relation_Concept ; - :fromAmrLk ns3:allow-01 ; - :hasPhenomenaLink :phenomena_modality_possible ; - :label "allow-01" . +:concept_country rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk <http://amr.isi.edu/entity-types#country> ; + :label "country" . + +:concept_display-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:display-01 ; + :label "display-01" . :concept_movie rdfs:subClassOf :AMR_Term_Concept ; :fromAmrLk ns2:movie ; :label "movie" . -:concept_person rdfs:subClassOf :AMR_Term_Concept ; - :fromAmrLk ns4:person ; - :label "person" . - -:concept_play-01 rdfs:subClassOf :AMR_Predicat_Concept ; - :fromAmrLk ns3:play-01 ; - :label "play-01" . +:concept_only rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:only ; + :label "only" . -:phenomena_modality_prohibition a owl:Class ; - rdfs:subClassOf :phenomena_modality ; - :label "prohibition-modality" . +:concept_possible-01 rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns3:possible-01 ; + :hasPhenomenaLink :phenomena_modality_possible ; + :label "possible-01" . -:role_ARG0 a owl:Class, +:role_ARG2 a owl:Class, net:Relation ; rdfs:subClassOf :AMR_Core_Role ; - :label "ARG0" . + :label "ARG2" . -:role_name a owl:Class, +:role_mod a owl:Class, net:Relation ; rdfs:subClassOf :AMR_NonCore_Role ; - :label "name" . + :getDirectPropertyName "hasFeature"^^xsd:string ; + :getPropertyType rdfs:subClassOf, + owl:ObjectProperty ; + :label "mod" ; + :toReifyAsConcept "mod" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . -:role_polarity a owl:Class, - net:Relation ; - rdfs:subClassOf :AMR_Specific_Role ; - :label "polarity" . +:variable_c a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-01#c> ; + :label "c" ; + :name "Germany" . -:variable_a a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-03#a> ; - :label "a" . +:variable_d a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-01#d> ; + :label "d" . :variable_m a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-03#m> ; - :label "m" . + :fromAmrLk <http://amr.isi.edu/amr_data/document-01#m> ; + :label "m" ; + :name "9899" . + +:variable_o a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-01#o> ; + :label "o" . :variable_p a :AMR_Variable ; - :fromAmrLk <http://amr.isi.edu/amr_data/document-03#p> ; + :fromAmrLk <http://amr.isi.edu/amr_data/document-01#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 . @@ -649,105 +655,96 @@ net:Action_Net a owl:Class ; net:Atom_Property_Net a owl:Class ; rdfs:subClassOf net:Property_Net . -net:Composite_Property_Net a owl:Class ; - rdfs:subClassOf net:Property_Net . +net:Composite_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . -net:Individual_Net a owl:Class ; +net:Phenomena_Net a owl:Class ; rdfs:subClassOf net:Net . net:Rule_Net a owl:Class ; rdfs:subClassOf net:Net . +net:compositeClass_only-country_c a net:Composite_Class_Net ; + :role_mod net:atomClass_only_o ; + :role_name net:value_Germany_blankNode ; + net:composeFrom net:atomClass_country_c, + net:atomClass_only_o ; + net:coverBaseNode :leaf_country_c ; + net:coverNode :leaf_country_c, + :leaf_only_o ; + net:hasMotherClassNet net:atomClass_country_c ; + net:hasNaming "only-country" ; + net:hasStructure "document-01" . + 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:individual_Germany_c a net:Individual_Net ; + :role_mod net:atomClass_only_o ; + :role_name net:value_Germany_blankNode ; + net:coverBaseNode :leaf_country_c ; + net:coverNode :leaf_country_c ; + net:hasIndividualLabel "Germany" ; + net:hasMotherClassNet net:atomClass_country_c ; + net:hasNaming "Germany" ; + net:hasStructure "document-01" . net:objectType a owl:AnnotationProperty ; rdfs:label "object type" ; rdfs:subPropertyOf net:objectProperty . -net:phenomena_possible-modality_a a net:Deprecated_Net, - net:Phenomena_Net ; - :role_ARG1 net:action_play_p, - net:atomProperty_play_p ; - :role_polarity net:value_negative_blankNode ; - net:coverBaseNode :leaf_allow-01_a ; - net:coverNode :leaf_allow-01_a ; +net:phenomena_possible-modality_p a net:Phenomena_Net ; + :role_ARG1 net:action_display_d, + net:atomProperty_display_d ; + net:coverBaseNode :leaf_possible-01_p ; + net:coverNode :leaf_possible-01_p ; net:hasNaming "possible-modality" ; - net:hasPhenomenaRef "allow-01" ; + net:hasPhenomenaRef "possible-01" ; net:hasPhenomenaType :phenomena_modality_possible ; - net:hasStructure "document-03" . - -net:phenomena_prohibition-modality_a a net:Phenomena_Net ; - :role_ARG1 net:action_play_p, - net:atomProperty_play_p ; - :role_polarity net:value_negative_blankNode ; - net:composeFrom net:phenomena_possible-modality_a, - net:value_negative_blankNode ; - net:coverBaseNode :leaf_allow-01_a ; - net:coverNode :leaf_allow-01_a ; - net:hasNaming "prohibition-modality" ; - net:hasPhenomenaRef "not-[rdflib.term.Literal('allow-01')]" ; - net:hasPhenomenaType :phenomena_modality_prohibition ; - net:hasStructure "document-03" . - -net:restriction_play-movie_p a net:Restriction_Net ; - net:composeFrom net:atomClass_movie_m, - net:atomProperty_play_p ; - net:coverBaseNode :leaf_play-01_p ; - net:coverNode :leaf_movie_m, - :leaf_play-01_p ; - net:hasNaming "play-movie" ; - net:hasRestrictionNetValue net:atomClass_movie_m ; - net:hasRestrictionOnProperty net:atomProperty_play_p ; - net:hasStructure "document-03" . - -<http://amr.isi.edu/amr_data/document-03#a> a ns3:allow-01 ; - ns3:allow-01.ARG1 <http://amr.isi.edu/amr_data/document-03#p> ; - ns2:polarity "-" ; + net:hasStructure "document-01" . + +<http://amr.isi.edu/amr_data/document-01#c> a <http://amr.isi.edu/entity-types#country> ; + rdfs:label "Germany" ; + ns2:mod <http://amr.isi.edu/amr_data/document-01#o> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/document-01#d> a ns3:display-01 ; + ns3:display-01.ARG1 <http://amr.isi.edu/amr_data/document-01#m> ; + ns3:display-01.ARG2 <http://amr.isi.edu/amr_data/document-01#c> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/document-01#m> a ns2:movie ; + rdfs:label "9899" ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-03#m> a ns2:movie ; +<http://amr.isi.edu/amr_data/document-01#o> a ns2:only ; 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> ; +<http://amr.isi.edu/amr_data/document-01#p> a ns3:possible-01 ; + ns3:possible-01.ARG1 <http://amr.isi.edu/amr_data/document-01#d> ; rdfs:subClassOf :AMR_Linked_Data . -<http://amr.isi.edu/amr_data/document-03#p2> a ns4:person ; - rdfs:label "John" ; +<http://amr.isi.edu/entity-types#country> a ns1:NamedEntity ; rdfs:subClassOf :AMR_Linked_Data . -ns4:person a ns11:NamedEntity ; +ns3:display-01 a ns1:Frame ; rdfs:subClassOf :AMR_Linked_Data . -ns3:allow-01 a ns11:Frame ; +ns3:possible-01 a ns1:Frame ; rdfs:subClassOf :AMR_Linked_Data . -ns3:play-01 a ns11:Frame ; +ns2:movie a ns1:Concept ; rdfs:subClassOf :AMR_Linked_Data . -ns2:movie a ns11:Concept ; +ns2:only a ns1:Concept ; rdfs:subClassOf :AMR_Linked_Data . -ns11:Frame a ns11:Concept, +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 . @@ -775,16 +772,18 @@ ns11:Frame a ns11:Concept, rdfs:subClassOf :AMR_Core_Role ; :label "ARG1" . -:value_John a :AMR_Value ; - rdfs:label "John" . +:role_name a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_NonCore_Role ; + :label "name" . -:value_negative a :AMR_Value ; - rdfs:label "negative" . +:value_9899 a :AMR_Value ; + rdfs:label "9899" . -sys:Out_ObjectProperty a owl:ObjectProperty . +:value_Germany a :AMR_Value ; + rdfs:label "Germany" . -net:Atom_Class_Net a owl:Class ; - rdfs:subClassOf net:Class_Net . +sys:Out_ObjectProperty a owl:ObjectProperty . net:Class_Net a owl:Class ; rdfs:subClassOf net:Net . @@ -792,19 +791,50 @@ net:Class_Net a owl:Class ; 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_movie_m a net:Atom_Class_Net, + net:Deprecated_Net ; + :role_name net:value_9899_blankNode ; + net:coverBaseNode :leaf_movie_m ; + net:coverNode :leaf_movie_m ; + net:hasClassName "movie" ; + net:hasNaming "movie" ; + net:hasStructure "document-01" . + +net:atomProperty_display_d a net:Atom_Property_Net ; + :role_ARG1 net:atomClass_movie_m, + net:individual_9899_m ; + :role_ARG2 net:atomClass_country_c, + net:compositeClass_only-country_c, + net:individual_Germany_c ; + net:coverBaseNode :leaf_display-01_d ; + net:coverNode :leaf_display-01_d ; + net:hasNaming "display" ; + net:hasPropertyName "display" ; + net:hasPropertyName01 "displaying" ; + net:hasPropertyName10 "display-by" ; + net:hasPropertyName12 "display-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "document-01" ; + net:isCoreRoleLinked "true" ; + net:targetArgumentNode :leaf_country_c, + :leaf_movie_m . + net:objectProperty a owl:AnnotationProperty ; rdfs:label "object attribute" . -ns3:FrameRole a ns11:Role, +net:value_9899_blankNode a net:Value_Net ; + net:coverAmrValue :value_9899 ; + net:hasNaming "9899" ; + net:hasStructure "document-01" ; + net:hasValueLabel "9899" . + +ns3:FrameRole a ns1:Role, owl:Class, owl:NamedIndividual ; rdfs:label "AMR-PropBank-Role" ; @@ -819,6 +849,9 @@ ns3:FrameRole a ns11:Role, :AMR_Specific_Role a owl:Class ; rdfs:subClassOf :AMR_Role . +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + :fromAmrLk a owl:AnnotationProperty ; rdfs:subPropertyOf :AMR_AnnotationProperty . @@ -835,54 +868,61 @@ ns3:FrameRole a ns11:Role, :toReify a owl:AnnotationProperty ; rdfs:subPropertyOf :AMR_AnnotationProperty . +net:Atom_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:Individual_Net a owl:Class ; + rdfs:subClassOf net:Net . + net:Net_Structure a owl:Class ; rdfs:label "Semantic Net Structure" ; rdfs:comment "A semantic net captures a set of nodes, and associates this set with type(s) and value(s)." . -net: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:action_display_d a net:Action_Net ; + net:composeFrom net:atomProperty_display_d, + net:individual_9899_m ; + net:coverBaseNode :leaf_display-01_d ; + net:coverNode :leaf_display-01_d, + :leaf_movie_m ; + net:hasActionName "display" ; + net:hasNaming "display" ; + net:hasStructure "document-01" ; + net:hasTargetIndividualNet net:individual_9899_m . net:has_relation_value a owl:AnnotationProperty ; rdfs:label "has relation value" ; rdfs:subPropertyOf net:has_object . -net:value_John_blankNode a net:Value_Net ; - net:coverAmrValue :value_John ; - net:hasNaming "John" ; - net:hasStructure "document-03" ; - net:hasValueLabel "John" . +net:individual_9899_m a net:Individual_Net ; + :role_name net:value_9899_blankNode ; + net:coverBaseNode :leaf_movie_m ; + net:coverNode :leaf_movie_m ; + net:hasIndividualLabel "9899" ; + net:hasMotherClassNet net:atomClass_movie_m ; + net:hasNaming "9899" ; + net:hasStructure "document-01" . -net:value_negative_blankNode a net:Value_Net ; - net:coverAmrValue :value_negative ; - net:hasNaming "negative" ; - net:hasStructure "document-03" ; - net:hasValueLabel "negative" . +net:value_Germany_blankNode a net:Value_Net ; + net:coverAmrValue :value_Germany ; + net:hasNaming "Germany" ; + net:hasStructure "document-01" ; + net:hasValueLabel "Germany" . :AMR_Element a owl:Class ; rdfs:subClassOf :AMR_Structure . -:AMR_Variable a owl:Class ; - rdfs:subClassOf :AMR_Element . - net:Relation a owl:Class ; rdfs:subClassOf net:Net_Structure . -net:action_play_p a net:Action_Net ; - net:composeFrom net:atomClass_movie_m, - net:atomProperty_play_p ; - net:coverBaseNode :leaf_play-01_p ; - net:coverNode :leaf_movie_m, - :leaf_play-01_p ; - net:hasActionName "play" ; - net:hasNaming "play" ; - net:hasStructure "document-03" ; - net:hasTargetNet net:atomClass_movie_m . +net:atomClass_country_c a net:Atom_Class_Net, + net:Deprecated_Net ; + :role_mod net:atomClass_only_o ; + :role_name net:value_Germany_blankNode ; + net:coverBaseNode :leaf_country_c ; + net:coverNode :leaf_country_c ; + net:hasClassName "country" ; + net:hasNaming "country" ; + net:hasStructure "document-01" . :AMR_NonCore_Role a owl:Class ; rdfs:subClassOf :AMR_Role . @@ -890,70 +930,64 @@ net:action_play_p a net:Action_Net ; :AMR_Role a owl:Class ; rdfs:subClassOf :AMR_Element . +:AMR_Variable a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:leaf_possible-01_p a :AMR_Leaf ; + :edge_p_ARG1_d :leaf_display-01_d ; + :hasConcept :concept_possible-01 ; + :hasVariable :variable_p . + 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_display-01_d a :AMR_Leaf ; + :edge_d_ARG1_m :leaf_movie_m ; + :edge_d_ARG2_c :leaf_country_c ; + :hasConcept :concept_display-01 ; + :hasVariable :variable_d . + +:leaf_only_o a :AMR_Leaf ; + :hasConcept :concept_only ; + :hasVariable :variable_o . + cprm:configParamProperty a rdf:Property ; rdfs:label "Config Parameter Property" . -net:atomClass_movie_m a net:Atom_Class_Net ; - net:coverBaseNode :leaf_movie_m ; - net:coverNode :leaf_movie_m ; - net:hasClassName "movie" ; - net:hasNaming "movie" ; - net:hasStructure "document-03" . - -net:atomProperty_play_p a net:Atom_Property_Net ; - :role_ARG0 net:atomClass_person_p2, - net:individual_John_p2 ; - :role_ARG1 net:atomClass_movie_m ; - net:coverBaseNode :leaf_play-01_p ; - net:coverNode :leaf_play-01_p ; - net:hasNaming "play" ; - net:hasPropertyName "play" ; - net:hasPropertyName01 "playing" ; - net:hasPropertyName10 "play-by" ; - net:hasPropertyName12 "play-of" ; - net:hasPropertyType owl:ObjectProperty ; - net:hasStructure "document-03" ; - net:isCoreRoleLinked "true" ; - net:targetArgumentNode :leaf_movie_m, - :leaf_person_p2 . +net:atomClass_only_o a net:Atom_Class_Net ; + net:coverBaseNode :leaf_only_o ; + net:coverNode :leaf_only_o ; + net:hasClassName "only" ; + net:hasNaming "only" ; + net:hasStructure "document-01" . rdf:Property a owl:Class . -:AMR_Relation a owl:Class ; +:AMR_Leaf a owl:Class ; rdfs:subClassOf :AMR_Structure . -:leaf_allow-01_a a :AMR_Leaf ; - :edge_a_ARG1_p :leaf_play-01_p ; - :edge_a_polarity_negative :value_negative ; - :hasConcept :concept_allow-01 ; - :hasVariable :variable_a . - -:AMR_Edge a owl:Class ; +:AMR_Relation a owl:Class ; rdfs:subClassOf :AMR_Structure . +:leaf_country_c a :AMR_Leaf ; + :edge_c_mod_o :leaf_only_o ; + :edge_c_name_Germany :value_Germany ; + :hasConcept :concept_country ; + :hasVariable :variable_c . + :leaf_movie_m a :AMR_Leaf ; + :edge_m_name_9899 :value_9899 ; :hasConcept :concept_movie ; :hasVariable :variable_m . -:leaf_person_p2 a :AMR_Leaf ; - :edge_p2_name_John :value_John ; - :hasConcept :concept_person ; - :hasVariable :variable_p2 . - net:Net a owl:Class ; rdfs:subClassOf net:Net_Structure . @@ -961,15 +995,12 @@ net:has_object a owl:AnnotationProperty ; rdfs:label "relation" ; rdfs:subPropertyOf net:netProperty . +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . + :AMR_Op_Role a owl:Class ; rdfs:subClassOf :AMR_Role . -:leaf_play-01_p a :AMR_Leaf ; - :edge_p_ARG0_p2 :leaf_person_p2 ; - :edge_p_ARG1_m :leaf_movie_m ; - :hasConcept :concept_play-01 ; - :hasVariable :variable_p . - :AMR_AnnotationProperty a owl:AnnotationProperty . :AMR_Core_Role a owl:Class ;