我不知道如何通过EasyRdf在Virtuoso服务器上执行SPARQL查询。
Virtuoso是通过
virtuoso\bin\virtuoso-t +service create +instance VirtuosoService
我可以在我的网络浏览器上访问http://localhost:8890/conductor。在选项卡链接的数据/图中有一个图表列表:
最新的是我想要查询的图形,它是通过Quad上传上传文件http://njh.me/foaf.rdf创建的。
现在是PHP部分。通过EasyRdf执行查询的正确方法是什么?以下代码
$graph = new \EasyRdf_Graph('http://localhost:8890/foaf');
$numTriples = $graph->load();
引发此异常: http://localhost:8890/foaf 请求失败:文件未找到
我也用
http://localhost:8890/foaf/sparql
:对 http://localhost:8890/foaf/sparql 的请求失败:文件未找到http://localhost:1111/foaf/sparql
:未能解析HTTP .http://localhost:1111/foaf
:通知: fwrite():发送375个字节,errno=10054失败,一个现有的连接被远程主机关闭发布于 2016-03-21 10:30:10
如果您试图将新数据写入sparql,我发现这很有帮助:
替换:http://localhost:8890/sparql
与:http://localhost:8890/sparql-graph-crud
https://stackoverflow.com/questions/28023048
复制相似问题