如何从sparql端点获取rdf文件 [英] How to get rdf file from sparql endpoint

查看:126
本文介绍了如何从sparql端点获取rdf文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Opendata的新手,需要一些帮助. Wikipedia在此URL中具有其sparql端点: http://dbpedia.org/sparql 现在,我需要编写网络服务来从dbpedia获取一些rdf文件.我应该发送什么到该端点以获取rdf文件?

I am new in opendata and need some help. Wikipedia have their sparql endpoint in this url: http://dbpedia.org/sparql Now I need to write webservice to get some rdf file from dbpedia. What should I send to this endpoint to get rdf file ?

推荐答案

发送 CONSTRUCT 查询.一个小例子:

Send a CONSTRUCT query. A little example:

CONSTRUCT { ?s ?p ?o }
WHERE { ?s ?p ?o }
LIMIT 10

WHERE子句的作用与SELECT一样,只有值填充CONSTRUCT块作为一种模板.这非常灵活-您可以在此处复制语句,也可以将它们转换为完全不同的形状.

The WHERE clause works just like that of SELECT only the values fill the CONSTRUCT block as a kind of template. It's very flexible - you can either copy statements as here or transform them into a completely different shape.

这篇关于如何从sparql端点获取rdf文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆