Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dump as OWL #149

Open
cthoyt opened this issue Sep 15, 2021 · 6 comments
Open

Dump as OWL #149

cthoyt opened this issue Sep 15, 2021 · 6 comments
Labels
enhancement An issue to request an enhancement, or a pull request implementing one.

Comments

@cthoyt
Copy link

cthoyt commented Sep 15, 2021

Right now the Ontology.dump() function only supports OBO and OBO Graph JSON. It would be great if it could dump valid OWL (e.g. in RDF/XML) or another serialization of OWL that can be read by Protege

@althonos
Copy link
Owner

It's getting there, I have almost finalized the OBO to OWL mapping at the syntactic level in fastobo-owl, with that I will be able to provide OWL/XML and OWL/Functional serialization, and any other output format supported by horned-owl!

@cthoyt
Copy link
Author

cthoyt commented Jan 19, 2022

Excellent news! However the OWL python software ecosystem is basically turtles all the way down now... it would be great to have a reference implementation of everything in one package (would be great if it were yours). I guess you're involved in horned-owl though?

@althonos
Copy link
Owner

Well, horned-owl has some work going on regarding RDF formats with the rio_api, for now it's hardcoded to be used with an RDF/XML parser, but rio_api is generic so in theory you could get support for turtles with limited effort with rio-turtle. That's probably going to take longer though, for now I'll focus on getting the current formats into fastobo before adding new ones.

@althonos
Copy link
Owner

The end goal being to have the different implementations in different Rust crates, but then expose all of them in the fastobo-py package so they can be used in Python with fastobo.load_owl and fastobo.dump_owl, just like the OBO-graph format :)

@althonos althonos added the enhancement An issue to request an enhancement, or a pull request implementing one. label Jan 24, 2022
@althonos
Copy link
Owner

Okay so you can now dump to OWL Functional in v2.4.4, I'll update when the horned-owl XML serializer is fixed to support OWL/XML, and then for the RDF-based formats we may have a bit of upstream work to do first.

@serenalotreck
Copy link

@althonos wanted to follow up to see what the status of this enhancement is. I'd like to turn an OBO ontology into OWL format; however, in both the docs and the source code, it looks like OWL Functional isn't supported (I have v2.5.5)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An issue to request an enhancement, or a pull request implementing one.
Projects
None yet
Development

No branches or pull requests

3 participants