RDF Validator and DOT files

Hello.

While evaluating Graphviz/dot 1.8 for IsAViz, I found a "small bug" in 
RDFValidator's servlet code  (IsAViz' DOT file generation methods were 
directly inspired from the ones in RDFValidator).

It's not actually a bug since it does not prevent rdfvalidator from 
working fine, but fixing this would slightly improve it, and I suspect 
this is not a big effort.

The DOT files generated by RDFValidator and which are sent to 
graphviz/dot to compute the graph layout are unnecessarily big:
resources are declared as nodes in the DOT file each time they appear in 
a new statement. For instance, if a resource is the subject of 3 
statements and the object of 2 statements, it will be declared 5 times 
in the DOT files. Graphviz/dot does not seem to care (and that's great), 
but this means rdfvalidator is producing unnecessarily big DOT files 
with redundant declarations.

I was able to fix this very quickly in IsAViz so I suspect it should be 
the same in RDFValidator.



Emmanuel


-- 
emmanuel.pietriga@xrce.xerox.com |  Xerox Research Centre Europe
Contextual Computing             |  6, Chemin de Maupertuis
tel: +33 4 76 61 50 32           |  38240 Meylan, France
fax: +33 4 76 61 50 99           |  http://www.xrce.xerox.com

Received on Wednesday, 27 February 2002 10:53:28 UTC