rdflib.tools package¶
Submodules¶
rdflib.tools.csv2rdf module¶
A commandline tool for semi-automatically converting CSV to RDF.
See also https://github.com/RDFLib/pyTARQL in the RDFlib family of tools
try: csv2rdf --help
- class rdflib.tools.csv2rdf.CSV2RDF[source]¶
Bases:
object
- __dict__ = mappingproxy({'__module__': 'rdflib.tools.csv2rdf', '__init__': <function CSV2RDF.__init__>, 'triple': <function CSV2RDF.triple>, 'convert': <function CSV2RDF.convert>, '__dict__': <attribute '__dict__' of 'CSV2RDF' objects>, '__weakref__': <attribute '__weakref__' of 'CSV2RDF' objects>, '__doc__': None, '__annotations__': {}})¶
- __module__ = 'rdflib.tools.csv2rdf'¶
- __weakref__¶
list of weak references to the object (if defined)
rdflib.tools.defined_namespace_creator module¶
This rdflib Python script creates a DefinedNamespace Python file from a given RDF file
It is a very simple script: it finds all things defined in the RDF file within a given namespace:
<thing> a ?x
where ?x is anything and <thing> starts with the given namespace
Nicholas J. Car, Dec, 2021
rdflib.tools.graphisomorphism module¶
A commandline tool for testing if RDF graphs are isomorpic, i.e. equal if BNode labels are ignored.
- class rdflib.tools.graphisomorphism.IsomorphicTestableGraph(**kargs)[source]¶
Bases:
Graph
Ported from: http://www.w3.org/2001/sw/DataAccess/proto-tests/tools/rdfdiff.py (Sean B Palmer’s RDF Graph Isomorphism Tester)
- __hash__ = None¶
- __module__ = 'rdflib.tools.graphisomorphism'¶
rdflib.tools.rdf2dot module¶
A commandline tool for drawing RDF graphs in Graphviz DOT format
You can draw the graph of an RDF file directly:
rdflib.tools.rdfpipe module¶
A commandline tool for parsing RDF in different formats and serializing the resulting graph to a chosen format.
rdflib.tools.rdfs2dot module¶
A commandline tool for drawing RDFS Class diagrams in Graphviz DOT format
You can draw the graph of an RDFS file directly:
Module contents¶
Various commandline tools for working with RDFLib