Stefano Borini
Stefano Borini

Reputation: 143905

how to plot an RDF graph for inspection?

The W3 has a RDF validator that plots the RDF graph. Do you know a similar utility desktop side ?

Forgot to say. I'm on a mac.

Upvotes: 3

Views: 1663

Answers (3)

Carsten
Carsten

Reputation: 129

+1 for using Raptor and Graphviz. Here's how to do it one go (assuming that your RDF is in Turtle syntax):

rapper -i turtle -o dot rdf.ttl | dot -Tpdf -ograph.pdf

The output is written to graph.pdf.

Upvotes: 2

RobV
RobV

Reputation: 28655

Like laalto said GraphViz is the typical thing to use and many RDF APIs have support built in for generating DOT to be plotted with ut

For example the API I develop (dotNetRDF) has a GraphVizWriter class that you can use to generate DOT files which you can then turn into images in your desired format with the dot.exe command line utility which is part of GraphViz

Though seeing as you're on a Mac my API is probably not much use to you personally - but regardless GraphViz is definitely the way to go.

Upvotes: 1

laalto
laalto

Reputation: 152907

For example, raptor has the rapper command line utility that can parse various RDF syntaxes and output DOT to be plotted with GraphViz.

(Disclosure: I'm a committer in the raptor project.)

Upvotes: 7

Related Questions