Re: [graphviz-interest] Dot for Ontology - a user question
steve roush <[email protected]>
| Newsgroups | gmane.comp.video.graphviz |
|---|---|
| Message-ID | <[email protected]> |
3 thoughts:
* You might look at altering the json->dot program instead of trying to "fix"
the output
* I've had good result imbedding leaf info in a parent by using a tabular
"html-like label" or a "record-based node" (see
http://www.graphviz.org/content/node-shapes).Note that the parent nodes can
vary wildly in size, depending on the number of leaves.
* I'm not sure I understand your question about sub-setting a graph, but you
might look into "Layers" (p. 37 of
http://www.graphviz.org/pdf/dotguide.pdf). The easiest way to try layers is
to produce a postscript output file (dot -Tps) and then use ps2pdf (part of
the ghostscript package) to convert it to pdf. In theory dot can also
produce an SVG Layers file, but it needs tweaking to work correctly. I can
help you with that if Layers looks interesting to you.
steve
> Dot for Ontology - a user question
>
> *Peter Brooks* peter.h.m.brooks at gmail.com
> <mailto:graphviz-devel%40lists.research.att.com?Subject=Re:%20Re%3A%20%5Bgraphviz-devel%5D%20Dot%20for%20Ontology%20-%20a%20user%20question&In-Reply-To=%3CCAFtB7BRUkiQuiHY_ZXbWEoTXLzDCWVj0zE9jDRDDuC1o25Aw0Q%40mail.gmail.com%3E>
> /Wed Jul 10 08:40:38 EDT 2013/
>
> * Previous message: [graphviz-devel] looking for help on DSOs in Mac
> Graphviz.app
> <http://lists.research.att.com/pipermail/graphviz-devel/2013/001623.html>
> * Next message: [graphviz-devel] Dot for Ontology - a user question
> <http://lists.research.att.com/pipermail/graphviz-devel/2013/001628.html>
> * *Messages sorted by:* [ date ]
> <http://lists.research.att.com/pipermail/graphviz-devel/2013/date.html#1624>
> [ thread ]
> <http://lists.research.att.com/pipermail/graphviz-devel/2013/thread.html#1624>
> [ subject ]
> <http://lists.research.att.com/pipermail/graphviz-devel/2013/subject.html#1624>
> [ author ]
> <http://lists.research.att.com/pipermail/graphviz-devel/2013/author.html#1624>
>
>
> --------------------------------------------------------------------------------
> I'm sorry to ask a user question here, but I can't find a better place.
>
> I'm using Dot to represent ontologies. It all works quite nicely,
> there's a converter from the impenetrable XML, that OWL prefers, into
> the much friendlier JSON. There's also a converter that turns it into
> valid Dot.
>
> Unfortunately the ontology has, as they tend to, several thousand
> entries. So the graph is unmanageable.
>
> Is there something that does intelligent graph pruning?
>
> In a perfect world, I'd like to be able to split the 3000 elements
> into, say, 10 sub-graphs of around 300 and, in those, represent the
> leaf nodes by text within their parent. That'd bring some order and
> make it easier to navigate and work out what's going on.
>
> If there is something to split graphs up like this, it'd also, of
> course, be handy if there was something that knitted them together
> again.
>
> I know that this might be a good job for awk or perl, but I thought
> I'd ask before re-inventing any wheels.
>
> What I'm probably going to be doing - with a team of people, not just
> me - is taking a number of existing ontologies and re-shaping them and
> re-using some elements whilst re-writing others - lots of trimming,
> inverting, transposing etc of graphs. I imagine that there must be
> something that does all this.
_______________________________________________
[email protected]
http://lists.research.att.com/mailman/listinfo/graphviz-interest