Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Badplats på EUs officiella språk #180

Open
salgo60 opened this issue Sep 22, 2024 · 1 comment
Open

Badplats på EUs officiella språk #180

salgo60 opened this issue Sep 22, 2024 · 1 comment

Comments

@salgo60
Copy link
Owner

salgo60 commented Sep 22, 2024

Vad tror sig Wikidata veta

se

image
@salgo60
Copy link
Owner Author

salgo60 commented Sep 26, 2024

image
#title: Badplats på EUs officiella språk enligt WIkidata Q567998
SELECT ?WikilangCode ?langNameSV ?label  WHERE {
  # EU official languages and their Wikimedia language codes
  wd:Q13639115 wdt:P527 ?lang .
  ?lang wdt:P424 ?WikilangCode .

  # Fetch the language name in Swedish
  ?lang rdfs:label ?langNameSV .
  FILTER(LANG(?langNameSV) = "sv")  # Ensure the language name is in Swedish

  # Try to get the labels for "Utegym" in each language
  OPTIONAL {
    wd:Q567998 rdfs:label ?label .
    BIND(LANG(?label) AS ?labelLang) .
    FILTER (?labelLang = ?WikilangCode)
  }

  # Assign "<saknar label>" for languages without a label
  BIND(COALESCE(?label, "<saknar label>") AS ?label)
}
ORDER BY ?WikilangCode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant