Main Page/UsingTheQueryService

From LD4 WBStack Test
Jump to navigation Jump to search
  • This query selects all Institutions in this Wikibase instance and retrieves their local Q-Number and label

SELECT ?institution ?institutionLabel WHERE { ?institution <> <> ; <> ?institutionLabel . }

  • This query selects all "preferred local labels," the authorized access point of the headings they replace, and the institution(s) that use them. Note that the SERVICE command invokes the Wikibase label service, which functions the same in a local Wikibase instance as it does in Wikidata.

SELECT ?preferredLocalLabel ?replacesLabel ?institutionLabel WHERE { ?preferredLocal <> <> ; <> ?replaces ; <> ?institution . SERVICE wikibase:label { bd:serviceParam wikibase:language "en". } }