使用PHP/EasyRDF创建RDF数据并将其存储在BlazeGraph上
我想存储我使用php的Easy/rdf lib创建的RDF数据, 我使用了这个:
$store = new \EasyRdf\GraphStore('http://192.168.1.35:9999/blazegraph/');
$store->replace($graph);
但是它给了我一个错误:
HTTP方法不支持此URL
支持
我该如何正确创建和存储RDF数据?
I want to store the rdf data that i have created using Easy/Rdf lib from php,
i used this :
$store = new \EasyRdf\GraphStore('http://192.168.1.35:9999/blazegraph/');
$store->replace($graph);
but it gives me an error :
HTTP method PUT is not supported by this URL
how can i do to properly create and store rdf data ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
图存储通常与SPARQL端点相互作用。对于BlazeGraph,这将是
http://192.168.1.35:9999/blazegraph/sparql
。这就是为什么BlazeGraph抱怨不支持您发送给URL的请求的原因。您应该能够使用
GraphStore
类插入数据;另一种选择是使用EasyRDF的sparqlclient在SPARQL端点插入数据。有一个示例在此方法上在此方法上。Graph stores are typically interacted with at their SPARQL endpoint. For blazegraph this will be at
http://192.168.1.35:9999/blazegraph/sparql
. This is why Blazegraph is complaining about not supporting requests to the URL you're sending them to.You should be able to use the
GraphStore
class to insert the data; an alternative is to use EasyRdf's SparqlClient to insert data at the SPARQL endpoint. There's an example here on this approach.