unibz-core / Scior

Identification of ontological categories for OWL ontologies.
https://purl.org/scior
Apache License 2.0
3 stars 1 forks source link

Modifications for assuring compatibility with the OntCatOWL-Tester #10

Closed pedropaulofb closed 1 year ago

pedropaulofb commented 1 year ago

As OntCatOWL is now used as a library by the OntCatOWL-Tester, we must make modifications because not all of its functions are necessary for the tester.

Trought calling OntCatOWL via the Tester, we don't need:

  1. to print any information on the screen (e.g., interactive functions or statistics printing)
  2. to generate the report file by the end of the execution
  3. to print logging info and warnings (errors must be printed)

I suggest implementing a new argument on OntCatOWL for ignoring the functions that perform the listed activities (e.g., -tester).

When -tester is received, we also have to set the reasoning (-r) as False and _isautomatic as True.

Regarding 3: each project has its own logger. When called by the Tester, we should change both occurrences of "new_logger.setLevel(logging.XXX)" to XXX = ERROR.

pedropaulofb commented 1 year ago

@mozzherina, please close this issue after testing the modifications implemented today.

pedropaulofb commented 1 year ago

This was solved by creating a function called run_ontcatowl_tester in main.py and by exporting it in __init__.py