setlr is a tool for generating RDF graphs, including named graphs, from almost any kind of tabular data.
Simply check out the code, optionally create a python virtual environment, and install it using pip:
pip install setlr
To learn how to use setlr please visit the tutorial wiki page.