Example #1
0
 def is_node_iri_in_graph(self, iri: URIRef):
     if type(iri) == NodeIriRef:
         return True
     else:
         iri_parts = iri.toPython().split('/')
         return 'node' == iri_parts[-2] and self.odgi_graph.has_node(
             int(iri_parts[-1]))
Example #2
0
def _store_uri_ref(ref: URIRef) -> str:
    return ref.toPython()