使用PHP/EasyRDF创建RDF数据并将其存储在BlazeGraph上

发布于 2025-01-23 11:14:10 字数 270 浏览 3 评论 0原文

我想存储我使用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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

海夕 2025-01-30 11:14:10

图存储通常与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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文