Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/url/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sparql 从Wikidata查询欧盟大学超时_Sparql_Wikidata - Fatal编程技术网

Sparql 从Wikidata查询欧盟大学超时

Sparql 从Wikidata查询欧盟大学超时,sparql,wikidata,Sparql,Wikidata,要求所有大学都使用维基数据服务是可行的。但当只限于欧盟大学时,时间就结束了 WHERE { ?item wdt:P31/wdt:P279* wd:Q3918 ; wdt:P17 ?country. ?country wdt:P463 wd:Q458 . SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } 有什么想法吗 奇怪的是,使

要求所有大学都使用维基数据服务是可行的。但当只限于欧盟大学时,时间就结束了

WHERE {
  ?item wdt:P31/wdt:P279* wd:Q3918 ;
         wdt:P17 ?country.
   ?country wdt:P463 wd:Q458 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}
有什么想法吗

奇怪的是,使用
FILTER EXISTS
is返回结果(尽管速度很慢)


这里有一个到的链接。

这可能吗
SELECT?item?itemlab?countryLabel?country,其中{SELECT distinct?item{item wdt:P31/wdt:P279*wd:Q3918}作为%结果,其中{INCLUDE%结果。?item wdt:P17?country。?country wdt:P463 wd:Q458.服务维基库:标签{bd:serviceParam维基base:language“[自动语言],en.}
SELECT ?item ?itemLabel ?countryLabel ?country
WHERE {
  ?item wdt:P31/wdt:P279* wd:Q3918 ;
         wdt:P17 ?country.
FILTER EXISTS { ?country wdt:P463 wd:Q458 }
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}