从Wikidata查询欧盟大学超时

问题描述

向所有大学询问Wikidata服务的工作。但是,当仅限于欧盟大学时,this query会超时。

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返回结果(尽管很慢)。

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". }
}

这里是second query链接

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)