Is there a Python library to handle OWL? [closed]
Asked Answered
C

3

24

It could be something as big as Jena or something smaller. Do you know anything?

Cyanide answered 12/11, 2009 at 4:5 Comment(1)
owlready.Kwangju
G
15

Most people use rdflib, but that focuses on RDF, not OWL.

Glume answered 12/11, 2009 at 4:46 Comment(0)
A
20

What looks to be the only current and active open source package:

This is a Java package but it has a Python console (via Jython):

A commercial package that has python support:

Some packages that are admittedly incomplete:

Some older packages that appear inactive:

Amorphism answered 5/12, 2011 at 0:52 Comment(2)
Really nice findings! I will have to take a closer look at these and I'll get back to you.Goldberg
Indeed nice findings. However, as you stated, most of these packages our somewhat outdated. I will give you +1 one, but I'm afraid these findings didn't address my key question here (=OWL reasoner for Python).Goldberg
G
15

Most people use rdflib, but that focuses on RDF, not OWL.

Glume answered 12/11, 2009 at 4:46 Comment(0)
P
10

Here is a similar question at answers.semanticweb.com: Python OWL2 API which references this one: Is there a tool for reading functional owl syntax in Python? . Answers to both of them mention InfixOWL which is a part of FuXi.

FuXi does not support RDFLib 3, but there is a ticket as well as some active effort for making that happen. If you wish to use FuXi right away, you can always switch from RDFLib to layercake ("an RDFLib fork readily compatible with FuXi").

Pasha answered 5/12, 2011 at 8:10 Comment(3)
Very nice. What I find annoying is that FuXi is not compatible with rdflib 3. Originally this lead me to think that FuXi is not actively developed, but guess I was wrong there. Very good finding!Goldberg
Yep. FuXi on layercake was the missing solution I was just looking for. Thanks! +100Goldberg
I think this effort on github for supportng fuxi with rdflib 3.+ seems good github.com/RDFLib/FuXiGaona

© 2022 - 2024 — McMap. All rights reserved.