diff --git a/tenet/extraction/process.py b/tenet/extraction/process.py index 10a70e85110fc9033fd27d75adc5c2516cc8abec..578c79d4e7933865ea1bec16dc0b09a3dc903e9f 100644 --- a/tenet/extraction/process.py +++ b/tenet/extraction/process.py @@ -9,10 +9,6 @@ # structure #============================================================================== -#============================================================================== -# Importing required modules -#============================================================================== - from rdflib import Graph import sys import logging @@ -27,11 +23,6 @@ from utility.timer import timed, timer_return from novTransduction.nov_rule import NovRule from novTransduction.nov_sequence import NovSequence - -#============================================================================== -# Parameters -#============================================================================== - # Logging logger = logging.getLogger(__name__) diff --git a/tenet/febTransduction/net/__init__.py b/tenet/febTransduction/net/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..368f01ef4e80a37f62c68a95a8aa0b64a506d58d --- /dev/null +++ b/tenet/febTransduction/net/__init__.py @@ -0,0 +1,15 @@ +from .net import Net + +from .class_net import ClassNet +from .atom_class_net import AtomClassNet +from .composite_class_net import CompositeClassNet +from .or_composite_class_net import OrCompositeClassNet +# from .and_composite_class_net import AndCompositeClassNet + +from .property_net import PropertyNet +from .atom_property_net import AtomPropertyNet +from .composite_property_net import CompositePropertyNet + +from .individual_net import IndividualNet + +from .phenomena_net import PhenomenaNet diff --git a/tenet/febTransduction/net/atom_class_net.py b/tenet/febTransduction/net/atom_class_net.py new file mode 100644 index 0000000000000000000000000000000000000000..b2b392dc9eae1f33f9dd198b150bedcff99b5128 --- /dev/null +++ b/tenet/febTransduction/net/atom_class_net.py @@ -0,0 +1,38 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Atom Class Net Query Builder +#------------------------------------------------------------------------------ +# Class to generate SPARQL query parts related to semantic nets +#============================================================================== + +#============================================================================== +# Importing required modules +#============================================================================== + +from .class_net import ClassNet + + +#============================================================================== +# Net Class +#============================================================================== + +class AtomClassNet(ClassNet): + """ Class to generate SPARQL query parts related to semantic nets. + """ + + #-------------------------------------------------------------------------- + # Constructor(s) + #-------------------------------------------------------------------------- + + def __init__(self, num=''): + + # -- Net Signature + self.type_name = 'atomClass' + self.type_id = 'Atom_Class_Net' + self.id = f'?{self.type_name}Net{num}' + self.type_uri = f'net:{self.type_id}' + + # -- Parent init + super().__init__(signature=True) \ No newline at end of file diff --git a/tenet/febTransduction/net/atom_property_net.py b/tenet/febTransduction/net/atom_property_net.py new file mode 100644 index 0000000000000000000000000000000000000000..21397663a983c70b3e238348eb725fa59299aa63 --- /dev/null +++ b/tenet/febTransduction/net/atom_property_net.py @@ -0,0 +1,57 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Atom Property Net Query Builder +#------------------------------------------------------------------------------ +# Class to generate SPARQL query parts related to semantic nets +#============================================================================== + +#============================================================================== +# Importing required modules +#============================================================================== + +from .property_net import PropertyNet + + +#============================================================================== +# Net Class +#============================================================================== + +class AtomPropertyNet(PropertyNet): + """ Class to generate SPARQL query parts related to semantic nets. + """ + + #-------------------------------------------------------------------------- + # Constructor(s) + #-------------------------------------------------------------------------- + + def __init__(self, num=''): + + # -- Net Signature + self.type_name = 'atomProperty' + self.type_id = 'Atom_Property_Net' + self.id = f'?{self.type_name}Net{num}' + self.type_uri = f'net:{self.type_id}' + + # -- Parent init + super().__init__(signature=True) + + # -- Net Attributes + self.core_role = f'{self.id}CoreRole' + self.target_argument_node = f'{self.id}TargetArgumentNode' + self.property_type = f'{self.id}PropertyType' + #self.property_name = f'{self.id}PropertyName' + self.property_name01 = f'{self.id}PropertyName01' + self.property_name10 = f'{self.id}PropertyName10' + self.property_name12 = f'{self.id}PropertyName12' + + self.predicate_table.update({ + 'core_role': 'isCoreRoleLinked', + 'target_argument_node': 'targetArgumentNode', + 'property_type': 'hasPropertyType', + #'property_name': 'hasPropertyName', + 'property_name01': 'hasPropertyName01', + 'property_name10': 'hasPropertyName10', + 'property_name12': 'hasPropertyName12' + }) \ No newline at end of file diff --git a/tenet/febTransduction/net/class_net.py b/tenet/febTransduction/net/class_net.py new file mode 100644 index 0000000000000000000000000000000000000000..a019df1eea3c5b1497aa41de76982f4809f32338 --- /dev/null +++ b/tenet/febTransduction/net/class_net.py @@ -0,0 +1,81 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Class Net Query Builder +#------------------------------------------------------------------------------ +# Class to generate SPARQL query parts related to semantic nets +#============================================================================== + +#============================================================================== +# Importing required modules +#============================================================================== + +from .net import Net + + +#============================================================================== +# Net Class +#============================================================================== + +class ClassNet(Net): + """ Class to generate SPARQL query parts related to semantic nets. + """ + + #-------------------------------------------------------------------------- + # Constructor(s) + #-------------------------------------------------------------------------- + + def __init__(self, num='', signature=False): + + # -- Net Signature + if not signature: + self.type_name = 'class' + self.type_id = 'Class_Net' + self.id = f'?{self.type_name}Net{num}' + self.type_uri = f'net:{self.type_id}' + + # -- Parent init + super().__init__(signature=True) + + # -- Net Attributes + self.class_name = f'{self.id}ClassName' + + self.predicate_table.update({ + 'class_name': 'hasClassName' + }) + + + +#============================================================================== +# Development Test +#============================================================================== + +if __name__ == '__main__': + + print('\n' + ' *** Development Test ***') + + print('\n' + ' -- test: Net') + net = AtomClassNet() + print(net) + + print('\n' + ' -- test: update a test query') + test_query= f"""[...] + CONSTRUCT {{ + {net.construct(base_node='?node1', + class_name='system')} + + }} + WHERE {{ + clause_1 + clause_2 + + {net.complete_clauses_for_construction('?node1')} + + {net.bind_uri('{{node1.concept_label}}', + '{{node1.variable_label}}')} + }} + """ + print(test_query) + + print('\n' + ' *** - ***') \ No newline at end of file diff --git a/tenet/febTransduction/net/composite_class_net.py b/tenet/febTransduction/net/composite_class_net.py new file mode 100644 index 0000000000000000000000000000000000000000..06b0d1fc8a15535ea074d597addb3fbe3eeb6ddf --- /dev/null +++ b/tenet/febTransduction/net/composite_class_net.py @@ -0,0 +1,51 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Atom Class Net Query Builder +#------------------------------------------------------------------------------ +# Class to generate SPARQL query parts related to semantic nets +#============================================================================== + +#============================================================================== +# Importing required modules +#============================================================================== + +from .class_net import ClassNet + + +#============================================================================== +# Net Class +#============================================================================== + +class CompositeClassNet(ClassNet): + """ Class to generate SPARQL query parts related to semantic nets. + """ + + #-------------------------------------------------------------------------- + # Constructor(s) + #-------------------------------------------------------------------------- + + def __init__(self, num=''): + + # -- Net Signature + self.type_name = 'compositeClass' + self.type_id = 'Composite_Class_Net' + self.id = f'?{self.type_name}Net{num}' + self.type_uri = f'net:{self.type_id}' + + # -- Parent init + super().__init__(signature=True) + + # -- Net Attributes + self.node = f'{self.id}Node' + self.mother_class_net = f'{self.id}MotherClassNet' + self.restriction = f'{self.id}Restriction' + self.restriction01 = f'{self.id}Restriction01' + + self.predicate_table.update({ + 'node': 'coverNode', + 'mother_class_net': 'hasMotherClassNet', + 'restriction': 'hasRestriction', + 'restriction01': 'hasRestriction01' + }) \ No newline at end of file diff --git a/tenet/febTransduction/net/composite_property_net.py b/tenet/febTransduction/net/composite_property_net.py new file mode 100644 index 0000000000000000000000000000000000000000..d640b589069cdf925a80fcff815bd2c83bd58580 --- /dev/null +++ b/tenet/febTransduction/net/composite_property_net.py @@ -0,0 +1,86 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Composite Property Net Query Builder +#------------------------------------------------------------------------------ +# Class to generate SPARQL query parts related to semantic nets +#============================================================================== + +#============================================================================== +# Importing required modules +#============================================================================== + +from .property_net import PropertyNet + + +#============================================================================== +# Net Class +#============================================================================== + +class CompositePropertyNet(PropertyNet): + """ Class to generate SPARQL query parts related to semantic nets. + """ + + #-------------------------------------------------------------------------- + # Constructor(s) + #-------------------------------------------------------------------------- + + def __init__(self, num=''): + + # -- Net Signature + self.type_name = 'compositeProperty' + self.type_id = 'Composite_Property_Net' + self.id = f'?{self.type_name}Net{num}' + self.type_uri = f'net:{self.type_id}' + + # -- Parent init + super().__init__(signature=True) + + # -- Net Attributes + self.core_role = f'{self.id}CoreRole' + self.target_argument_node = f'{self.id}TargetArgumentNode' + self.property_type = f'{self.id}PropertyType' + self.restriction = f'{self.id}Restriction' + + self.predicate_table.update({ + 'core_role': 'isCoreRoleLinked', + 'target_argument_node': 'targetArgumentNode', + 'property_type': 'hasPropertyType', + 'restriction': 'hasRestriction' + }) + + + +#============================================================================== +# Development Test +#============================================================================== + +if __name__ == '__main__': + + print('\n' + ' *** Development Test ***') + + print('\n' + ' -- test: Net') + net = AtomClassNet() + print(net) + + print('\n' + ' -- test: update a test query') + test_query= f"""[...] + CONSTRUCT {{ + {net.construct(base_node='?node1', + class_name='system')} + + }} + WHERE {{ + clause_1 + clause_2 + + {net.complete_clauses_for_construction('?node1')} + + {net.bind_uri('{{node1.concept_label}}', + '{{node1.variable_label}}')} + }} + """ + print(test_query) + + print('\n' + ' *** - ***') \ No newline at end of file diff --git a/tenet/febTransduction/net/individual_net.py b/tenet/febTransduction/net/individual_net.py new file mode 100644 index 0000000000000000000000000000000000000000..564d0fdda3bbededa1429e566952814a4e32a653 --- /dev/null +++ b/tenet/febTransduction/net/individual_net.py @@ -0,0 +1,109 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Individual Net Query Builder +#------------------------------------------------------------------------------ +# Class to generate SPARQL query parts related to semantic nets +#============================================================================== + +#============================================================================== +# Importing required modules +#============================================================================== + +from .net import Net + + +#============================================================================== +# Net Class +#============================================================================== + +class IndividualNet(Net): + """ Class to generate SPARQL query parts related to semantic nets. + """ + + #-------------------------------------------------------------------------- + # Constructor(s) + #-------------------------------------------------------------------------- + + def __init__(self, num=''): + + # -- Net Signature + self.type_name = 'individual' + self.type_id = 'Individual_Net' + self.id = f'?{self.type_name}Net{num}' + self.type_uri = f'net:{self.type_id}' + + # -- Parent init + super().__init__(signature=True) + + # -- Net Attributes + self.base_class_name = f'{self.id}MotherClassNet' + self.mother_class_net = f'{self.id}MotherClassNet' + self.individual_label = f'{self.id}IndividualLabel' + + self.predicate_table.update({ + 'base_class_name': 'hasBaseClassName', + 'mother_class_net': 'hasMotherClassName', + 'individual_label': 'hasIndividualLabel' + }) + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Construct' parts + #-------------------------------------------------------------------------- + + def construct(self, **net_attribute): + query_code = super().construct(**net_attribute) + return query_code + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Clause' parts + #-------------------------------------------------------------------------- + + # -- + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Binding' parts + #-------------------------------------------------------------------------- + + def bind_uri(self, net_name='nameless', node_reference='00'): + return super().bind_uri(net_name, node_reference) + + + +#============================================================================== +# Development Test +#============================================================================== + +if __name__ == '__main__': + + print('\n' + ' *** Development Test ***') + + print('\n' + ' -- test: Atom Class Net') + net = IndividualNet() + print(net) + + print('\n' + ' -- test: update a test query') + test_query= f"""[...] + CONSTRUCT {{ + {net.construct(base_node='?node1', + mother_class_net='?classNet', + individual_label='?valueLabel')} + + }} + WHERE {{ + clause_1 + clause_2 + + {net.complete_clauses_for_construction('?node1')} + + {net.bind_uri('{{node1.concept_label}}', + '{{node1.variable_label}}')} + }} + """ + print(test_query) + + print('\n' + ' *** - ***') \ No newline at end of file diff --git a/tenet/febTransduction/net/logical_set_net.py b/tenet/febTransduction/net/logical_set_net.py new file mode 100644 index 0000000000000000000000000000000000000000..ac44634e533576f13e7497979d4323e1c6670f68 --- /dev/null +++ b/tenet/febTransduction/net/logical_set_net.py @@ -0,0 +1,149 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Logical Set Net Query Builder +#------------------------------------------------------------------------------ +# Class to generate SPARQL query parts related to semantic nets +#============================================================================== + +#============================================================================== +# Importing required modules +#============================================================================== + +from .net import Net + + +#============================================================================== +# Net Class +#============================================================================== + +class LogicalSetNet(Net): + """ Class to generate SPARQL query parts related to semantic nets. + """ + + #-------------------------------------------------------------------------- + # Constructor(s) + #-------------------------------------------------------------------------- + + def __init__(self, num=''): + + # -- Net Signature + self.type_name = 'logicalSet' + self.type_id = 'Logical_Set_Net' + self.id = f'?{self.type_name}Net{num}' + self.type_uri = f'net:{self.type_id}' + + # -- Parent init + super().__init__(signature=True) + + # -- Net Attributes + self.logical_constraint = f'{self.id}Restriction' + self.property_net = f'{self.id}PropertyNet' + self.content_net_1 = f'{self.id}ContentNet1' + self.content_net_2 = f'{self.id}ContentNet2' + self.content_net = f'{self.id}ContentNet' + self.naming = f'{self.id}Naming' + self.restriction = f'{self.id}Restriction' + + self.predicate_table.update({ + 'logical_constraint': 'hasLogicalConstraint', + 'property_net': 'bindPropertyNet', + 'content_net_1': 'containsNet1', + 'content_net_2': 'containsNet2', + 'content_net': 'containsNet', + 'naming': 'hasNaming', + 'restriction': 'bindRestriction' + + }) + + + #-------------------------------------------------------------------------- + # Private data accessor(s) + #-------------------------------------------------------------------------- + + def __get_predicate(self, attribute_reference): + predicate_reference = self.predicate_table[f'{attribute_reference}'] + return f'net:{predicate_reference}' + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Construct' parts + #-------------------------------------------------------------------------- + + def define_naming(self): + predicate = self.__get_predicate('naming') + return f""" + # -- Naming Definition + {self.id} {predicate} {self.naming}.""" + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Clause' parts + #-------------------------------------------------------------------------- + + def identify_content_net_1(self, target_id): + predicate = self.__get_predicate('content_net_1') + return f""" + # -- Identify content net 1 + {self.id} {predicate} {target_id}.""" + + + def identify_content_net_2(self, target_id): + predicate = self.__get_predicate('content_net_2') + return f""" + # -- Identify content net 2 + {self.id} {predicate} {target_id}.""" + + + def identify_content_net(self, target_id): + predicate = self.__get_predicate('content_net') + return f""" + # -- Identify content net + {self.id} {predicate} {target_id}.""" + + + def identify_disjoint_content_net(self, target_id_1, target_id_2): + predicate1 = self.__get_predicate('content_net_1') + predicate2 = self.__get_predicate('content_net_2') + return f""" + # -- Identify disjoint content net + {self.id} {predicate} {target_id_1}. + {self.id} {predicate} {target_id_2}. + FILTER ( {target_id_1} != {target_id_2} ).""" + + def identify_content_net_number(self, number_ref): + predicate = self.__get_predicate('content_net') + return f""" + {{ + # -- Identify content net number + SELECT (COUNT(?contentNet) AS {number_ref}) + WHERE {{ + {self.id} {predicate} ?contentNet. + }} + }}""" + + + def identify_restriction(self, target_id): + predicate = self.__get_predicate('restriction') + return f""" + # -- Identify restriction + {self.id} {predicate} {target_id}.""" + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Binding' parts + #-------------------------------------------------------------------------- + + def bind_naming(self, property_ref, content_1_ref, content_2_ref): + + ref1 = f"{self.id}Ref1" + ref2 = f"{self.id}Ref2" + # -- ref3 = f"{self.id}Ref3" + + return f""" + # -- New Naming + {self.identify_content_net_number('?contentNumber')} + BIND (CONCAT({property_ref}, '-', {content_1_ref}) AS {ref1}). + BIND (CONCAT({ref1}, '-and-', {content_2_ref}) AS {ref2}). + BIND (IF (?contentNumber > 2, CONCAT({ref2}, '-etc'), {ref2}) AS {self.naming}).""" \ No newline at end of file diff --git a/tenet/febTransduction/net/net.py b/tenet/febTransduction/net/net.py new file mode 100644 index 0000000000000000000000000000000000000000..fd0b55c46eaa8ce24c641f3125c01a362c7709f9 --- /dev/null +++ b/tenet/febTransduction/net/net.py @@ -0,0 +1,526 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Net Query Builder +#------------------------------------------------------------------------------ +# Class to generate SPARQL query parts related to semantic nets +#============================================================================== + +#============================================================================== +# Importing required modules +#============================================================================== + +# -- + + +#============================================================================== +# Data Repository +#============================================================================== + +# -- Useful Constant(s) +DEFAULT_ATTRIBUTE_VALUE = f'\"NA\"' +INDENT_STR = ' ' +SENTENCE_REF = '?sentenceRef' + + +#============================================================================== +# Net Class +#============================================================================== + +class Net: + """ Class to generate SPARQL query parts related to semantic nets. + """ + + #-------------------------------------------------------------------------- + # Class Attributes + #-------------------------------------------------------------------------- + + # -- Operation Reference + INITIALIZED = f'net:initialized' + DATA_ADDED = f'net:data_added' + RESTRICTION_ADDED = f'net:restriction_added' + RELATION_PROPAGATED = f'net:relation_propagated' + FINALIZED = f'net:finalized' + + progress_step_list = [INITIALIZED, DATA_ADDED, RESTRICTION_ADDED, + RELATION_PROPAGATED, FINALIZED] + + #-------------------------------------------------------------------------- + # Constructor + #-------------------------------------------------------------------------- + + def __init__(self, num='', signature=False): + + # -- Net Signature + if not signature: + self.type_name = 'default' + self.type_id = 'Net' + self.id = f'?{self.type_name}Net{num}' + self.type_uri = f'net:{self.type_id}' + + # -- Net Attributes + self.node = f'{self.id}Node' + self.base_node = f'{self.id}BaseNode' + self.structure = f'{self.id}Structure' + self.naming = f'{self.id}Naming' + + self.predicate_table = { + # *** [attribute_reference: attribute_predicate] *** + 'node': 'coverNode', + 'base_node': 'coverBaseNode', + 'structure': 'hasStructure', + 'naming': 'hasNaming' + } + + + # -- Tracker attributes + self._progress_step = f'{self.id}ProgressStep' + self._main_net_composante = f'{self.id}MainNetComposante' + self._net_composante = f'{self.id}NetComposante' + + self._track_predicate_table = { + # *** [attribute_reference: attribute_predicate] *** + 'progress_step': 'trackProgress', + 'main_net_composante': 'trackMainNetComposante', + 'net_composante': 'trackNetComposante' + } + + + # -- Private attributes (for relation propagation) + self._in_relation_role = f'{self.id}InRelationRole' + self._in_net = f'{self.id}InNet' + self._out_relation_role = f'{self.id}OutRelationRole' + self._out_net = f'{self.id}OutNet' + + + #-------------------------------------------------------------------------- + # Private data accessor(s) + #-------------------------------------------------------------------------- + + def __get_predicate(self, attribute_reference): + predicate_reference = self.predicate_table[f'{attribute_reference}'] + return f'net:{predicate_reference}' + + def __get_track_predicate(self, attribute_reference): + predicate_reference = self._track_predicate_table[f'{attribute_reference}'] + return f'net:{predicate_reference}' + + + #-------------------------------------------------------------------------- + # Method(s) to track the construction progress + #-------------------------------------------------------------------------- + + def track_progression(self, progress_step): + predicate = self.__get_track_predicate('progress_step') + return f"{INDENT_STR}{self.id} {predicate} {progress_step}." + + def in_progress_step(self, progress_step): + predicate = self.__get_track_predicate('progress_step') + query_code = f'FILTER NOT EXISTS {{ {self.id} {predicate} {progress_step}. }}' + return query_code + + def is_finalized_net(self): + predicate = self.__get_track_predicate('progress_step') + progress_step = FINALIZED + query_code = f'FILTER NOT EXISTS {{ {self.id} {predicate} {progress_step}. }}' + return query_code + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Construct' parts (definition) + #-------------------------------------------------------------------------- + + def define(self, **net_attribute): + net_attribute.update({'structure': '?sentenceRef'}) + query_code = '' + query_code += f'{INDENT_STR}{self.id} a {self.type_uri}.\n' + query_code += self.track_progression(INITIALIZED) + #query_code += f'{self.__define_attribute_triples(**net_attribute)}' + return query_code + + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Construct' parts (composition tracking) + #-------------------------------------------------------------------------- + + def track_composante(self, composante, main=False): + query_code = '' + predicate = self.__get_track_predicate('net_composante') + query_code += f"{self.id} {predicate} {composante.id}." + if main: + predicate = self.__get_track_predicate('main_net_composante') + query_code += f"\n{INDENT_STR}" + query_code += f"{self.id} {predicate} {composante.id}." + query_code += f"\n{INDENT_STR}" + net_node = f'{composante.node}' + query_code += self.__define_attribute_triples(node=net_node) + return query_code + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Identification Clause' parts + #-------------------------------------------------------------------------- + + def identify(self, step_num=-1): + query_code = "" + query_code += f"{self.id} a [rdfs:subClassOf* {self.type_uri}]." + if step_num > -1 & step_num < len(self._progress_step_list): + progress_step = self._progress_step_list[step_num] + query_code += self.in_progress_step(progress_step) + return query_code + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Clause' parts (data selection) + #-------------------------------------------------------------------------- + + def select_data(self, *net_attribute): + + query_code = "" + + # -- construct triples + first = True + for attr_ref in net_attribute: + if attr_ref in self.predicate_table.keys(): + predicate = self.__get_predicate(attr_ref) + attr_value = getattr(self, attr_ref) + if not first: query_code += f"\n{INDENT_STR}" + query_code += f"{self.id} {predicate} {attr_value}." + first = False + + return query_code + + + def select_tracking_data(self): + return self.select_data('node') + + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Binding' parts + #-------------------------------------------------------------------------- + + def bind_naming(self, *nets): + + assert len(nets) > 0, 'bind_naming impossible without net' + + query_code = '' + + num = 0 + for net in nets: + num += 1 + if num == 1: # first net + current_ref = f"{self.id}NamingRef{num}" + query_code += f'{net.select_data("naming")}' + query_code += f"\n{INDENT_STR}" + query_code += f'BIND ({net.naming} AS {current_ref}).' + else: # net 2, 3... + previous_ref = current_ref + current_ref = f"{self.id}NamingRef{num}" + query_code += f"\n{INDENT_STR}" + query_code += f'{net.select_data("naming")}' + query_code += f"\n{INDENT_STR}" + query_code += f"BIND (CONCAT({previous_ref}, '-', {net.naming}) AS {current_ref})." + + query_code += f"\n{INDENT_STR}" + query_code += f'BIND (REPLACE({current_ref}, " ", "") AS {self.naming}).' + + return query_code + + + def bind_uri(self, net_name, node_reference): + + ref1 = f"{self.id}UriRef1" + ref2 = f"{self.id}UriRef2" + ref3 = f"{self.id}UriRef3" + + query_code = f""" + BIND (CONCAT(str(net:), "{self.type_name}") AS {ref1}). + BIND (CONCAT({ref1}, "_", {net_name}) AS {ref2}). + BIND (CONCAT({ref2}, "_", {node_reference}) AS {ref3}). + BIND (uri({ref3}) AS {self.id}).""" + + return query_code + + + + # ***************************************************************************************** + # + # OLD ***** OLD ******* OLD + # + # ****************************************************************************************** + + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Construct' parts (definition) + #-------------------------------------------------------------------------- + + def __define_attribute_triples(self, **net_attribute): + + query_code = "" + + # -- construct triples + for attr_ref in self.predicate_table.keys(): + if attr_ref in net_attribute.keys(): + predicate = self.__get_predicate(attr_ref) + attr_value = net_attribute.get(attr_ref) + query_code += f"{self.id} {predicate} {attr_value}." + query_code += f"\n{INDENT_STR}" + + return query_code + + + def define(self, **net_attribute): + net_attribute.update({'structure': '?sentenceRef'}) + query_code = '' + query_code += f'{INDENT_STR}{self.id} a {self.type_uri}.\n' + #query_code += f'{self.__define_attribute_triples(**net_attribute)}' + return query_code + + + def propagate_relations(self): + query_code = f""" + # -- Propagation of relations (from nodes to nets) + {self._in_relation_role} a net:Relation. + {self._in_net} {self._in_relation_role} {self.id}. + {self._out_relation_role} a net:Relation. + {self.id} {self._out_relation_role} {self._out_net}.""" + query_code += f"\n{INDENT_STR}" + query_code += self.__track_construction_progress(Net.RELATION_PROPAGATED) + return query_code + + + def construct(self, **net_attribute): + query_code = self.define_new_net(**net_attribute) + query_code += self.__track_construction_progress(Net.INITIALIZED) + # -- old --- query_code += self.propagate_relations() + return query_code + + + def add_attribute(self, **net_attribute): + query_code = self.__define_attribute_triples(**net_attribute) + return f""" + # -- Additional triple(s) for {self.id} + {query_code}""" + + + + def define_structure(self): + predicate = self.__get_predicate('structure') + query_code = f"{self.id} {predicate} {SENTENCE_REF}." + query_code += f"\n{INDENT_STR}" + + return f""" + # -- Additional triple(s) for {self.id} + {query_code}""" + + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Complement Clause' parts + #-------------------------------------------------------------------------- + + def identify_structure(self): + return f""" + # -- Identify structure + ?root a amr:AMR_Root. + ?root amr:hasSentenceID {SENTENCE_REF}. + """ + + def identify_relations_for_propagation(self, base_node=''): + if base_node=='': + base_node = self.base_node + return f""" + # -- Identify inbound relations linked to the base leaf (for propagation) + OPTIONAL {{ + {self._in_net} a [rdfs:subClassOf* net:Net] ; + net:coverBaseNode ?inLeaf. + ?inLeaf ?inRelationEdge {base_node}. + ?inRelationEdge amr:hasAmrRole {self._in_relation_role}. + }} + + # -- Identify outgoing relations linked to the base leaf (for propagation) + OPTIONAL {{ + {self._out_net} a [rdfs:subClassOf* net:Net] ; + net:coverBaseNode ?outLeaf. + {base_node} ?outRelationEdge ?outLeaf. + ?outRelationEdge amr:hasAmrRole {self._out_relation_role}. + }} + """ + + def complete_clauses_for_construction(self, base_node=''): + query_code = self.identify_structure() + query_code += self.identify_relations_for_propagation(base_node) + return query_code + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Identification Clause' parts + #-------------------------------------------------------------------------- + + def __select_all_attribute_triples(self, **net_attribute): + + query_code = "" + + # -- construct triples with default object for non-declared attributes + for attr_ref in self.predicate_table.keys(): + + predicate = self.__get_predicate(attr_ref) + + if attr_ref in net_attribute.keys(): + attr_value = net_attribute.get(attr_ref) + optional_start = '' + optional_end = '' + comment = '' + else: + attr_value = self.__dict__[attr_ref] + optional_start = 'OPTIONAL {{ ' + optional_end = ' }}' + comment = '' + + query_code += f"{optional_start}" + query_code += f"{self.id} {predicate} {attr_value}.{comment}" + query_code += f"{optional_end}" + query_code += f"\n{INDENT_STR}" + + return query_code + + + def __select_targeted_attribute_triples(self, **net_attribute): + + query_code = "" + + # -- select triples + for attr_ref in self.predicate_table.keys(): + + predicate = self.__get_predicate(attr_ref) + + if attr_ref in net_attribute.keys(): + attr_value = net_attribute.get(attr_ref) + comment = '' + + query_code += f"{self.id} {predicate} {attr_value}.{comment}" + query_code += f"\n{INDENT_STR}" + + return query_code + + + def __select_optional_attribute_triples(self, **net_attribute): + + query_code = "" + + # -- construct triples with default object for non-declared attributes + for attr_ref in self.predicate_table.keys(): + + predicate = self.__get_predicate(attr_ref) + + if attr_ref not in net_attribute.keys(): + attr_value = self.__dict__[attr_ref] + optional_start = 'OPTIONAL {{ ' + optional_end = ' }}' + comment = '' + + query_code += f"{optional_start}" + query_code += f"{self.id} {predicate} {attr_value}.{comment}" + query_code += f"{optional_end}" + query_code += f"\n{INDENT_STR}" + + return query_code + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Identification Clause' parts + #-------------------------------------------------------------------------- + + def __select_node(self): + + query_code = "" + + optional_start = 'OPTIONAL {{ ' + optional_end = ' }}' + select_predicates = f"""(net:coverNode|net:coverBaseNode|net:coverTargetNode|net:coverArgNode)""" + + query_code += f"{optional_start}" + query_code += f"# -- Select nodes of net {self.id} \n{INDENT_STR}" + query_code += f"{self.id} {select_predicates} {self.node}." + query_code += f"{optional_end}" + + return query_code + + + def identify(self, **net_attribute): + query_code = "" + query_code += f"{self.id} a [rdfs:subClassOf* {self.type_uri}]." + #query_code += f"{self.__select_all_attribute_triples(**net_attribute)}" + #query_code += f"{self.__select_node()}" + return query_code + + + def identify_net_without_optional_attribute(self, **net_attribute): + return f""" + # -- Identify net + {self.id} a [rdfs:subClassOf* {self.type_uri}]. + FILTER NOT EXISTS {{ {self.id} a net:Deprecated_Net. }} + {self.__select_targeted_attribute_triples(**net_attribute)} + {self.__select_node()}""" + + + def identify_attribute(self, **net_attribute): + query_code = '' + for attr_ref in net_attribute.keys(): + predicate = self.__get_predicate(attr_ref) + attr_value = net_attribute.get(attr_ref) + query_code += f'\n{INDENT_STR}{self.id} {predicate} {attr_value}.' + return query_code + + + def identify_relation(self, relation_role, target_id): + return f'{self.id} {relation_role} {target_id}.' + + + def identify_composante(self, target_id): + predicate = self.__get_track_predicate('net_composante') + return f""" + # -- Identify net composante of {self.id} + {self.id} {predicate} {target_id}.""" + + + def identify_main_composante(self, target_id): + predicate = self.__get_track_predicate('main_net_composante') + return f""" + # -- Identify main net composante of {self.id} + {self.id} {predicate} {target_id}.""" + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Binding' parts + #-------------------------------------------------------------------------- + + # def bind_uri(self, net_name='nameless', node_reference='blank'): + + # ref1 = f"{self.id}Ref1" + # ref2 = f"{self.id}Ref2" + # ref3 = f"{self.id}Ref3" + + # if net_name=='nameless': + # net_name = f"'nameless'" + # refNet = f"?namelessRefNet" + # else: + # refNet = f"{net_name}RefNet" + + # if node_reference=='blank': + # node_reference = f"'blankNode'" + # refNode = f"?blankRefNode" + # else: + # refNode = f"{node_reference}RefNode" + + # return f""" + # BIND (REPLACE({net_name}, ' ', "") AS {refNet}). + # BIND (REPLACE({node_reference}, ' ', "") AS {refNode}). + # BIND (CONCAT(str(net:), '{self.type_name}') AS {ref1}). + # BIND (CONCAT({ref1}, '_', {refNet}) AS {ref2}). + # BIND (CONCAT({ref2}, '_', {refNode}) AS {ref3}). + # BIND (uri({ref3}) AS {self.id}).""" \ No newline at end of file diff --git a/tenet/febTransduction/net/or_composite_class_net.py b/tenet/febTransduction/net/or_composite_class_net.py new file mode 100644 index 0000000000000000000000000000000000000000..c2893cee01907265085c54b0d483cf434f2c6046 --- /dev/null +++ b/tenet/febTransduction/net/or_composite_class_net.py @@ -0,0 +1,51 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Atom Class Net Query Builder +#------------------------------------------------------------------------------ +# Class to generate SPARQL query parts related to semantic nets +#============================================================================== + +#============================================================================== +# Importing required modules +#============================================================================== + +from .class_net import ClassNet + + +#============================================================================== +# Net Class +#============================================================================== + +class OrCompositeClassNet(ClassNet): + """ Class to generate SPARQL query parts related to semantic nets. + """ + + #-------------------------------------------------------------------------- + # Constructor(s) + #-------------------------------------------------------------------------- + + def __init__(self, num=''): + + # -- Net Signature + self.type_name = 'compositeClass' + self.type_id = 'Composite_Class_Net' + self.id = f'?{self.type_name}Net{num}' + self.type_uri = f'net:{self.type_id}' + + # -- Parent init + super().__init__(signature=True) + + # -- Net Attributes + self.node = f'{self.id}Node' + self.mother_class_net = f'{self.id}MotherClassNet' + self.restriction = f'{self.id}Restriction' + self.restriction01 = f'{self.id}Restriction01' + + self.predicate_table.update({ + 'node': 'coverNode', + 'mother_class_net': 'hasMotherClassNet', + 'restriction': 'hasRestriction', + 'restriction01': 'hasRestriction01' + }) \ No newline at end of file diff --git a/tenet/febTransduction/net/phenomena_net.py b/tenet/febTransduction/net/phenomena_net.py new file mode 100644 index 0000000000000000000000000000000000000000..97c0449ad799931c35d7a2c0478a9148bcffb040 --- /dev/null +++ b/tenet/febTransduction/net/phenomena_net.py @@ -0,0 +1,130 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Phenomena Net Query Builder +#------------------------------------------------------------------------------ +# Class to generate SPARQL query parts related to semantic nets +#============================================================================== + +#============================================================================== +# Importing required modules +#============================================================================== + +from .net import Net + + +#============================================================================== +# Net Class +#============================================================================== + +class PhenomenaNet(Net): + """ Class to generate SPARQL query parts related to semantic nets. + """ + + #-------------------------------------------------------------------------- + # Constructor(s) + #-------------------------------------------------------------------------- + + def __init__(self, num=''): + + # -- Net Signature + self.type_name = 'phenomena' + self.type_id = 'Phenomena_Net' + self.id = f'?{self.type_name}Net{num}' + self.type_uri = f'net:{self.type_id}' + + # -- Parent init + super().__init__(signature=True) + + # -- Net Attributes + self.phenomena_type = f'{self.id}PhenomenaType' + self.phenomena_ref = f'{self.id}PhenomenaRef' + + self.predicate_table.update({ + 'phenomena_type': 'hasPhenomenaType', + 'phenomena_ref': 'hasPhenomenaRef' + }) + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Construct' parts + #-------------------------------------------------------------------------- + + def construct(self, **net_attribute): + query_code = super().construct(**net_attribute) + return query_code + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Clause' parts + #-------------------------------------------------------------------------- + + def identify_operator(self, num, target_base_id): + relation_role = f'amr:role_op{num}' + target_id = f'{target_base_id}{num}' + return f""" + # -- Identify operator (amr:op) + {self.id} {relation_role} {target_id}.""" + + + def identify_optional_operator(self, num, target_base_id): + relation_role = f'amr:role_op{num}' + target_id = f'{target_base_id}{num}' + return f""" + # -- Identify optional operator (amr:op) + OPTIONAL {{ {self.id} {relation_role} {target_id}. }}""" + + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Binding' parts + #-------------------------------------------------------------------------- + + def bind_uri(self, net_name='nameless', node_reference='00'): + return super().bind_uri(net_name, node_reference) + + + +#============================================================================== +# Development Test +#============================================================================== + +if __name__ == '__main__': + + print('\n' + ' *** Development Test ***') + + print('\n' + ' -- test: Atom Class Net') + atom_class_net = AtomClassNet() + print(atom_class_net) + + + print('\n' + ' -- test: construct') + construct_ctr = atom_class_net.construct(base_node='?node1', + structure='?structureRef', + class_name='?leaf1ConceptLabel') + print(construct_ctr) + + print('\n' + ' -- test: update a test query') + test_query= f"""[...] + CONSTRUCT {{ + {atom_class_net.construct(base_node='?node1', + structure='?structureRef', + class_name='?leaf1ConceptLabel')} + + {atom_class_net.propagate_relations()} + + }} + WHERE {{ + clause_1 + clause_2 + + {atom_class_net.identify_relations_for_propagation('?node1')} + + {atom_class_net.bind_uri('{{node1.concept_label}}', + '{{node1.variable_label}}')} + }} + """ + print(test_query) + + print('\n' + ' *** - ***') \ No newline at end of file diff --git a/tenet/febTransduction/net/property_net.py b/tenet/febTransduction/net/property_net.py new file mode 100644 index 0000000000000000000000000000000000000000..09a9488b6f2316f63eaebf110f68ea8612818b29 --- /dev/null +++ b/tenet/febTransduction/net/property_net.py @@ -0,0 +1,46 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Property Net Query Builder +#------------------------------------------------------------------------------ +# Class to generate SPARQL query parts related to semantic nets +#============================================================================== + +#============================================================================== +# Importing required modules +#============================================================================== + +from .net import Net + + +#============================================================================== +# Net Class +#============================================================================== + +class PropertyNet(Net): + """ Class to generate SPARQL query parts related to semantic nets. + """ + + #-------------------------------------------------------------------------- + # Constructor(s) + #-------------------------------------------------------------------------- + + def __init__(self, num='', signature=False): + + # -- Net Signature + if not signature: + self.type_name = 'property' + self.type_id = 'Property_Net' + self.id = f'?{self.type_name}Net{num}' + self.type_uri = f'net:{self.type_id}' + + # -- Parent init + super().__init__(signature=True) + + # -- Net Attributes + self.property_name = f'{self.id}PropertyName' + + self.predicate_table.update({ + 'property_name': 'hasPropertyName' + }) \ No newline at end of file diff --git a/tenet/febTransduction/net/restriction_net.py b/tenet/febTransduction/net/restriction_net.py new file mode 100644 index 0000000000000000000000000000000000000000..ca338fff34fe268acda6f0d56586b970e797497d --- /dev/null +++ b/tenet/febTransduction/net/restriction_net.py @@ -0,0 +1,117 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Atom Class Net Query Builder +#------------------------------------------------------------------------------ +# Class to generate SPARQL query parts related to semantic nets +#============================================================================== + +#============================================================================== +# Importing required modules +#============================================================================== + +from .net import Net + + +#============================================================================== +# Net Class +#============================================================================== + +class RestrictionNet(Net): + """ Class to generate SPARQL query parts related to semantic nets. + """ + + #-------------------------------------------------------------------------- + # Constructor(s) + #-------------------------------------------------------------------------- + + def __init__(self, num=''): + + # -- Net Signature + self.type_name = 'restriction' + self.type_id = 'Restriction_Net' + self.id = f'?{self.type_name}Net{num}' + self.type_uri = f'net:{self.type_id}' + + # -- Parent init + super().__init__(signature=True) + + # -- Net Attributes + self.target_node = f'{self.id}TargetNode' + self.restriction_property = f'{self.id}RestrictionOnProperty' + self.restriction_net_value = f'{self.id}RestrictionNetValue' + + self.predicate_table.update({ + 'target_node': 'coverTargetNode', + 'restriction_property': 'hasRestrictionOnProperty', + 'restriction_net_value': 'hasRestrictionNetValue' + }) + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Construct' parts + #-------------------------------------------------------------------------- + + def construct(self, **net_attribute): + query_code = super().define_new_net(**net_attribute) + return query_code + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Complement Clause' parts + #-------------------------------------------------------------------------- + + def complete_clauses_for_construction(self): + query_code = self.identify_structure() + return query_code + + + #-------------------------------------------------------------------------- + # Method(s) to build 'Binding' parts + #-------------------------------------------------------------------------- + + def bind_uri(self, property_name='nameless', arg_name='nameless'): + ref1 = f"{self.id}Ref1" + ref2 = f"{self.id}Ref2" + ref3 = f"{self.id}Ref3" + return f""" + # -- New Restriction Net + BIND (CONCAT(str(net:), '{self.type_name}') AS {ref1}). + BIND (CONCAT({ref1}, '_', {property_name}) AS {ref2}). + BIND (CONCAT({ref2}, '_', {arg_name}) AS {ref3}). + BIND (uri({ref3}) AS {self.id}).""" + + +#============================================================================== +# Development Test +#============================================================================== + +if __name__ == '__main__': + + print('\n' + ' *** Development Test ***') + + print('\n' + ' -- test: Net') + net = AtomClassNet() + print(net) + + print('\n' + ' -- test: update a test query') + test_query= f"""[...] + CONSTRUCT {{ + {net.construct(base_node='?node1', + class_name='system')} + + }} + WHERE {{ + clause_1 + clause_2 + + {net.complete_clauses_for_construction('?node1')} + + {net.bind_uri('{{node1.concept_label}}', + '{{node1.variable_label}}')} + }} + """ + print(test_query) + + print('\n' + ' *** - ***') \ No newline at end of file diff --git a/tenet/febTransduction/net/value_net.py b/tenet/febTransduction/net/value_net.py new file mode 100644 index 0000000000000000000000000000000000000000..8be70cb7cce6b3e293db9583fc3600f0d3432080 --- /dev/null +++ b/tenet/febTransduction/net/value_net.py @@ -0,0 +1,78 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Value Net Query Builder +#------------------------------------------------------------------------------ +# Class to generate SPARQL query parts related to semantic nets +#============================================================================== + +#============================================================================== +# Importing required modules +#============================================================================== + +from .net import Net + + +#============================================================================== +# Net Class +#============================================================================== + +class ValueNet(Net): + """ Class to generate SPARQL query parts related to semantic nets. + """ + + #-------------------------------------------------------------------------- + # Constructor(s) + #-------------------------------------------------------------------------- + + def __init__(self, num=''): + + # -- Net Signature + self.type_name = 'value' + self.type_id = 'Value_Net' + self.id = f'?{self.type_name}Net{num}' + self.type_uri = f'net:{self.type_id}' + + # -- Parent init + super().__init__(signature=True) + + # -- Net Attributes + self.value_label = f'{self.id}ValueLabel' + + self.predicate_table.update({ + 'value_label': 'hasValueLabel' + }) + + + +#============================================================================== +# Development Test +#============================================================================== + +if __name__ == '__main__': + + print('\n' + ' *** Development Test ***') + + print('\n' + ' -- test: Net') + net = ValueNet() + print(net) + + print('\n' + ' -- test: update a test query') + test_query= f"""[...] + CONSTRUCT {{ + {net.construct(value_label='a-value')} + + }} + WHERE {{ + clause_1 + clause_2 + + {net.complete_clauses_for_construction('?node1')} + + {net.bind_uri('{{a_label}}')} + }} + """ + print(test_query) + + print('\n' + ' *** - ***') \ No newline at end of file diff --git a/tenet/febTransduction/pattern.py b/tenet/febTransduction/pattern.py new file mode 100644 index 0000000000000000000000000000000000000000..e8119a096252282643758323464c88a4523fd24d --- /dev/null +++ b/tenet/febTransduction/pattern.py @@ -0,0 +1,235 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: Transduction Rule +#------------------------------------------------------------------------------ +# Class to define a Compositional Transduction Rule (CTR), namely a rule +# associating a semantic graph pattern and a semantic net constructor. +# Several methods are proposed to translate the rule into a sequence of SPARQL +# queries applicable to a semantic graph. +#============================================================================== + +if __name__ == '__main__': + import os, sys + LIB_PATH = f'{os.path.dirname(os.path.abspath(__file__))}/..' + sys.path.insert(0, os.path.abspath(LIB_PATH)) + print(sys.path[0]) + +import logging + +import febTransduction.query_builder as query_builder +import febTransduction.net as net + +# -- Useful Constant(s) +DEFAULT_ATTRIBUTE_VALUE = f'\"NA\"' +INDENT_STR = ' ' +SENTENCE_REF = '?sentenceRef' + + +#============================================================================== +# Net Class +#============================================================================== + +class Rule: + """ Class to define a Compositional Transduction Rule (CTR), namely a rule + associating a semantic graph pattern and a semantic net constructor. + """ + + #-------------------------------------------------------------------------- + # Class Attributes + #-------------------------------------------------------------------------- + + # None + + + #-------------------------------------------------------------------------- + # Constructor + #-------------------------------------------------------------------------- + + def __init__(self, label, net): + + # -- Base + self.label = label + self.new_net = net + + # -- Pattern + self._identification_pattern_dict = {} + self._composition_pattern_list = [] + self._restriction_pattern_list = [] + + # -- SPARQL Query + self.query_list = [] + + + #-------------------------------------------------------------------------- + # Accessor(s) + #-------------------------------------------------------------------------- + + # -- + + + #-------------------------------------------------------------------------- + # Method(s) to add pattern + #-------------------------------------------------------------------------- + + def add_identification_pattern(self, net, **net_attribute): + self._identification_pattern_dict[net] = net.identify_attribute(**net_attribute) + + + def add_composition_pattern(self, net_1, relation, net_2): + self._composition_pattern_list.append((net_1, relation, net_2)) + + + def add_restriction_pattern(self, net_1, relation, net_2): + self._restriction_pattern_list.append((net_1, relation, net_2)) + + + #-------------------------------------------------------------------------- + # Method(s) to construct a new semantic net by composition of net(s) + #-------------------------------------------------------------------------- + + def __define_identification_clause(self, *nets): + clause_part = f"\n{INDENT_STR}" + clause_part += f"# -- Identify Net(s)" + for net in nets: + clause_part += f"\n{INDENT_STR}" + clause_part += net.identify() + if net in self._identification_pattern_dict: + clause_part += self._identification_pattern_dict[net] + return clause_part + + + def __define_pattern_clause(self): + clause_part = f"\n{INDENT_STR}" + clause_part += f"# -- Identify Pattern " + for (net_1, relation, net_2) in self._composition_pattern_list: + clause_part += f"\n{INDENT_STR}" + clause_part += f'{net_1.id} {relation} {net_2.id}.' + return clause_part + + + def __define_tracking_data_selection_clause(self, *nets): + clause_part = f"\n{INDENT_STR}" + clause_part += f"# -- Data Selection " + for net in nets: + clause_part += f"\n{INDENT_STR}" + clause_part += net.select_tracking_data() + return clause_part + + + def __define_new_net_binding_clause(self, *nets): + + assert len(nets) > 0, '__define_new_net_binding_clause impossible without net' + + clause_part = f"\n{INDENT_STR}" + clause_part += f"""# *** Identify variable label of base leaf *** + {nets[0].select_data('base_node')} + {nets[0].base_node} a amr:AMR_Leaf ; + amr:hasVariable ?variable. + ?variable amr:label ?varLabel.""" + + clause_part += f"\n\n{INDENT_STR}" + clause_part += f"# -- Naming Binding \n{INDENT_STR}" + clause_part += self.new_net.bind_naming(*nets) + + clause_part += f"\n\n{INDENT_STR}" + clause_part += f"# -- URI Binding" + clause_part += self.new_net.bind_uri(self.new_net.naming, '?varLabel') + + return clause_part + + + def __define_new_net(self): + construct_part = f"\n{INDENT_STR}" + construct_part += f'# -- New net \n' + construct_part += self.new_net.define() + return construct_part + + + def __define_composition(self, *nets): + construct_part = f"\n{INDENT_STR}" + construct_part += f'# -- Composition Tracking for {self.new_net.id}' + main = True + for net in nets: + construct_part += f"\n{INDENT_STR}" + construct_part += self.new_net.track_composante(net, main) + main = False + return construct_part + + def __define_deprecate_net(self, *nets): + if (nets is not None) & (len(nets) != 0): + construct_part = f'\n{INDENT_STR}' + construct_part += f'# -- Deprecate net \n{INDENT_STR}' + construct_part += f'{nets[0].id} a net:Deprecated_Net.' + return construct_part + + + def compose(self, *nets): + + query_label = 'new net construction' + + # -- Clause Part + clause_part = '' + clause_part += self.__define_identification_clause(*nets) + clause_part += '\n' + clause_part += self.__define_pattern_clause() + clause_part += '\n' + clause_part += self.__define_tracking_data_selection_clause(*nets) + clause_part += '\n' + clause_part += self.__define_new_net_binding_clause(*nets) + + # -- Construct Part + construct_part = '' + construct_part += self.__define_new_net() + construct_part += self.__define_composition(*nets) + construct_part += self.__define_deprecate_net(*nets) + + # -- Query Generation + compose_query = query_builder.generate_construct_query(construct_part, clause_part) + self.query_list.append((query_label, compose_query)) + + + + +#============================================================================== +# Development Test +#============================================================================== + +if __name__ == '__main__': + + print('\n' + ' *** Development Test ***') + + # print('\n' + ' -- Net Definition') + property_net_0 = net.PropertyNet(0) + property_net_1 = net.PropertyNet(1) + phenomena_net = net.PhenomenaNet() + or_composite_class_net = net.OrCompositeClassNet() + + # print('\n' + ' -- Test Rule 1') + rule = Rule('Test Rule', or_composite_class_net) + rule.add_identification_pattern(phenomena_net, phenomena_type='amr:phenomena_conjunction_or') + rule.add_composition_pattern(property_net_1, 'amr:role_ARG0', property_net_0) + rule.add_composition_pattern(property_net_1, 'amr:role_ARG1', phenomena_net) + rule.compose(property_net_0, property_net_1, phenomena_net) + + rule.compute_data() + + num = 0 + for query_label, query in rule.query_list: + num += 1 + print(f'*** query {num} - {query_label} ***\n{query}\n') + + # print('\n' + ' -- load a rule definition from a dictionary') + # rule.load_dict(rule_def_1) + # print(rule) + + # print('\n' + ' -- load a prefix list') + # rule.load_prefix_list(prefix_list_1) + # print(rule) + + # print('\n' + ' -- get the SPARQL query') + # query = rule.get_query() + # print(query) + + print('\n' + ' *** - ***') \ No newline at end of file diff --git a/tenet/febTransduction/phenomena_application_or.py b/tenet/febTransduction/phenomena_application_or.py new file mode 100644 index 0000000000000000000000000000000000000000..0cf2eca4990030e62f12d067c478ae6468d3c390 --- /dev/null +++ b/tenet/febTransduction/phenomena_application_or.py @@ -0,0 +1,114 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: AMR CTR at 'Net Expansion' level +#------------------------------------------------------------------------------ +# Module grouping compositional transduction rule_sets (CTR) for the analysis +# of AMR structures, at 'Net Expansion' level +#============================================================================== + +if __name__ == '__main__': + import os, sys + LIB_PATH = f'{os.path.dirname(os.path.abspath(__file__))}/../../..' + sys.path.insert(0, os.path.abspath(LIB_PATH)) + print(sys.path[0]) + + +#============================================================================== +# Rule to analyze conjunction phenomena +#============================================================================== + +def analyze_phenomena_or_1(graph): + + rule_label = '"or" phenomena analysis 1 (targetting class)' + print(f"--- *** February Transduction *** Sequence: {rule_label}") + #logger.info(f"--- *** February Transduction *** Sequence: {rule_label}") + + # -- Net Instanciation + property_net = net.PropertyNet(graph) + class_net_0 = net.ClassNet(graph) + phenomena_net = net.PhenomenaNet(graph) + composite_class_net = net.CompositeClassNet(graph) + + # -- Rule Initialization + pattern = transduction.Pattern(class_net_0, property_net, phenomena_net) + pattern.add_identification_pattern(phenomena_net, phenomena_type='amr:phenomena_conjunction_or') + pattern.add_composition_pattern(property_net, 'amr:role_ARG0', class_net_0) + pattern.add_composition_pattern(property_net, 'amr:role_ARG1', phenomena_net) + pattern.apply(graph) # ou class_net_0, property_net, phenomena_net = pattern.apply(graph) + + # -- Net Composition + composite_class_net.compose(class_net_0, property_net, phenomena_net) + + # -- Data Computation + composite_class_net.mother_class = class_net_0 + # etc + + # -- Restriction Computation + # TODO + composite_class_net.restriction = restriction + + # -- Relation Propagation + for (n1, rel, _) in class_net_0.input_relation_list: + composite_class_net.add_input_relation(n1, rel) + # TODO: Ã voir si on veut d'autres relations + + # -- Finalization + composite_class_net.finalize() + new_triple_list = composite_class_net.generate_triple_definition() + + return rule_label, new_triple_list + + +def analyze_phenomena_or_2(): + + # -- Net Instanciation + property_net_0 = net.PropertyNet(0) + property_net_1 = net.PropertyNet(1) + phenomena_net = net.PhenomenaNet() + or_composite_class_net = net.OrCompositeClassNet() + + # -- Rule Initialization + rule = transduction.Rule('"or" phenomena analysis 2 (targetting property)', + or_composite_class_net) + + # -- Net Composition + rule.add_identification_pattern(phenomena_net, phenomena_type='amr:phenomena_conjunction_or') + rule.add_composition_pattern(property_net_1, 'amr:role_ARG0', property_net_0) + rule.add_composition_pattern(property_net_1, 'amr:role_ARG1', phenomena_net) + rule.compose(property_net_0, property_net_1, phenomena_net) + + # -- Data Computation + # rule.compute_data(mother_class_net=property_net_0.id) + + # -- Restriction Computation + # TODO + + # -- Relation Propagation + # TODO + + # -- Finalization + # TODO + + return rule + + + + +#============================================================================== +# Development Test +#============================================================================== + +if __name__ == '__main__': + + print('\n' + ' *** Development Test ***') + + print('\n -- Rule') + rule = analyze_phenomena_or_1() + + num = 0 + for query_label, query in rule.query_list: + num += 1 + print(f'*** query {num} - {query_label} ***\n{query}\n') + \ No newline at end of file diff --git a/tenet/febTransduction/query_builder.py b/tenet/febTransduction/query_builder.py new file mode 100644 index 0000000000000000000000000000000000000000..8b9b53ca29b69e04152b6983733f8ee0e61313a6 --- /dev/null +++ b/tenet/febTransduction/query_builder.py @@ -0,0 +1,120 @@ +#!/usr/bin/python3.10 +# -*-coding:Utf-8 -* + +#============================================================================== +# TENET: SPARQL Query Builder +#------------------------------------------------------------------------------ +# Class to define a Compositional Transduction Rule (CTR), namely a rule +# associating a semantic graph pattern and a semantic net constructor. +# Several methods are proposed to translate the rule into a sequence of SPARQL +# queries applicable to a semantic graph. +#============================================================================== + +# -- Useful Constant(s) +DEFAULT_ATTRIBUTE_VALUE = f'\"NA\"' +INDENT_STR = ' ' +SENTENCE_REF = '?sentenceRef' + + +#============================================================================== +# Method to generate construct query +#============================================================================== + +prefix_list = [('owl', '<http://www.w3.org/2002/07/owl#>'), + ('rdf', '<http://www.w3.org/1999/02/22-rdf-syntax-ns#>'), + ('rdfs', '<http://www.w3.org/2000/01/rdf-schema#>'), + ('xsd', '<http://www.w3.org/2001/XMLSchema#>'), + ('amr', '<https://amr.tetras-libre.fr/rdf/schema#>'), + ('ns1', '<http://amr.isi.edu/frames/ld/v1.2.2/>'), + ('ns2', '<http://amr.isi.edu/rdf/amr-terms#>'), + ('ns3', '<http://amr.isi.edu/rdf/core-amr#>'), + ('ns4', '<http://amr.isi.edu/entity-types#>'), + ('net', '<https://tenet.tetras-libre.fr/semantic-net#>'), + ('cprm', '<https://tenet.tetras-libre.fr/config/parameters#>'), + ('fprm', '<https://tenet.tetras-libre.fr/frame/parameters#>'), + ('base-out', '<https://tenet.tetras-libre.fr/base-ontology#>'), + ('ext-out', '<https://tenet.tetras-libre.fr/extract-result#>')] + + +def get_prefix_def(): + prefix_def = '' + for (ident, iri) in prefix_list: + prefix_def += f'PREFIX {ident}: {iri}\n' + return prefix_def + + +def generate_construct_query(construct_part, clause_part, binding_part=''): + + prefix = get_prefix_def() + + query_code = f'{prefix}' + query_code += f'\n CONSTRUCT {{ {construct_part} \n }}' + query_code += f'\n WHERE {{ {clause_part} \n {binding_part} \n }}' + + return query_code + + +def generate_select_query(select_data_list, clause_list): + + prefix = get_prefix_def() + + first = True + select_data_part = '' + for data in select_data_list: + if not first: select_data_part += ' ' + select_data_part += f'{data}' + first = False + + clause_part = '' + for clause in clause_list: + clause_part += f'\n {clause}' + + query_code = f'{prefix}' + query_code += f'\n SELECT {select_data_part}' + query_code += f'\n WHERE {{ {clause_part} \n }}' + + return query_code + + +def generate_insert_query(triple_list): + + prefix = get_prefix_def() + + data_part = '' + for triple in triple_list: + data_part += f'\n {triple}' + + query_code = f'{prefix}' + query_code += f'\n INSERT DATA {{ {data_part} \n }}' + + return query_code + + +#============================================================================== +# Development Test +#============================================================================== + +if __name__ == '__main__': + + print('\n' + ' *** Development Test ***') + + print('\n -- Generate SPARQL construct query') + query = generate_construct_query('construct', 'identify', 'BIND') + print(query) + + print('\n -- Generate SPARQL select query') + select_data_list = ['net1', 'net2', 'net3'] + clause_list = ['net1 a net:ClassNet.', + 'net2 a net:PropertyNet.', + 'net3 a net:ClassNet.'] + query = generate_select_query(select_data_list, clause_list) + print(query) + + print('\n -- Generate SPARQL insert query') + triple_list = ['net:net1 a net:ClassNet.', + 'net:net2 a net:PropertyNet.', + 'net:net3 a net:ClassNet.'] + query = generate_insert_query(triple_list) + print(query) + + print('\n' + ' *** - ***') \ No newline at end of file diff --git a/tenet/tenet.log b/tenet/tenet.log index 4358827461d7f33d6c98cc2db24fcd4502b11e85..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 100644 --- a/tenet/tenet.log +++ b/tenet/tenet.log @@ -1,234 +0,0 @@ -- INFO - [TENET] Extraction Processing -- INFO - - === Process Initialization === -- INFO - -- Process Setting -- INFO - ----- Corpus source: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/solar-system-1/ (amr) -- INFO - ----- Base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230202/SolarSystemDev1_factoid.ttl -- INFO - ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230202/technical-data/ -- INFO - ----- Ontology target (id): SolarSystemDev1 -- 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: SolarSystemDev1 - ----- source corpus: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/solar-system-1/ - ----- target reference: base - ----- process level: sentence - ----- source type: amr - -- Compositional Transduction Scheme (CTS) - ----- CTS reference: amr_scheme_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/SolarSystemDev1-20230202/SolarSystemDev1_factoid.ttl - ----- output directory: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230202/SolarSystemDev1_factoid.ttlSolarSystemDev1-20230202/ - ----- sentence output directory: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230202/technical-data/ - ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230202/technical-data/ - -- Config File Definition - ----- schema file: ./structure/amr-rdf-schema.ttl - ----- semantic net file: ./structure/semantic-net.ttl - ----- config param file: ./structure/config-parameters.ttl - ----- base ontology file: ./structure/base-ontology.ttl - ----- CTS file: ./scheme/amr_scheme_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/solar-system-1/**/*.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/SolarSystemDev1-20230202/technical-data/SolarSystemDev1.ttl - *** - *** -- DEBUG - -- Counting number of graph files (sentences) -- DEBUG - ----- Graph count: 1 -- INFO - - === Extraction Processing === -- INFO - *** sentence 1 *** -- INFO - -- Work Structure Preparation -- DEBUG - --- Graph Initialization -- DEBUG - ----- Configuration Loading -- DEBUG - -------- RDF Schema (302) -- DEBUG - -------- Semantic Net Definition (509) -- DEBUG - -------- Config Parameter Definition (543) -- DEBUG - ----- Frame Ontology Loading -- DEBUG - -------- Base Ontology produced as output (573) -- DEBUG - --- Source Data Import -- DEBUG - ----- Sentence Loading -- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/solar-system-1/SSC-01-01.stog.amr.ttl (621) -- DEBUG - --- Export work graph as turtle -- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230202/technical-data/SolarSystemDev1-1/SolarSystemDev1.ttl -- INFO - ----- Sentence (id): SSC-01-01 -- INFO - ----- Sentence (text): The Solar System is the gravitationally bound system of the Sun and the objects that orbit it, either directly or indirectly. -- INFO - -- Loading Extraction Scheme (amr_scheme_1) -- DEBUG - ----- Step number: 3 -- INFO - -- Loading Extraction Rules (amr_rule/*) -- DEBUG - ----- Total rule number: 87 -- INFO - -- Applying extraction step: preprocessing -- INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence -- INFO - ----- fix-amr-bug-about-system-solar-planet: 5/5 new triples (626, 0:00:00.061875) -- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence -- INFO - ----- reclassify-concept-1: 10/10 new triples (636, 0:00:00.159759) -- DEBUG - ----- reclassify-concept-2: 0/0 new triple (636, 0:00:00.087548) -- INFO - ----- reclassify-concept-3: 12/12 new triples (648, 0:00:00.059360) -- INFO - ----- reclassify-concept-4: 16/16 new triples (664, 0:00:00.083676) -- INFO - ----- reclassify-concept-5: 2/4 new triples (666, 0:00:00.060560) -- INFO - ----- reify-roles-as-concept: 10/10 new triples (676, 0:00:00.068121) -- INFO - ----- reclassify-existing-variable: 45/45 new triples (721, 0:00:00.044178) -- INFO - ----- add-new-variable-for-reified-concept: 8/8 new triples (729, 0:00:00.075752) -- INFO - ----- add-amr-leaf-for-reclassified-concept: 33/33 new triples (762, 0:00:00.069700) -- INFO - ----- add-amr-leaf-for-reified-concept: 8/8 new triples (770, 0:00:00.042863) -- INFO - ----- add-amr-edge-for-core-relation: 27/27 new triples (797, 0:00:00.184305) -- INFO - ----- add-amr-edge-for-reified-concept: 12/12 new triples (809, 0:00:00.187072) -- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (814, 0:00:00.098260) -- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (814, 0:00:00.099049) -- INFO - ----- add-amr-edge-for-polarity-relation: 5/5 new triples (819, 0:00:00.100185) -- INFO - ----- update-amr-edge-role-1: 15/15 new triples (834, 0:00:00.121480) -- INFO - ----- add-amr-root: 5/5 new triples (839, 0:00:00.035884) -- DEBUG - --- Serializing graph to SolarSystemDev1_preprocessing -- DEBUG - ----- step: preprocessing -- DEBUG - ----- id: SolarSystemDev1 -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230202/technical-data/SolarSystemDev1-1/SolarSystemDev1_preprocessing.ttl -- DEBUG - ----- base: http://SolarSystemDev1/preprocessing -- INFO - ----- 218 triples extracted during preprocessing step -- INFO - -- Applying extraction step: transduction -- INFO - --- *** November Transduction *** Sequence: atomic-extraction-sequence -- INFO - ----- create-atom-class-net: 35/35 new triples (874, 0:00:00.094645) -- DEBUG - ----- (refinement) refine-cover-node-1: 5 new triples (879) -- DEBUG - ----- (refinement) refine-cover-node-2: 5 new triples (884) -- INFO - ----- create-individual-net-1: 10/10 new triples (894, 0:00:00.121319) -- DEBUG - ----- (refinement) refine-cover-node-1: 1 new triples (895) -- INFO - ----- create-atom-property-net-1: 88/88 new triples (983, 0:00:00.188037) -- DEBUG - ----- (refinement) refine-cover-node-1: 6 new triples (989) -- INFO - ----- create-value-net: 17/17 new triples (1006, 0:00:00.066116) -- INFO - ----- create-phenomena-net-1: 24/25 new triples (1030, 0:00:00.090523) -- DEBUG - ----- (refinement) refine-cover-node-1: 2 new triples (1032) -- INFO - --- *** November Transduction *** Sequence: atomic-extraction-sequence -- INFO - ----- create-atom-class-net: 1/49 new triple (1033, 0:00:00.098275) -- DEBUG - ----- create-individual-net-1: 0/10 new triple (1033, 0:00:00.071779) -- INFO - ----- create-atom-property-net-1: 1/95 new triple (1034, 0:00:00.198957) -- DEBUG - ----- create-value-net: 0/17 new triple (1034, 0:00:00.062734) -- DEBUG - ----- create-phenomena-net-1: 0/25 new triple (1034, 0:00:00.073822) -- INFO - --- *** November Transduction *** Sequence: phenomena-application-polarity-sequence -- INFO - ----- polarity-phenomena-application: 8/9 new triples (1042, 0:00:00.151345) -- DEBUG - ----- (refinement) refine-cover-node-1: 1 new triples (1043) -- INFO - --- *** November Transduction *** Sequence: phenomena-application-mod-sequence -- DEBUG - ----- mod-phenomena-application-1: 0/0 new triple (1043, 0:00:00.100039) -- DEBUG - ----- mod-phenomena-application-2: 0/0 new triple (1043, 0:00:00.045232) -- DEBUG - ----- mod-phenomena-application-3: 0/0 new triple (1043, 0:00:00.099572) -- INFO - --- *** November Transduction *** Sequence: phenomena-application-and-sequence -- INFO - ----- and-conjunction-phenomena-application-1: 14/17 new triples (1057, 0:00:00.216425) -- DEBUG - ----- (refinement) refine-cover-node-1: 1 new triples (1058) -- INFO - ----- and-conjunction-phenomena-application-2: 1/1 new triple (1059, 0:00:00.184628) -- INFO - ----- and-conjunction-phenomena-application-3: 14/14 new triples (1073, 0:00:00.160059) -- INFO - ----- and-conjunction-phenomena-application-4: 14/14 new triples (1087, 0:00:00.167907) -- DEBUG - ----- (refinement) refine-cover-node-2: 1 new triples (1088) -- INFO - ----- and-conjunction-phenomena-application-5: 6/9 new triples (1094, 0:00:00.075913) -- INFO - ----- and-conjunction-phenomena-application-6: 2/2 new triples (1096, 0:00:00.231079) -- INFO - --- *** January Transduction *** Sequence: "or" phenomena analysis 1 (targetting class) -- DEBUG - ----- new net construction: 0/0 new triple (1096, 0:00:00.117536) -- INFO - --- *** January Transduction *** Sequence: "or" phenomena analysis 2 (targetting property) -- INFO - ----- new net construction: 9/9 new triples (1105, 0:00:00.105351) -- INFO - --- *** November Transduction *** Sequence: phenomena-checking-sequence -- INFO - ----- expand-and-conjunction-phenomena-net: 8/8 new triples (1113, 0:00:00.026123) -- DEBUG - ----- (refinement) refine-cover-node-2: 1 new triples (1114) -- DEBUG - ----- expand-degree-phenomena-net-1: 0/0 new triple (1114, 0:00:00.018200) -- DEBUG - ----- expand-degree-phenomena-net-2: 0/0 new triple (1114, 0:00:00.018200) -- DEBUG - ----- expand-degree-phenomena-net-3: 0/0 new triple (1114, 0:00:00.018742) -- DEBUG - ----- expand-degree-phenomena-net-4: 0/0 new triple (1114, 0:00:00.018266) -- DEBUG - ----- expand-degree-phenomena-net-5: 0/0 new triple (1114, 0:00:00.010691) -- DEBUG - ----- expand-degree-phenomena-net-6: 0/0 new triple (1114, 0:00:00.010776) -- INFO - --- *** November Transduction *** Sequence: composite-property-extraction-sequence -- DEBUG - ----- create-composite-class-net-from-property-1: 0/0 new triple (1114, 0:00:00.117036) -- DEBUG - ----- create-composite-class-net-from-property-2: 0/0 new triple (1114, 0:00:00.240395) -- INFO - --- *** November Transduction *** Sequence: composite-class-extraction-sequence-1 -- INFO - ----- create-composite-class-net-from-property-1: 48/54 new triples (1162, 0:00:00.775202) -- DEBUG - ----- (refinement) refine-cover-node-1: 7 new triples (1169) -- DEBUG - ----- (refinement) refine-cover-node-2: 3 new triples (1172) -- DEBUG - ----- create-composite-class-net-from-property-2: 0/0 new triple (1172, 0:00:00.186025) -- INFO - ----- create-composite-class-net-from-property-3: 50/57 new triples (1222, 0:00:00.586991) -- INFO - --- *** November Transduction *** Sequence: composite-class-extraction-sequence-2 -- DEBUG - ----- create-composite-class-net-from-phenomena-1: 0/0 new triple (1222, 0:00:00.044763) -- DEBUG - ----- create-composite-class-net-from-phenomena-2: 0/0 new triple (1222, 0:00:00.047220) -- DEBUG - ----- create-composite-class-net-from-phenomena-3: 0/0 new triple (1222, 0:00:00.048970) -- DEBUG - ----- create-composite-class-net-from-phenomena-4: 0/0 new triple (1222, 0:00:00.061311) -- INFO - --- *** November Transduction *** Sequence: restriction-adding-sequence -- DEBUG - ----- add-restriction-to-class-net-from-property-1: 0/0 new triple (1222, 0:00:00.056377) -- INFO - --- *** November Transduction *** Sequence: classification-sequence -- INFO - ----- classify-net-from-core-1: 8/8 new triples (1230, 0:00:00.010373) -- INFO - ----- classify-net-from-core-2: 1/7 new triple (1231, 0:00:00.009624) -- DEBUG - ----- classify-net-from-core-3: 0/0 new triple (1231, 0:00:00.045449) -- DEBUG - ----- classify-net-from-part: 0/0 new triple (1231, 0:00:00.010059) -- INFO - ----- classify-net-from-domain: 9/9 new triples (1240, 0:00:00.009799) -- DEBUG - ----- classify-net-from-degree-phenomena-1: 0/0 new triple (1240, 0:00:00.016126) -- DEBUG - ----- classify-net-from-degree-phenomena-2: 0/0 new triple (1240, 0:00:00.048191) -- DEBUG - ----- classify-net-from-degree-phenomena-3: 0/0 new triple (1240, 0:00:00.011628) -- INFO - ----- propagate-individual-1: 1/1 new triple (1241, 0:00:00.008028) -- INFO - ----- propagate-individual-2: 5/5 new triples (1246, 0:00:00.008732) -- DEBUG - ----- reclassify-deprecated-net: 0/0 new triple (1246, 0:00:00.006958) -- DEBUG - --- Serializing graph to SolarSystemDev1_transduction -- DEBUG - ----- step: transduction -- DEBUG - ----- id: SolarSystemDev1 -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230202/technical-data/SolarSystemDev1-1/SolarSystemDev1_transduction.ttl -- DEBUG - ----- base: http://SolarSystemDev1/transduction -- INFO - ----- 407 triples extracted during transduction step -- INFO - -- Applying extraction step: generation -- INFO - --- *** November Transduction *** Sequence: main-generation-sequence -- INFO - ----- compute-uri-for-owl-declaration-1: 8/8 new triples (1254, 0:00:00.029926) -- INFO - ----- compute-uri-for-owl-declaration-2: 1/4 new triple (1255, 0:00:00.027398) -- INFO - ----- compute-uri-for-owl-declaration-3: 1/1 new triple (1256, 0:00:00.029405) -- DEBUG - ----- compute-uri-for-owl-declaration-4: 0/0 new triple (1256, 0:00:00.027252) -- INFO - ----- compute-uri-for-owl-declaration-5: 6/6 new triples (1262, 0:00:00.050396) -- INFO - ----- compute-uri-for-owl-declaration-6: 5/5 new triples (1267, 0:00:00.023763) -- INFO - ----- generate-atom-class: 12/12 new triples (1279, 0:00:00.011694) -- INFO - ----- classify-atom-class-1: 4/4 new triples (1283, 0:00:00.011161) -- DEBUG - ----- classify-atom-class-2: 0/0 new triple (1283, 0:00:00.015300) -- INFO - ----- generate-individual: 3/3 new triples (1286, 0:00:00.008690) -- DEBUG - ----- classify-individual-1: 0/0 new triple (1286, 0:00:00.007348) -- INFO - ----- classify-individual-2: 4/4 new triples (1290, 0:00:00.010528) -- INFO - ----- generate-atom-property-1: 16/16 new triples (1306, 0:00:00.010173) -- INFO - ----- generate-atom-property-12: 8/16 new triples (1314, 0:00:00.009924) -- DEBUG - ----- generate-inverse-relation: 0/0 new triple (1314, 0:00:00.008950) -- INFO - ----- generate-composite-class: 18/18 new triples (1332, 0:00:00.010623) -- DEBUG - ----- add-restriction-to-class-1: 0/0 new triple (1332, 0:00:00.018832) -- DEBUG - ----- add-restriction-to-class-2: 0/0 new triple (1332, 0:00:00.011936) -- INFO - ----- add-restriction-to-class-3: 20/24 new triples (1352, 0:00:00.026135) -- DEBUG - ----- add-restriction-to-class-4: 0/0 new triple (1352, 0:00:00.016401) -- DEBUG - ----- add-restriction-to-class-5: 0/0 new triple (1352, 0:00:00.017928) -- DEBUG - ----- add-restriction-to-class-6: 0/0 new triple (1352, 0:00:00.016283) -- DEBUG - ----- generate-composite-property: 0/0 new triple (1352, 0:00:00.015632) -- DEBUG - --- Serializing graph to SolarSystemDev1_generation -- DEBUG - ----- step: generation -- DEBUG - ----- id: SolarSystemDev1 -- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230202/technical-data/SolarSystemDev1-1/SolarSystemDev1_generation.ttl -- DEBUG - ----- base: http://SolarSystemDev1/generation -- INFO - ----- 106 triples extracted during generation step -- INFO - -- Result: file containing only the factoids -- DEBUG - --- Making factoid graph with the last step result -- DEBUG - ----- Number of factoids: 121 -- DEBUG - ----- Graph base: http://SolarSystemDev1/factoid -- DEBUG - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230202/technical-data/SolarSystemDev1-1/SolarSystemDev1_factoid.ttl) -- INFO - - === Final Ontology Generation === -- INFO - -- Making complete factoid graph by merging the result factoids -- INFO - ----- Total factoid number: 121 -- INFO - -- Serializing graph to factoid string -- INFO - ----- Graph base: http://SolarSystemDev1/factoid -- INFO - -- Serializing graph to factoid file -- INFO - ----- Ontology Turtle File: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230202/SolarSystemDev1_factoid.ttl -- INFO - - === Done === -- INFO - - *** Execution Time *** ------ Function: create_ontology_from_amrld_dir (main) ------ Total Time: 0:00:09.461444 ------ Process Time: 0:00:09.304841 - *** - *** diff --git a/tests/input/testGraph1.ttl b/tests/input/testGraph1.ttl new file mode 100644 index 0000000000000000000000000000000000000000..e3e9047279530f11f09db6bc9a4c651e2e4d2b6e --- /dev/null +++ b/tests/input/testGraph1.ttl @@ -0,0 +1,1572 @@ +@base <http://SolarSystemDev1/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/amr-terms#> . +@prefix ns21: <http://amr.isi.edu/rdf/core-amr#> . +@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, + owl:Class ; + rdfs:label "AMR-Concept" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:Role a rdfs:Class, + owl:Class ; + rdfs:label "AMR-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/test-1#root01> ns21:hasID "test-1" ; + ns21:hasSentence "The sun is a star." ; + ns21:root <http://amr.isi.edu/amr_data/test-1#s> . + +<http://amr.isi.edu/amr_data/test-2#root01> ns21:hasID "test-2" ; + ns21:hasSentence "Earth is a planet." ; + ns21:root <http://amr.isi.edu/amr_data/test-2#p> . + +ns3:bind-01.ARG0 a ns3:FrameRole . + +ns3:bind-01.ARG1 a ns3:FrameRole . + +ns3:orbit-01.ARG0 a ns3:FrameRole . + +ns3:orbit-01.ARG1 a ns3:FrameRole . + +ns11:domain a ns21:Role, + owl:AnnotationProperty, + owl:NamedIndividual . + +ns11:op1 a ns21:Role . + +ns11:op2 a ns21:Role . + +ns21:hasID a owl:AnnotationProperty . + +ns21:hasSentence a owl:AnnotationProperty . + +ns21:root a owl:AnnotationProperty . + +<https://amr.tetras-libre.fr/rdf/schema> a owl:Ontology ; + owl:versionIRI :0.1 . + +:AMR_DataProperty a owl:DatatypeProperty . + +:AMR_Prep_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:edge_a_op1_s2 a :AMR_Edge ; + :hasAmrRole :role_op1 ; + :hasRoleID "op1" . + +:edge_a_op2_o a :AMR_Edge ; + :hasAmrRole :role_op2 ; + :hasRoleID "op2" . + +:edge_b_ARG0_g a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_b_ARG1_s a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_d2_polarity_negative a :AMR_Edge ; + :hasAmrRole :role_polarity ; + :hasRoleID "polarity" . + +:edge_m9_ARG0_o2 a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_m9_ARG1_o3 a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_o2_ARG0_o a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_o2_ARG1_s2 a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_o3_op1_d a :AMR_Edge ; + :hasAmrRole :role_op1 ; + :hasRoleID "op1" . + +:edge_o3_op2_d2 a :AMR_Edge ; + :hasAmrRole :role_op2 ; + :hasRoleID "op2" . + +:edge_p9_ARG0_s a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_p9_ARG1_a a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_p_name_SolarSystem a :AMR_Edge ; + :hasAmrRole :role_name ; + :hasRoleID "name" . + +:edge_s_domain_p a :AMR_Edge ; + :hasAmrRole :role_domain ; + :hasRoleID "domain" . + +: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_degree a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "have-degree-91" ; + :label "degree" . + +:relation_domain a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "domain" . + +:relation_manner a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasManner" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "manner" . + +:relation_mod a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "mod" . + +:relation_name a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "name" . + +:relation_part a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasPart" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "part" . + +:relation_polarity a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "polarity" . + +:relation_quant a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "quant" . + +:role_ARG2 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG2" . + +:role_ARG3 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG3" . + +:role_ARG4 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG4" . + +:role_ARG5 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG5" . + +:role_ARG6 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG6" . + +:role_ARG7 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG7" . + +:role_ARG8 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG8" . + +:role_ARG9 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG9" . + +:role_have-degree-91 a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :getPropertyType <net:specificProperty> . + +:role_manner a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "manner" ; + :getPropertyType owl:DataProperty ; + :label "manner" ; + :toReifyAsConcept "manner" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_mod a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasFeature"^^xsd:string ; + :getPropertyType rdfs:subClassOf, + owl:ObjectProperty ; + :label "mod" ; + :toReifyAsConcept "mod" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_op3 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op3" . + +:role_op4 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op4" . + +:role_op5 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op5" . + +:role_op6 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op6" . + +:role_op7 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op7" . + +:role_op8 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op8" . + +:role_op9 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op9" . + +:role_part a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasPart"^^xsd:string ; + :getInversePropertyName "partOf"^^xsd:string ; + :getPropertyType owl:ObjectProperty ; + :toReifyAsConcept "part" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_quant a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "quant" . + +:root_SSC-01-01 a :AMR_Root ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#root01> ; + :hasRootLeaf :leaf_system_s ; + :hasSentenceID "SSC-01-01" ; + :hasSentenceStatement "The Solar System is the gravitationally bound system of the Sun and the objects that orbit it, either directly or indirectly." . + +: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:Instance a owl:Class ; + rdfs:label "Semantic Net Instance" ; + rdfs:subClassOf net:Net_Structure . + +net:Object a owl:Class ; + rdfs:label "Object using in semantic net instance" ; + rdfs:subClassOf net:Net_Structure . + +net:Property_Direction a owl:Class ; + rdfs:subClassOf net:Feature . + +net:abstractionClass a owl:AnnotationProperty ; + rdfs:label "abstraction class" ; + rdfs:subPropertyOf net:objectValue . + +net:atom a owl:Class ; + rdfs:label "atom" ; + rdfs:subClassOf net:Type . + +net:atomOf a owl:AnnotationProperty ; + rdfs:label "atom of" ; + rdfs:subPropertyOf net:typeProperty . + +net:atomType a owl:AnnotationProperty ; + rdfs:label "atom type" ; + rdfs:subPropertyOf net:objectType . + +net:class a owl:Class ; + rdfs:label "class" ; + rdfs:subClassOf net:Type . + +net:composite a owl:Class ; + rdfs:label "composite" ; + rdfs:subClassOf net:Type . + +net:conjunctive_list a owl:Class ; + rdfs:label "conjunctive-list" ; + rdfs:subClassOf net:list . + +net:disjunctive_list a owl:Class ; + rdfs:label "disjunctive-list" ; + rdfs:subClassOf net:list . + +net:entityClass a owl:AnnotationProperty ; + rdfs:label "entity class" ; + rdfs:subPropertyOf net:objectValue . + +net:entity_class_list a owl:Class ; + rdfs:label "entityClassList" ; + rdfs:subClassOf net:class_list . + +net:event a owl:Class ; + rdfs:label "event" ; + rdfs:subClassOf net:Type . + +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:relation a owl:Class ; + rdfs:label "relation" ; + rdfs:subClassOf net:Type . + +net:relationOf a owl:AnnotationProperty ; + rdfs:label "relation of" ; + rdfs:subPropertyOf net:typeProperty . + +net:state_property a owl:Class ; + rdfs:label "stateProperty" ; + rdfs:subClassOf net:Type . + +net:type a owl:AnnotationProperty ; + rdfs:label "type "@fr ; + rdfs:subPropertyOf net:netProperty . + +net:unary_list a owl:Class ; + rdfs:label "unary-list" ; + rdfs:subClassOf net:list . + +net:verbClass a owl:AnnotationProperty ; + rdfs:label "verb class" ; + rdfs:subPropertyOf net:objectValue . + +<http://amr.isi.edu/amr_data/SSC-01-01#b> a ns3:bind-01 ; + ns3:bind-01.ARG0 <http://amr.isi.edu/amr_data/SSC-01-01#g> ; + ns3:bind-01.ARG1 <http://amr.isi.edu/amr_data/SSC-01-01#s> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#o2> a ns3:orbit-01 ; + ns3:orbit-01.ARG0 <http://amr.isi.edu/amr_data/SSC-01-01#o> ; + ns3:orbit-01.ARG1 <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + ns11:manner <http://amr.isi.edu/amr_data/SSC-01-01#o3> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#root01> a ns21:AMR ; + ns21:has-id "SSC-01-01" ; + ns21:has-sentence "The Solar System is the gravitationally bound system of the Sun and the objects that orbit it, either directly or indirectly." ; + ns21:root <http://amr.isi.edu/amr_data/SSC-01-01#s> . + +<http://amr.isi.edu/amr_data/test-1#s> ns11:domain <http://amr.isi.edu/amr_data/test-1#s2> . + +<http://amr.isi.edu/amr_data/test-2#p> rdfs:label "Earth" . + +<http://amr.isi.edu/entity-types#planet> a ns21:NamedEntity ; + rdfs:comment "bug" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:AMR a owl:Class ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Root a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:concept_and rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns21:and ; + :hasPhenomenaLink :phenomena_conjunction_and ; + :label "and" . + +:concept_bind-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:bind-01 ; + :label "bind-01" . + +:concept_gravitation rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:gravitation ; + :label "gravitation" . + +:concept_manner rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:manner ; + :isReifiedConcept true ; + :label "hasManner" . + +:concept_object rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:object ; + :label "object" . + +:concept_or rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns21:or ; + :hasPhenomenaLink :phenomena_conjunction_or ; + :label "or" . + +:concept_orbit-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:orbit-01 ; + :label "orbit-01" . + +:concept_part rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:part ; + :isReifiedConcept true ; + :label "hasPart" . + +:concept_sun rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:sun ; + :label "sun" . + +:role_domain a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_NonCore_Role ; + :hasRelationName "domain" ; + :label "domain" ; + :toReifyAsConcept "domain" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +: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" . + +:value_SolarSystem a :AMR_Value ; + rdfs:label "Solar System" . + +:variable_a a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#a> ; + :label "a" . + +:variable_b a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#b> ; + :label "b" . + +:variable_d a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#d> ; + :label "d" . + +:variable_d2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#d2> ; + :label "d2" . + +:variable_g a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#g> ; + :label "g" . + +:variable_m9 a ns11:manner, + :AMR_Variable ; + :isReifiedVariable true ; + :label "m9" . + +:variable_o a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#o> ; + :label "o" . + +:variable_o2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#o2> ; + :label "o2" . + +:variable_o3 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#o3> ; + :label "o3" . + +:variable_p a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#p> ; + :label "p" ; + :name "Solar System" . + +:variable_p9 a ns11:part, + :AMR_Variable ; + :isReifiedVariable true ; + :label "p9" . + +:variable_s a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#s> ; + :label "s" . + +:variable_s2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + :label "s2" . + +sys:Degree a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Feature a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Out_AnnotationProperty a owl:AnnotationProperty . + +net:Composite_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Feature a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:Individual_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Logical_Set_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:atomProperty_bind_b a net:Atom_Property_Net ; + :role_ARG0 net:atomClass_gravitation_g, + net:compositeClass_gravitation-binding-system-hasPart-sun-and-object_g, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_ARG1 net:atomClass_system_s, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object-hasPart-object_s, + net:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s, + net:compositeClass_system-hasPart-sun-and-object_s ; + net:coverBaseNode :leaf_bind-01_b ; + net:coverNode :leaf_bind-01_b ; + net:hasNaming "bind" ; + net:hasPropertyName "bind" ; + net:hasPropertyName01 "binding" ; + net:hasPropertyName10 "bind-by" ; + net:hasPropertyName12 "bind-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :leaf_gravitation_g, + :leaf_system_s ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:atomProperty_hasManner_m9 a net:Atom_Property_Net ; + :role_ARG0 net:atomProperty_orbit_o2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_ARG1 net:atomProperty_direct_d, + net:atomProperty_direct_d2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeProperty_not-direct_d2, + net:phenomena_conjunction-OR_o3 ; + net:coverBaseNode :leaf_hasManner_m9 ; + net:coverNode :leaf_hasManner_m9 ; + net:hasNaming "hasManner" ; + net:hasPropertyName "hasManner" ; + net:hasPropertyName01 "hasManner" ; + net:hasPropertyName10 "hasManner" ; + net:hasPropertyName12 "hasManner" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :leaf_or_o3, + :leaf_orbit-01_o2 ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:class_list a owl:Class ; + rdfs:label "classList" ; + rdfs:subClassOf net:Type . + +net:compositeClass_gravitation-binding-system-hasPart-sun-and-object_g a net:Composite_Class_Net ; + net:coverBaseNode :leaf_gravitation_g ; + net:coverNode :leaf_and_a, + :leaf_bind-01_b, + :leaf_gravitation_g, + :leaf_hasPart_p9, + :leaf_system_s ; + net:coverNodeCount 5 ; + net:hasClassName "gravitation-binding-system-hasPart-sun-and-object" ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_gravitation_g ; + net:hasRestriction01 net:restriction_binding_system-hasPart-sun-and-object ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:has_value a owl:AnnotationProperty ; + rdfs:subPropertyOf net:netProperty . + +net:objectType a owl:AnnotationProperty ; + rdfs:label "object type" ; + rdfs:subPropertyOf net:objectProperty . + +net:phenomena_conjunction-AND_a a net:Phenomena_Net ; + :role_op1 net:atomClass_sun_s2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_op2 net:atomClass_object_o, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + 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-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:restriction_binding_system-hasPart-sun-and-object a net:Restriction_Net ; + net:coverBaseNode :leaf_gravitation_g ; + net:coverNode :leaf_and_a, + :leaf_bind-01_b, + :leaf_gravitation_g, + :leaf_hasPart_p9, + :leaf_system_s ; + net:coverTargetNode :leaf_and_a, + :leaf_bind-01_b, + :leaf_hasPart_p9, + :leaf_system_s ; + net:hasNaming "gravitation-binding-system-hasPart-sun-and-object" ; + net:hasRestrictionNetValue net:compositeClass_system-hasPart-sun-and-object_s ; + net:hasRestrictionOnProperty net:atomProperty_bind_b . + +net:value_negative_blankNode a net:Value_Net ; + net:hasNaming "negative" ; + net:hasStructure "SSC-01-01" ; + net:hasValueLabel "negative" ; + net:trackProgress net:initialized, + net:relation_propagated . + +<http://amr.isi.edu/amr_data/SSC-01-01#a> a ns21:and ; + ns11:op1 <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + ns11:op2 <http://amr.isi.edu/amr_data/SSC-01-01#o> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#d> a ns3:direct-02 ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#d2> a ns3:direct-02 ; + ns11:polarity "-" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#g> a ns11:gravitation ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#o3> a ns21:or ; + ns11:op1 <http://amr.isi.edu/amr_data/SSC-01-01#d> ; + ns11:op2 <http://amr.isi.edu/amr_data/SSC-01-01#d2> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#p> a <http://amr.isi.edu/entity-types#planet>, + <http://amr.isi.edu/entity-types#system> ; + rdfs:label "Solar System" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/entity-types#system> a ns21:NamedEntity ; + rdfs:label "system" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:bind-01 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:orbit-01 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:gravitation a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:manner a ns21:Role ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:object a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:part a ns21:Role ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:sun a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:system a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:NamedEntity a ns21:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-EntityType", + "AMR-Term" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:and a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:or a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Phenomena a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Relation_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Value a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:concept_direct-02 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:direct-02 ; + :label "direct-02" . + +:concept_system rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk <http://amr.isi.edu/entity-types#system>, + ns11:system ; + :label "system" . + +:hasLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:phenomena_conjunction a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "contrast-01", + "either", + "neither" ; + :label "conjunction" . + +:phenomena_conjunction_and a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "and" ; + :label "conjunction-AND" . + +:phenomena_conjunction_or a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "or" ; + :label "conjunction-OR" . + +: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_negative a :AMR_Value ; + rdfs:label "negative" . + +sys:Out_ObjectProperty a owl:ObjectProperty . + +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_gravitation_g a net:Atom_Class_Net ; + net:coverBaseNode :leaf_gravitation_g ; + net:coverNode :leaf_gravitation_g ; + net:coverNodeCount 1 ; + net:hasClassName "gravitation" ; + net:hasClassType sys:Entity ; + net:hasNaming "gravitation" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:logicalSet_and_a a net:Logical_Set_Net ; + :role_op1 net:atomClass_sun_s2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_op2 net:atomClass_object_o, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:bindPropertyNet net:atomProperty_hasPart_p9 ; + net:bindRestriction net:restriction_hasPart_object, + net:restriction_hasPart_sun ; + net:containsNet net:atomClass_object_o, + net:atomClass_sun_s2 ; + net:containsNet1 net:atomClass_sun_s2 ; + net:containsNet2 net:atomClass_object_o ; + net:coverBaseNode :leaf_and_a ; + net:coverNode :leaf_and_a ; + net:hasLogicalConstraint "AND" ; + net:hasNaming "hasPart-sun-and-object" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:objectProperty a owl:AnnotationProperty ; + rdfs:label "object attribute" . + +net:phenomena_conjunction-OR_o3 a net:Phenomena_Net ; + :role_op1 net:atomProperty_direct_d, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_op2 net:atomProperty_direct_d2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeProperty_not-direct_d2 ; + net:coverBaseNode :leaf_or_o3 ; + net:coverNode :leaf_or_o3 ; + net:hasNaming "conjunction-OR" ; + net:hasPhenomenaRef "or" ; + net:hasPhenomenaType :phenomena_conjunction_or ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:value_SolarSystem_blankNode a net:Value_Net ; + net:hasNaming "Solar System" ; + net:hasStructure "SSC-01-01" ; + net:hasValueLabel "Solar System" ; + net:trackProgress net:initialized, + net:relation_propagated . + +<http://amr.isi.edu/amr_data/SSC-01-01#o> a ns11:object ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#s> a ns11:system ; + ns11:domain <http://amr.isi.edu/amr_data/SSC-01-01#p> ; + ns11:part <http://amr.isi.edu/amr_data/SSC-01-01#a> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#s2> a ns11:sun ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:direct-02 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:Frame a ns21:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Frame" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Concept a owl:Class ; + rdfs:subClassOf :AMR_Element . + +: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_direct-02_d a :AMR_Leaf ; + :hasConcept :concept_direct-02 ; + :hasVariable :variable_d . + +:leaf_hasManner_m9 a :AMR_Leaf ; + :edge_m9_ARG0_o2 :leaf_orbit-01_o2 ; + :edge_m9_ARG1_o3 :leaf_or_o3 ; + :hasConcept :concept_manner ; + :hasVariable :variable_m9 ; + :isReifiedLeaf true . + +:toReify a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +net:Restriction_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:atomProperty_orbit_o2 a net:Atom_Property_Net, + net:Deprecated_Net ; + :role_ARG0 net:atomClass_object_o, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_ARG1 net:atomClass_sun_s2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + 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-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :leaf_object_o, + :leaf_sun_s2 ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:compositeClass_system-hasPart-sun-and-object-hasPart-object_s a net:Composite_Class_Net ; + :role_domain net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:individual_system_SolarSystem ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_object_o, + :leaf_system_s ; + net:coverNodeCount 4 ; + net:hasClassName "system-hasPart-sun-and-object-hasPart-object" ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object_s ; + net:hasRestriction01 net:restriction_hasPart_object ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s a net:Composite_Class_Net ; + :role_domain net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:individual_system_SolarSystem ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_sun_s2, + :leaf_system_s ; + net:coverNodeCount 4 ; + net:hasClassName "system-hasPart-sun-and-object-hasPart-sun" ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object_s ; + net:hasRestriction01 net:restriction_hasPart_sun ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:has_relation_value a owl:AnnotationProperty ; + rdfs:label "has relation value" ; + rdfs:subPropertyOf net:has_object . + +net:list a owl:Class ; + rdfs:label "list" ; + rdfs:subClassOf net:Type . + +net:restriction_hasPart_object a net:Restriction_Net ; + :role_domain net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_object_o, + :leaf_system_s ; + net:coverTargetNode :leaf_hasPart_p9, + :leaf_object_o ; + net:hasNaming "system-hasPart-sun-and-object-hasPart-object" ; + net:hasRestrictionNetValue net:atomClass_object_o ; + net:hasRestrictionOnProperty net:atomProperty_hasPart_p9 . + +net:restriction_hasPart_sun a net:Restriction_Net ; + :role_domain net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_sun_s2, + :leaf_system_s ; + net:coverTargetNode :leaf_hasPart_p9, + :leaf_sun_s2 ; + net:hasNaming "system-hasPart-sun-and-object-hasPart-sun" ; + net:hasRestrictionNetValue net:atomClass_sun_s2 ; + net:hasRestrictionOnProperty net:atomProperty_hasPart_p9 . + +ns3:FrameRole a ns21:Role, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Element a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +: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" . + +net:atomProperty_direct_d a net:Atom_Property_Net ; + 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-01-01" ; + net:isCoreRoleLinked true ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:atomProperty_direct_d2 a net:Atom_Property_Net ; + :role_polarity net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:value_negative_blankNode ; + net:coverBaseNode :leaf_direct-02_d2 ; + net:coverNode :leaf_direct-02_d2 ; + net:hasNaming "direct" ; + net:hasPropertyName "direct" ; + net:hasPropertyName01 "directing" ; + net:hasPropertyName10 "direct-by" ; + net:hasPropertyName12 "direct-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :value_negative ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:atomProperty_hasPart_p9 a net:Atom_Property_Net ; + :role_ARG0 net:atomClass_system_s, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object-hasPart-object_s, + net:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s, + net:compositeClass_system-hasPart-sun-and-object_s ; + :role_ARG1 net:atomClass_object_o, + net:atomClass_sun_s2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:logicalSet_and_a, + net:phenomena_conjunction-AND_a ; + net:coverBaseNode :leaf_hasPart_p9 ; + net:coverNode :leaf_hasPart_p9 ; + net:hasNaming "hasPart" ; + net:hasPropertyName "hasPart" ; + net:hasPropertyName01 "hasPart" ; + net:hasPropertyName10 "hasPart" ; + net:hasPropertyName12 "hasPart" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :leaf_and_a, + :leaf_system_s ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:compositeProperty_not-direct_d2 a net:Composite_Property_Net ; + :role_polarity net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:coverBaseNode :leaf_direct-02_d2 ; + net:coverNode :leaf_direct-02_d2 ; + net:hasNaming "not-direct" ; + net:hasPropertyName "not-direct" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:typeProperty a owl:AnnotationProperty ; + rdfs:label "type property" . + +:AMR_NonCore_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:AMR_Predicat_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Role a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:leaf_bind-01_b a :AMR_Leaf ; + :edge_b_ARG0_g :leaf_gravitation_g ; + :edge_b_ARG1_s :leaf_system_s ; + :hasConcept :concept_bind-01 ; + :hasVariable :variable_b . + +:leaf_direct-02_d2 a :AMR_Leaf ; + :edge_d2_polarity_negative :value_negative ; + :hasConcept :concept_direct-02 ; + :hasVariable :variable_d2 . + +:leaf_or_o3 a :AMR_Leaf ; + :edge_o3_op1_d :leaf_direct-02_d ; + :edge_o3_op2_d2 :leaf_direct-02_d2 ; + :hasConcept :concept_or ; + :hasVariable :variable_o3 . + +:leaf_orbit-01_o2 a :AMR_Leaf ; + :edge_o2_ARG0_o :leaf_object_o ; + :edge_o2_ARG1_s2 :leaf_sun_s2 ; + :hasConcept :concept_orbit-01 ; + :hasVariable :variable_o2 . + +:leaf_system_p a :AMR_Leaf ; + :edge_p_name_SolarSystem :value_SolarSystem ; + :hasConcept :concept_system ; + :hasVariable :variable_p . + +sys:Out_Structure a owl:Class ; + rdfs:label "Output Ontology Structure" . + +net:Atom_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:Composite_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:individual_system_SolarSystem a net:Individual_Net ; + :role_name net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:value_SolarSystem_blankNode ; + net:coverBaseNode :leaf_system_p ; + net:coverNode :leaf_system_p ; + net:hasIndividualLabel "Solar System" ; + net:hasMotherClassName net:atomClass_system_p ; + net:hasMotherClassNet net:atomClass_system_p, + net:atomClass_system_s, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object-hasPart-object_s, + net:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s, + net:compositeClass_system-hasPart-sun-and-object_s ; + net:hasNaming "system" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:netProperty a owl:AnnotationProperty ; + rdfs:label "netProperty" . + +:AMR_ObjectProperty a owl:ObjectProperty ; + rdfs:subPropertyOf owl:topObjectProperty . + +:AMR_Structure a owl:Class . + +cprm:configParamProperty a rdf:Property ; + rdfs:label "Config Parameter Property" . + +net:Atom_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Net_Structure a owl:Class ; + rdfs:label "Semantic Net Structure" ; + rdfs:comment "A semantic net captures a set of nodes, and associates this set with type(s) and value(s)." . + +net:atomClass_system_s a net:Atom_Class_Net, + net:Deprecated_Net ; + :role_domain net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:individual_system_SolarSystem ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_system_s ; + net:coverNodeCount 1 ; + net:hasClassName "system" ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:hasNaming "system" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:compositeClass_system-hasPart-sun-and-object_s a net:Composite_Class_Net ; + :role_domain net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:individual_system_SolarSystem ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_system_s ; + net:coverNodeCount 3 ; + net:hasClassName "system-hasPart-sun-and-object" ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_system_p, + net:atomClass_system_s, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:hasNaming "system-hasPart-sun-and-object" ; + net:hasRestriction01 net:restriction_hasPart_object, + net:restriction_hasPart_sun ; + net:hasStructure "SSC-01-01" ; + net:trackMainNetComposante net:atomClass_system_s ; + net:trackNetComposante net:atomClass_system_s, + net:atomProperty_hasPart_p9, + net:logicalSet_and_a ; + net:trackProgress net:initialized, + net:relation_propagated . + +rdf:Property a owl:Class . + +:AMR_Relation a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +net:Relation a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +:leaf_gravitation_g a :AMR_Leaf ; + :hasConcept :concept_gravitation ; + :hasVariable :variable_g . + +:leaf_object_o a :AMR_Leaf ; + :hasConcept :concept_object ; + :hasVariable :variable_o . + +:leaf_sun_s2 a :AMR_Leaf ; + :hasConcept :concept_sun ; + :hasVariable :variable_s2 . + +net:Net a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:Type a owl:Class ; + rdfs:label "Semantic Net Type" ; + rdfs:subClassOf net:Net_Structure . + +net:has_object a owl:AnnotationProperty ; + rdfs:label "relation" ; + rdfs:subPropertyOf net:netProperty . + +:AMR_Op_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +net:atomClass_object_o a net:Atom_Class_Net ; + net:coverBaseNode :leaf_object_o ; + net:coverNode :leaf_object_o ; + net:coverNodeCount 1 ; + net:hasClassName "object" ; + net:hasClassType sys:Entity ; + net:hasNaming "object" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:atomClass_sun_s2 a net:Atom_Class_Net ; + net:coverBaseNode :leaf_sun_s2 ; + net:coverNode :leaf_sun_s2 ; + net:coverNodeCount 1 ; + net:hasClassName "sun" ; + net:hasClassType sys:Entity ; + net:hasNaming "sun" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +:AMR_AnnotationProperty a owl:AnnotationProperty . + +:AMR_Core_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +sys:Entity a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +:leaf_hasPart_p9 a :AMR_Leaf ; + :edge_p9_ARG0_s :leaf_system_s ; + :edge_p9_ARG1_a :leaf_and_a ; + :hasConcept :concept_part ; + :hasVariable :variable_p9 ; + :isReifiedLeaf true . + +net:atomClass_system_p a net:Atom_Class_Net ; + :role_name net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:value_SolarSystem_blankNode ; + net:coverBaseNode :leaf_system_p ; + net:coverNode :leaf_system_p ; + net:coverNodeCount 1 ; + net:hasClassName "system" ; + net:hasNaming "system" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +:AMR_Variable a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:leaf_and_a a :AMR_Leaf ; + :edge_a_op1_s2 :leaf_sun_s2 ; + :edge_a_op2_o :leaf_object_o ; + :hasConcept :concept_and ; + :hasVariable :variable_a . + +:AMR_Leaf a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +net:objectValue a owl:AnnotationProperty ; + rdfs:label "valuations"@fr ; + rdfs:subPropertyOf net:objectProperty . + +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:leaf_system_s a :AMR_Leaf ; + :edge_s_domain_p :leaf_system_p ; + :hasConcept :concept_system ; + :hasVariable :variable_s . + +net:compositeClass_orbit-hasManner-conjunction-OR_o2 a net:Composite_Class_Net ; + :role_ARG0 net:atomClass_object_o ; + :role_ARG1 net:atomClass_sun_s2 ; + :role_domain net:atomClass_system_p, + net:individual_system_SolarSystem ; + :role_op1 net:atomClass_sun_s2, + net:atomProperty_direct_d ; + :role_op2 net:atomClass_object_o, + net:atomProperty_direct_d2, + net:compositeProperty_not-direct_d2 ; + net:coverNode :leaf_hasManner_m9, + :leaf_or_o3, + :leaf_orbit-01_o2 ; + net:coverNodeCount 3 ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_system_p ; + net:hasStructure "SSC-01-01" ; + net:trackMainNetComposante net:atomProperty_orbit_o2 ; + net:trackNetComposante net:atomProperty_direct_d, + net:atomProperty_direct_d2, + net:atomProperty_hasManner_m9, + net:atomProperty_orbit_o2, + net:compositeProperty_not-direct_d2, + net:phenomena_conjunction-OR_o3 ; + net:trackProgress net:relation_propagated . + +:AMR_Linked_Data a owl:Class . + +[] a owl:AllDisjointClasses ; + owl:members ( sys:Degree sys:Entity sys:Feature ) . + diff --git a/tests/output/SolarSystemDev1-20230203/SolarSystemDev1_factoid.ttl b/tests/output/SolarSystemDev1-20230203/SolarSystemDev1_factoid.ttl new file mode 100644 index 0000000000000000000000000000000000000000..615d4f02900622a6621408e72353caf4e73515bf --- /dev/null +++ b/tests/output/SolarSystemDev1-20230203/SolarSystemDev1_factoid.ttl @@ -0,0 +1,138 @@ +@base <http://SolarSystemDev1/factoid> . +@prefix ns1: <https://tenet.tetras-libre.fr/semantic-net#> . +@prefix ns2: <https://tenet.tetras-libre.fr/base-ontology#> . +@prefix owl: <http://www.w3.org/2002/07/owl#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . + +ns1:atomClass_gravitation_g ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#gravitation> . + +ns1:atomClass_object_o ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#object> . + +ns1:atomClass_sun_s2 ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#sun> . + +ns1:atomClass_system_p ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system> . + +ns1:atomClass_system_s ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system> . + +ns1:atomProperty_bind_b ns1:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#bind-of> ; + ns1:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#bind> . + +ns1:atomProperty_direct_d ns1:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#direct-of> ; + ns1:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#direct> . + +ns1:atomProperty_direct_d2 ns1:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#direct-of> ; + ns1:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#direct> . + +ns1:atomProperty_hasManner_m9 ns1:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#hasManner> ; + ns1:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#hasManner> . + +ns1:atomProperty_hasPart_p9 ns1:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + ns1:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#hasPart> . + +ns1:compositeClass_gravitation-binding-system-hasPart-sun-and-object_g ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#gravitation-binding-system-hasPart-sun-and-object> . + +ns1:compositeClass_system-hasPart-sun-and-object-hasPart-object_s ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-object> . + +ns1:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-sun> . + +ns1:compositeClass_system-hasPart-sun-and-object_s ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> . + +ns1:compositeProperty_not-direct_d2 ns1:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#not-direct> . + +ns1:individual_system_SolarSystem ns1:hasIndividualURI <https://tenet.tetras-libre.fr/extract-result#solar-system> . + +<https://tenet.tetras-libre.fr/extract-result#bind> a owl:ObjectProperty ; + rdfs:label "bind" ; + rdfs:subPropertyOf ns2:Out_ObjectProperty ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#gravitation-binding-system-hasPart-sun-and-object> a owl:Class ; + rdfs:label "gravitation-binding-system-hasPart-sun-and-object" ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#bind-of> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> ], + <https://tenet.tetras-libre.fr/extract-result#gravitation> ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#solar-system> a owl:individual, + <https://tenet.tetras-libre.fr/extract-result#system>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-object>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-sun> ; + rdfs:label "Solar System" ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#bind-of> a owl:ObjectProperty ; + rdfs:label "bind-of" ; + rdfs:subPropertyOf ns2:Out_ObjectProperty ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#direct> a owl:ObjectProperty ; + rdfs:label "direct" ; + rdfs:subPropertyOf ns2:Out_ObjectProperty ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#direct-of> a owl:ObjectProperty ; + rdfs:label "direct-of" ; + rdfs:subPropertyOf ns2:Out_ObjectProperty ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#gravitation> a owl:Class ; + rdfs:label "gravitation" ; + rdfs:subClassOf ns2:Entity ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#hasManner> a owl:ObjectProperty ; + rdfs:label "hasManner" ; + rdfs:subPropertyOf ns2:Out_ObjectProperty ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-object> a owl:Class ; + rdfs:label "system-hasPart-sun-and-object-hasPart-object" ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#object> ], + <https://tenet.tetras-libre.fr/extract-result#system>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-sun> a owl:Class ; + rdfs:label "system-hasPart-sun-and-object-hasPart-sun" ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#sun> ], + <https://tenet.tetras-libre.fr/extract-result#system>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#object> a owl:Class ; + rdfs:label "object" ; + rdfs:subClassOf ns2:Entity ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#sun> a owl:Class ; + rdfs:label "sun" ; + rdfs:subClassOf ns2:Entity ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> a owl:Class ; + rdfs:label "system-hasPart-sun-and-object" ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#sun> ], + [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#object> ], + <https://tenet.tetras-libre.fr/extract-result#system> ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#hasPart> a owl:ObjectProperty ; + rdfs:label "hasPart" ; + rdfs:subPropertyOf ns2:Out_ObjectProperty ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#system> a owl:Class ; + rdfs:label "system" ; + rdfs:subClassOf ns2:Entity ; + ns2:fromStructure "SSC-01-01" . + diff --git a/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1.ttl b/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1.ttl new file mode 100644 index 0000000000000000000000000000000000000000..61644d9335bbc7c990682746e8310af0d69013cc --- /dev/null +++ b/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1.ttl @@ -0,0 +1,865 @@ +@base <https://tenet.tetras-libre.fr/working/SolarSystemDev1> . +@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/amr-terms#> . +@prefix ns21: <http://amr.isi.edu/rdf/core-amr#> . +@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, + owl:Class ; + rdfs:label "AMR-Concept" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:Role a rdfs:Class, + owl:Class ; + rdfs:label "AMR-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#b> a ns3:bind-01 ; + ns3:bind-01.ARG0 <http://amr.isi.edu/amr_data/SSC-01-01#g> ; + ns3:bind-01.ARG1 <http://amr.isi.edu/amr_data/SSC-01-01#s> . + +<http://amr.isi.edu/amr_data/SSC-01-01#o2> a ns3:orbit-01 ; + ns3:orbit-01.ARG0 <http://amr.isi.edu/amr_data/SSC-01-01#o> ; + ns3:orbit-01.ARG1 <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + ns11:manner <http://amr.isi.edu/amr_data/SSC-01-01#o3> . + +<http://amr.isi.edu/amr_data/SSC-01-01#root01> a ns21:AMR ; + ns21:has-id "SSC-01-01" ; + ns21:has-sentence "The Solar System is the gravitationally bound system of the Sun and the objects that orbit it, either directly or indirectly." ; + ns21:root <http://amr.isi.edu/amr_data/SSC-01-01#s> . + +<http://amr.isi.edu/amr_data/test-1#root01> ns21:hasID "test-1" ; + ns21:hasSentence "The sun is a star." ; + ns21:root <http://amr.isi.edu/amr_data/test-1#s> . + +<http://amr.isi.edu/amr_data/test-2#root01> ns21:hasID "test-2" ; + ns21:hasSentence "Earth is a planet." ; + ns21:root <http://amr.isi.edu/amr_data/test-2#p> . + +ns3:bind-01.ARG0 a ns3:FrameRole . + +ns3:bind-01.ARG1 a ns3:FrameRole . + +ns3:orbit-01.ARG0 a ns3:FrameRole . + +ns3:orbit-01.ARG1 a ns3:FrameRole . + +ns11:domain a ns21:Role, + owl:AnnotationProperty, + owl:NamedIndividual . + +ns11:manner a ns21:Role . + +ns11:op1 a ns21:Role . + +ns11:op2 a ns21:Role . + +ns11:part a ns21:Role . + +ns21:hasID a owl:AnnotationProperty . + +ns21:hasSentence a owl:AnnotationProperty . + +ns21:root a owl:AnnotationProperty . + +<https://amr.tetras-libre.fr/rdf/schema> a owl:Ontology ; + owl:versionIRI :0.1 . + +:AMR_DataProperty a owl:DatatypeProperty . + +:AMR_Predicat_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Prep_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:AMR_Relation_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Root a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Value a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:AMR_Variable a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:fromAmrLkFramerole a owl:AnnotationProperty ; + rdfs:subPropertyOf :fromAmrLk . + +:fromAmrLkRole a owl:AnnotationProperty ; + rdfs:subPropertyOf :fromAmrLk . + +:fromAmrLkRoot a owl:AnnotationProperty ; + rdfs:subPropertyOf :fromAmrLk . + +:getDirectPropertyName a owl:AnnotationProperty ; + rdfs:subPropertyOf :getProperty . + +:getInversePropertyName a owl:AnnotationProperty ; + rdfs:subPropertyOf :getProperty . + +:getPropertyType a owl:AnnotationProperty ; + rdfs:subPropertyOf :getProperty . + +:hasConcept a owl:ObjectProperty ; + rdfs:domain :AMR_Leaf ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasConceptLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasLink . + +:hasEdgeLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasLink . + +:hasReification a owl:AnnotationProperty ; + rdfs:range xsd:boolean ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasReificationConcept a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasReificationDefinition . + +:hasReificationDomain a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasReificationDefinition . + +:hasReificationRange a owl:AnnotationProperty ; + rdfs:subPropertyOf :hasReificationDefinition . + +:hasRelationName a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasRoleID a owl:ObjectProperty ; + rdfs:domain :AMR_Edge ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasRoleTag a owl:ObjectProperty ; + rdfs:domain :AMR_Edge ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasRolesetID a owl:ObjectProperty ; + rdfs:domain :AMR_Edge ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasRootLeaf a owl:ObjectProperty ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:hasSentenceID a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasSentenceStatement a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:hasVariable a owl:ObjectProperty ; + rdfs:domain :AMR_Leaf ; + rdfs:subPropertyOf :AMR_ObjectProperty . + +:label a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:phenomena_conjunction_and a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "and" ; + :label "conjunction-AND" . + +:phenomena_conjunction_or a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "or" ; + :label "conjunction-OR" . + +:phenomena_degree a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "have-degree-91" ; + :label "degree" . + +: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_ARG0 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG0" . + +:role_ARG1 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG1" . + +:role_ARG2 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG2" . + +:role_ARG3 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG3" . + +:role_ARG4 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG4" . + +:role_ARG5 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG5" . + +:role_ARG6 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG6" . + +:role_ARG7 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG7" . + +:role_ARG8 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG8" . + +:role_ARG9 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG9" . + +:role_domain a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :hasRelationName "domain" ; + :label "domain" ; + :toReifyAsConcept "domain" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_have-degree-91 a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :getPropertyType <net:specificProperty> . + +:role_manner a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "manner" ; + :getPropertyType owl:DataProperty ; + :label "manner" ; + :toReifyAsConcept "manner" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_mod a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasFeature"^^xsd:string ; + :getPropertyType rdfs:subClassOf, + owl:ObjectProperty ; + :label "mod" ; + :toReifyAsConcept "mod" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_name a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :label "name" . + +:role_op1 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op1" . + +:role_op2 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op2" . + +:role_op3 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op3" . + +:role_op4 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op4" . + +:role_op5 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op5" . + +:role_op6 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op6" . + +:role_op7 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op7" . + +:role_op8 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op8" . + +:role_op9 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op9" . + +:role_part a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasPart"^^xsd:string ; + :getInversePropertyName "partOf"^^xsd:string ; + :getPropertyType owl:ObjectProperty ; + :toReifyAsConcept "part" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_polarity a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "polarity" . + +:role_quant a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "quant" . + +: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:Atom_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +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: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:Instance a owl:Class ; + rdfs:label "Semantic Net Instance" ; + rdfs:subClassOf net:Net_Structure . + +net:Logical_Set_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Object a owl:Class ; + rdfs:label "Object using in semantic net instance" ; + rdfs:subClassOf net:Net_Structure . + +net:Phenomena_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Property_Direction a owl:Class ; + rdfs:subClassOf net:Feature . + +net:Relation a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:Restriction_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Value_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:abstractionClass a owl:AnnotationProperty ; + rdfs:label "abstraction class" ; + rdfs:subPropertyOf net:objectValue . + +net:atom a owl:Class ; + rdfs:label "atom" ; + rdfs:subClassOf net:Type . + +net:atomOf a owl:AnnotationProperty ; + rdfs:label "atom of" ; + rdfs:subPropertyOf net:typeProperty . + +net:atomType a owl:AnnotationProperty ; + rdfs:label "atom type" ; + rdfs:subPropertyOf net:objectType . + +net:class a owl:Class ; + rdfs:label "class" ; + rdfs:subClassOf net:Type . + +net:composite a owl:Class ; + rdfs:label "composite" ; + rdfs:subClassOf net:Type . + +net:conjunctive_list a owl:Class ; + rdfs:label "conjunctive-list" ; + rdfs:subClassOf net:list . + +net:disjunctive_list a owl:Class ; + rdfs:label "disjunctive-list" ; + rdfs:subClassOf net:list . + +net:entityClass a owl:AnnotationProperty ; + rdfs:label "entity class" ; + rdfs:subPropertyOf net:objectValue . + +net:entity_class_list a owl:Class ; + rdfs:label "entityClassList" ; + rdfs:subClassOf net:class_list . + +net:event a owl:Class ; + rdfs:label "event" ; + rdfs:subClassOf net:Type . + +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:relation a owl:Class ; + rdfs:label "relation" ; + rdfs:subClassOf net:Type . + +net:relationOf a owl:AnnotationProperty ; + rdfs:label "relation of" ; + rdfs:subPropertyOf net:typeProperty . + +net:state_property a owl:Class ; + rdfs:label "stateProperty" ; + rdfs:subClassOf net:Type . + +net:type a owl:AnnotationProperty ; + rdfs:label "type "@fr ; + rdfs:subPropertyOf net:netProperty . + +net:unary_list a owl:Class ; + rdfs:label "unary-list" ; + rdfs:subClassOf net:list . + +net:verbClass a owl:AnnotationProperty ; + rdfs:label "verb class" ; + rdfs:subPropertyOf net:objectValue . + +<http://amr.isi.edu/amr_data/SSC-01-01#a> a ns21:and ; + ns11:op1 <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + ns11:op2 <http://amr.isi.edu/amr_data/SSC-01-01#o> . + +<http://amr.isi.edu/amr_data/SSC-01-01#d> a ns3:direct-02 . + +<http://amr.isi.edu/amr_data/SSC-01-01#d2> a ns3:direct-02 ; + ns11:polarity "-" . + +<http://amr.isi.edu/amr_data/SSC-01-01#g> a ns11:gravitation . + +<http://amr.isi.edu/amr_data/SSC-01-01#o3> a ns21:or ; + ns11:op1 <http://amr.isi.edu/amr_data/SSC-01-01#d> ; + ns11:op2 <http://amr.isi.edu/amr_data/SSC-01-01#d2> . + +<http://amr.isi.edu/amr_data/SSC-01-01#p> a <http://amr.isi.edu/entity-types#planet> ; + rdfs:label "Solar System" . + +<http://amr.isi.edu/amr_data/test-1#s> ns11:domain <http://amr.isi.edu/amr_data/test-1#s2> . + +<http://amr.isi.edu/amr_data/test-2#p> rdfs:label "Earth" . + +<http://amr.isi.edu/entity-types#planet> a ns21:NamedEntity . + +ns3:bind-01 a ns21:Frame . + +ns3:orbit-01 a ns21:Frame . + +ns11:gravitation a ns21:Concept . + +ns11:object a ns21:Concept . + +ns11:sun a ns21:Concept . + +ns11:system a ns21:Concept . + +ns21:AMR a owl:Class ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:NamedEntity a ns21:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-EntityType", + "AMR-Term" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:and a ns21:Concept . + +ns21:or a ns21:Concept . + +sys:Degree a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Entity a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Feature a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Out_AnnotationProperty a owl:AnnotationProperty . + +net:Feature a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:class_list a owl:Class ; + rdfs:label "classList" ; + rdfs:subClassOf net:Type . + +net:has_value a owl:AnnotationProperty ; + rdfs:subPropertyOf net:netProperty . + +net:objectType a owl:AnnotationProperty ; + rdfs:label "object type" ; + rdfs:subPropertyOf net:objectProperty . + +<http://amr.isi.edu/amr_data/SSC-01-01#o> a ns11:object . + +<http://amr.isi.edu/amr_data/SSC-01-01#s> a ns11:system ; + ns11:domain <http://amr.isi.edu/amr_data/SSC-01-01#p> ; + ns11:part <http://amr.isi.edu/amr_data/SSC-01-01#a> . + +<http://amr.isi.edu/amr_data/SSC-01-01#s2> a ns11:sun . + +ns3:direct-02 a ns21:Frame . + +:AMR_Leaf a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Phenomena a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:hasLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:phenomena_conjunction a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "contrast-01", + "either", + "neither" ; + :label "conjunction" . + +sys:Out_ObjectProperty a owl:ObjectProperty . + +net:Class_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Property_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:objectProperty a owl:AnnotationProperty ; + rdfs:label "object attribute" . + +ns21:Frame a ns21:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Frame" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Concept a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:AMR_Edge 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 . + +:toReify a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +net:has_relation_value a owl:AnnotationProperty ; + rdfs:label "has relation value" ; + rdfs:subPropertyOf net:has_object . + +net:list a owl:Class ; + rdfs:label "list" ; + rdfs:subClassOf net:Type . + +ns3:FrameRole a ns21:Role, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Element a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +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 . + +sys:Out_Structure a owl:Class ; + rdfs:label "Output Ontology Structure" . + +net:netProperty a owl:AnnotationProperty ; + rdfs:label "netProperty" . + +:AMR_Linked_Data a owl:Class . + +:AMR_ObjectProperty a owl:ObjectProperty ; + rdfs:subPropertyOf owl:topObjectProperty . + +:AMR_Structure a owl:Class . + +cprm:configParamProperty a rdf:Property ; + rdfs:label "Config Parameter Property" . + +net: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)." . + +rdf:Property a owl:Class . + +:AMR_Relation a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +net:Net a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:Type a owl:Class ; + rdfs:label "Semantic Net Type" ; + rdfs:subClassOf net:Net_Structure . + +net:has_object a owl:AnnotationProperty ; + rdfs:label "relation" ; + rdfs:subPropertyOf net:netProperty . + +:AMR_Op_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:AMR_AnnotationProperty a owl:AnnotationProperty . + +:AMR_Core_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +net:objectValue a owl:AnnotationProperty ; + rdfs:label "valuations"@fr ; + rdfs:subPropertyOf net:objectProperty . + +[] a owl:AllDisjointClasses ; + owl:members ( sys:Degree sys:Entity sys:Feature ) . + diff --git a/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_factoid.ttl b/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_factoid.ttl new file mode 100644 index 0000000000000000000000000000000000000000..615d4f02900622a6621408e72353caf4e73515bf --- /dev/null +++ b/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_factoid.ttl @@ -0,0 +1,138 @@ +@base <http://SolarSystemDev1/factoid> . +@prefix ns1: <https://tenet.tetras-libre.fr/semantic-net#> . +@prefix ns2: <https://tenet.tetras-libre.fr/base-ontology#> . +@prefix owl: <http://www.w3.org/2002/07/owl#> . +@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> . + +ns1:atomClass_gravitation_g ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#gravitation> . + +ns1:atomClass_object_o ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#object> . + +ns1:atomClass_sun_s2 ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#sun> . + +ns1:atomClass_system_p ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system> . + +ns1:atomClass_system_s ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system> . + +ns1:atomProperty_bind_b ns1:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#bind-of> ; + ns1:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#bind> . + +ns1:atomProperty_direct_d ns1:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#direct-of> ; + ns1:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#direct> . + +ns1:atomProperty_direct_d2 ns1:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#direct-of> ; + ns1:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#direct> . + +ns1:atomProperty_hasManner_m9 ns1:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#hasManner> ; + ns1:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#hasManner> . + +ns1:atomProperty_hasPart_p9 ns1:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + ns1:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#hasPart> . + +ns1:compositeClass_gravitation-binding-system-hasPart-sun-and-object_g ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#gravitation-binding-system-hasPart-sun-and-object> . + +ns1:compositeClass_system-hasPart-sun-and-object-hasPart-object_s ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-object> . + +ns1:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-sun> . + +ns1:compositeClass_system-hasPart-sun-and-object_s ns1:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> . + +ns1:compositeProperty_not-direct_d2 ns1:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#not-direct> . + +ns1:individual_system_SolarSystem ns1:hasIndividualURI <https://tenet.tetras-libre.fr/extract-result#solar-system> . + +<https://tenet.tetras-libre.fr/extract-result#bind> a owl:ObjectProperty ; + rdfs:label "bind" ; + rdfs:subPropertyOf ns2:Out_ObjectProperty ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#gravitation-binding-system-hasPart-sun-and-object> a owl:Class ; + rdfs:label "gravitation-binding-system-hasPart-sun-and-object" ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#bind-of> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> ], + <https://tenet.tetras-libre.fr/extract-result#gravitation> ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#solar-system> a owl:individual, + <https://tenet.tetras-libre.fr/extract-result#system>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-object>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-sun> ; + rdfs:label "Solar System" ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#bind-of> a owl:ObjectProperty ; + rdfs:label "bind-of" ; + rdfs:subPropertyOf ns2:Out_ObjectProperty ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#direct> a owl:ObjectProperty ; + rdfs:label "direct" ; + rdfs:subPropertyOf ns2:Out_ObjectProperty ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#direct-of> a owl:ObjectProperty ; + rdfs:label "direct-of" ; + rdfs:subPropertyOf ns2:Out_ObjectProperty ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#gravitation> a owl:Class ; + rdfs:label "gravitation" ; + rdfs:subClassOf ns2:Entity ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#hasManner> a owl:ObjectProperty ; + rdfs:label "hasManner" ; + rdfs:subPropertyOf ns2:Out_ObjectProperty ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-object> a owl:Class ; + rdfs:label "system-hasPart-sun-and-object-hasPart-object" ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#object> ], + <https://tenet.tetras-libre.fr/extract-result#system>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-sun> a owl:Class ; + rdfs:label "system-hasPart-sun-and-object-hasPart-sun" ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#sun> ], + <https://tenet.tetras-libre.fr/extract-result#system>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#object> a owl:Class ; + rdfs:label "object" ; + rdfs:subClassOf ns2:Entity ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#sun> a owl:Class ; + rdfs:label "sun" ; + rdfs:subClassOf ns2:Entity ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> a owl:Class ; + rdfs:label "system-hasPart-sun-and-object" ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#sun> ], + [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#object> ], + <https://tenet.tetras-libre.fr/extract-result#system> ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#hasPart> a owl:ObjectProperty ; + rdfs:label "hasPart" ; + rdfs:subPropertyOf ns2:Out_ObjectProperty ; + ns2:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#system> a owl:Class ; + rdfs:label "system" ; + rdfs:subClassOf ns2:Entity ; + ns2:fromStructure "SSC-01-01" . + diff --git a/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_generation.ttl b/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_generation.ttl new file mode 100644 index 0000000000000000000000000000000000000000..ce555c6eaa2f5cb50cd0716fd2198eae527842c6 --- /dev/null +++ b/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_generation.ttl @@ -0,0 +1,1688 @@ +@base <http://SolarSystemDev1/generation> . +@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/amr-terms#> . +@prefix ns21: <http://amr.isi.edu/rdf/core-amr#> . +@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, + owl:Class ; + rdfs:label "AMR-Concept" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:Role a rdfs:Class, + owl:Class ; + rdfs:label "AMR-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/test-1#root01> ns21:hasID "test-1" ; + ns21:hasSentence "The sun is a star." ; + ns21:root <http://amr.isi.edu/amr_data/test-1#s> . + +<http://amr.isi.edu/amr_data/test-2#root01> ns21:hasID "test-2" ; + ns21:hasSentence "Earth is a planet." ; + ns21:root <http://amr.isi.edu/amr_data/test-2#p> . + +ns3:bind-01.ARG0 a ns3:FrameRole . + +ns3:bind-01.ARG1 a ns3:FrameRole . + +ns3:orbit-01.ARG0 a ns3:FrameRole . + +ns3:orbit-01.ARG1 a ns3:FrameRole . + +ns11:domain a ns21:Role, + owl:AnnotationProperty, + owl:NamedIndividual . + +ns11:op1 a ns21:Role . + +ns11:op2 a ns21:Role . + +ns21:hasID a owl:AnnotationProperty . + +ns21:hasSentence a owl:AnnotationProperty . + +ns21:root a owl:AnnotationProperty . + +<https://amr.tetras-libre.fr/rdf/schema> a owl:Ontology ; + owl:versionIRI :0.1 . + +:AMR_DataProperty a owl:DatatypeProperty . + +:AMR_Prep_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:edge_a_op1_s2 a :AMR_Edge ; + :hasAmrRole :role_op1 ; + :hasRoleID "op1" . + +:edge_a_op2_o a :AMR_Edge ; + :hasAmrRole :role_op2 ; + :hasRoleID "op2" . + +:edge_b_ARG0_g a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_b_ARG1_s a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_d2_polarity_negative a :AMR_Edge ; + :hasAmrRole :role_polarity ; + :hasRoleID "polarity" . + +:edge_m9_ARG0_o2 a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_m9_ARG1_o3 a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_o2_ARG0_o a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_o2_ARG1_s2 a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_o3_op1_d a :AMR_Edge ; + :hasAmrRole :role_op1 ; + :hasRoleID "op1" . + +:edge_o3_op2_d2 a :AMR_Edge ; + :hasAmrRole :role_op2 ; + :hasRoleID "op2" . + +:edge_p9_ARG0_s a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_p9_ARG1_a a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_p_name_SolarSystem a :AMR_Edge ; + :hasAmrRole :role_name ; + :hasRoleID "name" . + +:edge_s_domain_p a :AMR_Edge ; + :hasAmrRole :role_domain ; + :hasRoleID "domain" . + +: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_degree a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "have-degree-91" ; + :label "degree" . + +:relation_domain a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "domain" . + +:relation_manner a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasManner" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "manner" . + +:relation_mod a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "mod" . + +:relation_name a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "name" . + +:relation_part a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasPart" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "part" . + +:relation_polarity a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "polarity" . + +:relation_quant a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "quant" . + +:role_ARG2 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG2" . + +:role_ARG3 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG3" . + +:role_ARG4 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG4" . + +:role_ARG5 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG5" . + +:role_ARG6 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG6" . + +:role_ARG7 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG7" . + +:role_ARG8 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG8" . + +:role_ARG9 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG9" . + +:role_have-degree-91 a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :getPropertyType <net:specificProperty> . + +:role_manner a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "manner" ; + :getPropertyType owl:DataProperty ; + :label "manner" ; + :toReifyAsConcept "manner" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_mod a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasFeature"^^xsd:string ; + :getPropertyType rdfs:subClassOf, + owl:ObjectProperty ; + :label "mod" ; + :toReifyAsConcept "mod" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_op3 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op3" . + +:role_op4 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op4" . + +:role_op5 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op5" . + +:role_op6 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op6" . + +:role_op7 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op7" . + +:role_op8 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op8" . + +:role_op9 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op9" . + +:role_part a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasPart"^^xsd:string ; + :getInversePropertyName "partOf"^^xsd:string ; + :getPropertyType owl:ObjectProperty ; + :toReifyAsConcept "part" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_quant a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "quant" . + +:root_SSC-01-01 a :AMR_Root ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#root01> ; + :hasRootLeaf :leaf_system_s ; + :hasSentenceID "SSC-01-01" ; + :hasSentenceStatement "The Solar System is the gravitationally bound system of the Sun and the objects that orbit it, either directly or indirectly." . + +: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:Instance a owl:Class ; + rdfs:label "Semantic Net Instance" ; + rdfs:subClassOf net:Net_Structure . + +net:Object a owl:Class ; + rdfs:label "Object using in semantic net instance" ; + rdfs:subClassOf net:Net_Structure . + +net:Property_Direction a owl:Class ; + rdfs:subClassOf net:Feature . + +net:abstractionClass a owl:AnnotationProperty ; + rdfs:label "abstraction class" ; + rdfs:subPropertyOf net:objectValue . + +net:atom a owl:Class ; + rdfs:label "atom" ; + rdfs:subClassOf net:Type . + +net:atomOf a owl:AnnotationProperty ; + rdfs:label "atom of" ; + rdfs:subPropertyOf net:typeProperty . + +net:atomType a owl:AnnotationProperty ; + rdfs:label "atom type" ; + rdfs:subPropertyOf net:objectType . + +net:class a owl:Class ; + rdfs:label "class" ; + rdfs:subClassOf net:Type . + +net:composite a owl:Class ; + rdfs:label "composite" ; + rdfs:subClassOf net:Type . + +net:conjunctive_list a owl:Class ; + rdfs:label "conjunctive-list" ; + rdfs:subClassOf net:list . + +net:disjunctive_list a owl:Class ; + rdfs:label "disjunctive-list" ; + rdfs:subClassOf net:list . + +net:entityClass a owl:AnnotationProperty ; + rdfs:label "entity class" ; + rdfs:subPropertyOf net:objectValue . + +net:entity_class_list a owl:Class ; + rdfs:label "entityClassList" ; + rdfs:subClassOf net:class_list . + +net:event a owl:Class ; + rdfs:label "event" ; + rdfs:subClassOf net:Type . + +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:relation a owl:Class ; + rdfs:label "relation" ; + rdfs:subClassOf net:Type . + +net:relationOf a owl:AnnotationProperty ; + rdfs:label "relation of" ; + rdfs:subPropertyOf net:typeProperty . + +net:state_property a owl:Class ; + rdfs:label "stateProperty" ; + rdfs:subClassOf net:Type . + +net:type a owl:AnnotationProperty ; + rdfs:label "type "@fr ; + rdfs:subPropertyOf net:netProperty . + +net:unary_list a owl:Class ; + rdfs:label "unary-list" ; + rdfs:subClassOf net:list . + +net:verbClass a owl:AnnotationProperty ; + rdfs:label "verb class" ; + rdfs:subPropertyOf net:objectValue . + +<http://amr.isi.edu/amr_data/SSC-01-01#b> a ns3:bind-01 ; + ns3:bind-01.ARG0 <http://amr.isi.edu/amr_data/SSC-01-01#g> ; + ns3:bind-01.ARG1 <http://amr.isi.edu/amr_data/SSC-01-01#s> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#o2> a ns3:orbit-01 ; + ns3:orbit-01.ARG0 <http://amr.isi.edu/amr_data/SSC-01-01#o> ; + ns3:orbit-01.ARG1 <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + ns11:manner <http://amr.isi.edu/amr_data/SSC-01-01#o3> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#root01> a ns21:AMR ; + ns21:has-id "SSC-01-01" ; + ns21:has-sentence "The Solar System is the gravitationally bound system of the Sun and the objects that orbit it, either directly or indirectly." ; + ns21:root <http://amr.isi.edu/amr_data/SSC-01-01#s> . + +<http://amr.isi.edu/amr_data/test-1#s> ns11:domain <http://amr.isi.edu/amr_data/test-1#s2> . + +<http://amr.isi.edu/amr_data/test-2#p> rdfs:label "Earth" . + +<http://amr.isi.edu/entity-types#planet> a ns21:NamedEntity ; + rdfs:comment "bug" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:AMR a owl:Class ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Root a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:concept_and rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns21:and ; + :hasPhenomenaLink :phenomena_conjunction_and ; + :label "and" . + +:concept_bind-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:bind-01 ; + :label "bind-01" . + +:concept_gravitation rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:gravitation ; + :label "gravitation" . + +:concept_manner rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:manner ; + :isReifiedConcept true ; + :label "hasManner" . + +:concept_object rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:object ; + :label "object" . + +:concept_or rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns21:or ; + :hasPhenomenaLink :phenomena_conjunction_or ; + :label "or" . + +:concept_orbit-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:orbit-01 ; + :label "orbit-01" . + +:concept_part rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:part ; + :isReifiedConcept true ; + :label "hasPart" . + +:concept_sun rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:sun ; + :label "sun" . + +:role_domain a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_NonCore_Role ; + :hasRelationName "domain" ; + :label "domain" ; + :toReifyAsConcept "domain" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +: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" . + +:value_SolarSystem a :AMR_Value ; + rdfs:label "Solar System" . + +:variable_a a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#a> ; + :label "a" . + +:variable_b a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#b> ; + :label "b" . + +:variable_d a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#d> ; + :label "d" . + +:variable_d2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#d2> ; + :label "d2" . + +:variable_g a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#g> ; + :label "g" . + +:variable_m9 a ns11:manner, + :AMR_Variable ; + :isReifiedVariable true ; + :label "m9" . + +:variable_o a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#o> ; + :label "o" . + +:variable_o2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#o2> ; + :label "o2" . + +:variable_o3 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#o3> ; + :label "o3" . + +:variable_p a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#p> ; + :label "p" ; + :name "Solar System" . + +:variable_p9 a ns11:part, + :AMR_Variable ; + :isReifiedVariable true ; + :label "p9" . + +:variable_s a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#s> ; + :label "s" . + +:variable_s2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + :label "s2" . + +sys:Degree a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Feature a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Out_AnnotationProperty a owl:AnnotationProperty . + +<https://tenet.tetras-libre.fr/extract-result#bind> a owl:ObjectProperty ; + rdfs:label "bind" ; + rdfs:subPropertyOf sys:Out_ObjectProperty ; + sys:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#gravitation-binding-system-hasPart-sun-and-object> a owl:Class ; + rdfs:label "gravitation-binding-system-hasPart-sun-and-object" ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#bind-of> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> ], + <https://tenet.tetras-libre.fr/extract-result#gravitation> ; + sys:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#solar-system> a owl:individual, + <https://tenet.tetras-libre.fr/extract-result#system>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-object>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-sun> ; + rdfs:label "Solar System" ; + sys:fromStructure "SSC-01-01" . + +net:Composite_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Feature a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:Individual_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Logical_Set_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:atomProperty_bind_b a net:Atom_Property_Net ; + :role_ARG0 net:atomClass_gravitation_g, + net:compositeClass_gravitation-binding-system-hasPart-sun-and-object_g, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_ARG1 net:atomClass_system_s, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object-hasPart-object_s, + net:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s, + net:compositeClass_system-hasPart-sun-and-object_s ; + net:coverBaseNode :leaf_bind-01_b ; + net:coverNode :leaf_bind-01_b ; + net:hasNaming "bind" ; + net:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#bind-of> ; + net:hasPropertyName "bind" ; + net:hasPropertyName01 "binding" ; + net:hasPropertyName10 "bind-by" ; + net:hasPropertyName12 "bind-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#bind> ; + net:hasStructure "SSC-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :leaf_gravitation_g, + :leaf_system_s ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:atomProperty_hasManner_m9 a net:Atom_Property_Net ; + :role_ARG0 net:atomProperty_orbit_o2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_ARG1 net:atomProperty_direct_d, + net:atomProperty_direct_d2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeProperty_not-direct_d2, + net:phenomena_conjunction-OR_o3 ; + net:coverBaseNode :leaf_hasManner_m9 ; + net:coverNode :leaf_hasManner_m9 ; + net:hasNaming "hasManner" ; + net:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#hasManner> ; + net:hasPropertyName "hasManner" ; + net:hasPropertyName01 "hasManner" ; + net:hasPropertyName10 "hasManner" ; + net:hasPropertyName12 "hasManner" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#hasManner> ; + net:hasStructure "SSC-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :leaf_or_o3, + :leaf_orbit-01_o2 ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:class_list a owl:Class ; + rdfs:label "classList" ; + rdfs:subClassOf net:Type . + +net:compositeClass_gravitation-binding-system-hasPart-sun-and-object_g a net:Composite_Class_Net ; + net:coverBaseNode :leaf_gravitation_g ; + net:coverNode :leaf_and_a, + :leaf_bind-01_b, + :leaf_gravitation_g, + :leaf_hasPart_p9, + :leaf_system_s ; + net:coverNodeCount 5 ; + net:hasClassName "gravitation-binding-system-hasPart-sun-and-object" ; + net:hasClassType sys:Entity ; + net:hasClassURI <https://tenet.tetras-libre.fr/extract-result#gravitation-binding-system-hasPart-sun-and-object> ; + net:hasMotherClassNet net:atomClass_gravitation_g ; + net:hasRestriction01 net:restriction_binding_system-hasPart-sun-and-object ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:has_value a owl:AnnotationProperty ; + rdfs:subPropertyOf net:netProperty . + +net:objectType a owl:AnnotationProperty ; + rdfs:label "object type" ; + rdfs:subPropertyOf net:objectProperty . + +net:phenomena_conjunction-AND_a a net:Phenomena_Net ; + :role_op1 net:atomClass_sun_s2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_op2 net:atomClass_object_o, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + 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-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:restriction_binding_system-hasPart-sun-and-object a net:Restriction_Net ; + net:coverBaseNode :leaf_gravitation_g ; + net:coverNode :leaf_and_a, + :leaf_bind-01_b, + :leaf_gravitation_g, + :leaf_hasPart_p9, + :leaf_system_s ; + net:coverTargetNode :leaf_and_a, + :leaf_bind-01_b, + :leaf_hasPart_p9, + :leaf_system_s ; + net:hasNaming "gravitation-binding-system-hasPart-sun-and-object" ; + net:hasRestrictionNetValue net:compositeClass_system-hasPart-sun-and-object_s ; + net:hasRestrictionOnProperty net:atomProperty_bind_b . + +net:value_negative_blankNode a net:Value_Net ; + net:hasNaming "negative" ; + net:hasStructure "SSC-01-01" ; + net:hasValueLabel "negative" ; + net:trackProgress net:initialized, + net:relation_propagated . + +<http://amr.isi.edu/amr_data/SSC-01-01#a> a ns21:and ; + ns11:op1 <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + ns11:op2 <http://amr.isi.edu/amr_data/SSC-01-01#o> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#d> a ns3:direct-02 ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#d2> a ns3:direct-02 ; + ns11:polarity "-" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#g> a ns11:gravitation ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#o3> a ns21:or ; + ns11:op1 <http://amr.isi.edu/amr_data/SSC-01-01#d> ; + ns11:op2 <http://amr.isi.edu/amr_data/SSC-01-01#d2> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#p> a <http://amr.isi.edu/entity-types#planet>, + <http://amr.isi.edu/entity-types#system> ; + rdfs:label "Solar System" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/entity-types#system> a ns21:NamedEntity ; + rdfs:label "system" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:bind-01 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:orbit-01 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:gravitation a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:manner a ns21:Role ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:object a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:part a ns21:Role ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:sun a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:system a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:NamedEntity a ns21:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-EntityType", + "AMR-Term" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:and a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:or a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Phenomena a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Relation_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Value a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:concept_direct-02 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:direct-02 ; + :label "direct-02" . + +:concept_system rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk <http://amr.isi.edu/entity-types#system>, + ns11:system ; + :label "system" . + +:hasLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:phenomena_conjunction a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "contrast-01", + "either", + "neither" ; + :label "conjunction" . + +:phenomena_conjunction_and a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "and" ; + :label "conjunction-AND" . + +:phenomena_conjunction_or a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "or" ; + :label "conjunction-OR" . + +: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_negative a :AMR_Value ; + rdfs:label "negative" . + +<https://tenet.tetras-libre.fr/extract-result#bind-of> a owl:ObjectProperty ; + rdfs:label "bind-of" ; + rdfs:subPropertyOf sys:Out_ObjectProperty ; + sys:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#direct> a owl:ObjectProperty ; + rdfs:label "direct" ; + rdfs:subPropertyOf sys:Out_ObjectProperty ; + sys:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#direct-of> a owl:ObjectProperty ; + rdfs:label "direct-of" ; + rdfs:subPropertyOf sys:Out_ObjectProperty ; + sys:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#gravitation> a owl:Class ; + rdfs:label "gravitation" ; + rdfs:subClassOf sys:Entity ; + sys:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#hasManner> a owl:ObjectProperty ; + rdfs:label "hasManner" ; + rdfs:subPropertyOf sys:Out_ObjectProperty ; + sys:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-object> a owl:Class ; + rdfs:label "system-hasPart-sun-and-object-hasPart-object" ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#object> ], + <https://tenet.tetras-libre.fr/extract-result#system>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> ; + sys:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-sun> a owl:Class ; + rdfs:label "system-hasPart-sun-and-object-hasPart-sun" ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#sun> ], + <https://tenet.tetras-libre.fr/extract-result#system>, + <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> ; + sys:fromStructure "SSC-01-01" . + +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_gravitation_g a net:Atom_Class_Net ; + net:coverBaseNode :leaf_gravitation_g ; + net:coverNode :leaf_gravitation_g ; + net:coverNodeCount 1 ; + net:hasClassName "gravitation" ; + net:hasClassType sys:Entity ; + net:hasClassURI <https://tenet.tetras-libre.fr/extract-result#gravitation> ; + net:hasNaming "gravitation" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:logicalSet_and_a a net:Logical_Set_Net ; + :role_op1 net:atomClass_sun_s2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_op2 net:atomClass_object_o, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:bindPropertyNet net:atomProperty_hasPart_p9 ; + net:bindRestriction net:restriction_hasPart_object, + net:restriction_hasPart_sun ; + net:containsNet net:atomClass_object_o, + net:atomClass_sun_s2 ; + net:containsNet1 net:atomClass_sun_s2 ; + net:containsNet2 net:atomClass_object_o ; + net:coverBaseNode :leaf_and_a ; + net:coverNode :leaf_and_a ; + net:hasLogicalConstraint "AND" ; + net:hasNaming "hasPart-sun-and-object" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:objectProperty a owl:AnnotationProperty ; + rdfs:label "object attribute" . + +net:phenomena_conjunction-OR_o3 a net:Phenomena_Net ; + :role_op1 net:atomProperty_direct_d, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_op2 net:atomProperty_direct_d2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeProperty_not-direct_d2 ; + net:coverBaseNode :leaf_or_o3 ; + net:coverNode :leaf_or_o3 ; + net:hasNaming "conjunction-OR" ; + net:hasPhenomenaRef "or" ; + net:hasPhenomenaType :phenomena_conjunction_or ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:value_SolarSystem_blankNode a net:Value_Net ; + net:hasNaming "Solar System" ; + net:hasStructure "SSC-01-01" ; + net:hasValueLabel "Solar System" ; + net:trackProgress net:initialized, + net:relation_propagated . + +<http://amr.isi.edu/amr_data/SSC-01-01#o> a ns11:object ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#s> a ns11:system ; + ns11:domain <http://amr.isi.edu/amr_data/SSC-01-01#p> ; + ns11:part <http://amr.isi.edu/amr_data/SSC-01-01#a> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#s2> a ns11:sun ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:direct-02 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:Frame a ns21:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Frame" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Concept a owl:Class ; + rdfs:subClassOf :AMR_Element . + +: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_direct-02_d a :AMR_Leaf ; + :hasConcept :concept_direct-02 ; + :hasVariable :variable_d . + +:leaf_hasManner_m9 a :AMR_Leaf ; + :edge_m9_ARG0_o2 :leaf_orbit-01_o2 ; + :edge_m9_ARG1_o3 :leaf_or_o3 ; + :hasConcept :concept_manner ; + :hasVariable :variable_m9 ; + :isReifiedLeaf true . + +:toReify a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +<https://tenet.tetras-libre.fr/extract-result#object> a owl:Class ; + rdfs:label "object" ; + rdfs:subClassOf sys:Entity ; + sys:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#sun> a owl:Class ; + rdfs:label "sun" ; + rdfs:subClassOf sys:Entity ; + sys:fromStructure "SSC-01-01" . + +net:Restriction_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:atomProperty_orbit_o2 a net:Atom_Property_Net, + net:Deprecated_Net ; + :role_ARG0 net:atomClass_object_o, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_ARG1 net:atomClass_sun_s2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + 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-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :leaf_object_o, + :leaf_sun_s2 ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:compositeClass_system-hasPart-sun-and-object-hasPart-object_s a net:Composite_Class_Net ; + :role_domain net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:individual_system_SolarSystem ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_object_o, + :leaf_system_s ; + net:coverNodeCount 4 ; + net:hasClassName "system-hasPart-sun-and-object-hasPart-object" ; + net:hasClassType sys:Entity ; + net:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-object> ; + net:hasMotherClassNet net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object_s ; + net:hasRestriction01 net:restriction_hasPart_object ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s a net:Composite_Class_Net ; + :role_domain net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:individual_system_SolarSystem ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_sun_s2, + :leaf_system_s ; + net:coverNodeCount 4 ; + net:hasClassName "system-hasPart-sun-and-object-hasPart-sun" ; + net:hasClassType sys:Entity ; + net:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object-hasPart-sun> ; + net:hasMotherClassNet net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object_s ; + net:hasRestriction01 net:restriction_hasPart_sun ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:has_relation_value a owl:AnnotationProperty ; + rdfs:label "has relation value" ; + rdfs:subPropertyOf net:has_object . + +net:list a owl:Class ; + rdfs:label "list" ; + rdfs:subClassOf net:Type . + +net:restriction_hasPart_object a net:Restriction_Net ; + :role_domain net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_object_o, + :leaf_system_s ; + net:coverTargetNode :leaf_hasPart_p9, + :leaf_object_o ; + net:hasNaming "system-hasPart-sun-and-object-hasPart-object" ; + net:hasRestrictionNetValue net:atomClass_object_o ; + net:hasRestrictionOnProperty net:atomProperty_hasPart_p9 . + +net:restriction_hasPart_sun a net:Restriction_Net ; + :role_domain net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_sun_s2, + :leaf_system_s ; + net:coverTargetNode :leaf_hasPart_p9, + :leaf_sun_s2 ; + net:hasNaming "system-hasPart-sun-and-object-hasPart-sun" ; + net:hasRestrictionNetValue net:atomClass_sun_s2 ; + net:hasRestrictionOnProperty net:atomProperty_hasPart_p9 . + +ns3:FrameRole a ns21:Role, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Element a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +: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" . + +net:atomProperty_direct_d a net:Atom_Property_Net ; + net:coverBaseNode :leaf_direct-02_d ; + net:coverNode :leaf_direct-02_d ; + net:hasNaming "direct" ; + net:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#direct-of> ; + net:hasPropertyName "direct" ; + net:hasPropertyName01 "directing" ; + net:hasPropertyName10 "direct-by" ; + net:hasPropertyName12 "direct-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#direct> ; + net:hasStructure "SSC-01-01" ; + net:isCoreRoleLinked true ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:atomProperty_direct_d2 a net:Atom_Property_Net ; + :role_polarity net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:value_negative_blankNode ; + net:coverBaseNode :leaf_direct-02_d2 ; + net:coverNode :leaf_direct-02_d2 ; + net:hasNaming "direct" ; + net:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#direct-of> ; + net:hasPropertyName "direct" ; + net:hasPropertyName01 "directing" ; + net:hasPropertyName10 "direct-by" ; + net:hasPropertyName12 "direct-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#direct> ; + net:hasStructure "SSC-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :value_negative ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:atomProperty_hasPart_p9 a net:Atom_Property_Net ; + :role_ARG0 net:atomClass_system_s, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object-hasPart-object_s, + net:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s, + net:compositeClass_system-hasPart-sun-and-object_s ; + :role_ARG1 net:atomClass_object_o, + net:atomClass_sun_s2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:logicalSet_and_a, + net:phenomena_conjunction-AND_a ; + net:coverBaseNode :leaf_hasPart_p9 ; + net:coverNode :leaf_hasPart_p9 ; + net:hasNaming "hasPart" ; + net:hasProperty12URI <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + net:hasPropertyName "hasPart" ; + net:hasPropertyName01 "hasPart" ; + net:hasPropertyName10 "hasPart" ; + net:hasPropertyName12 "hasPart" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + net:hasStructure "SSC-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :leaf_and_a, + :leaf_system_s ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:compositeProperty_not-direct_d2 a net:Composite_Property_Net ; + :role_polarity net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:coverBaseNode :leaf_direct-02_d2 ; + net:coverNode :leaf_direct-02_d2 ; + net:hasNaming "not-direct" ; + net:hasPropertyName "not-direct" ; + net:hasPropertyURI <https://tenet.tetras-libre.fr/extract-result#not-direct> ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:typeProperty a owl:AnnotationProperty ; + rdfs:label "type property" . + +:AMR_NonCore_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:AMR_Predicat_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Role a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:leaf_bind-01_b a :AMR_Leaf ; + :edge_b_ARG0_g :leaf_gravitation_g ; + :edge_b_ARG1_s :leaf_system_s ; + :hasConcept :concept_bind-01 ; + :hasVariable :variable_b . + +:leaf_direct-02_d2 a :AMR_Leaf ; + :edge_d2_polarity_negative :value_negative ; + :hasConcept :concept_direct-02 ; + :hasVariable :variable_d2 . + +:leaf_or_o3 a :AMR_Leaf ; + :edge_o3_op1_d :leaf_direct-02_d ; + :edge_o3_op2_d2 :leaf_direct-02_d2 ; + :hasConcept :concept_or ; + :hasVariable :variable_o3 . + +:leaf_orbit-01_o2 a :AMR_Leaf ; + :edge_o2_ARG0_o :leaf_object_o ; + :edge_o2_ARG1_s2 :leaf_sun_s2 ; + :hasConcept :concept_orbit-01 ; + :hasVariable :variable_o2 . + +:leaf_system_p a :AMR_Leaf ; + :edge_p_name_SolarSystem :value_SolarSystem ; + :hasConcept :concept_system ; + :hasVariable :variable_p . + +sys:Out_Structure a owl:Class ; + rdfs:label "Output Ontology Structure" . + +<https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> a owl:Class ; + rdfs:label "system-hasPart-sun-and-object" ; + rdfs:subClassOf [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#sun> ], + [ a owl:Restriction ; + owl:onProperty <https://tenet.tetras-libre.fr/extract-result#hasPart> ; + owl:someValuesFrom <https://tenet.tetras-libre.fr/extract-result#object> ], + <https://tenet.tetras-libre.fr/extract-result#system> ; + sys:fromStructure "SSC-01-01" . + +net:Atom_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:Composite_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:individual_system_SolarSystem a net:Individual_Net ; + :role_name net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:value_SolarSystem_blankNode ; + net:coverBaseNode :leaf_system_p ; + net:coverNode :leaf_system_p ; + net:hasIndividualLabel "Solar System" ; + net:hasIndividualURI <https://tenet.tetras-libre.fr/extract-result#solar-system> ; + net:hasMotherClassName net:atomClass_system_p ; + net:hasMotherClassNet net:atomClass_system_p, + net:atomClass_system_s, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object-hasPart-object_s, + net:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s, + net:compositeClass_system-hasPart-sun-and-object_s ; + net:hasNaming "system" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:netProperty a owl:AnnotationProperty ; + rdfs:label "netProperty" . + +:AMR_ObjectProperty a owl:ObjectProperty ; + rdfs:subPropertyOf owl:topObjectProperty . + +:AMR_Structure a owl:Class . + +cprm:configParamProperty a rdf:Property ; + rdfs:label "Config Parameter Property" . + +<https://tenet.tetras-libre.fr/extract-result#hasPart> a owl:ObjectProperty ; + rdfs:label "hasPart" ; + rdfs:subPropertyOf sys:Out_ObjectProperty ; + sys:fromStructure "SSC-01-01" . + +<https://tenet.tetras-libre.fr/extract-result#system> a owl:Class ; + rdfs:label "system" ; + rdfs:subClassOf sys:Entity ; + sys:fromStructure "SSC-01-01" . + +net:Atom_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Net_Structure a owl:Class ; + rdfs:label "Semantic Net Structure" ; + rdfs:comment "A semantic net captures a set of nodes, and associates this set with type(s) and value(s)." . + +net:atomClass_system_s a net:Atom_Class_Net, + net:Deprecated_Net ; + :role_domain net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:individual_system_SolarSystem ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_system_s ; + net:coverNodeCount 1 ; + net:hasClassName "system" ; + net:hasClassType sys:Entity ; + net:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system> ; + net:hasMotherClassNet net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:hasNaming "system" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:compositeClass_system-hasPart-sun-and-object_s a net:Composite_Class_Net ; + :role_domain net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:individual_system_SolarSystem ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_system_s ; + net:coverNodeCount 3 ; + net:hasClassName "system-hasPart-sun-and-object" ; + net:hasClassType sys:Entity ; + net:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system-hasPart-sun-and-object> ; + net:hasMotherClassNet net:atomClass_system_p, + net:atomClass_system_s, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:hasNaming "system-hasPart-sun-and-object" ; + net:hasRestriction01 net:restriction_hasPart_object, + net:restriction_hasPart_sun ; + net:hasStructure "SSC-01-01" ; + net:trackMainNetComposante net:atomClass_system_s ; + net:trackNetComposante net:atomClass_system_s, + net:atomProperty_hasPart_p9, + net:logicalSet_and_a ; + net:trackProgress net:initialized, + net:relation_propagated . + +rdf:Property a owl:Class . + +:AMR_Relation a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +net:Relation a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +:leaf_gravitation_g a :AMR_Leaf ; + :hasConcept :concept_gravitation ; + :hasVariable :variable_g . + +:leaf_object_o a :AMR_Leaf ; + :hasConcept :concept_object ; + :hasVariable :variable_o . + +:leaf_sun_s2 a :AMR_Leaf ; + :hasConcept :concept_sun ; + :hasVariable :variable_s2 . + +sys:Out_ObjectProperty a owl:ObjectProperty . + +net:Net a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:Type a owl:Class ; + rdfs:label "Semantic Net Type" ; + rdfs:subClassOf net:Net_Structure . + +net:has_object a owl:AnnotationProperty ; + rdfs:label "relation" ; + rdfs:subPropertyOf net:netProperty . + +:AMR_Op_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +net:atomClass_object_o a net:Atom_Class_Net ; + net:coverBaseNode :leaf_object_o ; + net:coverNode :leaf_object_o ; + net:coverNodeCount 1 ; + net:hasClassName "object" ; + net:hasClassType sys:Entity ; + net:hasClassURI <https://tenet.tetras-libre.fr/extract-result#object> ; + net:hasNaming "object" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:atomClass_sun_s2 a net:Atom_Class_Net ; + net:coverBaseNode :leaf_sun_s2 ; + net:coverNode :leaf_sun_s2 ; + net:coverNodeCount 1 ; + net:hasClassName "sun" ; + net:hasClassType sys:Entity ; + net:hasClassURI <https://tenet.tetras-libre.fr/extract-result#sun> ; + net:hasNaming "sun" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +:AMR_AnnotationProperty a owl:AnnotationProperty . + +:AMR_Core_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:leaf_hasPart_p9 a :AMR_Leaf ; + :edge_p9_ARG0_s :leaf_system_s ; + :edge_p9_ARG1_a :leaf_and_a ; + :hasConcept :concept_part ; + :hasVariable :variable_p9 ; + :isReifiedLeaf true . + +net:atomClass_system_p a net:Atom_Class_Net ; + :role_name net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:value_SolarSystem_blankNode ; + net:coverBaseNode :leaf_system_p ; + net:coverNode :leaf_system_p ; + net:coverNodeCount 1 ; + net:hasClassName "system" ; + net:hasClassURI <https://tenet.tetras-libre.fr/extract-result#system> ; + net:hasNaming "system" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +:AMR_Variable a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:leaf_and_a a :AMR_Leaf ; + :edge_a_op1_s2 :leaf_sun_s2 ; + :edge_a_op2_o :leaf_object_o ; + :hasConcept :concept_and ; + :hasVariable :variable_a . + +sys:Entity a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +:AMR_Leaf a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +net:objectValue a owl:AnnotationProperty ; + rdfs:label "valuations"@fr ; + rdfs:subPropertyOf net:objectProperty . + +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:leaf_system_s a :AMR_Leaf ; + :edge_s_domain_p :leaf_system_p ; + :hasConcept :concept_system ; + :hasVariable :variable_s . + +net:compositeClass_orbit-hasManner-conjunction-OR_o2 a net:Composite_Class_Net ; + :role_ARG0 net:atomClass_object_o ; + :role_ARG1 net:atomClass_sun_s2 ; + :role_domain net:atomClass_system_p, + net:individual_system_SolarSystem ; + :role_op1 net:atomClass_sun_s2, + net:atomProperty_direct_d ; + :role_op2 net:atomClass_object_o, + net:atomProperty_direct_d2, + net:compositeProperty_not-direct_d2 ; + net:coverNode :leaf_hasManner_m9, + :leaf_or_o3, + :leaf_orbit-01_o2 ; + net:coverNodeCount 3 ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_system_p ; + net:hasStructure "SSC-01-01" ; + net:trackMainNetComposante net:atomProperty_orbit_o2 ; + net:trackNetComposante net:atomProperty_direct_d, + net:atomProperty_direct_d2, + net:atomProperty_hasManner_m9, + net:atomProperty_orbit_o2, + net:compositeProperty_not-direct_d2, + net:phenomena_conjunction-OR_o3 ; + net:trackProgress net:relation_propagated . + +:AMR_Linked_Data a owl:Class . + +[] a owl:AllDisjointClasses ; + owl:members ( sys:Degree sys:Entity sys:Feature ) . + diff --git a/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_preprocessing.ttl b/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_preprocessing.ttl new file mode 100644 index 0000000000000000000000000000000000000000..7ce23a4720aa7b49a8dceb9201642d3ff035201a --- /dev/null +++ b/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_preprocessing.ttl @@ -0,0 +1,1139 @@ +@base <http://SolarSystemDev1/preprocessing> . +@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/amr-terms#> . +@prefix ns21: <http://amr.isi.edu/rdf/core-amr#> . +@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, + owl:Class ; + rdfs:label "AMR-Concept" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:Role a rdfs:Class, + owl:Class ; + rdfs:label "AMR-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/test-1#root01> ns21:hasID "test-1" ; + ns21:hasSentence "The sun is a star." ; + ns21:root <http://amr.isi.edu/amr_data/test-1#s> . + +<http://amr.isi.edu/amr_data/test-2#root01> ns21:hasID "test-2" ; + ns21:hasSentence "Earth is a planet." ; + ns21:root <http://amr.isi.edu/amr_data/test-2#p> . + +ns3:bind-01.ARG0 a ns3:FrameRole . + +ns3:bind-01.ARG1 a ns3:FrameRole . + +ns3:orbit-01.ARG0 a ns3:FrameRole . + +ns3:orbit-01.ARG1 a ns3:FrameRole . + +ns11:domain a ns21:Role, + owl:AnnotationProperty, + owl:NamedIndividual . + +ns11:op1 a ns21:Role . + +ns11:op2 a ns21:Role . + +ns21:hasID a owl:AnnotationProperty . + +ns21:hasSentence a owl:AnnotationProperty . + +ns21:root a owl:AnnotationProperty . + +<https://amr.tetras-libre.fr/rdf/schema> a owl:Ontology ; + owl:versionIRI :0.1 . + +:AMR_DataProperty a owl:DatatypeProperty . + +:AMR_Prep_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:edge_a_op1_s2 a :AMR_Edge ; + :hasAmrRole :role_op1 ; + :hasRoleID "op1" . + +:edge_a_op2_o a :AMR_Edge ; + :hasAmrRole :role_op2 ; + :hasRoleID "op2" . + +:edge_b_ARG0_g a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_b_ARG1_s a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_d2_polarity_negative a :AMR_Edge ; + :hasAmrRole :role_polarity ; + :hasRoleID "polarity" . + +:edge_m9_ARG0_o2 a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_m9_ARG1_o3 a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_o2_ARG0_o a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_o2_ARG1_s2 a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_o3_op1_d a :AMR_Edge ; + :hasAmrRole :role_op1 ; + :hasRoleID "op1" . + +:edge_o3_op2_d2 a :AMR_Edge ; + :hasAmrRole :role_op2 ; + :hasRoleID "op2" . + +:edge_p9_ARG0_s a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_p9_ARG1_a a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_p_name_SolarSystem a :AMR_Edge ; + :hasAmrRole :role_name ; + :hasRoleID "name" . + +:edge_s_domain_p a :AMR_Edge ; + :hasAmrRole :role_domain ; + :hasRoleID "domain" . + +: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 . + +:leaf_bind-01_b a :AMR_Leaf ; + :edge_b_ARG0_g :leaf_gravitation_g ; + :edge_b_ARG1_s :leaf_system_s ; + :hasConcept :concept_bind-01 ; + :hasVariable :variable_b . + +:leaf_hasManner_m9 a :AMR_Leaf ; + :edge_m9_ARG0_o2 :leaf_orbit-01_o2 ; + :edge_m9_ARG1_o3 :leaf_or_o3 ; + :hasConcept :concept_manner ; + :hasVariable :variable_m9 ; + :isReifiedLeaf true . + +:leaf_hasPart_p9 a :AMR_Leaf ; + :edge_p9_ARG0_s :leaf_system_s ; + :edge_p9_ARG1_a :leaf_and_a ; + :hasConcept :concept_part ; + :hasVariable :variable_p9 ; + :isReifiedLeaf true . + +:phenomena_degree a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "have-degree-91" ; + :label "degree" . + +:relation_domain a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "domain" . + +:relation_manner a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasManner" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "manner" . + +:relation_mod a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "mod" . + +:relation_name a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "name" . + +:relation_part a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasPart" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "part" . + +:relation_polarity a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "polarity" . + +:relation_quant a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "quant" . + +:role_ARG2 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG2" . + +:role_ARG3 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG3" . + +:role_ARG4 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG4" . + +:role_ARG5 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG5" . + +:role_ARG6 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG6" . + +:role_ARG7 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG7" . + +:role_ARG8 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG8" . + +:role_ARG9 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG9" . + +:role_have-degree-91 a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :getPropertyType <net:specificProperty> . + +:role_manner a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "manner" ; + :getPropertyType owl:DataProperty ; + :label "manner" ; + :toReifyAsConcept "manner" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_mod a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasFeature"^^xsd:string ; + :getPropertyType rdfs:subClassOf, + owl:ObjectProperty ; + :label "mod" ; + :toReifyAsConcept "mod" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_op3 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op3" . + +:role_op4 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op4" . + +:role_op5 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op5" . + +:role_op6 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op6" . + +:role_op7 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op7" . + +:role_op8 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op8" . + +:role_op9 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op9" . + +:role_part a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasPart"^^xsd:string ; + :getInversePropertyName "partOf"^^xsd:string ; + :getPropertyType owl:ObjectProperty ; + :toReifyAsConcept "part" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_quant a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "quant" . + +:root_SSC-01-01 a :AMR_Root ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#root01> ; + :hasRootLeaf :leaf_system_s ; + :hasSentenceID "SSC-01-01" ; + :hasSentenceStatement "The Solar System is the gravitationally bound system of the Sun and the objects that orbit it, either directly or indirectly." . + +: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:Atom_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +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: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:Instance a owl:Class ; + rdfs:label "Semantic Net Instance" ; + rdfs:subClassOf net:Net_Structure . + +net:Logical_Set_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Object a owl:Class ; + rdfs:label "Object using in semantic net instance" ; + rdfs:subClassOf net:Net_Structure . + +net:Phenomena_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Property_Direction a owl:Class ; + rdfs:subClassOf net:Feature . + +net:Relation a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:Restriction_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Value_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:abstractionClass a owl:AnnotationProperty ; + rdfs:label "abstraction class" ; + rdfs:subPropertyOf net:objectValue . + +net:atom a owl:Class ; + rdfs:label "atom" ; + rdfs:subClassOf net:Type . + +net:atomOf a owl:AnnotationProperty ; + rdfs:label "atom of" ; + rdfs:subPropertyOf net:typeProperty . + +net:atomType a owl:AnnotationProperty ; + rdfs:label "atom type" ; + rdfs:subPropertyOf net:objectType . + +net:class a owl:Class ; + rdfs:label "class" ; + rdfs:subClassOf net:Type . + +net:composite a owl:Class ; + rdfs:label "composite" ; + rdfs:subClassOf net:Type . + +net:conjunctive_list a owl:Class ; + rdfs:label "conjunctive-list" ; + rdfs:subClassOf net:list . + +net:disjunctive_list a owl:Class ; + rdfs:label "disjunctive-list" ; + rdfs:subClassOf net:list . + +net:entityClass a owl:AnnotationProperty ; + rdfs:label "entity class" ; + rdfs:subPropertyOf net:objectValue . + +net:entity_class_list a owl:Class ; + rdfs:label "entityClassList" ; + rdfs:subClassOf net:class_list . + +net:event a owl:Class ; + rdfs:label "event" ; + rdfs:subClassOf net:Type . + +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:relation a owl:Class ; + rdfs:label "relation" ; + rdfs:subClassOf net:Type . + +net:relationOf a owl:AnnotationProperty ; + rdfs:label "relation of" ; + rdfs:subPropertyOf net:typeProperty . + +net:state_property a owl:Class ; + rdfs:label "stateProperty" ; + rdfs:subClassOf net:Type . + +net:type a owl:AnnotationProperty ; + rdfs:label "type "@fr ; + rdfs:subPropertyOf net:netProperty . + +net:unary_list a owl:Class ; + rdfs:label "unary-list" ; + rdfs:subClassOf net:list . + +net:verbClass a owl:AnnotationProperty ; + rdfs:label "verb class" ; + rdfs:subPropertyOf net:objectValue . + +<http://amr.isi.edu/amr_data/SSC-01-01#b> a ns3:bind-01 ; + ns3:bind-01.ARG0 <http://amr.isi.edu/amr_data/SSC-01-01#g> ; + ns3:bind-01.ARG1 <http://amr.isi.edu/amr_data/SSC-01-01#s> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#o2> a ns3:orbit-01 ; + ns3:orbit-01.ARG0 <http://amr.isi.edu/amr_data/SSC-01-01#o> ; + ns3:orbit-01.ARG1 <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + ns11:manner <http://amr.isi.edu/amr_data/SSC-01-01#o3> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#root01> a ns21:AMR ; + ns21:has-id "SSC-01-01" ; + ns21:has-sentence "The Solar System is the gravitationally bound system of the Sun and the objects that orbit it, either directly or indirectly." ; + ns21:root <http://amr.isi.edu/amr_data/SSC-01-01#s> . + +<http://amr.isi.edu/amr_data/test-1#s> ns11:domain <http://amr.isi.edu/amr_data/test-1#s2> . + +<http://amr.isi.edu/amr_data/test-2#p> rdfs:label "Earth" . + +<http://amr.isi.edu/entity-types#planet> a ns21:NamedEntity ; + rdfs:comment "bug" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:AMR a owl:Class ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Root a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:concept_and rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns21:and ; + :hasPhenomenaLink :phenomena_conjunction_and ; + :label "and" . + +:concept_bind-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:bind-01 ; + :label "bind-01" . + +:concept_gravitation rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:gravitation ; + :label "gravitation" . + +:concept_manner rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:manner ; + :isReifiedConcept true ; + :label "hasManner" . + +:concept_object rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:object ; + :label "object" . + +:concept_or rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns21:or ; + :hasPhenomenaLink :phenomena_conjunction_or ; + :label "or" . + +:concept_orbit-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:orbit-01 ; + :label "orbit-01" . + +:concept_part rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:part ; + :isReifiedConcept true ; + :label "hasPart" . + +:concept_sun rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:sun ; + :label "sun" . + +:leaf_and_a a :AMR_Leaf ; + :edge_a_op1_s2 :leaf_sun_s2 ; + :edge_a_op2_o :leaf_object_o ; + :hasConcept :concept_and ; + :hasVariable :variable_a . + +:leaf_direct-02_d a :AMR_Leaf ; + :hasConcept :concept_direct-02 ; + :hasVariable :variable_d . + +:leaf_direct-02_d2 a :AMR_Leaf ; + :edge_d2_polarity_negative :value_negative ; + :hasConcept :concept_direct-02 ; + :hasVariable :variable_d2 . + +:leaf_gravitation_g a :AMR_Leaf ; + :hasConcept :concept_gravitation ; + :hasVariable :variable_g . + +:leaf_or_o3 a :AMR_Leaf ; + :edge_o3_op1_d :leaf_direct-02_d ; + :edge_o3_op2_d2 :leaf_direct-02_d2 ; + :hasConcept :concept_or ; + :hasVariable :variable_o3 . + +:leaf_orbit-01_o2 a :AMR_Leaf ; + :edge_o2_ARG0_o :leaf_object_o ; + :edge_o2_ARG1_s2 :leaf_sun_s2 ; + :hasConcept :concept_orbit-01 ; + :hasVariable :variable_o2 . + +:leaf_system_p a :AMR_Leaf ; + :edge_p_name_SolarSystem :value_SolarSystem ; + :hasConcept :concept_system ; + :hasVariable :variable_p . + +:phenomena_conjunction_and a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "and" ; + :label "conjunction-AND" . + +:phenomena_conjunction_or a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "or" ; + :label "conjunction-OR" . + +:role_domain a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :hasRelationName "domain" ; + :label "domain" ; + :toReifyAsConcept "domain" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_name a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :label "name" . + +:role_polarity a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "polarity" . + +:value_SolarSystem a :AMR_Value ; + rdfs:label "Solar System" . + +:value_negative a :AMR_Value ; + rdfs:label "negative" . + +:variable_a a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#a> ; + :label "a" . + +:variable_b a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#b> ; + :label "b" . + +:variable_d a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#d> ; + :label "d" . + +:variable_d2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#d2> ; + :label "d2" . + +:variable_g a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#g> ; + :label "g" . + +:variable_m9 a ns11:manner, + :AMR_Variable ; + :isReifiedVariable true ; + :label "m9" . + +:variable_o a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#o> ; + :label "o" . + +:variable_o2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#o2> ; + :label "o2" . + +:variable_o3 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#o3> ; + :label "o3" . + +:variable_p a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#p> ; + :label "p" ; + :name "Solar System" . + +:variable_p9 a ns11:part, + :AMR_Variable ; + :isReifiedVariable true ; + :label "p9" . + +:variable_s a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#s> ; + :label "s" . + +:variable_s2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + :label "s2" . + +sys:Degree a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Entity a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Feature a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Out_AnnotationProperty a owl:AnnotationProperty . + +net:Feature a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:class_list a owl:Class ; + rdfs:label "classList" ; + rdfs:subClassOf net:Type . + +net:has_value a owl:AnnotationProperty ; + rdfs:subPropertyOf net:netProperty . + +net:objectType a owl:AnnotationProperty ; + rdfs:label "object type" ; + rdfs:subPropertyOf net:objectProperty . + +<http://amr.isi.edu/amr_data/SSC-01-01#a> a ns21:and ; + ns11:op1 <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + ns11:op2 <http://amr.isi.edu/amr_data/SSC-01-01#o> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#d> a ns3:direct-02 ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#d2> a ns3:direct-02 ; + ns11:polarity "-" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#g> a ns11:gravitation ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#o3> a ns21:or ; + ns11:op1 <http://amr.isi.edu/amr_data/SSC-01-01#d> ; + ns11:op2 <http://amr.isi.edu/amr_data/SSC-01-01#d2> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#p> a <http://amr.isi.edu/entity-types#planet>, + <http://amr.isi.edu/entity-types#system> ; + rdfs:label "Solar System" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/entity-types#system> a ns21:NamedEntity ; + rdfs:label "system" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:bind-01 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:orbit-01 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:gravitation a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:manner a ns21:Role ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:object a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:part a ns21:Role ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:sun a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:system a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:NamedEntity a ns21:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-EntityType", + "AMR-Term" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:and a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:or a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Phenomena a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Relation_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Value a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:concept_direct-02 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:direct-02 ; + :label "direct-02" . + +:concept_system rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk <http://amr.isi.edu/entity-types#system>, + ns11:system ; + :label "system" . + +:hasLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:leaf_object_o a :AMR_Leaf ; + :hasConcept :concept_object ; + :hasVariable :variable_o . + +:leaf_sun_s2 a :AMR_Leaf ; + :hasConcept :concept_sun ; + :hasVariable :variable_s2 . + +:phenomena_conjunction a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "contrast-01", + "either", + "neither" ; + :label "conjunction" . + +:role_op1 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op1" . + +:role_op2 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op2" . + +sys:Out_ObjectProperty a owl:ObjectProperty . + +net:Class_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Property_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:objectProperty a owl:AnnotationProperty ; + rdfs:label "object attribute" . + +<http://amr.isi.edu/amr_data/SSC-01-01#o> a ns11:object ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#s> a ns11:system ; + ns11:domain <http://amr.isi.edu/amr_data/SSC-01-01#p> ; + ns11:part <http://amr.isi.edu/amr_data/SSC-01-01#a> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#s2> a ns11:sun ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:direct-02 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:Frame a ns21:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Frame" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Concept a owl:Class ; + rdfs:subClassOf :AMR_Element . + +: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_system_s a :AMR_Leaf ; + :edge_s_domain_p :leaf_system_p ; + :hasConcept :concept_system ; + :hasVariable :variable_s . + +:toReify a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +net:has_relation_value a owl:AnnotationProperty ; + rdfs:label "has relation value" ; + rdfs:subPropertyOf net:has_object . + +net:list a owl:Class ; + rdfs:label "list" ; + rdfs:subClassOf net:Type . + +ns3:FrameRole a ns21:Role, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Element a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:role_ARG0 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG0" . + +:role_ARG1 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG1" . + +net:typeProperty a owl:AnnotationProperty ; + rdfs:label "type property" . + +:AMR_NonCore_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:AMR_Predicat_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Role a owl:Class ; + rdfs:subClassOf :AMR_Element . + +sys:Out_Structure a owl:Class ; + rdfs:label "Output Ontology Structure" . + +net:netProperty a owl:AnnotationProperty ; + rdfs:label "netProperty" . + +:AMR_ObjectProperty a owl:ObjectProperty ; + rdfs:subPropertyOf owl:topObjectProperty . + +:AMR_Structure a owl:Class . + +cprm:configParamProperty a rdf:Property ; + rdfs:label "Config Parameter Property" . + +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)." . + +rdf:Property a owl:Class . + +:AMR_Relation a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +net:Net a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:Type a owl:Class ; + rdfs:label "Semantic Net Type" ; + rdfs:subClassOf net:Net_Structure . + +net:has_object a owl:AnnotationProperty ; + rdfs:label "relation" ; + rdfs:subPropertyOf net:netProperty . + +:AMR_Op_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:AMR_AnnotationProperty a owl:AnnotationProperty . + +:AMR_Core_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:AMR_Variable a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:AMR_Leaf a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +net:objectValue a owl:AnnotationProperty ; + rdfs:label "valuations"@fr ; + rdfs:subPropertyOf net:objectProperty . + +: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/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_transduction.ttl b/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_transduction.ttl new file mode 100644 index 0000000000000000000000000000000000000000..e3e9047279530f11f09db6bc9a4c651e2e4d2b6e --- /dev/null +++ b/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_transduction.ttl @@ -0,0 +1,1572 @@ +@base <http://SolarSystemDev1/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/amr-terms#> . +@prefix ns21: <http://amr.isi.edu/rdf/core-amr#> . +@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, + owl:Class ; + rdfs:label "AMR-Concept" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:Role a rdfs:Class, + owl:Class ; + rdfs:label "AMR-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/test-1#root01> ns21:hasID "test-1" ; + ns21:hasSentence "The sun is a star." ; + ns21:root <http://amr.isi.edu/amr_data/test-1#s> . + +<http://amr.isi.edu/amr_data/test-2#root01> ns21:hasID "test-2" ; + ns21:hasSentence "Earth is a planet." ; + ns21:root <http://amr.isi.edu/amr_data/test-2#p> . + +ns3:bind-01.ARG0 a ns3:FrameRole . + +ns3:bind-01.ARG1 a ns3:FrameRole . + +ns3:orbit-01.ARG0 a ns3:FrameRole . + +ns3:orbit-01.ARG1 a ns3:FrameRole . + +ns11:domain a ns21:Role, + owl:AnnotationProperty, + owl:NamedIndividual . + +ns11:op1 a ns21:Role . + +ns11:op2 a ns21:Role . + +ns21:hasID a owl:AnnotationProperty . + +ns21:hasSentence a owl:AnnotationProperty . + +ns21:root a owl:AnnotationProperty . + +<https://amr.tetras-libre.fr/rdf/schema> a owl:Ontology ; + owl:versionIRI :0.1 . + +:AMR_DataProperty a owl:DatatypeProperty . + +:AMR_Prep_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:edge_a_op1_s2 a :AMR_Edge ; + :hasAmrRole :role_op1 ; + :hasRoleID "op1" . + +:edge_a_op2_o a :AMR_Edge ; + :hasAmrRole :role_op2 ; + :hasRoleID "op2" . + +:edge_b_ARG0_g a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_b_ARG1_s a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_d2_polarity_negative a :AMR_Edge ; + :hasAmrRole :role_polarity ; + :hasRoleID "polarity" . + +:edge_m9_ARG0_o2 a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_m9_ARG1_o3 a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_o2_ARG0_o a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_o2_ARG1_s2 a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_o3_op1_d a :AMR_Edge ; + :hasAmrRole :role_op1 ; + :hasRoleID "op1" . + +:edge_o3_op2_d2 a :AMR_Edge ; + :hasAmrRole :role_op2 ; + :hasRoleID "op2" . + +:edge_p9_ARG0_s a :AMR_Edge ; + :hasAmrRole :role_ARG0 ; + :hasRoleID "ARG0" . + +:edge_p9_ARG1_a a :AMR_Edge ; + :hasAmrRole :role_ARG1 ; + :hasRoleID "ARG1" . + +:edge_p_name_SolarSystem a :AMR_Edge ; + :hasAmrRole :role_name ; + :hasRoleID "name" . + +:edge_s_domain_p a :AMR_Edge ; + :hasAmrRole :role_domain ; + :hasRoleID "domain" . + +: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_degree a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "have-degree-91" ; + :label "degree" . + +:relation_domain a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "domain" . + +:relation_manner a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasManner" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "manner" . + +:relation_mod a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "mod" . + +:relation_name a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "name" . + +:relation_part a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification true ; + :hasReificationConcept "hasPart" ; + :hasReificationDomain "ARG1" ; + :hasReificationRange "ARG2" ; + :hasRelationName "part" . + +:relation_polarity a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "polarity" . + +:relation_quant a owl:Class ; + rdfs:subClassOf :AMR_Relation ; + :hasReification false ; + :hasRelationName "quant" . + +:role_ARG2 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG2" . + +:role_ARG3 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG3" . + +:role_ARG4 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG4" . + +:role_ARG5 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG5" . + +:role_ARG6 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG6" . + +:role_ARG7 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG7" . + +:role_ARG8 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG8" . + +:role_ARG9 a owl:Class ; + rdfs:subClassOf :AMR_Core_Role ; + :label "ARG9" . + +:role_have-degree-91 a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :getPropertyType <net:specificProperty> . + +:role_manner a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "manner" ; + :getPropertyType owl:DataProperty ; + :label "manner" ; + :toReifyAsConcept "manner" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_mod a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasFeature"^^xsd:string ; + :getPropertyType rdfs:subClassOf, + owl:ObjectProperty ; + :label "mod" ; + :toReifyAsConcept "mod" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_op3 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op3" . + +:role_op4 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op4" . + +:role_op5 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op5" . + +:role_op6 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op6" . + +:role_op7 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op7" . + +:role_op8 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op8" . + +:role_op9 a owl:Class ; + rdfs:subClassOf :AMR_Op_Role ; + :label "op9" . + +:role_part a owl:Class ; + rdfs:subClassOf :AMR_NonCore_Role ; + :getDirectPropertyName "hasPart"^^xsd:string ; + :getInversePropertyName "partOf"^^xsd:string ; + :getPropertyType owl:ObjectProperty ; + :toReifyAsConcept "part" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +:role_quant a owl:Class ; + rdfs:subClassOf :AMR_Specific_Role ; + :label "quant" . + +:root_SSC-01-01 a :AMR_Root ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#root01> ; + :hasRootLeaf :leaf_system_s ; + :hasSentenceID "SSC-01-01" ; + :hasSentenceStatement "The Solar System is the gravitationally bound system of the Sun and the objects that orbit it, either directly or indirectly." . + +: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:Instance a owl:Class ; + rdfs:label "Semantic Net Instance" ; + rdfs:subClassOf net:Net_Structure . + +net:Object a owl:Class ; + rdfs:label "Object using in semantic net instance" ; + rdfs:subClassOf net:Net_Structure . + +net:Property_Direction a owl:Class ; + rdfs:subClassOf net:Feature . + +net:abstractionClass a owl:AnnotationProperty ; + rdfs:label "abstraction class" ; + rdfs:subPropertyOf net:objectValue . + +net:atom a owl:Class ; + rdfs:label "atom" ; + rdfs:subClassOf net:Type . + +net:atomOf a owl:AnnotationProperty ; + rdfs:label "atom of" ; + rdfs:subPropertyOf net:typeProperty . + +net:atomType a owl:AnnotationProperty ; + rdfs:label "atom type" ; + rdfs:subPropertyOf net:objectType . + +net:class a owl:Class ; + rdfs:label "class" ; + rdfs:subClassOf net:Type . + +net:composite a owl:Class ; + rdfs:label "composite" ; + rdfs:subClassOf net:Type . + +net:conjunctive_list a owl:Class ; + rdfs:label "conjunctive-list" ; + rdfs:subClassOf net:list . + +net:disjunctive_list a owl:Class ; + rdfs:label "disjunctive-list" ; + rdfs:subClassOf net:list . + +net:entityClass a owl:AnnotationProperty ; + rdfs:label "entity class" ; + rdfs:subPropertyOf net:objectValue . + +net:entity_class_list a owl:Class ; + rdfs:label "entityClassList" ; + rdfs:subClassOf net:class_list . + +net:event a owl:Class ; + rdfs:label "event" ; + rdfs:subClassOf net:Type . + +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:relation a owl:Class ; + rdfs:label "relation" ; + rdfs:subClassOf net:Type . + +net:relationOf a owl:AnnotationProperty ; + rdfs:label "relation of" ; + rdfs:subPropertyOf net:typeProperty . + +net:state_property a owl:Class ; + rdfs:label "stateProperty" ; + rdfs:subClassOf net:Type . + +net:type a owl:AnnotationProperty ; + rdfs:label "type "@fr ; + rdfs:subPropertyOf net:netProperty . + +net:unary_list a owl:Class ; + rdfs:label "unary-list" ; + rdfs:subClassOf net:list . + +net:verbClass a owl:AnnotationProperty ; + rdfs:label "verb class" ; + rdfs:subPropertyOf net:objectValue . + +<http://amr.isi.edu/amr_data/SSC-01-01#b> a ns3:bind-01 ; + ns3:bind-01.ARG0 <http://amr.isi.edu/amr_data/SSC-01-01#g> ; + ns3:bind-01.ARG1 <http://amr.isi.edu/amr_data/SSC-01-01#s> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#o2> a ns3:orbit-01 ; + ns3:orbit-01.ARG0 <http://amr.isi.edu/amr_data/SSC-01-01#o> ; + ns3:orbit-01.ARG1 <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + ns11:manner <http://amr.isi.edu/amr_data/SSC-01-01#o3> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#root01> a ns21:AMR ; + ns21:has-id "SSC-01-01" ; + ns21:has-sentence "The Solar System is the gravitationally bound system of the Sun and the objects that orbit it, either directly or indirectly." ; + ns21:root <http://amr.isi.edu/amr_data/SSC-01-01#s> . + +<http://amr.isi.edu/amr_data/test-1#s> ns11:domain <http://amr.isi.edu/amr_data/test-1#s2> . + +<http://amr.isi.edu/amr_data/test-2#p> rdfs:label "Earth" . + +<http://amr.isi.edu/entity-types#planet> a ns21:NamedEntity ; + rdfs:comment "bug" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:AMR a owl:Class ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Root a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:concept_and rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns21:and ; + :hasPhenomenaLink :phenomena_conjunction_and ; + :label "and" . + +:concept_bind-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:bind-01 ; + :label "bind-01" . + +:concept_gravitation rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:gravitation ; + :label "gravitation" . + +:concept_manner rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:manner ; + :isReifiedConcept true ; + :label "hasManner" . + +:concept_object rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:object ; + :label "object" . + +:concept_or rdfs:subClassOf :AMR_Relation_Concept ; + :fromAmrLk ns21:or ; + :hasPhenomenaLink :phenomena_conjunction_or ; + :label "or" . + +:concept_orbit-01 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:orbit-01 ; + :label "orbit-01" . + +:concept_part rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns11:part ; + :isReifiedConcept true ; + :label "hasPart" . + +:concept_sun rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk ns11:sun ; + :label "sun" . + +:role_domain a owl:Class, + net:Relation ; + rdfs:subClassOf :AMR_NonCore_Role ; + :hasRelationName "domain" ; + :label "domain" ; + :toReifyAsConcept "domain" ; + :toReifyWithBaseEdge "ARG0" ; + :toReifyWithHeadEdge "ARG1" . + +: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" . + +:value_SolarSystem a :AMR_Value ; + rdfs:label "Solar System" . + +:variable_a a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#a> ; + :label "a" . + +:variable_b a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#b> ; + :label "b" . + +:variable_d a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#d> ; + :label "d" . + +:variable_d2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#d2> ; + :label "d2" . + +:variable_g a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#g> ; + :label "g" . + +:variable_m9 a ns11:manner, + :AMR_Variable ; + :isReifiedVariable true ; + :label "m9" . + +:variable_o a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#o> ; + :label "o" . + +:variable_o2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#o2> ; + :label "o2" . + +:variable_o3 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#o3> ; + :label "o3" . + +:variable_p a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#p> ; + :label "p" ; + :name "Solar System" . + +:variable_p9 a ns11:part, + :AMR_Variable ; + :isReifiedVariable true ; + :label "p9" . + +:variable_s a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#s> ; + :label "s" . + +:variable_s2 a :AMR_Variable ; + :fromAmrLk <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + :label "s2" . + +sys:Degree a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Feature a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +sys:Out_AnnotationProperty a owl:AnnotationProperty . + +net:Composite_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Feature a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:Individual_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:Logical_Set_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:atomProperty_bind_b a net:Atom_Property_Net ; + :role_ARG0 net:atomClass_gravitation_g, + net:compositeClass_gravitation-binding-system-hasPart-sun-and-object_g, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_ARG1 net:atomClass_system_s, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object-hasPart-object_s, + net:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s, + net:compositeClass_system-hasPart-sun-and-object_s ; + net:coverBaseNode :leaf_bind-01_b ; + net:coverNode :leaf_bind-01_b ; + net:hasNaming "bind" ; + net:hasPropertyName "bind" ; + net:hasPropertyName01 "binding" ; + net:hasPropertyName10 "bind-by" ; + net:hasPropertyName12 "bind-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :leaf_gravitation_g, + :leaf_system_s ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:atomProperty_hasManner_m9 a net:Atom_Property_Net ; + :role_ARG0 net:atomProperty_orbit_o2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_ARG1 net:atomProperty_direct_d, + net:atomProperty_direct_d2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeProperty_not-direct_d2, + net:phenomena_conjunction-OR_o3 ; + net:coverBaseNode :leaf_hasManner_m9 ; + net:coverNode :leaf_hasManner_m9 ; + net:hasNaming "hasManner" ; + net:hasPropertyName "hasManner" ; + net:hasPropertyName01 "hasManner" ; + net:hasPropertyName10 "hasManner" ; + net:hasPropertyName12 "hasManner" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :leaf_or_o3, + :leaf_orbit-01_o2 ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:class_list a owl:Class ; + rdfs:label "classList" ; + rdfs:subClassOf net:Type . + +net:compositeClass_gravitation-binding-system-hasPart-sun-and-object_g a net:Composite_Class_Net ; + net:coverBaseNode :leaf_gravitation_g ; + net:coverNode :leaf_and_a, + :leaf_bind-01_b, + :leaf_gravitation_g, + :leaf_hasPart_p9, + :leaf_system_s ; + net:coverNodeCount 5 ; + net:hasClassName "gravitation-binding-system-hasPart-sun-and-object" ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_gravitation_g ; + net:hasRestriction01 net:restriction_binding_system-hasPart-sun-and-object ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:has_value a owl:AnnotationProperty ; + rdfs:subPropertyOf net:netProperty . + +net:objectType a owl:AnnotationProperty ; + rdfs:label "object type" ; + rdfs:subPropertyOf net:objectProperty . + +net:phenomena_conjunction-AND_a a net:Phenomena_Net ; + :role_op1 net:atomClass_sun_s2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_op2 net:atomClass_object_o, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + 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-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:restriction_binding_system-hasPart-sun-and-object a net:Restriction_Net ; + net:coverBaseNode :leaf_gravitation_g ; + net:coverNode :leaf_and_a, + :leaf_bind-01_b, + :leaf_gravitation_g, + :leaf_hasPart_p9, + :leaf_system_s ; + net:coverTargetNode :leaf_and_a, + :leaf_bind-01_b, + :leaf_hasPart_p9, + :leaf_system_s ; + net:hasNaming "gravitation-binding-system-hasPart-sun-and-object" ; + net:hasRestrictionNetValue net:compositeClass_system-hasPart-sun-and-object_s ; + net:hasRestrictionOnProperty net:atomProperty_bind_b . + +net:value_negative_blankNode a net:Value_Net ; + net:hasNaming "negative" ; + net:hasStructure "SSC-01-01" ; + net:hasValueLabel "negative" ; + net:trackProgress net:initialized, + net:relation_propagated . + +<http://amr.isi.edu/amr_data/SSC-01-01#a> a ns21:and ; + ns11:op1 <http://amr.isi.edu/amr_data/SSC-01-01#s2> ; + ns11:op2 <http://amr.isi.edu/amr_data/SSC-01-01#o> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#d> a ns3:direct-02 ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#d2> a ns3:direct-02 ; + ns11:polarity "-" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#g> a ns11:gravitation ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#o3> a ns21:or ; + ns11:op1 <http://amr.isi.edu/amr_data/SSC-01-01#d> ; + ns11:op2 <http://amr.isi.edu/amr_data/SSC-01-01#d2> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#p> a <http://amr.isi.edu/entity-types#planet>, + <http://amr.isi.edu/entity-types#system> ; + rdfs:label "Solar System" ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/entity-types#system> a ns21:NamedEntity ; + rdfs:label "system" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:bind-01 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:orbit-01 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:gravitation a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:manner a ns21:Role ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:object a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:part a ns21:Role ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:sun a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns11:system a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:NamedEntity a ns21:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-EntityType", + "AMR-Term" ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:and a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:or a ns21:Concept ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Phenomena a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Relation_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Value a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:concept_direct-02 rdfs:subClassOf :AMR_Predicat_Concept ; + :fromAmrLk ns3:direct-02 ; + :label "direct-02" . + +:concept_system rdfs:subClassOf :AMR_Term_Concept ; + :fromAmrLk <http://amr.isi.edu/entity-types#system>, + ns11:system ; + :label "system" . + +:hasLink a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +:phenomena_conjunction a owl:Class ; + rdfs:subClassOf :AMR_Phenomena ; + :hasConceptLink "contrast-01", + "either", + "neither" ; + :label "conjunction" . + +:phenomena_conjunction_and a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "and" ; + :label "conjunction-AND" . + +:phenomena_conjunction_or a owl:Class ; + rdfs:subClassOf :phenomena_conjunction ; + :hasConceptLink "or" ; + :label "conjunction-OR" . + +: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_negative a :AMR_Value ; + rdfs:label "negative" . + +sys:Out_ObjectProperty a owl:ObjectProperty . + +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_gravitation_g a net:Atom_Class_Net ; + net:coverBaseNode :leaf_gravitation_g ; + net:coverNode :leaf_gravitation_g ; + net:coverNodeCount 1 ; + net:hasClassName "gravitation" ; + net:hasClassType sys:Entity ; + net:hasNaming "gravitation" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:logicalSet_and_a a net:Logical_Set_Net ; + :role_op1 net:atomClass_sun_s2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_op2 net:atomClass_object_o, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:bindPropertyNet net:atomProperty_hasPart_p9 ; + net:bindRestriction net:restriction_hasPart_object, + net:restriction_hasPart_sun ; + net:containsNet net:atomClass_object_o, + net:atomClass_sun_s2 ; + net:containsNet1 net:atomClass_sun_s2 ; + net:containsNet2 net:atomClass_object_o ; + net:coverBaseNode :leaf_and_a ; + net:coverNode :leaf_and_a ; + net:hasLogicalConstraint "AND" ; + net:hasNaming "hasPart-sun-and-object" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:objectProperty a owl:AnnotationProperty ; + rdfs:label "object attribute" . + +net:phenomena_conjunction-OR_o3 a net:Phenomena_Net ; + :role_op1 net:atomProperty_direct_d, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_op2 net:atomProperty_direct_d2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeProperty_not-direct_d2 ; + net:coverBaseNode :leaf_or_o3 ; + net:coverNode :leaf_or_o3 ; + net:hasNaming "conjunction-OR" ; + net:hasPhenomenaRef "or" ; + net:hasPhenomenaType :phenomena_conjunction_or ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:value_SolarSystem_blankNode a net:Value_Net ; + net:hasNaming "Solar System" ; + net:hasStructure "SSC-01-01" ; + net:hasValueLabel "Solar System" ; + net:trackProgress net:initialized, + net:relation_propagated . + +<http://amr.isi.edu/amr_data/SSC-01-01#o> a ns11:object ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#s> a ns11:system ; + ns11:domain <http://amr.isi.edu/amr_data/SSC-01-01#p> ; + ns11:part <http://amr.isi.edu/amr_data/SSC-01-01#a> ; + rdfs:subClassOf :AMR_Linked_Data . + +<http://amr.isi.edu/amr_data/SSC-01-01#s2> a ns11:sun ; + rdfs:subClassOf :AMR_Linked_Data . + +ns3:direct-02 a ns21:Frame ; + rdfs:subClassOf :AMR_Linked_Data . + +ns21:Frame a ns21:Concept, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Frame" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Concept a owl:Class ; + rdfs:subClassOf :AMR_Element . + +: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_direct-02_d a :AMR_Leaf ; + :hasConcept :concept_direct-02 ; + :hasVariable :variable_d . + +:leaf_hasManner_m9 a :AMR_Leaf ; + :edge_m9_ARG0_o2 :leaf_orbit-01_o2 ; + :edge_m9_ARG1_o3 :leaf_or_o3 ; + :hasConcept :concept_manner ; + :hasVariable :variable_m9 ; + :isReifiedLeaf true . + +:toReify a owl:AnnotationProperty ; + rdfs:subPropertyOf :AMR_AnnotationProperty . + +net:Restriction_Net a owl:Class ; + rdfs:subClassOf net:Net . + +net:atomProperty_orbit_o2 a net:Atom_Property_Net, + net:Deprecated_Net ; + :role_ARG0 net:atomClass_object_o, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + :role_ARG1 net:atomClass_sun_s2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + 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-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :leaf_object_o, + :leaf_sun_s2 ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:compositeClass_system-hasPart-sun-and-object-hasPart-object_s a net:Composite_Class_Net ; + :role_domain net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:individual_system_SolarSystem ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_object_o, + :leaf_system_s ; + net:coverNodeCount 4 ; + net:hasClassName "system-hasPart-sun-and-object-hasPart-object" ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object_s ; + net:hasRestriction01 net:restriction_hasPart_object ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s a net:Composite_Class_Net ; + :role_domain net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:individual_system_SolarSystem ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_sun_s2, + :leaf_system_s ; + net:coverNodeCount 4 ; + net:hasClassName "system-hasPart-sun-and-object-hasPart-sun" ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object_s ; + net:hasRestriction01 net:restriction_hasPart_sun ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:has_relation_value a owl:AnnotationProperty ; + rdfs:label "has relation value" ; + rdfs:subPropertyOf net:has_object . + +net:list a owl:Class ; + rdfs:label "list" ; + rdfs:subClassOf net:Type . + +net:restriction_hasPart_object a net:Restriction_Net ; + :role_domain net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_object_o, + :leaf_system_s ; + net:coverTargetNode :leaf_hasPart_p9, + :leaf_object_o ; + net:hasNaming "system-hasPart-sun-and-object-hasPart-object" ; + net:hasRestrictionNetValue net:atomClass_object_o ; + net:hasRestrictionOnProperty net:atomProperty_hasPart_p9 . + +net:restriction_hasPart_sun a net:Restriction_Net ; + :role_domain net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_sun_s2, + :leaf_system_s ; + net:coverTargetNode :leaf_hasPart_p9, + :leaf_sun_s2 ; + net:hasNaming "system-hasPart-sun-and-object-hasPart-sun" ; + net:hasRestrictionNetValue net:atomClass_sun_s2 ; + net:hasRestrictionOnProperty net:atomProperty_hasPart_p9 . + +ns3:FrameRole a ns21:Role, + owl:Class, + owl:NamedIndividual ; + rdfs:label "AMR-PropBank-Role" ; + rdfs:subClassOf :AMR_Linked_Data . + +:AMR_Element a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:AMR_Term_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +: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" . + +net:atomProperty_direct_d a net:Atom_Property_Net ; + 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-01-01" ; + net:isCoreRoleLinked true ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:atomProperty_direct_d2 a net:Atom_Property_Net ; + :role_polarity net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:value_negative_blankNode ; + net:coverBaseNode :leaf_direct-02_d2 ; + net:coverNode :leaf_direct-02_d2 ; + net:hasNaming "direct" ; + net:hasPropertyName "direct" ; + net:hasPropertyName01 "directing" ; + net:hasPropertyName10 "direct-by" ; + net:hasPropertyName12 "direct-of" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :value_negative ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:atomProperty_hasPart_p9 a net:Atom_Property_Net ; + :role_ARG0 net:atomClass_system_s, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object-hasPart-object_s, + net:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s, + net:compositeClass_system-hasPart-sun-and-object_s ; + :role_ARG1 net:atomClass_object_o, + net:atomClass_sun_s2, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:logicalSet_and_a, + net:phenomena_conjunction-AND_a ; + net:coverBaseNode :leaf_hasPart_p9 ; + net:coverNode :leaf_hasPart_p9 ; + net:hasNaming "hasPart" ; + net:hasPropertyName "hasPart" ; + net:hasPropertyName01 "hasPart" ; + net:hasPropertyName10 "hasPart" ; + net:hasPropertyName12 "hasPart" ; + net:hasPropertyType owl:ObjectProperty ; + net:hasStructure "SSC-01-01" ; + net:isCoreRoleLinked true ; + net:targetArgumentNode :leaf_and_a, + :leaf_system_s ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:compositeProperty_not-direct_d2 a net:Composite_Property_Net ; + :role_polarity net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:coverBaseNode :leaf_direct-02_d2 ; + net:coverNode :leaf_direct-02_d2 ; + net:hasNaming "not-direct" ; + net:hasPropertyName "not-direct" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:typeProperty a owl:AnnotationProperty ; + rdfs:label "type property" . + +:AMR_NonCore_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +:AMR_Predicat_Concept a owl:Class ; + rdfs:subClassOf :AMR_Concept . + +:AMR_Role a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:leaf_bind-01_b a :AMR_Leaf ; + :edge_b_ARG0_g :leaf_gravitation_g ; + :edge_b_ARG1_s :leaf_system_s ; + :hasConcept :concept_bind-01 ; + :hasVariable :variable_b . + +:leaf_direct-02_d2 a :AMR_Leaf ; + :edge_d2_polarity_negative :value_negative ; + :hasConcept :concept_direct-02 ; + :hasVariable :variable_d2 . + +:leaf_or_o3 a :AMR_Leaf ; + :edge_o3_op1_d :leaf_direct-02_d ; + :edge_o3_op2_d2 :leaf_direct-02_d2 ; + :hasConcept :concept_or ; + :hasVariable :variable_o3 . + +:leaf_orbit-01_o2 a :AMR_Leaf ; + :edge_o2_ARG0_o :leaf_object_o ; + :edge_o2_ARG1_s2 :leaf_sun_s2 ; + :hasConcept :concept_orbit-01 ; + :hasVariable :variable_o2 . + +:leaf_system_p a :AMR_Leaf ; + :edge_p_name_SolarSystem :value_SolarSystem ; + :hasConcept :concept_system ; + :hasVariable :variable_p . + +sys:Out_Structure a owl:Class ; + rdfs:label "Output Ontology Structure" . + +net:Atom_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:Composite_Class_Net a owl:Class ; + rdfs:subClassOf net:Class_Net . + +net:individual_system_SolarSystem a net:Individual_Net ; + :role_name net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:value_SolarSystem_blankNode ; + net:coverBaseNode :leaf_system_p ; + net:coverNode :leaf_system_p ; + net:hasIndividualLabel "Solar System" ; + net:hasMotherClassName net:atomClass_system_p ; + net:hasMotherClassNet net:atomClass_system_p, + net:atomClass_system_s, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:compositeClass_system-hasPart-sun-and-object-hasPart-object_s, + net:compositeClass_system-hasPart-sun-and-object-hasPart-sun_s, + net:compositeClass_system-hasPart-sun-and-object_s ; + net:hasNaming "system" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:netProperty a owl:AnnotationProperty ; + rdfs:label "netProperty" . + +:AMR_ObjectProperty a owl:ObjectProperty ; + rdfs:subPropertyOf owl:topObjectProperty . + +:AMR_Structure a owl:Class . + +cprm:configParamProperty a rdf:Property ; + rdfs:label "Config Parameter Property" . + +net:Atom_Property_Net a owl:Class ; + rdfs:subClassOf net:Property_Net . + +net:Net_Structure a owl:Class ; + rdfs:label "Semantic Net Structure" ; + rdfs:comment "A semantic net captures a set of nodes, and associates this set with type(s) and value(s)." . + +net:atomClass_system_s a net:Atom_Class_Net, + net:Deprecated_Net ; + :role_domain net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:individual_system_SolarSystem ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_system_s ; + net:coverNodeCount 1 ; + net:hasClassName "system" ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:hasNaming "system" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:compositeClass_system-hasPart-sun-and-object_s a net:Composite_Class_Net ; + :role_domain net:atomClass_system_p, + net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:individual_system_SolarSystem ; + net:coverBaseNode :leaf_system_s ; + net:coverNode :leaf_and_a, + :leaf_hasPart_p9, + :leaf_system_s ; + net:coverNodeCount 3 ; + net:hasClassName "system-hasPart-sun-and-object" ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_system_p, + net:atomClass_system_s, + net:compositeClass_orbit-hasManner-conjunction-OR_o2 ; + net:hasNaming "system-hasPart-sun-and-object" ; + net:hasRestriction01 net:restriction_hasPart_object, + net:restriction_hasPart_sun ; + net:hasStructure "SSC-01-01" ; + net:trackMainNetComposante net:atomClass_system_s ; + net:trackNetComposante net:atomClass_system_s, + net:atomProperty_hasPart_p9, + net:logicalSet_and_a ; + net:trackProgress net:initialized, + net:relation_propagated . + +rdf:Property a owl:Class . + +:AMR_Relation a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +net:Relation a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +:leaf_gravitation_g a :AMR_Leaf ; + :hasConcept :concept_gravitation ; + :hasVariable :variable_g . + +:leaf_object_o a :AMR_Leaf ; + :hasConcept :concept_object ; + :hasVariable :variable_o . + +:leaf_sun_s2 a :AMR_Leaf ; + :hasConcept :concept_sun ; + :hasVariable :variable_s2 . + +net:Net a owl:Class ; + rdfs:subClassOf net:Net_Structure . + +net:Type a owl:Class ; + rdfs:label "Semantic Net Type" ; + rdfs:subClassOf net:Net_Structure . + +net:has_object a owl:AnnotationProperty ; + rdfs:label "relation" ; + rdfs:subPropertyOf net:netProperty . + +:AMR_Op_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +net:atomClass_object_o a net:Atom_Class_Net ; + net:coverBaseNode :leaf_object_o ; + net:coverNode :leaf_object_o ; + net:coverNodeCount 1 ; + net:hasClassName "object" ; + net:hasClassType sys:Entity ; + net:hasNaming "object" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +net:atomClass_sun_s2 a net:Atom_Class_Net ; + net:coverBaseNode :leaf_sun_s2 ; + net:coverNode :leaf_sun_s2 ; + net:coverNodeCount 1 ; + net:hasClassName "sun" ; + net:hasClassType sys:Entity ; + net:hasNaming "sun" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +:AMR_AnnotationProperty a owl:AnnotationProperty . + +:AMR_Core_Role a owl:Class ; + rdfs:subClassOf :AMR_Role . + +sys:Entity a owl:Class ; + rdfs:subClassOf sys:Out_Structure . + +:leaf_hasPart_p9 a :AMR_Leaf ; + :edge_p9_ARG0_s :leaf_system_s ; + :edge_p9_ARG1_a :leaf_and_a ; + :hasConcept :concept_part ; + :hasVariable :variable_p9 ; + :isReifiedLeaf true . + +net:atomClass_system_p a net:Atom_Class_Net ; + :role_name net:compositeClass_orbit-hasManner-conjunction-OR_o2, + net:value_SolarSystem_blankNode ; + net:coverBaseNode :leaf_system_p ; + net:coverNode :leaf_system_p ; + net:coverNodeCount 1 ; + net:hasClassName "system" ; + net:hasNaming "system" ; + net:hasStructure "SSC-01-01" ; + net:trackProgress net:initialized, + net:relation_propagated . + +:AMR_Variable a owl:Class ; + rdfs:subClassOf :AMR_Element . + +:leaf_and_a a :AMR_Leaf ; + :edge_a_op1_s2 :leaf_sun_s2 ; + :edge_a_op2_o :leaf_object_o ; + :hasConcept :concept_and ; + :hasVariable :variable_a . + +:AMR_Leaf a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +net:objectValue a owl:AnnotationProperty ; + rdfs:label "valuations"@fr ; + rdfs:subPropertyOf net:objectProperty . + +:AMR_Edge a owl:Class ; + rdfs:subClassOf :AMR_Structure . + +:leaf_system_s a :AMR_Leaf ; + :edge_s_domain_p :leaf_system_p ; + :hasConcept :concept_system ; + :hasVariable :variable_s . + +net:compositeClass_orbit-hasManner-conjunction-OR_o2 a net:Composite_Class_Net ; + :role_ARG0 net:atomClass_object_o ; + :role_ARG1 net:atomClass_sun_s2 ; + :role_domain net:atomClass_system_p, + net:individual_system_SolarSystem ; + :role_op1 net:atomClass_sun_s2, + net:atomProperty_direct_d ; + :role_op2 net:atomClass_object_o, + net:atomProperty_direct_d2, + net:compositeProperty_not-direct_d2 ; + net:coverNode :leaf_hasManner_m9, + :leaf_or_o3, + :leaf_orbit-01_o2 ; + net:coverNodeCount 3 ; + net:hasClassType sys:Entity ; + net:hasMotherClassNet net:atomClass_system_p ; + net:hasStructure "SSC-01-01" ; + net:trackMainNetComposante net:atomProperty_orbit_o2 ; + net:trackNetComposante net:atomProperty_direct_d, + net:atomProperty_direct_d2, + net:atomProperty_hasManner_m9, + net:atomProperty_orbit_o2, + net:compositeProperty_not-direct_d2, + net:phenomena_conjunction-OR_o3 ; + net:trackProgress net:relation_propagated . + +:AMR_Linked_Data a owl:Class . + +[] a owl:AllDisjointClasses ; + owl:members ( sys:Degree sys:Entity sys:Feature ) . + diff --git a/tests/output/SolarSystemDev1-20230203/technical-data/tenet.log b/tests/output/SolarSystemDev1-20230203/technical-data/tenet.log new file mode 100644 index 0000000000000000000000000000000000000000..9673dc3fe37ccae26a2472afd1e4e2e5d22e688b --- /dev/null +++ b/tests/output/SolarSystemDev1-20230203/technical-data/tenet.log @@ -0,0 +1,228 @@ +- INFO - [TENET] Extraction Processing +- INFO - + === Process Initialization === +- INFO - -- Process Setting +- INFO - ----- Corpus source: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/solar-system-1/ (amr) +- INFO - ----- Base output dir: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230203/SolarSystemDev1_factoid.ttl +- INFO - ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230203/technical-data/ +- INFO - ----- Ontology target (id): SolarSystemDev1 +- 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: SolarSystemDev1 + ----- source corpus: /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/solar-system-1/ + ----- target reference: base + ----- process level: sentence + ----- source type: amr + -- Compositional Transduction Scheme (CTS) + ----- CTS reference: amr_scheme_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/SolarSystemDev1-20230203/SolarSystemDev1_factoid.ttl + ----- output directory: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230203/SolarSystemDev1_factoid.ttlSolarSystemDev1-20230203/ + ----- sentence output directory: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230203/technical-data/ + ----- technical dir path: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230203/technical-data/ + -- Config File Definition + ----- schema file: ./structure/amr-rdf-schema.ttl + ----- semantic net file: ./structure/semantic-net.ttl + ----- config param file: ./structure/config-parameters.ttl + ----- base ontology file: ./structure/base-ontology.ttl + ----- CTS file: ./scheme/amr_scheme_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/solar-system-1/**/*.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/SolarSystemDev1-20230203/technical-data/SolarSystemDev1.ttl + *** - *** +- DEBUG - -- Counting number of graph files (sentences) +- DEBUG - ----- Graph count: 1 +- INFO - + === Extraction Processing === +- INFO - *** sentence 1 *** +- INFO - -- Work Structure Preparation +- DEBUG - --- Graph Initialization +- DEBUG - ----- Configuration Loading +- DEBUG - -------- RDF Schema (302) +- DEBUG - -------- Semantic Net Definition (509) +- DEBUG - -------- Config Parameter Definition (543) +- DEBUG - ----- Frame Ontology Loading +- DEBUG - -------- Base Ontology produced as output (573) +- DEBUG - --- Source Data Import +- DEBUG - ----- Sentence Loading +- DEBUG - -------- /home/lamenji/Workspace/Tetras/tenet/tests/input/amrDocuments/dev/solar-system-1/SSC-01-01.stog.amr.ttl (621) +- DEBUG - --- Export work graph as turtle +- DEBUG - ----- Work graph file: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1.ttl +- INFO - ----- Sentence (id): SSC-01-01 +- INFO - ----- Sentence (text): The Solar System is the gravitationally bound system of the Sun and the objects that orbit it, either directly or indirectly. +- INFO - -- Loading Extraction Scheme (amr_scheme_1) +- DEBUG - ----- Step number: 3 +- INFO - -- Loading Extraction Rules (amr_rule/*) +- DEBUG - ----- Total rule number: 87 +- INFO - -- Applying extraction step: preprocessing +- INFO - --- *** November Transduction *** Sequence: amrld-correcting-sequence +- INFO - ----- fix-amr-bug-about-system-solar-planet: 5/5 new triples (626, 0:00:00.038252) +- INFO - --- *** November Transduction *** Sequence: amr-reification-sequence +- INFO - ----- reclassify-concept-1: 10/10 new triples (636, 0:00:00.107902) +- DEBUG - ----- reclassify-concept-2: 0/0 new triple (636, 0:00:00.063785) +- INFO - ----- reclassify-concept-3: 12/12 new triples (648, 0:00:00.042614) +- INFO - ----- reclassify-concept-4: 16/16 new triples (664, 0:00:00.068130) +- INFO - ----- reclassify-concept-5: 2/4 new triples (666, 0:00:00.043590) +- INFO - ----- reify-roles-as-concept: 10/10 new triples (676, 0:00:00.060419) +- INFO - ----- reclassify-existing-variable: 45/45 new triples (721, 0:00:00.030325) +- INFO - ----- add-new-variable-for-reified-concept: 8/8 new triples (729, 0:00:00.059850) +- INFO - ----- add-amr-leaf-for-reclassified-concept: 33/33 new triples (762, 0:00:00.035395) +- INFO - ----- add-amr-leaf-for-reified-concept: 8/8 new triples (770, 0:00:00.029198) +- INFO - ----- add-amr-edge-for-core-relation: 27/27 new triples (797, 0:00:00.113480) +- INFO - ----- add-amr-edge-for-reified-concept: 12/12 new triples (809, 0:00:00.106678) +- INFO - ----- add-amr-edge-for-name-relation: 5/5 new triples (814, 0:00:00.052388) +- DEBUG - ----- add-value-for-quant-relation: 0/0 new triple (814, 0:00:00.061884) +- INFO - ----- add-amr-edge-for-polarity-relation: 5/5 new triples (819, 0:00:00.054476) +- INFO - ----- update-amr-edge-role-1: 15/15 new triples (834, 0:00:00.081464) +- INFO - ----- add-amr-root: 5/5 new triples (839, 0:00:00.027384) +- DEBUG - --- Serializing graph to SolarSystemDev1_preprocessing +- DEBUG - ----- step: preprocessing +- DEBUG - ----- id: SolarSystemDev1 +- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_preprocessing.ttl +- DEBUG - ----- base: http://SolarSystemDev1/preprocessing +- INFO - ----- 218 triples extracted during preprocessing step +- INFO - -- Applying extraction step: transduction +- INFO - --- *** November Transduction *** Sequence: atomic-extraction-sequence +- INFO - ----- create-atom-class-net: 35/35 new triples (874, 0:00:00.063855) +- DEBUG - ----- (refinement) refine-cover-node-1: 5 new triples (879) +- DEBUG - ----- (refinement) refine-cover-node-2: 5 new triples (884) +- INFO - ----- create-individual-net-1: 10/10 new triples (894, 0:00:00.087831) +- DEBUG - ----- (refinement) refine-cover-node-1: 1 new triples (895) +- INFO - ----- create-atom-property-net-1: 88/88 new triples (983, 0:00:00.143467) +- DEBUG - ----- (refinement) refine-cover-node-1: 6 new triples (989) +- INFO - ----- create-value-net: 17/17 new triples (1006, 0:00:00.056669) +- INFO - ----- create-phenomena-net-1: 24/25 new triples (1030, 0:00:00.071903) +- DEBUG - ----- (refinement) refine-cover-node-1: 2 new triples (1032) +- INFO - --- *** November Transduction *** Sequence: atomic-extraction-sequence +- INFO - ----- create-atom-class-net: 1/49 new triple (1033, 0:00:00.080554) +- DEBUG - ----- create-individual-net-1: 0/10 new triple (1033, 0:00:00.072124) +- INFO - ----- create-atom-property-net-1: 1/95 new triple (1034, 0:00:00.182017) +- DEBUG - ----- create-value-net: 0/17 new triple (1034, 0:00:00.073154) +- DEBUG - ----- create-phenomena-net-1: 0/25 new triple (1034, 0:00:00.082234) +- INFO - --- *** November Transduction *** Sequence: phenomena-application-polarity-sequence +- INFO - ----- polarity-phenomena-application: 8/9 new triples (1042, 0:00:00.127186) +- DEBUG - ----- (refinement) refine-cover-node-1: 1 new triples (1043) +- INFO - --- *** November Transduction *** Sequence: phenomena-application-mod-sequence +- DEBUG - ----- mod-phenomena-application-1: 0/0 new triple (1043, 0:00:00.104140) +- DEBUG - ----- mod-phenomena-application-2: 0/0 new triple (1043, 0:00:00.052478) +- DEBUG - ----- mod-phenomena-application-3: 0/0 new triple (1043, 0:00:00.071023) +- INFO - --- *** November Transduction *** Sequence: phenomena-application-and-sequence +- INFO - ----- and-conjunction-phenomena-application-1: 14/17 new triples (1057, 0:00:00.253493) +- DEBUG - ----- (refinement) refine-cover-node-1: 1 new triples (1058) +- INFO - ----- and-conjunction-phenomena-application-2: 1/1 new triple (1059, 0:00:00.131130) +- INFO - ----- and-conjunction-phenomena-application-3: 14/14 new triples (1073, 0:00:00.155105) +- INFO - ----- and-conjunction-phenomena-application-4: 14/14 new triples (1087, 0:00:00.192492) +- DEBUG - ----- (refinement) refine-cover-node-2: 1 new triples (1088) +- INFO - ----- and-conjunction-phenomena-application-5: 6/9 new triples (1094, 0:00:00.080624) +- INFO - ----- and-conjunction-phenomena-application-6: 2/2 new triples (1096, 0:00:00.283383) +- INFO - --- *** January Transduction *** Sequence: "or" phenomena analysis 1 (targetting class) +- DEBUG - ----- new net construction: 0/0 new triple (1096, 0:00:00.064987) +- INFO - --- *** January Transduction *** Sequence: "or" phenomena analysis 2 (targetting property) +- INFO - ----- new net construction: 9/9 new triples (1105, 0:00:00.080268) +- INFO - --- *** November Transduction *** Sequence: phenomena-checking-sequence +- INFO - ----- expand-and-conjunction-phenomena-net: 8/8 new triples (1113, 0:00:00.020282) +- DEBUG - ----- (refinement) refine-cover-node-2: 1 new triples (1114) +- DEBUG - ----- expand-degree-phenomena-net-1: 0/0 new triple (1114, 0:00:00.009769) +- DEBUG - ----- expand-degree-phenomena-net-2: 0/0 new triple (1114, 0:00:00.012238) +- DEBUG - ----- expand-degree-phenomena-net-3: 0/0 new triple (1114, 0:00:00.012075) +- DEBUG - ----- expand-degree-phenomena-net-4: 0/0 new triple (1114, 0:00:00.009613) +- DEBUG - ----- expand-degree-phenomena-net-5: 0/0 new triple (1114, 0:00:00.010455) +- DEBUG - ----- expand-degree-phenomena-net-6: 0/0 new triple (1114, 0:00:00.010295) +- INFO - --- *** November Transduction *** Sequence: composite-property-extraction-sequence +- DEBUG - ----- create-composite-class-net-from-property-1: 0/0 new triple (1114, 0:00:00.123164) +- DEBUG - ----- create-composite-class-net-from-property-2: 0/0 new triple (1114, 0:00:00.228817) +- INFO - --- *** November Transduction *** Sequence: composite-class-extraction-sequence-1 +- INFO - ----- create-composite-class-net-from-property-1: 48/54 new triples (1162, 0:00:00.825277) +- DEBUG - ----- (refinement) refine-cover-node-1: 7 new triples (1169) +- DEBUG - ----- (refinement) refine-cover-node-2: 3 new triples (1172) +- DEBUG - ----- create-composite-class-net-from-property-2: 0/0 new triple (1172, 0:00:00.181139) +- INFO - ----- create-composite-class-net-from-property-3: 50/57 new triples (1222, 0:00:00.622659) +- INFO - --- *** November Transduction *** Sequence: composite-class-extraction-sequence-2 +- DEBUG - ----- create-composite-class-net-from-phenomena-1: 0/0 new triple (1222, 0:00:00.048005) +- DEBUG - ----- create-composite-class-net-from-phenomena-2: 0/0 new triple (1222, 0:00:00.056860) +- DEBUG - ----- create-composite-class-net-from-phenomena-3: 0/0 new triple (1222, 0:00:00.044648) +- DEBUG - ----- create-composite-class-net-from-phenomena-4: 0/0 new triple (1222, 0:00:00.068701) +- INFO - --- *** November Transduction *** Sequence: restriction-adding-sequence +- DEBUG - ----- add-restriction-to-class-net-from-property-1: 0/0 new triple (1222, 0:00:00.062174) +- INFO - --- *** November Transduction *** Sequence: classification-sequence +- INFO - ----- classify-net-from-core-1: 8/8 new triples (1230, 0:00:00.008687) +- INFO - ----- classify-net-from-core-2: 1/7 new triple (1231, 0:00:00.011179) +- DEBUG - ----- classify-net-from-core-3: 0/0 new triple (1231, 0:00:00.058949) +- DEBUG - ----- classify-net-from-part: 0/0 new triple (1231, 0:00:00.010257) +- INFO - ----- classify-net-from-domain: 9/9 new triples (1240, 0:00:00.014269) +- DEBUG - ----- classify-net-from-degree-phenomena-1: 0/0 new triple (1240, 0:00:00.012604) +- DEBUG - ----- classify-net-from-degree-phenomena-2: 0/0 new triple (1240, 0:00:00.044657) +- DEBUG - ----- classify-net-from-degree-phenomena-3: 0/0 new triple (1240, 0:00:00.010194) +- INFO - ----- propagate-individual-1: 1/1 new triple (1241, 0:00:00.013292) +- INFO - ----- propagate-individual-2: 5/5 new triples (1246, 0:00:00.016344) +- DEBUG - ----- reclassify-deprecated-net: 0/0 new triple (1246, 0:00:00.006870) +- DEBUG - --- Serializing graph to SolarSystemDev1_transduction +- DEBUG - ----- step: transduction +- DEBUG - ----- id: SolarSystemDev1 +- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_transduction.ttl +- DEBUG - ----- base: http://SolarSystemDev1/transduction +- INFO - ----- 407 triples extracted during transduction step +- INFO - -- Applying extraction step: generation +- INFO - --- *** November Transduction *** Sequence: main-generation-sequence +- INFO - ----- compute-uri-for-owl-declaration-1: 8/8 new triples (1254, 0:00:00.035470) +- INFO - ----- compute-uri-for-owl-declaration-2: 1/4 new triple (1255, 0:00:00.027287) +- INFO - ----- compute-uri-for-owl-declaration-3: 1/1 new triple (1256, 0:00:00.037753) +- DEBUG - ----- compute-uri-for-owl-declaration-4: 0/0 new triple (1256, 0:00:00.026806) +- INFO - ----- compute-uri-for-owl-declaration-5: 6/6 new triples (1262, 0:00:00.062423) +- INFO - ----- compute-uri-for-owl-declaration-6: 5/5 new triples (1267, 0:00:00.034051) +- INFO - ----- generate-atom-class: 12/12 new triples (1279, 0:00:00.012951) +- INFO - ----- classify-atom-class-1: 4/4 new triples (1283, 0:00:00.011279) +- DEBUG - ----- classify-atom-class-2: 0/0 new triple (1283, 0:00:00.019103) +- INFO - ----- generate-individual: 3/3 new triples (1286, 0:00:00.013992) +- DEBUG - ----- classify-individual-1: 0/0 new triple (1286, 0:00:00.008909) +- INFO - ----- classify-individual-2: 4/4 new triples (1290, 0:00:00.016986) +- INFO - ----- generate-atom-property-1: 16/16 new triples (1306, 0:00:00.015505) +- INFO - ----- generate-atom-property-12: 8/16 new triples (1314, 0:00:00.016944) +- DEBUG - ----- generate-inverse-relation: 0/0 new triple (1314, 0:00:00.010950) +- INFO - ----- generate-composite-class: 18/18 new triples (1332, 0:00:00.018159) +- DEBUG - ----- add-restriction-to-class-1: 0/0 new triple (1332, 0:00:00.025382) +- DEBUG - ----- add-restriction-to-class-2: 0/0 new triple (1332, 0:00:00.020355) +- INFO - ----- add-restriction-to-class-3: 20/24 new triples (1352, 0:00:00.029991) +- DEBUG - ----- add-restriction-to-class-4: 0/0 new triple (1352, 0:00:00.018511) +- DEBUG - ----- add-restriction-to-class-5: 0/0 new triple (1352, 0:00:00.018806) +- DEBUG - ----- add-restriction-to-class-6: 0/0 new triple (1352, 0:00:00.016765) +- DEBUG - ----- generate-composite-property: 0/0 new triple (1352, 0:00:00.012789) +- DEBUG - --- Serializing graph to SolarSystemDev1_generation +- DEBUG - ----- step: generation +- DEBUG - ----- id: SolarSystemDev1 +- DEBUG - ----- work_file: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_generation.ttl +- DEBUG - ----- base: http://SolarSystemDev1/generation +- INFO - ----- 106 triples extracted during generation step +- INFO - -- Result: file containing only the factoids +- DEBUG - --- Making factoid graph with the last step result +- DEBUG - ----- Number of factoids: 121 +- DEBUG - ----- Graph base: http://SolarSystemDev1/factoid +- DEBUG - --- Serializing graph to factoid file (/home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230203/technical-data/SolarSystemDev1-1/SolarSystemDev1_factoid.ttl) +- INFO - + === Final Ontology Generation === +- INFO - -- Making complete factoid graph by merging the result factoids +- INFO - ----- Total factoid number: 121 +- INFO - -- Serializing graph to factoid string +- INFO - ----- Graph base: http://SolarSystemDev1/factoid +- INFO - -- Serializing graph to factoid file +- INFO - ----- Ontology Turtle File: /home/lamenji/Workspace/Tetras/tenet/tests/output/SolarSystemDev1-20230203/SolarSystemDev1_factoid.ttl +- INFO - + === Done === diff --git a/tests/test_tenet_rule.py b/tests/test_tenet_rule.py index c48abb7ecd079b416aa3cddabc12afea893394d5..35469dcc4a45e3d33e7897ac46deb218403676b4 100644 --- a/tests/test_tenet_rule.py +++ b/tests/test_tenet_rule.py @@ -7,8 +7,30 @@ # Script to test rules under development #============================================================================== +import subprocess, os +from rdflib import Graph + +FILE_PATH = f'{os.path.dirname(os.path.abspath(__file__))}' +INPUT_DIR_PATH = f'{FILE_PATH}/input/' +OUTPUT_DIR_PATH = f'{FILE_PATH}/output/' +TEST_GRAPH = f'{INPUT_DIR_PATH}testGraph1.ttl' + from context import tenet -from scheme.amr_rule.transduction import phenomena_application +from tenet.febTransduction import query_builder + +INDENT_STR = ' ' + + + +#============================================================================== +# In-Progress Development Method(s) +#============================================================================== + +def define_clause_list(composition_pattern_list): + clause_list = [] + for (net_1, relation, net_2) in composition_pattern_list: + clause_list.append(f'{net_1} {relation} {net_2}.') + return clause_list #============================================================================== @@ -17,24 +39,38 @@ from scheme.amr_rule.transduction import phenomena_application print('\n *** Development Test ***') -print(f'\n -- Rule set: phenomena application') -rule_set = phenomena_application.rule_set +print(f'\n -- Test Graph Loading') +work_graph = Graph() +work_graph.parse(TEST_GRAPH) +print(f"----- Graph Loaded ({len(work_graph)})") + +print(f'\n -- Test Nets') +property_net = '?property_net' +class_net_0 = '?class_net_0' +phenomena_net = '?phenomena_net' + +print(f'\n -- Select Query Test') +select_data_list = [class_net_0, property_net, phenomena_net] +composition_pattern_list = [] +composition_pattern_list.append((property_net, 'amr:role_ARG0', class_net_0)) +composition_pattern_list.append((property_net, 'amr:role_ARG1', phenomena_net)) +clause_list = define_clause_list(composition_pattern_list) +test_query = query_builder.generate_select_query(select_data_list, clause_list) +print(test_query) +query_result = work_graph.query(test_query) +for row in query_result: + print(f"{row.class_net_0} - {row.property_net} - {row.phenomena_net} ") + -print('\n -- Test Query') -# rule = rule_set['polarity-phenomena-application'] -rule = rule_set['and-conjunction-phenomena-application-1'] -test_query_1 = f"""[...] - CONSTRUCT {{ - {rule['construction']} - - }} - WHERE {{ - {rule['clause']} - - {rule['binding']} - - }} -""" -print(test_query_1) + +print(f'\n -- Insert Query Test') +triple_list = ['net:net1 a net:ClassNet.', + 'net:net2 a net:PropertyNet.', + 'net:net3 a net:ClassNet.'] +test_query = query_builder.generate_insert_query(triple_list) +print(test_query) +work_graph.update(test_query) +print(f"----- Graph Updated ({len(work_graph)})") + print('\n' + ' *** - ***') \ No newline at end of file