<?php include(RDFAPI_INCLUDE_DIR . "RDFAPI.php"); // Filename of an RDF document $base="przyklad.rdf"; // Create a new MemModel $model = ModelFactorgetDefaultModel(); // Load and parse document $model->load($base); // Visualize model $model->visualize('gif'); Muszę też ustawić config w bibliotece rdf-api odpowiedzialny za program GRAPHVIZ robie to w pliku constatnts.php zgodnie z tutorialem.Część confogu odpowiedzialna za ten program znajduje się t<span style="color: #007700": [php] <?php // ---------------------------------------------------------------------------------- // GRAPHVIZ // ---------------------------------------------------------------------------------- // path to the dot binary // directory for temporary files // Attentio: must be write-/readable by the webserver define('GRAPHVIZ_TEMP', :wampwwwRDF\temp'); // display statistical data in generated images // currently only number of statements drawn // allowed file formats // for security reasons (to prevent code injection) // enable clickable URIs // only supported by certain formats (e.g. SVG) // define parameters for the graphical output // if a paramter is undefined, the default value of graphviz is used // for further information s: <a href=\"ht://www.graphviz.org/Documentation.php\" target=\"_blank\">ht://www.graphviz.org/Documentation.php</a> 'GRAPH_STYLE' => 'rankdir="TB"', 'RESOURCE_STYLE' => 'style="filled",color="#FFD800",fontname="Courier",fontsize="10"', 'LITERAL_STYLE' => 'shape="box",style="filled",color="#B7FFAF",fontname="Courier",fontsize="10"', 'PREDICATE_STYLE' => 'fontname="Courier",fontsize="10"', 'INFERRED_STYLE' => 'style="dotted",fontname="Courier",fontsize="10"', 'BLANKNODE_STYLE' => 'style="filled",color="#DDDDDD",fontname="Courier",fontsize="10"', 'BOX_STYLE' => 'fontname="Courier",fontsize="8",color="#BBBBBB"' ); ?>
Graf nie pojawia się w przeglądarce...