owlcs / owlapi

OWL API main repository
821 stars 315 forks source link

Support for prefix declarations in OBO format #1102

Open balhoff opened 1 year ago

balhoff commented 1 year ago

This adds support for reading and writing prefix declarations in OBO format (idspace tags), and using them for expanding and compacting identifiers. It builds on initial work done by @gouttegd in https://github.com/owlcs/owlapi/pull/1072, moved to the version4 branch. These changes also treat values of replaced_by and consider tags as IRIs rather than strings.

OBODocumentFormat now extends PrefixDocumentFormatImpl.

This should stay as a draft PR until some tests are added.

matentzn commented 3 months ago

THAAAANK you @ignazio1977!! It works: https://github.com/ontodev/robot/pull/1200