Switch Commons categories to the end of the query to prevent cases with >1 cat from messing up wikipedia and commons articles

This commit is contained in:
misaochan 2018-03-18 20:44:49 +10:00
parent b600f51564
commit a2db562476
2 changed files with 4 additions and 10 deletions

View file

@ -6,9 +6,9 @@ SELECT
(SAMPLE(COALESCE(?class_label_preferred_language, ?class_label_any_language, "?")) as ?class_label)
(SAMPLE(COALESCE(?icon0, ?icon1)) as ?icon)
(SAMPLE(COALESCE(?emoji0, ?emoji1)) as ?emoji)
(SAMPLE(?Commons_category) as ?Commons_category)
?wikipediaArticle
?commonsArticle
(SAMPLE(?Commons_category) as ?Commons_category)
WHERE {
# Around given location...
SERVICE wikibase:around {