decomp.graph.rdf

Module for converting from networkx to RDF

class decomp.graph.rdf.RDFConverter(nxgraph)

A converter between NetworkX digraphs and RDFLib graphs

Parameters

nxgraph (DiGraph) – the graph to convert

classmethod networkx_to_rdf(nxgraph)

Convert a NetworkX digraph to an RDFLib graph

Parameters

nxgraph (DiGraph) – the NetworkX graph to convert

Return type

Graph