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

Is it possible to write OWL? #232

Open
sorenwacker opened this issue Sep 12, 2024 · 1 comment
Open

Is it possible to write OWL? #232

sorenwacker opened this issue Sep 12, 2024 · 1 comment
Labels
question A question about the library.

Comments

@sorenwacker
Copy link

---------------------------------------------------------------------------
ValueError                                Traceback (most recent call last)
Cell In[20], line 2
      1 with open("chebi_core.owl", "wb") as f:
----> 2     ont.dump(f, format="owl")

File [~/miniforge3/envs/ds/lib/python3.11/site-packages/pronto/ontology.py:408](http://localhost:8888/lab/tree/~/miniforge3/envs/ds/lib/python3.11/site-packages/pronto/ontology.py#line=407), in Ontology.dump(self, file, format)
    406         break
    407 else:
--> 408     raise ValueError(f"could not find a serializer to handle {format!r}")

ValueError: could not find a serializer to handle 'owl'
@althonos
Copy link
Owner

Hi @sorenwacker,

At the moment it is not possible. Ultimately I want to export the whole Ontology to an OBO document with fastobo, and then use the mapping to OWL in there to generate the OWL file, but I didn't get around to write it.

@althonos althonos added the question A question about the library. label Sep 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question A question about the library.
Projects
None yet
Development

No branches or pull requests

2 participants