Skip to content
Advertisement

Tag: ontology

How to read URIs from RDFLib using Python?

I have several thousands URIRef ontology values that I’m trying to get a string representation of: I could go to each one’s link individually (eg http://purl.obolibrary.org/obo/RO_0002219) and get it (e.g surrounded by), but how can I do it with Python? There are 2 ways that I see how to do it but I couldn’t figure out either. One way would

Visualize an RDFLIB Graph in Python

I am new to RDFLIB in python. I found this example of creating a graph on here. What is the simplest way to visualize graph created by this code? I see that the rdflib package has a tools component that has a function called rdfs2dot. How can I use this function to display a plot with the RDF graph in

Advertisement