Closed MBueschelberger closed 3 years ago
Note to self and other developers: this is NOT a duplicate of issue #593.
There indeed a bug in the code that makes it not show the actual traceback that should be shown when there are duplicate labels. I have created pull request #608 to fix this bug.
This does not mean that there are not any items with duplicate labels, just that the wrong error is being thrown. You can try to install the ontology again with the first commit of the pull request to find the offenders. Just clone the OSP-core repository, enter it and git fetch && git checkout 2da6b87 && pip uninstall -y osp-core && pip install .
, then you will get the correct traceback listing the offenders.
As the changes on the pull request branch are working correctly, I am closing the issue.
When installing an inferred EMMO-onology with
osp-core
v3.5.2 and this configuration file, I get the following traceback:The error obviously occurs in the
_check_duplicate_labels
of theosp.core.ontology.parser
, even thoughAbsorbedDose
only appears once asskos:prefLabel
in theinferred-gmshwrapper.owl
.The error is obviously not related to the global SimPhoNy-graph, since it also appears if no other ontology is installed so far.
See the pico list:
While running the same command ("
pico install --overwrite gmshwrapper.yml
") in thecli
forosp-core
v3.5.1, the installation works seamessly.