维基百科 – Sparql查询获取dbpedia可用的所有可用电影

栏目: 数据库 · 发布时间: 5年前

内容简介:代码日志版权声明:翻译自:http://stackoverflow.com/questions/8328720/sparql-query-to-get-all-the-possible-movies-available-from-dbpedia
要获得所有可能的电影名称,我使用sparql查询:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?film_title ?film_abstract
WHERE {
?film_title rdf:type <http://dbpedia.org/ontology/Film> .
?film_title rdfs:comment ?film_abstract 
}

它给我回来了只有10,000部电影.

DBpedia在其网站上提到有大约6万部电影.

对于我的应用程序,我需要所有可能的电影.有人可以指导我有什么其他的可能性,以获得休息的电影

DBPedia对在一次通话中可以返回的结果有上限.如果你想获得所有这些,你可以通过使用极限和偏移量的多个查询来执行. (限制1000偏移0,限制1000偏移1000等).所以你第一次查询是:
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT DISTINCT ?film_title ?film_abstract
WHERE {
?film_title rdf:type <http://dbpedia.org/ontology/Film> .
?film_title rdfs:comment ?film_abstract 
} LIMIT 1000 OFFSET 0

代码日志版权声明:

翻译自:http://stackoverflow.com/questions/8328720/sparql-query-to-get-all-the-possible-movies-available-from-dbpedia


以上就是本文的全部内容,希望对大家的学习有所帮助,也希望大家多多支持 码农网

查看所有标签

猜你喜欢:

本站部分资源来源于网络,本站转载出于传递更多信息之目的,版权归原作者或者来源机构所有,如转载稿涉及版权问题,请联系我们

The Art of Computer Programming, Volume 3

The Art of Computer Programming, Volume 3

Donald E. Knuth / Addison-Wesley Professional / 1998-05-04 / USD 74.99

Finally, after a wait of more than thirty-five years, the first part of Volume 4 is at last ready for publication. Check out the boxed set that brings together Volumes 1 - 4A in one elegant case, and ......一起来看看 《The Art of Computer Programming, Volume 3》 这本书的介绍吧!

CSS 压缩/解压工具
CSS 压缩/解压工具

在线压缩/解压 CSS 代码

URL 编码/解码
URL 编码/解码

URL 编码/解码

MD5 加密
MD5 加密

MD5 加密工具