Closed cmungall closed 6 hours ago
Aside: the link to the changelog in https://github.com/ontology-tools/py-horned-owl/releases/tag/v1.0.1 goes to the wrong version...
It looks like there is now a separate PrefixMapping
object. This makes sense, but it seems to work differently
This used to work:
o = PyIndexedOntology()
o.add_prefix_mapping("", "http://example.org/")
C = o.clazz("C")
This is my attempt to migrate to 1.0.1:
o = PyIndexedOntology()
o.prefix_mapping.add_prefix("", "http://example.org/")
C = o.clazz("C")
ValueError: Invalid curie: MissingDefault
so in addition to the method disappearing, there seems to be a different way to add base prefixes?
The removal of the add_prefix_mapping
was unintentional. In the future, I'd like to replace the add_prefix_mapping
with prefix_mapping.add_prefix
but of course, there should be no breaking changes. I will re-add it.
Fixed in 1.0.2
This example here:
https://github.com/ontology-tools/py-horned-owl/blob/main/docs/source/quickstart.rst#L26
shows a method
add_prefix_mapping
This worked in 1.0.0, and I have been using it in my code
This disappeared in 1.0.1
Example:
This is where it disappears:
https://github.com/ontology-tools/py-horned-owl/compare/v1.0.0...v1.0.1#diff-584789db210d70434439494120067217ff5dfe2745f333ae8de7e89e3329eae0L30-L35