Imen Z Imanou
Imen Z Imanou

Reputation: 57

Ontologies and Graph-tool Python

Is there a way to create a graph from an ontology file using Graph-tool library in Python?

I've done some research and what I've found is:

What I have tried:

I had the idea of converting OWL ontologies and OBO to a NetworkX Graph then to a Graph-tool graph (because all of my previous work was done with Graph-tool).

Method 1: Used onto2nx library.

Problems:

Method 2: Used RDFLib library.

I've based my solution no this answer but:

Problems:

Upvotes: 1

Views: 3160

Answers (1)

Abdelghani Bekka
Abdelghani Bekka

Reputation: 684

Have you tried this:

https://readthedocs.org/projects/the-data-driven-ontology-toolkit-ddot/downloads/pdf/latest/

It has a function tonetworkx, maybe that’ll help.

Upvotes: 2

Related Questions