EasyRDF serialiser

15 views
Skip to first unread message

Łukasz Nowiński

unread,
Apr 9, 2018, 7:35:47 AM4/9/18
to EasyRdf Discussion
Hi,
I'm trying to serialise Easy RDF Graph Object into a GraphViz file.
My code below:
$graph = new EasyRDF_Graph(); 
$graph->parseFile($sciezka);
$output = $graph->serialise('dot');

And i get this error:
:  Uncaught Error: [] operator not supported for strings in C:\xampp\htdocs\Wizualizacja_Scalona\EasyRDF\lib\EasyRdf\Serialiser\GraphViz.php:225
Stack trace:
#0 C:\xampp\htdocs\Wizualizacja_Scalona\EasyRDF\lib\EasyRdf\Serialiser\GraphViz.php(242): EasyRdf_Serialiser_GraphViz->escapeAttributes(Array)
#1 C:\xampp\htdocs\Wizualizacja_Scalona\EasyRDF\lib\EasyRdf\Serialiser\GraphViz.php(285): EasyRdf_Serialiser_GraphViz->serialiseRow('Rhttp://www.exa...', 'LJacob', Array)
#2 C:\xampp\htdocs\Wizualizacja_Scalona\EasyRDF\lib\EasyRdf\Serialiser\GraphViz.php(381): EasyRdf_Serialiser_GraphViz->serialiseDot(Object(EasyRdf_Graph))
#3 C:\xampp\htdocs\Wizualizacja_Scalona\EasyRDF\lib\EasyRdf\Graph.php(1300): EasyRdf_Serialiser_GraphViz->serialise(Object(EasyRdf_Graph), 'dot', Array)
#4 C:\xampp\htdocs\Wizualizacja_Scalona\Graf.php(234): EasyRdf_Graph->serialise(Object(EasyRdf_Format))
#5 {main}
  thrown in 


How can I fix this?

Łukasz Nowiński

unread,
Apr 9, 2018, 11:20:53 AM4/9/18
to EasyRdf Discussion
Ok, i figured it out.
😊
Reply all
Reply to author
Forward
0 new messages