diff --git a/tenet/scheme/amr_master_rule/transduction/phenomena_analyzer/degree_analyzer_1.py b/tenet/scheme/amr_master_rule/transduction/phenomena_analyzer/degree_analyzer_1.py index 83fc9979979f2cbd3b438e0ffef1abedc75b82ef..50ce6a655e2761a2f36c0d28266cea2c1d339ef5 100644 --- a/tenet/scheme/amr_master_rule/transduction/phenomena_analyzer/degree_analyzer_1.py +++ b/tenet/scheme/amr_master_rule/transduction/phenomena_analyzer/degree_analyzer_1.py @@ -226,13 +226,16 @@ def __construct_feature_individual_net(graph, feature_class_net, degree_individu return individual_net, result_triple_list - def __associate_mother_relation_to_refine(graph, left_class_net, right_class_net): left_class_net.mother_class_net_to_refine = right_class_net.uri result_triple_list = left_class_net.generate_triple_definition() return left_class_net, result_triple_list +def __add_feature_reference_to_degree_net(graph, degree_net, feature_net): + degree_net.feature_net = feature_net.uri + return degree_net, degree_net.generate_triple_definition() + #============================================================================== # Main Method @@ -266,6 +269,11 @@ def analyze_phenomena_degree91_1(graph): rule_triple_list += (triple_list_1 + triple_list_2 + triple_list_3) + # -- Update Degree Phenomena Net by adding feature net reference + _, degree_triple_list = __add_feature_reference_to_degree_net( + graph, phenomena_net, feature_individual_net) + rule_triple_list += degree_triple_list + # -- Comparison Handle (ARG4) _, comparated_class_set = __search_degree_arg4(graph, phenomena_net.uri) for row in comparated_class_set: diff --git a/tenet/scheme/amr_master_rule/transduction/specific_analyzer/specific_analyzer_1_degree_remain.py b/tenet/scheme/amr_master_rule/transduction/specific_analyzer/specific_analyzer_1_degree_remain.py index 32afbb7eba895b6a76d061035e1e50ab11c5cc48..96d92c281f7f34e13993bb24ceb9ee6bf2f6ab07 100644 --- a/tenet/scheme/amr_master_rule/transduction/specific_analyzer/specific_analyzer_1_degree_remain.py +++ b/tenet/scheme/amr_master_rule/transduction/specific_analyzer/specific_analyzer_1_degree_remain.py @@ -30,8 +30,6 @@ DEGREE_PROPERTY_NET_URI = 'net:predefinedProperty_hasDegree' AND_PHENOMENA_URI = 'amr:phenomena_conjunction_and' DEGREE_PHENOMENA_URI = 'amr:phenomena_degree' REMAIN_PROPERTY_NAMING = '"remain"' -ARG_RELATION = [None, 'amr:role_ARG1', 'amr:role_ARG2', 'amr:role_ARG3', - 'amr:role_ARG4', 'amr:role_ARG5', 'amr:role_ARG6'] OP_RELATION = [None, 'amr:role_op1', 'amr:role_op2'] def __search_pattern(graph): @@ -56,31 +54,36 @@ def __search_pattern(graph): # Useful Additional Search #============================================================================== -def __search_degree_arg4(graph, degree_net_uri): - select_data_list = ['?comparated_class_net'] - clause_list = [(degree_net_uri, ARG_RELATION[4], '?comparated_class_net'), - '?comparated_class_net a [rdfs:subClassOf* net:Class_Net].', - 'FILTER NOT EXISTS {{ ?comparated_class_net a net:Deprecated_Net. }}'] +ARG_RELATION = [None, 'amr:role_ARG1', 'amr:role_ARG2', 'amr:role_ARG3', + 'amr:role_ARG4', 'amr:role_ARG5', 'amr:role_ARG6'] + + +def __search_remain_arg1(graph, remain_net_uri): + select_data_list = ['?remain_class_net'] + clause_list = [(remain_net_uri, ARG_RELATION[1], '?remain_class_net'), + '?remain_class_net a [rdfs:subClassOf* net:Class_Net].', + 'FILTER NOT EXISTS {{ ?remain_class_net a net:Deprecated_Net. }}'] query_code = generate_select_distinct_query(graph, select_data_list, clause_list) result_set = graph.query(query_code) return query_code, result_set -def __search_degree_arg5(graph, degree_net_uri): - select_data_list = ['?superlative_class_net'] - clause_list = [(degree_net_uri, ARG_RELATION[5], '?superlative_class_net'), - '?superlative_class_net a [rdfs:subClassOf* net:Class_Net].', - 'FILTER NOT EXISTS {{ ?superlative_class_net a net:Deprecated_Net. }}'] +def __search_degree_feature(graph, degree_net_uri): + select_data_list = ['?feature_individual_net'] + clause_list = [(degree_net_uri, 'net:hasFeatureNet', '?feature_individual_net'), + '?feature_individual_net a [rdfs:subClassOf* net:Individual_Net].', + f'?feature_individual_net net:hasClassType {FEATURE_CLASS_TYPE}.', + 'FILTER NOT EXISTS {{ ?feature_individual_net a net:Deprecated_Net. }}'] query_code = generate_select_distinct_query(graph, select_data_list, clause_list) result_set = graph.query(query_code) return query_code, result_set -def __search_degree_arg6(graph, degree_net_uri): - select_data_list = ['?reference_net'] - clause_list = [(degree_net_uri, ARG_RELATION[6], '?reference_net'), - '?reference_net a [rdfs:subClassOf* net:Class_Net].', - 'FILTER NOT EXISTS {{ ?reference_net a net:Deprecated_Net. }}'] +def __search_degree_arg5(graph, degree_net_uri): + select_data_list = ['?superlative_class_net'] + clause_list = [(degree_net_uri, ARG_RELATION[5], '?superlative_class_net'), + '?superlative_class_net a [rdfs:subClassOf* net:Class_Net].'] + # 'FILTER NOT EXISTS {{ ?superlative_class_net a net:Deprecated_Net. }}'] query_code = generate_select_distinct_query(graph, select_data_list, clause_list) result_set = graph.query(query_code) return query_code, result_set @@ -90,14 +93,38 @@ def __search_degree_arg6(graph, degree_net_uri): # Useful Computation Method(s) #============================================================================== +def __filter_mother_class(graph, class_net_uri_set): + result_list = [] + + class_net_uri_set_length = len(class_net_uri_set) + for row1 in class_net_uri_set: + class_net_uri_1 = row1.remain_class_net + check = True + for row2 in class_net_uri_set: + class_net_uri_2 = row2.remain_class_net + if class_net_uri_1 != class_net_uri_2: + class_net_2 = net.ClassNet(graph, uri=class_net_uri_2) + if class_net_uri_1 in class_net_2.mother_class_net: + check = False + if check : result_list.append(class_net_uri_1) + + return result_list + + def __extract_naming(net, default='none'): naming = f'{default}' naming_list = net.naming if len(naming_list) > 0: - assert len(naming_list) == 1, f'Houston, we have a problem: too many naming' + assert len(naming_list) == 1, 'Houston, we have a problem: too many naming' naming = naming_list[0] return naming + +def __define_opposite_feature_naming(class_net): + feature_name = __extract_naming(class_net, default='something') + return f'not-{feature_name}' + + def __define_feature_restriction_naming(class_net): name = __extract_naming(class_net, default='something') return f'{name}-feature' @@ -129,6 +156,28 @@ def __propagate_relation(target_net, base_net, phenomena_net): # Construct Method(s) #============================================================================== +def __construct_opposite_feature_individual_net(graph, feature_individual_net): + + # -- Net Composition + opposite_individual_net = net.IndividualNet(graph) + opposite_individual_net.compose(feature_individual_net) + + # -- Data Computation + opposite_individual_net.class_type = FEATURE_CLASS_TYPE + # individual_net.mother_class_net = class_net.uri + + # -- Net Naming + opposite_naming = __define_opposite_feature_naming(feature_individual_net) + opposite_individual_net.naming = opposite_naming + opposite_individual_net.individual_label = opposite_naming + + # -- Finalization + opposite_individual_net.finalize() + result_triple_list = opposite_individual_net.generate_triple_definition() + + return opposite_individual_net, result_triple_list + + def __construct_feature_restriction_net(graph, individual_net): restriction_net = net.RestrictionNet(graph) @@ -149,80 +198,21 @@ def __construct_feature_restriction_net(graph, individual_net): return restriction_net, triple_list - + -def __construct_composite_class_net(graph, class_net_1, individual_net, phenomena_net): - - # -- Net Composition - composite_class_net = net.CompositeClassNet(graph) - composite_class_net.compose(class_net_1, individual_net) - - # -- Data Computation - composite_class_net.mother_class_net = class_net_1.uri - composite_class_net.root_class_net = class_net_1.root_class_net +def __add_feature_restriction(graph, target_class_net, feature_individual_net): # -- Restriction Computation triple_list_1 = [] - restriction_net, triple_list_1 = __construct_feature_restriction_net(graph, individual_net) - composite_class_net.restriction = restriction_net.uri - - # -- Net Naming - composite_class_net.naming = __define_composite_naming(class_net_1, individual_net) - - # -- Relation Propagation - __propagate_relation(composite_class_net, class_net_1, phenomena_net) + restriction_net, triple_list_1 = __construct_feature_restriction_net(graph, feature_individual_net) + target_class_net.restriction = restriction_net.uri # -- Finalization - composite_class_net.finalize() - triple_list_2 = composite_class_net.generate_triple_definition() + target_class_net.finalize() + triple_list_2 = target_class_net.generate_triple_definition() result_triple_list = triple_list_1 + triple_list_2 - return composite_class_net, result_triple_list - - - -def __construct_degree_individual_net(graph, degree_property_net): - - # -- Net Composition - individual_net = net.IndividualNet(graph) - individual_net.compose(degree_property_net) - - # -- Data Computation - individual_net.class_type = DEGREE_CLASS_TYPE - # individual_net.mother_class_net = class_net.uri - - # -- Net Naming - individual_net.naming = f'{__extract_naming(degree_property_net, default="something")}' - individual_net.individual_label = f'{__extract_naming(degree_property_net, default="something")}' - - # -- Finalization - individual_net.finalize() - result_triple_list = individual_net.generate_triple_definition() - - return individual_net, result_triple_list - - - -def __construct_feature_individual_net(graph, feature_class_net, degree_individual_net): - - # -- Net Composition - individual_net = net.IndividualNet(graph) - individual_net.compose(feature_class_net, degree_individual_net) - - # -- Data Computation - individual_net.class_type = FEATURE_CLASS_TYPE - # individual_net.mother_class_net = class_net.uri - - # -- Net Naming - individual_name = __define_composite_naming(feature_class_net, degree_individual_net) - individual_net.naming = individual_name - individual_net.individual_label = individual_name - - # -- Finalization - individual_net.finalize() - result_triple_list = individual_net.generate_triple_definition() - - return individual_net, result_triple_list + return target_class_net, result_triple_list @@ -250,36 +240,37 @@ def analyze_specific_pattern_1(graph): for pattern in pattern_set: degree_phenomena_net = net.PhenomenaNet(graph, uri=pattern.degree_phenomena_net) remain_property_net = net.PropertyNet(graph, uri=pattern.remain_property_net) - - # -- New Net Construction(s) - - # degree_individual_net, triple_list_1 = __construct_degree_individual_net(graph, degree_property_net) - - # feature_individual_net, triple_list_2 = __construct_feature_individual_net( - # graph, attribute_class_net, degree_individual_net) - - # new_entity_class_net, triple_list_3 = __construct_composite_class_net( - # graph, entity_class_net, feature_individual_net, degree_phenomena_net) - - # rule_triple_list += (triple_list_1 + triple_list_2 + triple_list_3) - - # -- Comparison Handle (ARG4) - _, comparated_class_set = __search_degree_arg4(graph, degree_phenomena_net.uri) - for row in comparated_class_set: - pass #TODO: uri=row.comparated_class_net + + # -- Degree91 Feature Handle + _, feature_individual_set = __search_degree_feature(graph, degree_phenomena_net.uri) + feature_individual_net_list = [] + for row in feature_individual_set: + feature_individual_net = net.IndividualNet(graph, uri=row.feature_individual_net) + feature_individual_net, new_triples = ( + __construct_opposite_feature_individual_net(graph, feature_individual_net)) + feature_individual_net_list.append(feature_individual_net) + rule_triple_list.extend(new_triples) + + # -- Search for target class net (remain ARG1) + _, arg1_class_set = __search_remain_arg1(graph, remain_property_net.uri) + target_class_list = __filter_mother_class(graph, arg1_class_set) + + # -- Adding Restriction on remain ARG1 + for feature_individual_net in feature_individual_net_list: + for target_class_uri in target_class_list: + target_class_net = net.ClassNet(graph, uri=target_class_uri) + _, new_triples = __add_feature_restriction(graph, target_class_net, feature_individual_net) + rule_triple_list.extend(new_triples) # -- Superlative Handle (ARG5) _, superlative_set = __search_degree_arg5(graph, degree_phenomena_net.uri) - # for row in superlative_set: - # superlative_class_net = net.ClassNet(graph, uri=row.superlative_class_net) - # _, triple_list_5 = __associate_mother_relation_to_refine( - # graph, new_entity_class_net, superlative_class_net) - # rule_triple_list += triple_list_5 - - # -- Reference Handle (ARG6) - _, reference_set = __search_degree_arg6(graph, degree_phenomena_net.uri) - for row in reference_set: - pass #TODO: uri=row.reference_net + for row in superlative_set: + superlative_class_net = net.ClassNet(graph, uri=row.superlative_class_net) + for target_class_uri in target_class_list: + target_class_net = net.ClassNet(graph, uri=target_class_uri) + _, triple_list_5 = __associate_mother_relation_to_refine( + graph, target_class_net, superlative_class_net) + rule_triple_list += triple_list_5 # -- Deprecation: Origin Class Nets rule_triple_list += degree_phenomena_net.deprecate() diff --git a/tenet/scheme/owl_amr_scheme_1.py b/tenet/scheme/owl_amr_scheme_1.py index fca36bed650ac3c7137e95a5bda141072e1c8b6f..72549413c8dd516f7bdfab42a9c2dd35b58154d9 100644 --- a/tenet/scheme/owl_amr_scheme_1.py +++ b/tenet/scheme/owl_amr_scheme_1.py @@ -119,6 +119,9 @@ classification_sequence_2 = ['classification sequence (2)', rule.propagate_individual_2 ] +specif_pattern_analyze_sequence = ['specific pattern analyze sequence', + rule.analyze_specific_pattern_1] + heuristic_deduction_sequence = ['heuristic deduction sequence', rule.refine_composite_class, rule.refine_mother_relation, @@ -154,6 +157,7 @@ scheme = { phenomena_analyze_sequence_2, composite_class_extraction_sequence, classification_sequence_2, + specif_pattern_analyze_sequence, heuristic_deduction_sequence ], diff --git a/tenet/transduction/net/class_net.py b/tenet/transduction/net/class_net.py index 30c4e3f5fbc08ab43a5784ae7f9564c1368e1b1b..e3eb362dd9c9278aa453206091b2ac74ecad600b 100644 --- a/tenet/transduction/net/class_net.py +++ b/tenet/transduction/net/class_net.py @@ -34,12 +34,17 @@ class ClassNet(Net): self.type_uri = produce_uriref(self.support_graph, f'net:{self.type_id}') # -- Net Attributes - self.attr_list += ['class_name', 'class_uri', 'class_type', 'mother_class_net', 'root_class_net'] + self.attr_list += ['class_name', 'class_uri', 'class_type', + 'mother_class_net', 'root_class_net', + 'mother_class_net_to_refine', + 'restriction'] self._class_name = None self._class_uri = None self._class_type = None self._mother_class_net = None self._root_class_net = None + self._mother_class_net_to_refine = None + self._restriction = [] #-------------------------------------------------------------------------- @@ -96,4 +101,25 @@ class ClassNet(Net): @root_class_net.setter def root_class_net(self, new_value): - self._root_class_net = self.set_attribute_value_list(new_value, produce_uriref) \ No newline at end of file + self._root_class_net = self.set_attribute_value_list(new_value, produce_uriref) + + @property + def mother_class_net_to_refine(self): + if self._mother_class_net_to_refine is None: + self._mother_class_net_to_refine = self.get_value_list_from_graph('mother_class_net_to_refine') + return self._mother_class_net_to_refine + + @mother_class_net_to_refine.setter + def mother_class_net_to_refine(self, new_value): + self._mother_class_net_to_refine = self.set_attribute_value_list(new_value, produce_uriref) + + + @property + def restriction(self): + if self._restriction == []: + self._restriction = self.get_value_list_from_graph('restriction') + return self._restriction + + @restriction.setter + def restriction(self, new_value): + self._restriction = self.set_attribute_value_list(new_value, produce_uriref) \ No newline at end of file diff --git a/tenet/transduction/net/phenomena_net.py b/tenet/transduction/net/phenomena_net.py index a0bf76117c4dfb01eacdb32ba808a4d9c71f1416..65abb0617026f055776d45c6aec1ce5eaebb0c60 100644 --- a/tenet/transduction/net/phenomena_net.py +++ b/tenet/transduction/net/phenomena_net.py @@ -34,9 +34,10 @@ class PhenomenaNet(Net): self.type_uri = produce_uriref(self.support_graph, f'net:{self.type_id}') # -- Net Attributes - self.attr_list += ['phenomena_type', 'phenomena_ref'] + self.attr_list += ['phenomena_type', 'phenomena_ref', 'feature_net'] self._phenomena_type = None self._phenomena_ref = None + self._feature_net = None #-------------------------------------------------------------------------- @@ -63,3 +64,13 @@ class PhenomenaNet(Net): @phenomena_ref.setter def phenomena_ref(self, new_value): self._phenomena_ref = self.set_attribute_value_list(new_value, produce_literal) + + @property + def feature_net(self): + if self._feature_net is None: + self._feature_net = self.get_value_list_from_graph('feature_net') + return self._feature_net + + @feature_net.setter + def feature_net(self, new_value): + self._feature_net = self.set_attribute_value_list(new_value, produce_uriref) diff --git a/tenet/transduction/semantic_net_rdf_reference.py b/tenet/transduction/semantic_net_rdf_reference.py index 8cdc447f9bf39e7f26b0ba5c0fcf459aa5dcb388..5706f452333bd47c1d8bff7013b076815f36cb91 100644 --- a/tenet/transduction/semantic_net_rdf_reference.py +++ b/tenet/transduction/semantic_net_rdf_reference.py @@ -64,6 +64,7 @@ class SemanticNetReferenceHandle: # Phenomena Net 'phenomena_type': 'hasPhenomenaType', 'phenomena_ref': 'hasPhenomenaRef', + 'feature_net': 'hasFeatureNet', # Composite Net Restriction 'restriction': 'hasRestriction', diff --git a/tests/dev_owl_rule_tests/test_data/specific-devGraph-1.result.ttl b/tests/dev_owl_rule_tests/test_data/specific-devGraph-1.result.ttl new file mode 100644 index 0000000000000000000000000000000000000000..fea1b6012673f13745fbc3d84bc76efa2c0c358e --- /dev/null +++ b/tests/dev_owl_rule_tests/test_data/specific-devGraph-1.result.ttl @@ -0,0 +1,1863 @@ +@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 ns2: <http://amr.isi.edu/rdf/amr-terms#> . +@prefix ns3: <http://amr.isi.edu/rdf/core-amr#> . +@prefix ns4: <http://amr.isi.edu/entity-types#> . +@prefix owl: <http://www.w3.org/2002/07/owl#> . +@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . +@prefix sys: <https://tenet.tetras-libre.fr/base-ontology#> . +@prefix xsd: <http://www.w3.org/2001/XMLSchema#> . + +ns3:Concept a rdfs:Class, + owl:Class ; + rdfs:label "AMR-Concept" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:Role a rdfs:Class, + owl:Class ; + rdfs:label "AMR-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/test-1#root01> ns3:hasID "test-1" ; + ns3:hasSentence "The sun is a star." ; + ns3:root <http://amr.isi.edu/amr_data/test-1#s> . + +<http://amr.isi.edu/amr_data/test-2#root01> ns3:hasID "test-2" ; + ns3:hasSentence "Earth is a planet." ; + ns3:root <http://amr.isi.edu/amr_data/test-2#p> . + +ns11:direct-02.ARG1 a ns11:FrameRole . + +ns11:have-degree-91.ARG1 a ns11:FrameRole . + +ns11:have-degree-91.ARG2 a ns11:FrameRole . + +ns11:have-degree-91.ARG3 a ns11:FrameRole . + +ns11:have-degree-91.ARG5 a ns11:FrameRole . + +ns11:orbit-01.ARG0 a ns11:FrameRole . + +ns11:orbit-01.ARG1 a ns11:FrameRole . + +ns11:remain-01.ARG1 a ns11:FrameRole . + +ns2:domain a ns3:Role, + owl:AnnotationProperty, + owl:NamedIndividual . + +ns2:mod a ns3:Role . + +ns2:op1 a ns3:Role . + +ns2:op2 a ns3:Role . + +ns2:op3 a ns3:Role . + +ns3:hasID a owl:AnnotationProperty . + +ns3:hasSentence a owl:AnnotationProperty . + +ns3:root a owl:AnnotationProperty . + +<https://amr.tetras-libre.fr/rdf/schema> a owl:Ontology ; + owl:versionIRI :0.1 . + +:AMR_DataProperty a owl:DatatypeProperty . + +:AMR_Prep_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:edge_a2_b a :AMR_Edge ; + :hasAmrRole :role_op3 ; + :hasRoleID "op3" . + +:edge_a2_o3 a :AMR_Edge ; + :hasAmrRole :role_op1 ; + :hasRoleID "op1" . + +:edge_a2_p2 a :AMR_Edge ; + :hasAmrRole :role_op2 ; + :hasRoleID "op2" . + +:edge_a_h a :AMR_Edge ; + :hasAmrRole :role_op1 ; + :hasRoleID "op1" . + +:edge_a_r a :AMR_Edge ; + :hasAmrRole :role_op2 ; + :hasRoleID "op2" . + +:edge_b_s3 a :AMR_Edge ; + :hasAmrRole :role_mod ; + :hasRoleID "mod" . + +:edge_d_o2 a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_h2_m2 a :AMR_Edge ; + :hasAmrRole :role_ARG3 ; + :hasRoleID "ARG3" . + +:edge_h2_o3 a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_h2_s2 a :AMR_Edge ; + :hasAmrRole :role_ARG2 ; + :hasRoleID "ARG2" . + +:edge_h_l a :AMR_Edge ; + :hasAmrRole :role_ARG2 ; + :hasRoleID "ARG2" . + +:edge_h_m a :AMR_Edge ; + :hasAmrRole :role_ARG3 ; + :hasRoleID "ARG3" . + +:edge_h_o a :AMR_Edge ; + :hasAmrRole :role_ARG5 ; + :hasRoleID "ARG5" . + +:edge_h_p a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_o2_o a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_o2_s a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_p2_d2 a :AMR_Edge ; + :hasAmrRole :role_mod ; + :hasRoleID "mod" . + +:edge_p9_ARG0_s4 a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_p9_ARG1_b a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_p_quant_8 a :AMR_Edge ; + :hasAmrRole :role_quant ; + :hasRoleID "quant" . + +:edge_r_a2 a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_s4_name_SolarSystem a :AMR_Edge ; + :hasAmrRole :role_name ; + :hasRoleID "name" . + +:fromAmrLkFramerole a owl:AnnotationProperty ; + rdfs:subPropertyOf :fromAmrLk . + +:fromAmrLkRole a owl:AnnotationProperty ; + rdfs:subPropertyOf :fromAmrLk . + +:fromAmrLkRoot a owl:AnnotationProperty ; + rdfs:subPropertyOf :fromAmrLk . + +:getDirectPropertyName a owl:AnnotationProperty ; + rdfs:subPropertyOf :getProperty . + +:getInversePropertyName a owl:AnnotationProperty ; + rdfs:subPropertyOf :getProperty . + +:getPropertyType a owl:AnnotationProperty ; + rdfs:subPropertyOf :getProperty . + +:hasConcept a owl:ObjectProperty ; + rdfs:domain :AMR_Leaf ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasConceptLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasLink . + +:hasEdgeLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasLink . + +:hasReification a owl:AnnotationProperty ; + rdfs:range xsd:boolean ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasReificationConcept a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasReificationDefinition . + +:hasReificationDomain a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasReificationDefinition . + +:hasReificationRange a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasReificationDefinition . + +:hasRelationName a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasRoleID a owl:ObjectProperty ; + rdfs:domain :AMR_Edge ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasRoleTag a owl:ObjectProperty ; + rdfs:domain :AMR_Edge ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasRolesetID a owl:ObjectProperty ; + rdfs:domain :AMR_Edge ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasRootLeaf a owl:ObjectProperty ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasSentenceID a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasSentenceStatement a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasVariable a owl:ObjectProperty ; + rdfs:domain :AMR_Leaf ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:label a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:phenomena_conjunction_or a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "or" ; + :label "conjunction-OR" . + +:phenomena_modality_obligation a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :hasConceptLink "obligate-01" ; + :label "obligation-modality" . + +:phenomena_modality_possible a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :hasConceptLink "allow-01", + "grant-01", + "likely-01", + "permit-01", + "possible-01" ; + :label "possible-modality" . + +:phenomena_modality_prohibition a owl:Class ; + rdfs:subClassOf :phenomena_modality ; + :hasConceptLink "prohibit-01" ; + :label "prohibition-modality" . + +:relation_domain a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "domain" . + +:relation_manner a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasManner" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "manner" . + +:relation_mod a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "mod" . + +:relation_name a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "name" . + +:relation_part a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasPart" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "part" . + +:relation_polarity a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "polarity" . + +:relation_quant a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "quant" . + +:role_ARG4 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG4" . + +:role_ARG6 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG6" . + +:role_ARG7 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG7" . + +:role_ARG8 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG8" . + +:role_ARG9 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG9" . + +:role_domain a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :hasRelationName "domain" ; + :label "domain" ; + :toReifyAsConcept "domain" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_have-degree-91 a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :getPropertyType <net:specificProperty> . + +:role_manner a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "manner" ; + :getPropertyType owl:DataProperty ; + :label "manner" ; + :toReifyAsConcept "manner" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_op4 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op4" . + +:role_op5 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op5" . + +:role_op6 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op6" . + +:role_op7 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op7" . + +:role_op8 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op8" . + +:role_op9 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op9" . + +:role_part a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasPart"^^xsd:string ; + :getInversePropertyName "partOf"^^xsd:string ; + :getPropertyType owl:ObjectProperty ; + :toReifyAsConcept "part" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_polarity a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "polarity" . + +:root_SSC-02-01 a :AMR_Root ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#root01> ; + :hasRootLeaf :leaf_and_a ; + :hasSentenceID "SSC-02-01" ; + :hasSentenceStatement "Of the objects that orbit the Sun directly, the largest are the eight planets, with the remainder being smaller objects, the dwarf planets and small Solar System bodies." . + +:toReifyAsConcept a owl:AnnotationProperty ; + rdfs:subPropertyOf :toReify . + +:toReifyWithBaseEdge a owl:AnnotationProperty ; + rdfs:subPropertyOf :toReify . + +:toReifyWithHeadEdge a owl:AnnotationProperty ; + rdfs:subPropertyOf :toReify . + +<https://tenet.tetras-libre.fr/base-ontology> a owl:Ontology . + +sys:Event a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Undetermined_Thing a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:fromStructure a owl:AnnotationProperty ; + rdfs:subPropertyOf sys:Out_AnnotationProperty . + +sys:hasDegree a owl:ObjectProperty ; + rdfs:subPropertyOf sys:Out_ObjectProperty . + +sys:hasFeature a owl:ObjectProperty ; + rdfs:subPropertyOf sys:Out_ObjectProperty . + +<https://tenet.tetras-libre.fr/config/parameters> a owl:Ontology . + +cprm:Config_Parameters a owl:Class ; + cprm:baseURI "https://tenet.tetras-libre.fr/" ; + cprm:netURI "https://tenet.tetras-libre.fr/semantic-net#" ; + cprm:newClassRef "new-class#" ; + cprm:newPropertyRef "new-relation#" ; + cprm:objectRef "object_" ; + cprm:targetOntologyURI "https://tenet.tetras-libre.fr/base-ontology/" . + +cprm:baseURI a rdf:Property ; + rdfs:label "Base URI" ; + rdfs:domain cprm:Frame ; + rdfs:range xsd:string ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:netURI a rdf:Property ; + rdfs:label "Net URI" ; + rdfs:domain cprm:Frame ; + rdfs:range xsd:string ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:newClassRef a rdf:Property ; + rdfs:label "Reference for a new class" ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:newPropertyRef a rdf:Property ; + rdfs:label "Reference for a new property" ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:objectRef a rdf:Property ; + rdfs:label "Object Reference" ; + rdfs:subPropertyOf cprm:configParamProperty . + +cprm:targetOntologyURI a rdf:Property ; + rdfs:label "URI of classes in target ontology" ; + rdfs:domain cprm:Frame ; + rdfs:range xsd:string ; + rdfs:subPropertyOf cprm:configParamProperty . + +<https://tenet.tetras-libre.fr/semantic-net> a owl:Ontology . + +net:Composite_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Logical_Set_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Property_Axiom_Net a owl:Class ; + rdfs:subClassOf net:Axiom_Net . + +net:Property_Direction a owl:Class ; + rdfs:subClassOf net:Feature . + +net:abstractionClass a owl:AnnotationProperty ; + rdfs:label "abstraction class" ; + rdfs:subPropertyOf net:objectValue . + +net:atomOf a owl:AnnotationProperty ; + rdfs:label "atom of" ; + rdfs:subPropertyOf net:typeProperty . + +net:atomProperty_direct_d a net:Atom_Property_Net ; + :role_ARG1 net:atomProperty_orbit_o2 ; + net:coverBaseNode :leaf_direct-02_d ; + net:coverNode :leaf_direct-02_d ; + net:hasNaming "direct" ; + net:hasPropertyName "direct" ; + net:hasPropertyName01 "directing" ; + net:hasPropertyName10 "direct-by" ; + net:hasPropertyName12 "direct-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-02-01" ; + net:isCoreRoleLinked "true" ; + net:targetArgumentNode :leaf_orbit-01_o2 . + +net:atomType a owl:AnnotationProperty ; + rdfs:label "atom type" ; + rdfs:subPropertyOf net:objectType . + +net:entityClass a owl:AnnotationProperty ; + rdfs:label "entity class" ; + rdfs:subPropertyOf net:objectValue . + +net:featureClass a owl:AnnotationProperty ; + rdfs:label "feature class" ; + rdfs:subPropertyOf net:objectValue . + +net:has_atom a owl:AnnotationProperty ; + rdfs:label "has atom" ; + rdfs:subPropertyOf net:has_object . + +net:has_class a owl:AnnotationProperty ; + rdfs:label "is class" ; + rdfs:subPropertyOf net:objectValue . + +net:has_class_name a owl:AnnotationProperty ; + rdfs:subPropertyOf net:has_value . + +net:has_class_uri a owl:AnnotationProperty ; + rdfs:label "class uri" ; + rdfs:subPropertyOf net:objectValue . + +net:has_concept a owl:AnnotationProperty ; + rdfs:label "concept "@fr ; + rdfs:subPropertyOf net:objectValue . + +net:has_entity a owl:AnnotationProperty ; + rdfs:label "has entity" ; + rdfs:subPropertyOf net:has_object . + +net:has_feature a owl:AnnotationProperty ; + rdfs:label "has feature" ; + rdfs:subPropertyOf net:has_object . + +net:has_instance a owl:AnnotationProperty ; + rdfs:label "entity instance" ; + rdfs:subPropertyOf net:objectValue . + +net:has_instance_uri a owl:AnnotationProperty ; + rdfs:label "instance uri" ; + rdfs:subPropertyOf net:objectValue . + +net:has_item a owl:AnnotationProperty ; + rdfs:label "has item" ; + rdfs:subPropertyOf net:has_object . + +net:has_mother_class a owl:AnnotationProperty ; + rdfs:label "has mother class" ; + rdfs:subPropertyOf net:objectValue . + +net:has_mother_class_uri a owl:AnnotationProperty ; + rdfs:label "parent class uri" ; + rdfs:subPropertyOf net:objectValue . + +net:has_node a owl:AnnotationProperty ; + rdfs:label "UNL Node" ; + rdfs:subPropertyOf net:netProperty . + +net:has_parent a owl:AnnotationProperty ; + rdfs:label "has parent" ; + rdfs:subPropertyOf net:has_object . + +net:has_parent_class a owl:AnnotationProperty ; + rdfs:label "parent class" ; + rdfs:subPropertyOf net:objectValue . + +net:has_parent_class_uri a owl:AnnotationProperty ; + rdfs:label "parent class uri" ; + rdfs:subPropertyOf net:objectValue . + +net:has_possible_domain a owl:AnnotationProperty ; + rdfs:label "has possible domain" ; + rdfs:subPropertyOf net:has_object . + +net:has_possible_range a owl:AnnotationProperty ; + rdfs:label "has possible range" ; + rdfs:subPropertyOf net:has_object . + +net:has_relation a owl:AnnotationProperty ; + rdfs:label "has relation" ; + rdfs:subPropertyOf net:has_relation_value . + +net:has_source a owl:AnnotationProperty ; + rdfs:label "has source" ; + rdfs:subPropertyOf net:has_relation_value . + +net:has_structure a owl:AnnotationProperty ; + rdfs:label "Linguistic Structure (in UNL Document)" ; + rdfs:subPropertyOf net:netProperty . + +net:has_target a owl:AnnotationProperty ; + rdfs:label "has target" ; + rdfs:subPropertyOf net:has_relation_value . + +net:inverse_direction a owl:NamedIndividual . + +net:listBy a owl:AnnotationProperty ; + rdfs:label "list by" ; + rdfs:subPropertyOf net:typeProperty . + +net:listGuiding a owl:AnnotationProperty ; + rdfs:label "Guiding connector of a list (or, and)" ; + rdfs:subPropertyOf net:objectValue . + +net:listOf a owl:AnnotationProperty ; + rdfs:label "list of" ; + rdfs:subPropertyOf net:typeProperty . + +net:modCat1 a owl:AnnotationProperty ; + rdfs:label "Modality Category (level 1)" ; + rdfs:subPropertyOf net:objectValue . + +net:modCat2 a owl:AnnotationProperty ; + rdfs:label "Modality Category (level 2)" ; + rdfs:subPropertyOf net:objectValue . + +net:normal_direction a owl:NamedIndividual . + +net:phenomena_conjunction-AND_a a net:Phenomena_Net ; + :role_op1 net:phenomena_degree_h ; + :role_op2 net:atomProperty_remain_r ; + net:coverBaseNode :leaf_and_a ; + net:coverNode :leaf_and_a ; + net:hasNaming "conjunction-AND" ; + net:hasPhenomenaRef "and" ; + net:hasPhenomenaType :phenomena_conjunction_and ; + net:hasStructure "SSC-02-01" . + +net:phenomena_degree_h2 a net:Phenomena_Net ; + :role_ARG1 net:atomClass_object_o3, + net:compositeClass_more-small-object_o3 ; + :role_ARG2 net:atomClass_small_s2 ; + :role_ARG3 net:atomProperty_more_m2 ; + net:coverBaseNode :leaf_have-degree-91_h2 ; + net:coverNode :leaf_have-degree-91_h2 ; + net:hasFeatureNet net:individual_more-small_s2 ; + net:hasNaming "degree" ; + net:hasPhenomenaRef "have-degree-91" ; + net:hasPhenomenaType :phenomena_degree ; + net:hasStructure "SSC-02-01" . + +net:relationOf a owl:AnnotationProperty ; + rdfs:label "relation of" ; + rdfs:subPropertyOf net:typeProperty . + +net:relation_SolarSystem-hasPart-body-SSC-02-01_s4 a net:Relation_Net ; + net:composeFrom net:atomProperty_hasPart_p9, + net:individual_SolarSystem_s4, + net:individual_body-SSC-02-01_b ; + net:coverBaseNode :leaf_system_s4 ; + net:coverNode :leaf_body_b, + :leaf_hasPart_p9, + :leaf_small_s3, + :leaf_system_s4 ; + net:hasNaming "SolarSystem-hasPart-body-SSC-02-01" ; + net:hasObjectNet net:individual_body-SSC-02-01_b ; + net:hasPredicateNet net:atomProperty_hasPart_p9 ; + net:hasStructure "SSC-02-01" ; + net:hasSubjectNet net:individual_SolarSystem_s4 . + +net:relation_body-SSC-02-01-hasFeature-small_b a net:Relation_Net ; + net:composeFrom net:individual_body-SSC-02-01_b, + net:individual_small_s3, + net:predefinedProperty_hasFeature ; + net:coverBaseNode :leaf_body_b ; + net:coverNode :leaf_body_b, + :leaf_small_s3 ; + net:hasNaming "body-SSC-02-01-hasFeature-small" ; + net:hasObjectNet net:individual_small_s3 ; + net:hasPredicateNet net:predefinedProperty_hasFeature ; + net:hasStructure "SSC-02-01" ; + net:hasSubjectNet net:individual_body-SSC-02-01_b . + +net:type a owl:AnnotationProperty ; + rdfs:label "type "@fr ; + rdfs:subPropertyOf net:netProperty . + +net:verbClass a owl:AnnotationProperty ; + rdfs:label "verb class" ; + rdfs:subPropertyOf net:objectValue . + +<http://amr.isi.edu/amr_data/SSC-02-01#d> a ns11:direct-02 ; + ns11:direct-02.ARG1 <http://amr.isi.edu/amr_data/SSC-02-01#o2> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#h2> a ns11:have-degree-91 ; + ns11:have-degree-91.ARG1 <http://amr.isi.edu/amr_data/SSC-02-01#o3> ; + ns11:have-degree-91.ARG2 <http://amr.isi.edu/amr_data/SSC-02-01#s2> ; + ns11:have-degree-91.ARG3 <http://amr.isi.edu/amr_data/SSC-02-01#m2> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#root01> a ns3:AMR ; + ns3:has-id "SSC-02-01" ; + ns3:has-sentence "Of the objects that orbit the Sun directly, the largest are the eight planets, with the remainder being smaller objects, the dwarf planets and small Solar System bodies." ; + ns3:root <http://amr.isi.edu/amr_data/SSC-02-01#a> . + +<http://amr.isi.edu/amr_data/SSC-02-01#s4> a ns2:system ; + rdfs:label "Solar System" ; + ns2:part <http://amr.isi.edu/amr_data/SSC-02-01#b> ; + rdfs:subClassOf :AMR_Linked_Data . + +<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" . + +ns3:AMR a owl:Class ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:NamedEntity a ns3:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-EntityType", + "AMR-Term" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Root a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:concept_body rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:body ; + :label "body" . + +:concept_direct-02 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:direct-02 ; + :label "direct-02" . + +:concept_dwarf rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:dwarf ; + :label "dwarf" . + +:concept_large rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:large ; + :label "large" . + +:concept_more rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:more ; + :label "more" . + +:concept_most rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:most ; + :label "most" . + +:concept_orbit-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:orbit-01 ; + :label "orbit-01" . + +:concept_part rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns2:part ; + :isReifiedConcept true ; + :label "hasPart" . + +:concept_remain-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:remain-01 ; + :label "remain-01" . + +:concept_sun rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:sun ; + :label "sun" . + +:concept_system rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:system ; + :label "system" . + +:role_ARG5 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG5" . + +:role_name a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_NonCore_Role ; + :label "name" . + +:role_op3 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op3" . + +:role_quant a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "quant" . + +:variable_a a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#a> ; + :label "a" . + +:variable_a2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#a2> ; + :label "a2" . + +:variable_b a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#b> ; + :label "b" . + +:variable_d a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#d> ; + :label "d" . + +:variable_d2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#d2> ; + :label "d2" . + +:variable_h a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#h> ; + :label "h" . + +:variable_h2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#h2> ; + :label "h2" . + +:variable_l a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#l> ; + :label "l" . + +:variable_m a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#m> ; + :label "m" . + +:variable_m2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#m2> ; + :label "m2" . + +:variable_o a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#o> ; + :label "o" . + +:variable_o2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#o2> ; + :label "o2" . + +:variable_o3 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#o3> ; + :label "o3" . + +:variable_p a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#p> ; + :label "p" . + +:variable_p2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#p2> ; + :label "p2" . + +:variable_p9 a ns2:part, + :AMR_Variable ; + :isReifiedVariable true ; + :label "p9" . + +:variable_r a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#r> ; + :label "r" . + +:variable_s a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#s> ; + :label "s" . + +:variable_s2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#s2> ; + :label "s2" . + +:variable_s3 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#s3> ; + :label "s3" . + +:variable_s4 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-02-01#s4> ; + :label "s4" ; + :name "Solar System" . + +sys:Out_AnnotationProperty a owl:AnnotationProperty . + +net:Axiom_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Feature a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:Predefined_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:atomProperty_remain_r a net:Atom_Property_Net, + net:Deprecated_Net ; + :role_ARG1 net:atomClass_body_b, + net:atomClass_object_o3, + net:atomClass_planet_p2, + net:compositeClass_dwarf-planet_p2, + net:compositeClass_more-small-object_o3, + net:compositeClass_small-body_b, + net:phenomena_conjunction-AND_a2 ; + net:coverBaseNode :leaf_remain-01_r ; + net:coverNode :leaf_remain-01_r ; + net:hasNaming "remain" ; + net:hasPropertyName "remain" ; + net:hasPropertyName01 "remaining" ; + net:hasPropertyName10 "remain-by" ; + net:hasPropertyName12 "remain-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-02-01" ; + net:isCoreRoleLinked "true" ; + net:targetArgumentNode :leaf_and_a2 . + +net:compositeClass_most-large-planet_p a net:Class_Net, + net:Composite_Class_Net ; + :role_quant net:value_8_blankNode ; + net:composeFrom net:atomClass_planet_p, + net:individual_most-large_l ; + net:coverBaseNode :leaf_planet_p ; + net:coverNode :leaf_large_l, + :leaf_most_m, + :leaf_planet_p ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_planet_p, + net:compositeClass_object-orbit-sun_o ; + net:hasMotherClassNetToRefine net:atomClass_object_o ; + net:hasNaming "most-large-planet" ; + net:hasRestriction net:restriction_most-large-feature_l ; + net:hasRootClassNet net:atomClass_planet_p ; + net:hasStructure "SSC-02-01" . + +net:compositeClass_object-orbit-sun_o a net:Composite_Class_Net ; + net:composeFrom net:atomClass_object_o, + net:atomClass_sun_s, + net:atomProperty_orbit_o2 ; + net:coverBaseNode :leaf_object_o ; + net:coverNode :leaf_object_o, + :leaf_orbit-01_o2, + :leaf_sun_s ; + net:hasMotherClassNet net:atomClass_object_o ; + net:hasNaming "object-orbit-sun" ; + net:hasRestriction net:restriction_orbit-sun_o2 ; + net:hasRootClassNet net:atomClass_object_o ; + net:hasStructure "SSC-02-01" . + +net:compositeClass_system-hasPart-small-body_s4 a net:Composite_Class_Net ; + :role_name net:value_SolarSystem_blankNode ; + net:composeFrom net:atomClass_system_s4, + net:atomProperty_hasPart_p9, + net:compositeClass_small-body_b ; + net:coverBaseNode :leaf_system_s4 ; + net:coverNode :leaf_body_b, + :leaf_hasPart_p9, + :leaf_small_s3, + :leaf_system_s4 ; + net:hasMotherClassNet net:atomClass_system_s4 ; + net:hasNaming "system-hasPart-small-body" ; + net:hasRestriction net:restriction_hasPart-small-body_p9 ; + net:hasRootClassNet net:atomClass_system_s4 ; + net:hasStructure "SSC-02-01" . + +net:has_value a owl:AnnotationProperty ; + rdfs:subPropertyOf net:netProperty . + +net:individual_more_m2 a net:Individual_Net ; + net:composeFrom net:atomProperty_more_m2 ; + net:coverBaseNode :leaf_more_m2 ; + net:coverNode :leaf_more_m2 ; + net:hasClassType sys:Degree ; + net:hasIndividualLabel "more" ; + net:hasNaming "more" ; + net:hasStructure "SSC-02-01" . + +net:individual_most_m a net:Individual_Net ; + net:composeFrom net:atomProperty_most_m ; + net:coverBaseNode :leaf_most_m ; + net:coverNode :leaf_most_m ; + net:hasClassType sys:Degree ; + net:hasIndividualLabel "most" ; + net:hasNaming "most" ; + net:hasStructure "SSC-02-01" . + +net:objectType a owl:AnnotationProperty ; + rdfs:label "object type" ; + rdfs:subPropertyOf net:objectProperty . + +net:phenomena_conjunction-AND_a2 a net:Phenomena_Net ; + :role_op1 net:atomClass_object_o3, + net:compositeClass_more-small-object_o3 ; + :role_op2 net:atomClass_planet_p2, + net:compositeClass_dwarf-planet_p2 ; + :role_op3 net:atomClass_body_b, + net:compositeClass_small-body_b ; + net:coverBaseNode :leaf_and_a2 ; + net:coverNode :leaf_and_a2 ; + net:hasNaming "conjunction-AND" ; + net:hasPhenomenaRef "and" ; + net:hasPhenomenaType :phenomena_conjunction_and ; + net:hasStructure "SSC-02-01" . + +net:phenomena_degree_h a net:Deprecated_Net, + net:Phenomena_Net ; + :role_ARG1 net:atomClass_planet_p, + net:compositeClass_most-large-planet_p ; + :role_ARG2 net:atomClass_large_l ; + :role_ARG3 net:atomProperty_most_m ; + :role_ARG5 net:atomClass_object_o ; + net:coverBaseNode :leaf_have-degree-91_h ; + net:coverNode :leaf_have-degree-91_h ; + net:hasFeatureNet net:individual_most-large_l ; + net:hasNaming "degree" ; + net:hasPhenomenaRef "have-degree-91" ; + net:hasPhenomenaType :phenomena_degree ; + net:hasStructure "SSC-02-01" . + +net:restriction_dwarf-feature_d2 a net:Restriction_Net ; + net:composeFrom net:individual_dwarf_d2 ; + net:coverBaseNode :leaf_dwarf_d2 ; + net:coverNode :leaf_dwarf_d2 ; + net:hasNaming "dwarf-feature" ; + net:hasRestrictionNetValue net:individual_dwarf_d2 ; + net:hasRestrictionOnProperty net:predefinedProperty_hasFeature ; + net:hasStructure "SSC-02-01" . + +net:restriction_hasPart-small-body_p9 a net:Restriction_Net ; + net:composeFrom net:atomProperty_hasPart_p9, + net:compositeClass_small-body_b ; + net:coverBaseNode :leaf_hasPart_p9 ; + net:coverNode :leaf_body_b, + :leaf_hasPart_p9, + :leaf_small_s3 ; + net:hasNaming "hasPart-small-body" ; + net:hasRestrictionNetValue net:compositeClass_small-body_b ; + net:hasRestrictionOnProperty net:atomProperty_hasPart_p9 ; + net:hasStructure "SSC-02-01" . + +net:restriction_more-small-feature_s2 a net:Restriction_Net ; + net:composeFrom net:individual_more-small_s2 ; + net:coverBaseNode :leaf_small_s2 ; + net:coverNode :leaf_more_m2, + :leaf_small_s2 ; + net:hasNaming "more-small-feature" ; + net:hasRestrictionNetValue net:individual_more-small_s2 ; + net:hasRestrictionOnProperty net:predefinedProperty_hasFeature ; + net:hasStructure "SSC-02-01" . + +net:restriction_most-large-feature_l a net:Restriction_Net ; + net:composeFrom net:individual_most-large_l ; + net:coverBaseNode :leaf_large_l ; + net:coverNode :leaf_large_l, + :leaf_most_m ; + net:hasNaming "most-large-feature" ; + net:hasRestrictionNetValue net:individual_most-large_l ; + net:hasRestrictionOnProperty net:predefinedProperty_hasFeature ; + net:hasStructure "SSC-02-01" . + +net:restriction_orbit-sun_o2 a net:Restriction_Net ; + net:composeFrom net:atomClass_sun_s, + net:atomProperty_orbit_o2 ; + net:coverBaseNode :leaf_orbit-01_o2 ; + net:coverNode :leaf_orbit-01_o2, + :leaf_sun_s ; + net:hasNaming "orbit-sun" ; + net:hasRestrictionNetValue net:atomClass_sun_s ; + net:hasRestrictionOnProperty net:atomProperty_orbit_o2 ; + net:hasStructure "SSC-02-01" . + +net:restriction_small-feature_s3 a net:Restriction_Net ; + net:composeFrom net:individual_small_s3 ; + net:coverBaseNode :leaf_small_s3 ; + net:coverNode :leaf_small_s3 ; + net:hasNaming "small-feature" ; + net:hasRestrictionNetValue net:individual_small_s3 ; + net:hasRestrictionOnProperty net:predefinedProperty_hasFeature ; + net:hasStructure "SSC-02-01" . + +<http://amr.isi.edu/amr_data/SSC-02-01#a> a ns3:and ; + ns2:op1 <http://amr.isi.edu/amr_data/SSC-02-01#h> ; + ns2:op2 <http://amr.isi.edu/amr_data/SSC-02-01#r> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#a2> a ns3:and ; + ns2:op1 <http://amr.isi.edu/amr_data/SSC-02-01#o3> ; + ns2:op2 <http://amr.isi.edu/amr_data/SSC-02-01#p2> ; + ns2:op3 <http://amr.isi.edu/amr_data/SSC-02-01#b> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#d2> a ns2:dwarf ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#h> a ns11:have-degree-91 ; + ns11:have-degree-91.ARG1 <http://amr.isi.edu/amr_data/SSC-02-01#p> ; + ns11:have-degree-91.ARG2 <http://amr.isi.edu/amr_data/SSC-02-01#l> ; + ns11:have-degree-91.ARG3 <http://amr.isi.edu/amr_data/SSC-02-01#m> ; + ns11:have-degree-91.ARG5 <http://amr.isi.edu/amr_data/SSC-02-01#o> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#l> a ns2:large ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#m> a ns3:most ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#m2> a ns3:more ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#o2> a ns11:orbit-01 ; + ns11:orbit-01.ARG0 <http://amr.isi.edu/amr_data/SSC-02-01#o> ; + ns11:orbit-01.ARG1 <http://amr.isi.edu/amr_data/SSC-02-01#s> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#p> a ns4:planet ; + ns2:quant "8" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#p2> a ns4:planet ; + ns2:mod <http://amr.isi.edu/amr_data/SSC-02-01#d2> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#r> a ns11:remain-01 ; + ns11:remain-01.ARG1 <http://amr.isi.edu/amr_data/SSC-02-01#a2> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#s> a ns2:sun ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#s2> a ns2:small ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#s3> a ns2:small ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:direct-02 a ns3:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:orbit-01 a ns3:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:remain-01 a ns3:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns2:body a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns2:dwarf a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns2:large a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns2:part a ns3:Role ; + rdfs:subClassOf :AMR_Linked_Data . + +ns2:sun a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns2:system a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:more a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:most a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Relation_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Value a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:concept_and rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns3:and ; + :hasPhenomenaLink :phenomena_conjunction_and ; + :label "and" . + +:concept_have-degree-91 rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns11:have-degree-91 ; + :hasPhenomenaLink :phenomena_degree ; + :label "have-degree-91" . + +:concept_object rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:object ; + :label "object" . + +:concept_planet rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns4:planet ; + :label "planet" . + +:concept_small rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns2:small ; + :label "small" . + +:hasLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:leaf_direct-02_d a :AMR_Leaf ; + :edge_d_o2 :leaf_orbit-01_o2 ; + :hasConcept :concept_direct-02 ; + :hasVariable :variable_d . + +:leaf_have-degree-91_h2 a :AMR_Leaf ; + :edge_h2_m2 :leaf_more_m2 ; + :edge_h2_o3 :leaf_object_o3 ; + :edge_h2_s2 :leaf_small_s2 ; + :hasConcept :concept_have-degree-91 ; + :hasVariable :variable_h2 . + +:phenomena_conjunction a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "contrast-01", + "either", + "neither" ; + :label "conjunction" . + +:role_ARG0 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG0" . + +:role_ARG2 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG2" . + +:role_ARG3 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG3" . + +:role_mod a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasFeature"^^xsd:string ; + :getPropertyType rdfs:subClassOf, + owl:ObjectProperty ; + :label "mod" ; + :toReifyAsConcept "mod" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_op1 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op1" . + +:role_op2 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op2" . + +:value_8 a :AMR_Value ; + rdfs:label "8" . + +:value_SolarSystem a :AMR_Value ; + rdfs:label "SolarSystem" . + +sys:Out_ObjectProperty a owl:ObjectProperty . + +net:Relation_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Value_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:atomProperty_more_m2 a net:Atom_Property_Net, + net:Deprecated_Net ; + net:coverBaseNode :leaf_more_m2 ; + net:coverNode :leaf_more_m2 ; + net:hasNaming "more" ; + net:hasPropertyName "more" ; + net:hasPropertyName01 "moreing" ; + net:hasPropertyName10 "more-by" ; + net:hasPropertyName12 "more-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-02-01" ; + net:isCoreRoleLinked "true" . + +net:atomProperty_most_m a net:Atom_Property_Net, + net:Deprecated_Net ; + net:coverBaseNode :leaf_most_m ; + net:coverNode :leaf_most_m ; + net:hasNaming "most" ; + net:hasPropertyName "most" ; + net:hasPropertyName01 "mosting" ; + net:hasPropertyName10 "most-by" ; + net:hasPropertyName12 "most-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-02-01" ; + net:isCoreRoleLinked "true" . + +net:compositeClass_dwarf-planet_p2 a net:Class_Net, + net:Composite_Class_Net ; + :role_mod net:atomClass_dwarf_d2 ; + net:composeFrom net:atomClass_planet_p2, + net:individual_dwarf_d2 ; + net:coverBaseNode :leaf_planet_p2 ; + net:coverNode :leaf_dwarf_d2, + :leaf_planet_p2 ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_planet_p2 ; + net:hasMotherClassNetToRefine net:atomClass_object_o ; + net:hasNaming "dwarf-planet" ; + net:hasRestriction net:restriction_dwarf-feature_d2, + net:restriction_not-most-large-feature_l ; + net:hasRootClassNet net:atomClass_planet_p2 ; + net:hasStructure "SSC-02-01" . + +net:individual_not-most-large_l a net:Individual_Net ; + net:composeFrom net:individual_most-large_l ; + net:coverBaseNode :leaf_large_l ; + net:coverNode :leaf_large_l, + :leaf_most_m ; + net:hasClassType sys:Feature ; + net:hasIndividualLabel "not-most-large" ; + net:hasNaming "not-most-large" ; + net:hasStructure "SSC-02-01" . + +net:objectProperty a owl:AnnotationProperty ; + rdfs:label "object attribute" . + +net:value_8_blankNode a net:Value_Net ; + net:coverAmrValue :value_8 ; + net:hasNaming "8" ; + net:hasStructure "SSC-02-01" ; + net:hasValueLabel "8" . + +<http://amr.isi.edu/amr_data/SSC-02-01#b> a ns2:body ; + ns2:mod <http://amr.isi.edu/amr_data/SSC-02-01#s3> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#o> a ns2:object ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-02-01#o3> a ns2:object ; + rdfs:subClassOf :AMR_Linked_Data . + +ns4:planet a ns3:NamedEntity ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:have-degree-91 a ns3:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns2:object a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns2:small a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:and a ns3:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Concept a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:AMR_Phenomena a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Specific_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:fromAmrLk a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:getProperty a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasReificationDefinition a owl:AnnotationProperty ; + rdfs:range rdfs:Literal ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:leaf_and_a a :AMR_Leaf ; + :edge_a_h :leaf_have-degree-91_h ; + :edge_a_r :leaf_remain-01_r ; + :hasConcept :concept_and ; + :hasVariable :variable_a . + +:leaf_have-degree-91_h a :AMR_Leaf ; + :edge_h_l :leaf_large_l ; + :edge_h_m :leaf_most_m ; + :edge_h_o :leaf_object_o ; + :edge_h_p :leaf_planet_p ; + :hasConcept :concept_have-degree-91 ; + :hasVariable :variable_h . + +:leaf_remain-01_r a :AMR_Leaf ; + :edge_r_a2 :leaf_and_a2 ; + :hasConcept :concept_remain-01 ; + :hasVariable :variable_r . + +:phenomena_conjunction_and a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "and" ; + :label "conjunction-AND" . + +:phenomena_degree a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "have-degree-91" ; + :label "degree" . + +:phenomena_modality a owl:Class ; + rdfs:subClassOf :AMR_Phenomena . + +:toReify a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +sys:Degree a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +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:Property_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:atomClass_large_l a net:Atom_Class_Net, + net:Class_Net, + net:Deprecated_Net ; + net:coverBaseNode :leaf_large_l ; + net:coverNode :leaf_large_l ; + net:hasClassName "large" ; + net:hasClassType sys:Entity ; + net:hasNaming "large" ; + net:hasRootClassNet net:atomClass_large_l ; + net:hasStructure "SSC-02-01" . + +net:atomClass_small_s2 a net:Atom_Class_Net, + net:Class_Net, + net:Deprecated_Net ; + net:coverBaseNode :leaf_small_s2 ; + net:coverNode :leaf_small_s2 ; + net:hasClassName "small" ; + net:hasClassType sys:Entity ; + net:hasNaming "small" ; + net:hasRootClassNet net:atomClass_small_s2 ; + net:hasStructure "SSC-02-01" . + +net:compositeClass_more-small-object_o3 a net:Class_Net, + net:Composite_Class_Net ; + net:composeFrom net:atomClass_object_o3, + net:individual_more-small_s2 ; + net:coverBaseNode :leaf_object_o3 ; + net:coverNode :leaf_more_m2, + :leaf_object_o3, + :leaf_small_s2 ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_object_o3 ; + net:hasMotherClassNetToRefine net:atomClass_object_o ; + net:hasNaming "more-small-object" ; + net:hasRestriction net:restriction_more-small-feature_s2, + net:restriction_not-most-large-feature_l ; + net:hasRootClassNet net:atomClass_object_o3 ; + net:hasStructure "SSC-02-01" . + +net:has_relation_value a owl:AnnotationProperty ; + rdfs:label "has relation value" ; + rdfs:subPropertyOf net:has_object . + +net:individual_SolarSystem_s4 a net:Individual_Net ; + :role_name net:value_SolarSystem_blankNode ; + net:coverBaseNode :leaf_system_s4 ; + net:coverNode :leaf_system_s4 ; + net:hasClassType sys:Entity ; + net:hasIndividualLabel "SolarSystem" ; + net:hasMotherClassNet net:atomClass_system_s4, + net:compositeClass_system-hasPart-small-body_s4 ; + net:hasNaming "SolarSystem" ; + net:hasStructure "SSC-02-01" . + +net:individual_dwarf_d2 a net:Individual_Net ; + net:composeFrom net:atomClass_dwarf_d2 ; + net:coverBaseNode :leaf_dwarf_d2 ; + net:coverNode :leaf_dwarf_d2 ; + net:hasClassType sys:Feature ; + net:hasIndividualLabel "dwarf" ; + net:hasNaming "dwarf" ; + net:hasStructure "SSC-02-01" . + +net:restriction_not-most-large-feature_l a net:Restriction_Net ; + net:composeFrom net:individual_not-most-large_l ; + net:coverBaseNode :leaf_large_l ; + net:coverNode :leaf_large_l, + :leaf_most_m ; + net:hasNaming "not-most-large-feature" ; + net:hasRestrictionNetValue net:individual_not-most-large_l ; + net:hasRestrictionOnProperty net:predefinedProperty_hasFeature ; + net:hasStructure "SSC-02-01" . + +net:value_SolarSystem_blankNode a net:Value_Net ; + net:coverAmrValue :value_SolarSystem ; + net:hasNaming "SolarSystem" ; + net:hasStructure "SSC-02-01" ; + net:hasValueLabel "SolarSystem" . + +ns3:Frame a ns3:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Frame" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Element a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:leaf_and_a2 a :AMR_Leaf ; + :edge_a2_b :leaf_body_b ; + :edge_a2_o3 :leaf_object_o3 ; + :edge_a2_p2 :leaf_planet_p2 ; + :hasConcept :concept_and ; + :hasVariable :variable_a2 . + +net:Phenomena_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:atomClass_dwarf_d2 a net:Atom_Class_Net, + net:Deprecated_Net ; + net:coverBaseNode :leaf_dwarf_d2 ; + net:coverNode :leaf_dwarf_d2 ; + net:hasClassName "dwarf" ; + net:hasNaming "dwarf" ; + net:hasRootClassNet net:atomClass_dwarf_d2 ; + net:hasStructure "SSC-02-01" . + +net:atomClass_small_s3 a net:Atom_Class_Net, + net:Deprecated_Net ; + net:coverBaseNode :leaf_small_s3 ; + net:coverNode :leaf_small_s3 ; + net:hasClassName "small" ; + net:hasNaming "small" ; + net:hasRootClassNet net:atomClass_small_s3 ; + net:hasStructure "SSC-02-01" . + +net:atomProperty_orbit_o2 a net:Atom_Property_Net ; + :role_ARG0 net:atomClass_object_o ; + :role_ARG1 net:atomClass_sun_s ; + net:coverBaseNode :leaf_orbit-01_o2 ; + net:coverNode :leaf_orbit-01_o2 ; + net:hasNaming "orbit" ; + net:hasPropertyName "orbit" ; + net:hasPropertyName01 "orbiting" ; + net:hasPropertyName10 "orbit-by" ; + net:hasPropertyName12 "orbit-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-02-01" ; + net:isCoreRoleLinked "true" ; + net:targetArgumentNode :leaf_object_o, + :leaf_sun_s . + +net:individual_body-SSC-02-01_b a net:Individual_Net ; + net:coverBaseNode :leaf_body_b ; + net:coverNode :leaf_body_b, + :leaf_small_s3 ; + net:hasIndividualLabel "body (SSC-02-01)" ; + net:hasMotherClassNet net:compositeClass_small-body_b ; + net:hasNaming "body-SSC-02-01" ; + net:hasStructure "SSC-02-01" . + +net:individual_more-small_s2 a net:Individual_Net ; + net:composeFrom net:atomClass_small_s2, + net:individual_more_m2 ; + net:coverBaseNode :leaf_small_s2 ; + net:coverNode :leaf_more_m2, + :leaf_small_s2 ; + net:hasClassType sys:Feature ; + net:hasIndividualLabel "more-small" ; + net:hasNaming "more-small" ; + net:hasStructure "SSC-02-01" . + +net:typeProperty a owl:AnnotationProperty ; + rdfs:label "type property" . + +:AMR_NonCore_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:AMR_Role a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:leaf_planet_p a :AMR_Leaf ; + :edge_p_quant_8 :value_8 ; + :hasConcept :concept_planet ; + :hasVariable :variable_p . + +:leaf_planet_p2 a :AMR_Leaf ; + :edge_p2_d2 :leaf_dwarf_d2 ; + :hasConcept :concept_planet ; + :hasVariable :variable_p2 . + +sys:Out_Structure a owl:Class ; + rdfs:label "Output Ontology Structure" . + +net:atomClass_planet_p a net:Atom_Class_Net, + net:Class_Net, + net:Deprecated_Net ; + :role_quant net:value_8_blankNode ; + net:coverBaseNode :leaf_planet_p ; + net:coverNode :leaf_planet_p ; + net:hasClassName "planet" ; + net:hasClassType sys:Entity ; + net:hasNaming "planet" ; + net:hasRootClassNet net:atomClass_planet_p ; + net:hasStructure "SSC-02-01" . + +net:atomClass_sun_s a net:Atom_Class_Net, + net:Class_Net ; + net:coverBaseNode :leaf_sun_s ; + net:coverNode :leaf_sun_s ; + net:hasClassName "sun" ; + net:hasClassType sys:Entity ; + net:hasNaming "sun" ; + net:hasRootClassNet net:atomClass_sun_s ; + net:hasStructure "SSC-02-01" . + +net:atomProperty_hasPart_p9 a net:Atom_Property_Net ; + :role_ARG0 net:atomClass_system_s4, + net:individual_SolarSystem_s4 ; + :role_ARG1 net:atomClass_body_b, + net:compositeClass_small-body_b ; + net:coverBaseNode :leaf_hasPart_p9 ; + net:coverNode :leaf_hasPart_p9 ; + net:hasNaming "hasPart" ; + net:hasPropertyName "hasPart" ; + net:hasPropertyName01 "hasParting" ; + net:hasPropertyName10 "hasPart-by" ; + net:hasPropertyName12 "hasPart-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-02-01" ; + net:isCoreRoleLinked "true" ; + net:targetArgumentNode :leaf_body_b, + :leaf_system_s4 . + +net:individual_most-large_l a net:Individual_Net ; + net:composeFrom net:atomClass_large_l, + net:individual_most_m ; + net:coverBaseNode :leaf_large_l ; + net:coverNode :leaf_large_l, + :leaf_most_m ; + net:hasClassType sys:Feature ; + net:hasIndividualLabel "most-large" ; + net:hasNaming "most-large" ; + net:hasStructure "SSC-02-01" . + +net:individual_small_s3 a net:Individual_Net ; + net:composeFrom net:atomClass_small_s3 ; + net:coverBaseNode :leaf_small_s3 ; + net:coverNode :leaf_small_s3 ; + net:hasClassType sys:Feature ; + net:hasIndividualLabel "small" ; + net:hasNaming "small" ; + net:hasStructure "SSC-02-01" . + +net:netProperty a owl:AnnotationProperty ; + rdfs:label "netProperty" . + +:AMR_ObjectProperty a owl:ObjectProperty ; + rdfs:subPropertyOf owl:topObjectProperty . + +:AMR_Predicat_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Structure a owl:Class . + +:leaf_hasPart_p9 a :AMR_Leaf ; + :edge_p9_ARG0_s4 :leaf_system_s4 ; + :edge_p9_ARG1_b :leaf_body_b ; + :hasConcept :concept_part ; + :hasVariable :variable_p9 ; + :isReifiedLeaf true . + +:leaf_object_o3 a :AMR_Leaf ; + :hasConcept :concept_object ; + :hasVariable :variable_o3 . + +:leaf_sun_s a :AMR_Leaf ; + :hasConcept :concept_sun ; + :hasVariable :variable_s . + +:role_ARG1 a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG1" . + +sys:Feature a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +cprm:configParamProperty a rdf:Property ; + rdfs:label "Config Parameter Property" . + +net:Atom_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Composite_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:atomClass_planet_p2 a net:Atom_Class_Net, + net:Class_Net, + net:Deprecated_Net ; + :role_mod net:atomClass_dwarf_d2 ; + net:coverBaseNode :leaf_planet_p2 ; + net:coverNode :leaf_planet_p2 ; + net:hasClassName "planet" ; + net:hasClassType sys:Entity ; + net:hasNaming "planet" ; + net:hasRootClassNet net:atomClass_planet_p2 ; + net:hasStructure "SSC-02-01" . + +net:atomClass_system_s4 a net:Atom_Class_Net, + net:Class_Net, + net:Deprecated_Net ; + :role_name net:value_SolarSystem_blankNode ; + net:coverBaseNode :leaf_system_s4 ; + net:coverNode :leaf_system_s4 ; + net:hasClassName "system" ; + net:hasClassType sys:Entity ; + net:hasNaming "system" ; + net:hasRootClassNet net:atomClass_system_s4 ; + net:hasStructure "SSC-02-01" . + +rdf:Property a owl:Class . + +:AMR_Relation a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:leaf_object_o a :AMR_Leaf ; + :hasConcept :concept_object ; + :hasVariable :variable_o . + +:leaf_orbit-01_o2 a :AMR_Leaf ; + :edge_o2_o :leaf_object_o ; + :edge_o2_s :leaf_sun_s ; + :hasConcept :concept_orbit-01 ; + :hasVariable :variable_o2 . + +net:Restriction_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:atomClass_body_b a net:Atom_Class_Net, + net:Class_Net, + net:Deprecated_Net ; + :role_mod net:atomClass_small_s3 ; + net:coverBaseNode :leaf_body_b ; + net:coverNode :leaf_body_b ; + net:hasClassName "body" ; + net:hasClassType sys:Entity ; + net:hasNaming "body" ; + net:hasRootClassNet net:atomClass_body_b ; + net:hasStructure "SSC-02-01" . + +net:atomClass_object_o3 a net:Atom_Class_Net, + net:Class_Net, + net:Deprecated_Net ; + net:coverBaseNode :leaf_object_o3 ; + net:coverNode :leaf_object_o3 ; + net:hasClassName "object" ; + net:hasClassType sys:Entity ; + net:hasNaming "object" ; + net:hasRootClassNet net:atomClass_object_o3 ; + net:hasStructure "SSC-02-01" . + +net:compositeClass_small-body_b a net:Class_Net, + net:Composite_Class_Net ; + :role_mod net:atomClass_small_s3 ; + net:composeFrom net:atomClass_body_b, + net:individual_small_s3 ; + net:coverBaseNode :leaf_body_b ; + net:coverNode :leaf_body_b, + :leaf_small_s3 ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_body_b ; + net:hasMotherClassNetToRefine net:atomClass_object_o ; + net:hasNaming "small-body" ; + net:hasRestriction net:restriction_not-most-large-feature_l, + net:restriction_small-feature_s3 ; + net:hasRootClassNet net:atomClass_body_b ; + net:hasStructure "SSC-02-01" . + +net:predefinedProperty_hasFeature a net:Predefined_Property_Net ; + net:hasNaming "hasFeature" ; + net:hasPropertyName "hasFeature" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "predefinedProperty" . + +ns11:FrameRole a ns3:Role, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:leaf_dwarf_d2 a :AMR_Leaf ; + :hasConcept :concept_dwarf ; + :hasVariable :variable_d2 . + +:leaf_more_m2 a :AMR_Leaf ; + :hasConcept :concept_more ; + :hasVariable :variable_m2 . + +:leaf_small_s2 a :AMR_Leaf ; + :hasConcept :concept_small ; + :hasVariable :variable_s2 . + +net:has_object a owl:AnnotationProperty ; + rdfs:label "relation" ; + rdfs:subPropertyOf net:netProperty . + +:AMR_Op_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +net:Individual_Net a owl:Class ; + rdfs:subClassOf net:Net . + +:AMR_AnnotationProperty a owl:AnnotationProperty . + +:AMR_Core_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:leaf_most_m a :AMR_Leaf ; + :hasConcept :concept_most ; + :hasVariable :variable_m . + +:leaf_system_s4 a :AMR_Leaf ; + :edge_s4_name_SolarSystem :value_SolarSystem ; + :hasConcept :concept_system ; + :hasVariable :variable_s4 . + +net:Net a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:atomClass_object_o a net:Atom_Class_Net, + net:Class_Net, + net:Deprecated_Net ; + net:coverBaseNode :leaf_object_o ; + net:coverNode :leaf_object_o ; + net:hasClassName "object" ; + net:hasClassType sys:Entity ; + net:hasNaming "object" ; + net:hasRootClassNet net:atomClass_object_o ; + net:hasStructure "SSC-02-01" . + +net:Atom_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:Relation a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +:leaf_large_l a :AMR_Leaf ; + :hasConcept :concept_large ; + :hasVariable :variable_l . + +:leaf_small_s3 a :AMR_Leaf ; + :hasConcept :concept_small ; + :hasVariable :variable_s3 . + +:leaf_body_b a :AMR_Leaf ; + :edge_b_s3 :leaf_small_s3 ; + :hasConcept :concept_body ; + :hasVariable :variable_b . + +net:Deprecated_Net a owl:Class ; + rdfs:subClassOf net:Net . + +sys:Entity a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +net:Class_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:objectValue a owl:AnnotationProperty ; + rdfs:label "valuations"@fr ; + rdfs:subPropertyOf net:objectProperty . + +:AMR_Variable a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:AMR_Leaf a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Linked_Data a owl:Class . + +[] a owl:AllDisjointClasses ; + owl:members ( sys:Degree sys:Entity sys:Feature ) . + diff --git a/tests/dev_owl_rule_tests/test_data/specific-devGraph-1.ttl b/tests/dev_owl_rule_tests/test_data/specific-devGraph-1.ttl index 13fdbeca31bfbb7553424ef1771053befec93e10..a41c64a6989a3e6a6782b811f1b0e5593eee0088 100644 --- a/tests/dev_owl_rule_tests/test_data/specific-devGraph-1.ttl +++ b/tests/dev_owl_rule_tests/test_data/specific-devGraph-1.ttl @@ -621,6 +621,7 @@ net:phenomena_degree_h2 a net:Phenomena_Net ; :role_ARG3 net:atomProperty_more_m2 ; net:coverBaseNode :leaf_have-degree-91_h2 ; net:coverNode :leaf_have-degree-91_h2 ; + net:hasFeatureNet net:individual_more-small_s2 ; net:hasNaming "degree" ; net:hasPhenomenaRef "have-degree-91" ; net:hasPhenomenaType :phenomena_degree ; @@ -980,6 +981,7 @@ net:phenomena_degree_h a net:Phenomena_Net ; :role_ARG5 net:atomClass_object_o ; net:coverBaseNode :leaf_have-degree-91_h ; net:coverNode :leaf_have-degree-91_h ; + net:hasFeatureNet net:individual_most-large_l ; net:hasNaming "degree" ; net:hasPhenomenaRef "have-degree-91" ; net:hasPhenomenaType :phenomena_degree ; @@ -1435,28 +1437,6 @@ net:individual_dwarf_d2 a net:Individual_Net ; net:hasNaming "dwarf" ; net:hasStructure "SSC-02-01" . -net:individual_more-small_s2 a net:Individual_Net ; - net:composeFrom net:atomClass_small_s2, - net:individual_more_m2 ; - net:coverBaseNode :leaf_small_s2 ; - net:coverNode :leaf_more_m2, - :leaf_small_s2 ; - net:hasClassType sys:Feature ; - net:hasIndividualLabel "more-small" ; - net:hasNaming "more-small" ; - net:hasStructure "SSC-02-01" . - -net:individual_most-large_l a net:Individual_Net ; - net:composeFrom net:atomClass_large_l, - net:individual_most_m ; - net:coverBaseNode :leaf_large_l ; - net:coverNode :leaf_large_l, - :leaf_most_m ; - net:hasClassType sys:Feature ; - net:hasIndividualLabel "most-large" ; - net:hasNaming "most-large" ; - net:hasStructure "SSC-02-01" . - net:value_SolarSystem_blankNode a net:Value_Net ; net:coverAmrValue :value_SolarSystem ; net:hasNaming "SolarSystem" ; @@ -1525,6 +1505,28 @@ net:individual_body-SSC-02-01_b a net:Individual_Net ; net:hasNaming "body-SSC-02-01" ; net:hasStructure "SSC-02-01" . +net:individual_more-small_s2 a net:Individual_Net ; + net:composeFrom net:atomClass_small_s2, + net:individual_more_m2 ; + net:coverBaseNode :leaf_small_s2 ; + net:coverNode :leaf_more_m2, + :leaf_small_s2 ; + net:hasClassType sys:Feature ; + net:hasIndividualLabel "more-small" ; + net:hasNaming "more-small" ; + net:hasStructure "SSC-02-01" . + +net:individual_most-large_l a net:Individual_Net ; + net:composeFrom net:atomClass_large_l, + net:individual_most_m ; + net:coverBaseNode :leaf_large_l ; + net:coverNode :leaf_large_l, + :leaf_most_m ; + net:hasClassType sys:Feature ; + net:hasIndividualLabel "most-large" ; + net:hasNaming "most-large" ; + net:hasStructure "SSC-02-01" . + net:typeProperty a owl:AnnotationProperty ; rdfs:label "type property" . diff --git a/tests/dev_owl_rule_tests/test_rule_deducer_mother_relation.py b/tests/dev_owl_rule_tests/test_rule_deducer_mother_relation.py index 5a6c979868295d72bd6fbddf9b0b5ea9ee6c9ead..1a720f3a3d5f178b2f737f9fcf2f2fdd9eff1686 100644 --- a/tests/dev_owl_rule_tests/test_rule_deducer_mother_relation.py +++ b/tests/dev_owl_rule_tests/test_rule_deducer_mother_relation.py @@ -123,14 +123,14 @@ if __name__ == '__main__': graph_1 = load_test_graph(TEST_FILE_NAME_1) print('\n \n') - print('\n ///////////////////// Relation Deduction Rule') + print('\n ///////////////////// Deduction Rule') print('\n *** Step Test ***') + print('\n -- Step 1: Search Pattern for Deducer') pattern_set = test_search_pattern_deducer(graph_1) print('\n \n') - - + print('\n -- Step 2: Search Parent Class Related to Same Node') class_net_uri = 'https://tenet.tetras-libre.fr/semantic-net#atomClass_object_o' pattern_set = test_search_parent_class_related_to_same_node(graph_1, class_net_uri) diff --git a/tests/dev_owl_rule_tests/test_rule_specific_analyzer_degree_remain.py b/tests/dev_owl_rule_tests/test_rule_specific_analyzer_degree_remain.py index 8f2ed6497f171bc4ac5c1eda72fd2bec3cb0ef6f..76a8da296aefb242127a8e86ad90c61266c9bd6d 100644 --- a/tests/dev_owl_rule_tests/test_rule_specific_analyzer_degree_remain.py +++ b/tests/dev_owl_rule_tests/test_rule_specific_analyzer_degree_remain.py @@ -99,8 +99,41 @@ def test_search_pattern_1(graph): print(result_str) return pattern_set + +def test_search_degree_feature(graph, degree_net_uri): + print(f'\n ----- search degree feature for following net: {degree_net_uri}') + _, pattern_set = rule_1.__search_degree_feature(graph, degree_net_uri) + print(f'\n ----- number of selection found: {len(pattern_set)}') + for row in pattern_set: + result_str = f'>>> ' + result_str += f'{row.feature_individual_net.n3(graph.namespace_manager)}' + print(result_str) + return pattern_set + + +def test_search_remain_arg1(graph, remain_net_uri): + print(f'\n ----- search argument 1 from following net: {remain_net_uri}') + _, pattern_set = rule_1.__search_remain_arg1(graph, remain_net_uri) + print(f'\n ----- number of selection found: {len(pattern_set)}') + for row in pattern_set: + result_str = f'>>> ' + result_str += f'{row.remain_class_net.n3(graph.namespace_manager)}' + print(result_str) + return pattern_set +def test_search_degree_arg5(graph, degree_net_uri): + print(f'\n ----- search ARG5 for following net: {degree_net_uri}') + _, pattern_set = rule_1.__search_degree_arg5(graph, degree_net_uri) + print(f'\n ----- number of selection found: {len(pattern_set)}') + for row in pattern_set: + result_str = f'>>> ' + result_str += f'{row.superlative_class_net.n3(graph.namespace_manager)}' + print(result_str) + return pattern_set + + + #============================================================================== # Unit Test #============================================================================== @@ -129,11 +162,29 @@ if __name__ == '__main__': print('\n ///////////////////// Extraction Rule 1') print('\n *** Step Test ***') + + print('\n -- Step 1: Search Pattern') pattern_set = test_search_pattern_1(graph_1) print('\n \n') + print('\n -- Step 2: Degree91 Feature Handle') + degree_net_uri = 'https://tenet.tetras-libre.fr/semantic-net#phenomena_degree_h' + pattern_set = test_search_degree_feature(graph_1, degree_net_uri) + print('\n \n') + + print('\n -- Step 3: Search for target class net (remain ARG1)') + remain_net_uri = 'https://tenet.tetras-libre.fr/semantic-net#atomProperty_remain_r' + pattern_set = test_search_remain_arg1(graph_1, remain_net_uri) + print('\n \n') + + print('\n -- Step 4: Superlative Handle (ARG5)') + degree_net_uri = 'https://tenet.tetras-libre.fr/semantic-net#phenomena_degree_h' + pattern_set = test_search_degree_arg5(graph_1, degree_net_uri) + print('\n \n') + + print('\n *** Unit Test ***') - # test_rule_application(TEST_FILE_NAME_1, graph_1, rule_1.analyze_phenomena_degree91_1) + test_rule_application(TEST_FILE_NAME_1, graph_1, rule_1.analyze_specific_pattern_1) print('\n \n') print('\n *** - ***') \ No newline at end of file diff --git a/tests/main_tests/test_main_owl_extraction.py b/tests/main_tests/test_main_owl_extraction.py index a89785c4312a0625fb6f3ad8634bc37a66562a5b..7ee428d0bf8dd44763aaeda6e0830d959f639988 100644 --- a/tests/main_tests/test_main_owl_extraction.py +++ b/tests/main_tests/test_main_owl_extraction.py @@ -56,7 +56,7 @@ test_data_dir = f'{INPUT_DIR_PATH}amrDocuments/' # onto_prefix = f'SimpleTest' # base_output_name = f'SimpleTest' -uuid_num = '02' +uuid_num = '01' amrld_dir_path = f'{test_data_dir}dev/solar-system-{uuid_num}/' amrld_file_path = f'{amrld_dir_path}SSC-{uuid_num}-01.stog.amr.ttl' base_output_name = f'SolarSystemDev{uuid_num}'