Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Jul 3, 2024
1 parent bb100fa commit 9832942
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions cmem_plugin_reason/plugin_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,20 +187,6 @@ def __init__( # noqa: PLR0913
sub_object_property: bool = False,
max_ram_percentage: int = MAX_RAM_PERCENTAGE_DEFAULT,
) -> None:
self.sub_class = sub_class
self.equivalent_class = equivalent_class
self.disjoint_classes = disjoint_classes
self.data_property_characteristic = data_property_characteristic
self.equivalent_data_properties = equivalent_data_properties
self.sub_data_property = sub_data_property
self.class_assertion = class_assertion
self.property_assertion = property_assertion
self.equivalent_object_property = equivalent_object_property
self.inverse_object_properties = inverse_object_properties
self.object_property_characteristic = object_property_characteristic
self.sub_object_property = sub_object_property
self.object_property_range = object_property_range
self.object_property_domain = object_property_domain
self.axioms = {
"SubClass": sub_class,
"EquivalentClass": equivalent_class,
Expand Down Expand Up @@ -236,6 +222,20 @@ def __init__( # noqa: PLR0913
errors += 'Invalid value for parameter "Maximum RAM Percentage". '
if errors:
raise ValueError(errors[:-1])
self.sub_class = sub_class
self.equivalent_class = equivalent_class
self.disjoint_classes = disjoint_classes
self.data_property_characteristic = data_property_characteristic
self.equivalent_data_properties = equivalent_data_properties
self.sub_data_property = sub_data_property
self.class_assertion = class_assertion
self.property_assertion = property_assertion
self.equivalent_object_property = equivalent_object_property
self.inverse_object_properties = inverse_object_properties
self.object_property_characteristic = object_property_characteristic
self.sub_object_property = sub_object_property
self.object_property_range = object_property_range
self.object_property_domain = object_property_domain
self.data_graph_iri = data_graph_iri
self.ontology_graph_iri = ontology_graph_iri
self.output_graph_iri = output_graph_iri
Expand Down

0 comments on commit 9832942

Please sign in to comment.