validator.validations.rules_individual
OntoUML Rule Execution Module.
This module provides a collection of functions for executing various OntoUML validation rules. It is designed to validate OntoUML models loaded as RDF graphs using a set of predefined rules. The module currently contains implementations for multiple rules. Additional rules can be easily added in the future.
Module Contents
Functions
|
Execute rule CL001 and return its description and results. |
- validator.validations.rules_individual.execute_rule_CL001(ontouml_model, rule_code)
Execute rule CL001 and return its description and results.
- Parameters:
-
ontouml_model (Graph) – The OntoUML model in graph format (using the ontouml-vocabulary) to be validated by the rule.
rule_code (str) – Code of this rule.
- Returns:
A tuple with two components: - A list of all warnings (as a ResultIssue object) found during the specific rule’s validation process. - A list of all errors (as a ResultIssue object) found during the specific rule’s validation process.
- Return type:
tuple[list[ResultIssue], list[ResultIssue]]