giacomociti / rdf2dot

1 stars 1 forks source link

NPM Version

A simple RDF visualization tool based on GraphViz.

Diagram descriptions are derived with N3 rules and converted to dot notation.

The default rules make compact visualizations (only the subjects of some triple become nodes):

@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix wd: <http://www.wikidata.org/entity/> .
@prefix dbo: <https://dbpedia.org/ontology/> .
@prefix dbpedia: <http://dbpedia.org/resource/> .

wd:Q12418
    dcterms:title "Mona Lisa" ;
    dcterms:creator dbpedia:Leonardo_da_Vinci .

wd:Q128910
    dcterms:title "The Last Supper" ;
    dcterms:creator dbpedia:Leonardo_da_Vinci .

dbpedia:Leonardo_da_Vinci
    dbo:birthName "Leonardo da Vinci" ;
    dbo:birthPlace dbpedia:Republic_of_Florence .

Visualization rules can be customized (see the documentation for details).

Try it online here.