lambdamusic / Ontospy

Python library and command-line interface for inspecting and visualizing RDF models aka ontologies.
http://lambdamusic.github.io/Ontospy/
MIT License
219 stars 52 forks source link

Read graph from rdflib rather than from (io) file? #111

Open xem-tim-duval opened 2 years ago

xem-tim-duval commented 2 years ago

Is there a way to read/assign an ontology/graph directly from rdflib to ontospy, rather than from a file/url or g.serialize()?

I'm generating ontologies via automation and would like to render their tree/documentation for client side ui and would rather not serialize/persist and then have to parse into ontospy.

Please advise?

Thanks a bunch!

anuneetanand commented 2 years ago

Hi @lambdamusic, I am new contributor to this project and based on my understanding of the codebase, I have raised a PR for resolving this issue. Kindly review it :smile: