User:Kghbln/queries

From Wikibase World
< User:Kghbln
Revision as of 12:35, 13 September 2023 by Kghbln (talk | contribs) (add)
Jump to navigation Jump to search
Wikibase instances that are hosted independently
PREFIX wdt: <https://wikibase.world/prop/direct/>
PREFIX wd: <https://wikibase.world/entity/>

SELECT ?item ?itemLabel ?url
WHERE {
  ?item wdt:P2 wd:Q5.
  ?item wdt:P1 ?url .
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

tinyurl.com - short URL / wikibase.world/query/ - long URL

Wikibase instances that are hosted independently which are online
SELECT ?item ?itemLabel ?website 
WHERE {
  ?item wdt:P31 wd:Q47461344.
  ?item wdt:P856 ?website.
  ?item wdt:PXXX wd:Q54.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

tinyurl.com - short URL / wikibase.world/query/ - long URL

Wikibase instances that are hosted independently which are online explicitly showing the status
PREFIX wdt: <https://wikibase.world/prop/direct/>
PREFIX wd: <https://wikibase.world/entity/>

SELECT ?item ?itemLabel ?url ?online
WHERE {
  ?item wdt:P2 wd:Q5.
  ?item wdt:P1 ?url .
  ?item wdt:P13 ?online.
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". }
}

tinyurl.com - short URL / wikibase.world/query/ - long URL