# tools Package

These commandline-tools are installed into `INSTALL_PREFIX/bin` by setuptools.

## `tools` Package

Various commandline tools for working with RDFLib

## `csv2rdf` Module

A commandline tool for semi-automatically converting CSV to RDF

try: `csv2rdf --help`

class `rdflib.tools.csv2rdf.``CSV2RDF`

  Bases: `object`

  `__init__`()
  `__module__` = 'rdflib.tools.csv2rdf'
  `convert`(csvreader)
  `triple`(s, p, o)

## `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)

  Bases: `rdflib.graph.Graph`

  Ported from: http://www.w3.org/2001/sw/DataAccess/proto-tests/tools/rdfdiff.py (Sean B Palmer’s RDF Graph Isomorphism Tester)

  `__eq__`(G)

    Graph isomorphism testing.

  `__init__`(**kargs)
  `__module__` = 'rdflib.tools.graphisomorphism'
  `__ne__`(G)

    Negative graph isomorphism testing.

  `hashtriples`()
  `internal_hash`()

    This is defined instead of __hash__ to avoid a circular recursion scenario with the Memory store for rdflib which requires a hash lookup in order to return a generator of triples

  `vhash`(term, done=False)
  `vhashtriple`(triple, term, done)
  `vhashtriples`(term, done)

`rdflib.tools.graphisomorphism.``main`()

## `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.rdf2dot.``main`()

`rdflib.tools.rdf2dot.``rdf2dot`(g, stream, opts={})

  Convert the RDF graph to DOT writes the dot output to the stream

## `rdfpipe` Module

A commandline tool for parsing RDF in different formats and serializing the resulting graph to a chosen format.

`rdflib.tools.rdfpipe.``main`()

`rdflib.tools.rdfpipe.``make_option_parser`()

`rdflib.tools.rdfpipe.``parse_and_serialize`(input_files, input_format, guess, outfile, output_format, ns_bindings, store_conn='', store_type=None)

## `rdfs2dot` Module

A commandline tool for drawing RDFS Class diagrams in Graphviz DOT format

You can draw the graph of an RDFS file directly:

`rdflib.tools.rdfs2dot.``main`()

`rdflib.tools.rdfs2dot.``rdfs2dot`(g, stream, opts={})

  Convert the RDFS schema in a graph writes the dot output to the stream