[redland-dev] serializer for Graphviz dot
Dave Beckett
dave at dajobe.org
Wed Nov 22 04:51:58 UTC 2006
On Mon, 2006-11-06 at 16:58 -0800, Evan Nemerson wrote:
> Josh wrote:
> > On 11/3/06, Evan Nemerson <evan at coeus-group.com> wrote:
> >> I put together a serializer for graphviz dot format. Though it isn't
> >> particularly useful as an exchange format, it is quite nice for
> >> visualizing RDF graphs--especially small ones.
> >
> > Nice work. This is indeed handy for quite small graphs. Is there any
> > chance of an option to truncate lengthy text literals (and maybe
> > abbreviate the URI of nodes defined in the model itself)? You would
> > lose some information, but if the main idea is to produce a nice
> > diagram, that would keep the node labels from taking over.
>
> I don't think literals should be truncated by default, but it would be
> nice if it were an option. Unless I'm mistaken, the only way to do it
> would be to use serializer features which aren't specific to a
> serializer. Before adding something like that I think it would be a good
> idea to get a nod from Dave Beckett.
>From what I've seen of the code, there are actually a few tweaks
that could be wanted for the output such as colours. I can assign
features for these if they are needed.
> As for "abbreviate the URI of nodes defined in the model itself", I'm
> not entirely sure what you mean. Are you talking about generating
> prefixes URIs which haven't previously been given one (eg, everything in
> N-Triples)? If so, I think I added what you want (code mostly stolen
> from the RDF/XML serializer). I've attached the updated version--let me
> know if that's what you were talking.
I've had a look at the code and it seems OK, apart from a few minor
edits for code style, I'm happy to commit it to Subversion.
Dave
More information about the redland-dev
mailing list