decomp.graph.rdf¶
Module for converting NetworkX graphs to RDF format.
This module provides functionality to convert NetworkX DiGraph structures into RDFLib Graph objects, enabling semantic web queries and interoperability with RDF-based systems and tools.
Classes¶
- RDFConverter
Converter class for transforming NetworkX digraphs into RDFLib graphs.
Notes
The conversion process handles node and edge attributes by mapping them to appropriate RDF triples. Special handling is provided for UDS-style annotations with value and confidence components.
- class RDFConverter[source]¶
Bases:
objectA converter between NetworkX digraphs and RDFLib graphs.
- Parameters:
nxgraph (
DiGraph) – the graph to convert