Harold-Solbrig / funowl

Pythonic representation of OWL through the OWL functional syntax
Creative Commons Zero v1.0 Universal
50 stars 5 forks source link

[question] Converting ontology format #57

Open az-ihsan opened 2 years ago

az-ihsan commented 2 years ago

Hi,

Is there any chance that I can convert the ontology written in functional syntax into rdf based format with funowl?

THank you.

hsolbrig commented 2 years ago

Yes -- that is one thing it is pretty good at, although it takes a bit 'o time if you are loading something the size of SNOMED-CT. I'll add some instructions on how to use the CLI a little later today.

az-ihsan commented 2 years ago

Perfect, looking forward!

hsolbrig commented 2 years ago

So it turns out that I never created an official CLI. Will correct this shortly, but a code example can now be found in the README of https://github.com/Harold-Solbrig/funowl/tree/issue_57 as well as an example in the tests/test_issues/test_issue_57 directory. Note that there are a couple of useful options in the to_rdf function...

az-ihsan commented 1 year ago

Thank you very much! it works perfectly now to my problem..

hsolbrig commented 1 year ago

Pull request should be good to go. Tried to add you as a reviewer, but apparently need to go through github hoops. Will deploy it shortly.