Skip to content

Commit

Permalink
remove exclude-duplicate-axioms parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
muddymudskipper committed Jun 28, 2024
1 parent cb2e275 commit 1d97ed8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 17 deletions.
7 changes: 1 addition & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,12 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](https://semver.org/)

## [Unreleased]

### Changed

- default value for "Maximum RAM percentage" parameter changed from 15 to 20

## [1.0.0alpha2] 2024-06-28

### Added

- "Annotate inferred axioms" and "Exclude duplicate axioms" parameters in Reason plugin
- "Annotate inferred axioms" parameter in Reason plugin
- "Maximum RAM percentage" parameter in Reason and Validate plugins

### Changed
Expand Down
12 changes: 1 addition & 11 deletions cmem_plugin_reason/plugin_reason.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,14 +160,6 @@
description="",
default_value=False,
),
PluginParameter(
param_type=BoolParameterType(),
name="exclude_duplicate_axioms",
label="Exclude duplicate axioms",
description="Do not add axioms to the output if they exist in an import.",
default_value=True,
advanced=True,
),
PluginParameter(
param_type=BoolParameterType(),
name="annotate_inferred_axioms",
Expand Down Expand Up @@ -202,7 +194,6 @@ def __init__( # noqa: PLR0913
sub_class: bool = True,
sub_data_property: bool = False,
sub_object_property: bool = False,
exclude_duplicate_axioms: bool = True,
annotate_inferred_axioms: bool = False,
max_ram_percentage: int = MAX_RAM_PERCENTAGE_DEFAULT,
) -> None:
Expand Down Expand Up @@ -255,7 +246,6 @@ def __init__( # noqa: PLR0913
self.ontology_graph_iri = ontology_graph_iri
self.result_graph_iri = result_graph_iri
self.reasoner = reasoner
self.exclude_duplicate_axioms = str(exclude_duplicate_axioms).lower()
self.annotate_inferred_axioms = str(annotate_inferred_axioms).lower()
self.max_ram_percentage = max_ram_percentage
self.temp = f"reason_{uuid4().hex}"
Expand Down Expand Up @@ -287,7 +277,7 @@ def reason(self, graphs: dict) -> None:
f'--axiom-generators "{axioms}" '
f"--annotate-inferred-axioms {self.annotate_inferred_axioms} "
f"--include-indirect true "
f"--exclude-duplicate-axioms {self.exclude_duplicate_axioms} "
f"--exclude-duplicate-axioms true "
f"--exclude-owl-thing true "
f"--exclude-tautologies all "
f"--exclude-external-entities "
Expand Down

0 comments on commit 1d97ed8

Please sign in to comment.