Is there a method to convert OWL files into a TypeDB-compatible format?

Hi everyone,

We are looking to migrate traditional ontology OWL files into TypeDB. Are there any existing methods or tools available for conversion or direct import?

Many thanks in advance!

Hi there -
we’ve not looked into it recently, although it would be a very interesting time to do so given that LLMs can probably do a ‘decent’ job of it given a couple of in-context examples! Did you have something specific in mind?

I imagine we could write a deterministic translator that’ll be a few hundred lines of python. I just don’t know the OWL spec well enough to see if there are language features we can’t support (like transitive & symmetric predicates, or multiple parent classes)

@Cool ,Do you have a sample dataset that I can play with?

You’re unlikely to be the only one who needs it, since we have OWL questions every so often. Like @c-lare with her question here

Might I suggest Opencyc and DBpedia.?

Both are well documented and if you try to put them both in one database you will find that there are conflicts which could help you to further develop TypeDB on error handling (i.e. asking the user which rule or data is correct or not)

Edit: I understand that you want your database to be easy to program, since, unless you are a logician, the OWL format is difficult, however, you sould really consider making a parcer or supporting OWL natively since it is part of the W3C standards and many companies would be more confortable in adopting a database that supports standards instead of having its own proprietary system.
Also I found this on Stackoverflow. It might be a nice start: ontology - Representing if-then sentence using OWL? - Stack Overflow