Generates Schema Diagrams from RDF
Only required to query local files
TODO: Fallback to rdflib if sparql is not available. Currently not implemented because of performance issues.
pip install digrdf
from the command line
python -m digrdf -s myfiles/
This will create a file called diagram.html in the working directory and open it for viewing.
You can query any sparql endpoint as well.
python -m digrdf -s "http://myserver.com/sparql"
This will generate a schema diagram for all triples at that endpoint.
warning The query is intensive and may crash / timeout if the triple store has a lot of triples (like 1.0GB plus)
You can also generate an instance level diagram for a particular iri
python -m rdflib -s "http://myserver.com/sparql" -i "http://myserver.com/objects/1234"
where -i
or --iri
is a valid iri for an object in the triple store
To see all the cmdline options run
python -m digrdf -h