GraphViz 1.7.4

View: New views
3 Messages — Rating Filter:   Alert me  

Parent Message unknown GraphViz 1.7.4

by Jitao Yang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Mr. Carroll and www-rdf-validator,

I am using ARPServlet.java to develop an application,
could you please send me a copy of GraphViz 1.7.4,
since I can not find it from the website of GraphViz any more.

Also, could you please tell me if my following configurations are right or wrong?
because it dose not work now, and the error is "An attempt to create a graph failed" displayed in the webpage under the "Graph of the data model", and "Error: generating OutputFile." in the console, which are difficult to find where is the problem, but I think it is the problem of the configuration of GraphViz or the versions. And the "Triples of the Data Model" and "The original RDF/XML document" work well.

I downloaded graphviz-2.20.3.tar and webdot-2.16.tar, and I extracted them to the directory of /Volumes/Macintosh_HD_2/:

* GRAPH_VIZ_ROOT - the absolute path of the top-level directory containing

*   GraphViz's binary distribution

GRAPH_VIZ_ROOT = /Volumes/Macintosh_HD_2/graphviz-2.20.3

* GRAPH_VIZ_PATH - absolute or relative (based on GRAPH_VIZ_ROOT) path of

*   the DOT executable (e.g. dotneato/dot) - the program used to generate

*   a graph from a DOT file.

GRAPH_VIZ_PATH = /Volumes/Macintosh_HD_2/webdot-2.16

* GRAPH_VIZ_FONT_DIR - absolute or relative (based on GRAPH_VIZ_ROOT) path of

*   the fonts directory used by GraphViz (e.g. Fonts)


GRAPH_VIZ_FONT_DIR = /Volumes/Macintosh_HD_2/graphviz-2.20.3/graphs

(I can not find the dir of Fonts)



Thank you very much for your help!


Best wishes,

Jitao



Re: GraphViz 1.7.4

by olivier Thereaux :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


Dear Jitao, dear all.

On 11-Feb-09, at 5:32 PM, Jitao Yang wrote:
> I am using ARPServlet.java to develop an application,
> could you please send me a copy of GraphViz 1.7.4,
> since I can not find it from the website of GraphViz any more.

I am not an expert on graphviz, unfortunately, but I can tell with  
confidence that the service at http://www.w3.org/RDF/Validator/ uses a  
much more recent version of graphviz (2.8-3). Why do you think version  
1.7.4 would solve the problem?

Looking quickly at the code for ARPServlet.java
http://dev.w3.org/java/classes/org/w3c/rdf/examples/ARPServlet.java
the error you mention happens when running graphviz (as a standalone  
script) fails.

A way to fix the issue would be to first check that the "dot" script  
works.

> GRAPH_VIZ_FONT_DIR = /Volumes/Macintosh_HD_2/graphviz-2.20.3/graphs
> (I can not find the dir of Fonts)


Given what you wrote, I strongly suspect that your graphviz config is  
problematic. In particular, if you do not have a repository of fonts,  
maybe trying to not set that variable at all would be betther than  
setting it to a wrong path?

The graphviz project has a mailing-list and documentation online,  
hopefully they should be of interest.

Hope this helps,
--
olivier




Re: GraphViz 1.7.4

by Jitao Yang :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Dear Thereaux,

Thank you so much for your reply,
I thought 1.7.4 would solve the problem
is because in the servlet it mentions that:

***********************************************************************

*

* Implementation notes:

*

* o This servlet supports the HTTP POST operation; it does not 

*  support the HTTP GET operation

*

* o Depending upon the parameters given to the servlet it may 

*  invoke a GraphViz suprocess to generate a graph of the RDF..  

*  See the following for more information about GraphViz:

*

*   http://www.research.att.com/sw/tools/graphviz/

*

*  The servlet assumes version 1.7.4 of GraphViz.

*

* o Depending upon the parameters given to the servlet, the RDF

*  to be validated may be copied to a file.  The name of the file

*  is automatically generated via Java's temporary file APIs.  The

*  location of the directory where the file is stored is configured

*  via the serverlet's init() method.  See below for more information.

*

* o See the section on Server Initialization for more information.

*

***********************************************************************

so, I thought maybe it is the version problem.

yes, after careful tracing the the codes, i think it is indeed the config problem,
I am trying to fix it now.

again, thank you very much for your reply.

best,
jitao

On Fri, Feb 13, 2009 at 3:24 PM, olivier Thereaux <ot@...> wrote:
Dear Jitao, dear all.


On 11-Feb-09, at 5:32 PM, Jitao Yang wrote:
I am using ARPServlet.java to develop an application,
could you please send me a copy of GraphViz 1.7.4,
since I can not find it from the website of GraphViz any more.

I am not an expert on graphviz, unfortunately, but I can tell with confidence that the service at http://www.w3.org/RDF/Validator/ uses a much more recent version of graphviz (2.8-3). Why do you think version 1.7.4 would solve the problem?

Looking quickly at the code for ARPServlet.java
http://dev.w3.org/java/classes/org/w3c/rdf/examples/ARPServlet.java
the error you mention happens when running graphviz (as a standalone script) fails.

A way to fix the issue would be to first check that the "dot" script works.


GRAPH_VIZ_FONT_DIR = /Volumes/Macintosh_HD_2/graphviz-2.20.3/graphs
(I can not find the dir of Fonts)


Given what you wrote, I strongly suspect that your graphviz config is problematic. In particular, if you do not have a repository of fonts, maybe trying to not set that variable at all would be betther than setting it to a wrong path?

The graphviz project has a mailing-list and documentation online, hopefully they should be of interest.

Hope this helps,
--
olivier