我需要在我的Laravel 5.1项目中使用Easy RDF库,但遇到了一些问题。我已经将这个库添加到我的composer.json文件中,安装了它,现在我有了以下代码:
public function index()
{
$foaf = new EasyRdf_Graph("http://biblioteka.wejherowo.pl/dlibra/dlibra/rdf.xml?type=e&id=1589");
$foaf->load();
$me = $foaf->primaryTopic();
dd($me->get('dc:title'));
}
但是当我尝试显示东西时,我收到有关格式的错误,我需要配置这个库吗?
以下是屏幕截图: