W3C home > Mailing lists > Public > public-esw-thes@w3.org > February 2011

GraphViz and SKOS...

From: Christophe Dupriez <dupriez@destin.be>
Date: Tue, 15 Feb 2011 14:01:28 +0100
Message-ID: <4D5A7928.2080808@destin.be>
To: SKOS <public-esw-thes@w3.org>
Hi!

I always resisted graphing thesauri relations because I thought 
relations can be presented through adequate layout and typography.
I found by accident GraphViz ( http://www.graphviz.org ), an open source 
software existing since 1996 doing exactly what a non-graphic designer 
dreams:
draw a good schema from logical relations...

Many examples are in the documentation:
http://www.graphviz.org/pdf/dotguide.pdf

May be some of you know a better or more recent tool? Please let me know!
The interesting thing to do now is to translate automatically and SKOS 
file (or extract) into a .DOT file...
     Anyone has done experiments in that direction? Can we learn about it?

My opinion is that drawing rapidly and effortlessly schemas based on 
EXTRACT from a thesaurus is very valuable for discussions between 
validators.
I would like to integrate .DOT generation into ASKOSI.org.

Have a very nice day!

Christophe

P.S. I invite you to test the following (written in .DOT graph 
description language) using some of the available Web services (for 
instance: http://graphviz-dev.appspot.com/).
It is an example of a thesaurus extract under revision:

digraph g{
rankdir=LR;
concentrate=true;
CENTRAL_NERVOUS_SYSTEM_AGENTS->ANALGESICS;
ANALGESICS->ACETANILIDE;
ANALGESICS->CARFENTANIL;
CARFENTANIL->CARFENTANIL_CITRATE;
ACETANILIDE->P_ACETANISIDINE;
ANALGESICS->ACETYLMORPHINE;
ACETYLMORPHINE->_3_ACETYLMORPHINE;
ACETYLMORPHINE->_6_ACETYLMORPHINE;
ANALGESICS->AMINOPHENAZONE;
AMINOPHENAZONE->AMPYRONE;
ANALGESICS->METAMIZOLE_SODIUM;
ANALGESICS->NARCOTIC_ANALGESICS;
NARCOTIC_ANALGESICS->CIRAMADOL;
NARCOTIC_ANALGESICS->TRAMADOL;
TRAMADOL->TRAMADOL_HYDROCHLORIDE;
ANALGESICS->NARCOTICS;
NARCOTICS->ACETYLMORPHINE;
NARCOTICS->CARFENTANIL;
NARCOTICS->EMBUTRAMIDE;
ANALGESICS->NON_NARCOTIC_ANALGESICS;
NON_NARCOTIC_ANALGESICS->PROPYPHENAZONE;
ANALGESICS->NORPIPANONE;
ANALGESICS->XYLAZINE;
CENTRAL_NERVOUS_SYSTEM_AGENTS->ANALGESICS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->ANTICONVULSANTS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->ANTIEMETICS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->ANTITUSSIVES;
CENTRAL_NERVOUS_SYSTEM_AGENTS->EMETICS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->NOOTROPICS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->WEIGHT_LOSS_AGENTS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->CENTRAL_NERVOUS_SYSTEM_DEPRESSANTS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->CENTRAL_NERVOUS_SYSTEM_STIMULANTS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->CENTRAL_MUSCLE_RELAXANTS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->NARCOTIC_ANTAGONISTS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->NEUROPROTECTIVE_AGENTS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->ANESTHESIA_ADJUVANTS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->ALCOHOL_DETERRENTS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->ANTI_DYSKINESIA_AGENTS;
CENTRAL_NERVOUS_SYSTEM_AGENTS->PSYCHOTROPIC_DRUGS;
}
Received on Tuesday, 15 February 2011 13:01:35 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 15 February 2011 13:01:35 GMT