Page MenuHomePhabricator

Query service prompting gui should not mess with the rest of the query
Open, Needs TriagePublic

Description

What I have:

#List of people without Ukrainian label with name in kana property
SELECT ?item
	#?itemLabel
	?name
WHERE {
  ?item wdt:P31 wd:Q5.
  ?item wdt:P27 wd:Q1.
  ?item wdt:P1814 ?name.
  FILTER NOT EXISTS{
  	?item rdfs:label ?labeluk.
    FILTER(LANG(?labeluk) = "uk")
  }
  #SERVICE wikibase:label { bd:serviceParam wikibase:language "en,ja". }
}
ORDER BY ?labeluk
LIMIT 500

What I do: Change universe to Japan in the right prompt gui (or expanatory whatever you call it)

What I get:

#List of people without Ukrainian label with name in kana property
SELECT ?item ?name WHERE {
  ?item wdt:P31 wd:Q5.
  ?item wdt:P27 wd:Q17.
  ?item wdt:P1814 ?name.
  FILTER(NOT EXISTS {
    ?item rdfs:label ?labeluk.
    FILTER((LANG(?labeluk)) = "uk")
  })
}
ORDER BY ?labeluk
LIMIT 500

What I expect:

#List of people without Ukrainian label with name in kana property
SELECT ?item
	#?itemLabel
	?name
WHERE {
  ?item wdt:P31 wd:Q5.
  ?item wdt:P27 wd:Q17.
  ?item wdt:P1814 ?name.
  FILTER NOT EXISTS{
  	?item rdfs:label ?labeluk.
    FILTER(LANG(?labeluk) = "uk")
  }
  #SERVICE wikibase:label { bd:serviceParam wikibase:language "en,ja". }
}
ORDER BY ?labeluk
LIMIT 500