Skip to content

lalewis1/diagrammer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Diagrammer

Generates Schema Diagrams from RDF

Dependencies

Only required to query local files

TODO: Fallback to rdflib if sparql is not available. Currently not implemented because of performance issues.

Installation

pip install digrdf

Usage

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages