Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix validation issues #9

Merged
merged 32 commits into from
Aug 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
5f8263e
define schemas, remove write_md and produc_graph bool parameters
muddymudskipper Jul 25, 2024
79e9366
fix condition to write MD file to project
muddymudskipper Jul 25, 2024
70e4ce5
validate inputs (Reason)
muddymudskipper Jul 25, 2024
d6735f0
use ontology IRI from input if input_profiles=True
muddymudskipper Jul 26, 2024
c351fa7
fix incorrect stopping of workflow if 'validate_profiles' is enabled …
muddymudskipper Jul 26, 2024
fe56b95
remove iter cast from output entities
muddymudskipper Jul 26, 2024
4d81367
fixing import bug
muddymudskipper Jul 26, 2024
e2aad78
fix error when result graph is imported in input graph
muddymudskipper Aug 7, 2024
43a3264
edit readme
muddymudskipper Aug 7, 2024
24de786
fixes (CMEM-5913), use custom paramter type for output graph IRI
muddymudskipper Aug 8, 2024
a8b5ca5
edit parameter description
muddymudskipper Aug 8, 2024
8e6120d
init ExecutionReport
muddymudskipper Aug 8, 2024
73ee56b
edit parameter label
muddymudskipper Aug 8, 2024
dd5a654
use GraphParameterType(allow_only_autocompleted_values=False) instead…
muddymudskipper Aug 8, 2024
0b1aac0
set allowed classes for output graph list to Dataset and Ontology
muddymudskipper Aug 8, 2024
49ff6ba
fix indentation
muddymudskipper Aug 8, 2024
3441702
removee reason merge in reason
muddymudskipper Aug 9, 2024
021f78f
remove robot merge in Validate
muddymudskipper Aug 9, 2024
bc6cf5e
refactor parameter variable generation
muddymudskipper Aug 12, 2024
7ff5ff9
add '[processed ontology] a owl:Ontology' to output graph, use config…
muddymudskipper Aug 12, 2024
a3ce2ba
edit readme
muddymudskipper Aug 12, 2024
31270c1
fix test
muddymudskipper Aug 12, 2024
5a760d6
remove unused method
muddymudskipper Aug 12, 2024
d8c3d40
verify valid_profiles input
muddymudskipper Aug 12, 2024
304abf7
add parameters for owl:imports and entity output. PLugin doc imported…
muddymudskipper Aug 13, 2024
7cb5c87
fix tests
muddymudskipper Aug 13, 2024
f3107f1
edit docs
muddymudskipper Aug 14, 2024
ddd3a8b
edit doc
muddymudskipper Aug 14, 2024
984c880
edit doc
muddymudskipper Aug 14, 2024
3fa1408
edit parameters
muddymudskipper Aug 14, 2024
f6ee106
remove SSL_VERIFY env variable setting
muddymudskipper Aug 14, 2024
5533ba1
specify output entity paths in Validate tests
muddymudskipper Aug 15, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,27 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/) and this p

## [Unreleased]

### Added

- defined input and output schema
- Reason: parameters to import the result graph in the ontology graph and to import the ontology graph in the result graph
- Validate: parameter to enable/disable entity output

### Fixed

- incorrect stopping of workflow if "validate_profiles" and "stop_at_inconsistencies" is enabled in Validate plugin
- fixed error when output graph is imported by input graph; the import is removed in-memory before reasoning

### Changed

- raise OSError on post result graph error
- removed write_md and produce_graph bool parameters
- if "input_profiles" is enabled the Reason plugin expects "ontology_iri" and "profile" on the input.
The ontology IRI on the input overrides the plugin setting.
- update execution report
- Output graph IRI selectable from existing graphs
- When "input_profiles" is enabled the ontology IRI and list of valid OWL2 profiles is now taken from the config port.
The list of valid profiles is a comma-separated string (e.g. "Full,DL")

## [1.0.0beta4] 2024-07-12

Expand Down
29 changes: 20 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -84,15 +84,21 @@ parameters to include inferred axiom generators:

### Validate OWL2 profiles

Validate the input ontology against OWL profiles (DL, EL, QL, RL, and Full). The ontology is annotated in the output graph.
Validate the input ontology against OWL profiles (DL, EL, QL, RL, and Full) and annotate the result graph.

### Process valid OWL profiles from input

If enabled along with the "Validate OWL2 profiles" parameter, the list of valid profiles is taken from the plugin input,
without validating the ontology against the profiles in the plugin. The inputs need to include the entity paths "profile"
for the valid profiles, and "ontology" for the ontology IRI. If the "Validate OWL2 profiles" parameter is enabled in the
"Validate" plugin, it can be directly connected to the input of the "Reason" plugin.
If enabled along with the "Validate OWL2 profiles" parameter, the valid profiles and ontology IRI is taken from the
config port input (parameters "valid_profiles" and "ontology_graph_iri") instead of from running the validation in the
plugin. The valid profiles input is a comma-separated string (e.g. "Full,DL").

### Add ontology graph import to result graph

Add the triple `<output_graph_iri> owl:imports <ontology_graph_iri>` to the output graph.

### Add result graph import to ontology graph

Add the triple `<ontology_graph_iri> owl:imports <output_graph_iri>` to the ontology graph

### Maximum RAM Percentage

Expand All @@ -102,7 +108,9 @@ Maximum heap size for the Java virtual machine in the DI container running the r

# Validate

The plugin outputs the explanation as text in Markdown format using the path "markdown".
The plugin outputs the explanation as text in Markdown format on the path "markdown",
the ontology IRI on the path "ontology_graph_iri", and (if enabled) the valid OWL2 profiles on the path "valid_profiles" as
a comma-separated string.

## Options

Expand Down Expand Up @@ -145,9 +153,12 @@ Raise an error if inconsistencies are found. If enabled, the plugin does not out

### Validate OWL2 profiles

Validate the input ontology against OWL profiles (DL, EL, QL, RL, and Full). The valid profiles are added to the output
Markdown file and the ontology is annotated in the output graph. The plugin outputs the profiles with path "profile",
and the ontology IRI with path "ontology".
Validate the input ontology against OWL profiles (DL, EL, QL, RL, and Full) and annotate the result graph.

### Output entities

Output entities. The plugin outputs the explanation as text in Markdown format on the path "markdown", the ontology IRI
on the path "ontology_graph_iri", and, if enabled, the valid OWL2 profiles on the path "valid_profiles

### Maximum RAM Percentage

Expand Down
Loading
Loading