unibz-core / Scior

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

Execution name for OntCatOWL #11

Closed pedropaulofb closed 1 year ago

pedropaulofb commented 1 year ago

A user should be allowed to run OntCatOWL using "ontcatowl" instead of having to call its main.py file. Currently this is not working as can be observed below:

(venv) PS C:\Users\PFavatoBarcelos\Dev\Work\OntCatOWL> python ontcatowl -v
C:\Users\PFavatoBarcelos\Dev\Work\OntCatOWL\venv\Scripts\python.exe: can't find '__main__' module in 'C:\\Users\\PFavatoBarcelos\\Dev\\Work\\OntCatOWL\\ontcatowl'
(venv) PS C:\Users\PFavatoBarcelos\Dev\Work\OntCatOWL> python OntCatOWL -v 
C:\Users\PFavatoBarcelos\Dev\Work\OntCatOWL\venv\Scripts\python.exe: can't find '__main__' module in 'C:\\Users\\PFavatoBarcelos\\Dev\\Work\\OntCatOWL\\OntCatOWL'
(venv) PS C:\Users\PFavatoBarcelos\Dev\Work\OntCatOWL> python run_ontcatowl -v
C:\Users\PFavatoBarcelos\AppData\Local\Programs\Python\Python311\python.exe: can't open file 'C:\\Users\\PFavatoBarcelos\\Dev\\Work\\OntCatOWL\\run_ontcatowl': [Errno 2] No such file or directory
(venv) PS C:\Users\PFavatoBarcelos\Dev\Work\OntCatOWL> python ontcatowl.run_ontcatowl -v
C:\Users\PFavatoBarcelos\AppData\Local\Programs\Python\Python311\python.exe: can't open file 'C:\\Users\\PFavatoBarcelos\\Dev\\Work\\OntCatOWL\\ontcatowl.run_ontcatowl': [Errno 2] No such file or directory
(venv) PS C:\Users\PFavatoBarcelos\Dev\Work\OntCatOWL> python ontcatowl\ -v             
C:\Users\PFavatoBarcelos\Dev\Work\OntCatOWL\venv\Scripts\python.exe: can't find '__main__' module in 'C:\\Users\\PFavatoBarcelos\\Dev\\Work\\OntCatOWL\\ontcatowl\\'
(venv) PS C:\Users\PFavatoBarcelos\Dev\Work\OntCatOWL> python ontcatowl -v 
C:\Users\PFavatoBarcelos\Dev\Work\OntCatOWL\venv\Scripts\python.exe: can't find '__main__' module in 'C:\\Users\\PFavatoBarcelos\\Dev\\Work\\OntCatOWL\\ontcatowl'
pedropaulofb commented 1 year ago

A regular user without knowledge about coding must be able simply to call the script without having to download PyCharm or any other development tool.

pedropaulofb commented 1 year ago

There is a note about this problem in the current version of the README.md file. Hence, as soon as this problem is solved we have to update the documentation removing the statement from there.

pedropaulofb commented 1 year ago

It must be executed from the project folder using:

python -m scior.main -owa example_path\example_file.ttl