我正在尝试从Wikidata的SPARQL端点获取多种语言的标签。此处给出以下示例:
SELECT ?country ?country_EN ?country_DE ?country_FR
WHERE {
?country wdt:P31 wd:Q185441. # member state of the European Union
SERVICE wikibase:label { bd:serviceParam wikibase:language "en".
?country rdfs:label ?country_EN.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "de".
?country rdfs:label ?country_DE.
}
SERVICE wikibase:label { bd:serviceParam wikibase:language "fr".
?country rdfs:label ?country_FR.
}
}
Run Code Online (Sandbox Code Playgroud)
但是,这将返回以下错误:
未知错误:任何组中只能有一个“最后运行”联接
是否有一种解决方案可以使用多种语言获得标签?