Bureaucrats, emailconfirmed, Administrators
1,168
edits
m (oops) |
(add) |
||
Line 86: | Line 86: | ||
; query result | ; query result | ||
[https://tinyurl.com/yvaz2nsb tinyurl.com - short URL] / [https://wikibase.world/query/#PREFIX%20wdt%3A%20%3Chttps%3A%2F%2Fwikibase.world%2Fprop%2Fdirect%2F%3E%0APREFIX%20wd%3A%20%3Chttps%3A%2F%2Fwikibase.world%2Fentity%2F%3E%0A%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Furl%20%3FinceptionDate%0AWHERE%20%7B%0A%20%20%3Fitem%20wdt%3AP2%20wd%3AQ5.%0A%20%20%3Fitem%20wdt%3AP1%20%3Furl.%0A%20%20%3Fitem%20wdt%3AP5%20%3FinceptionDate.%0A%20%20%3Fitem%20wdt%3AP13%20wd%3AQ54.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%0AORDER%20BY%20%3FinceptionDate - long URL] | [https://tinyurl.com/yvaz2nsb tinyurl.com - short URL] / [https://wikibase.world/query/#PREFIX%20wdt%3A%20%3Chttps%3A%2F%2Fwikibase.world%2Fprop%2Fdirect%2F%3E%0APREFIX%20wd%3A%20%3Chttps%3A%2F%2Fwikibase.world%2Fentity%2F%3E%0A%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Furl%20%3FinceptionDate%0AWHERE%20%7B%0A%20%20%3Fitem%20wdt%3AP2%20wd%3AQ5.%0A%20%20%3Fitem%20wdt%3AP1%20%3Furl.%0A%20%20%3Fitem%20wdt%3AP5%20%3FinceptionDate.%0A%20%20%3Fitem%20wdt%3AP13%20wd%3AQ54.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%0AORDER%20BY%20%3FinceptionDate - long URL] | ||
=== online and using the Wikibase Local Media extension === | |||
; query code | |||
<syntaxhighlight lang=sparql> | |||
PREFIX wdt: <https://wikibase.world/prop/direct/> | |||
PREFIX wd: <https://wikibase.world/entity/> | |||
SELECT ?item ?itemLabel ?url ?onlineLabel ?extension ?extensionLabel | |||
WHERE { | |||
?item wdt:P2 wd:Q5. | |||
?item wdt:P1 ?url . | |||
?item wdt:P13 ?online. | |||
?item wdt:P14 ?extension. | |||
FILTER(?extension = wd:Q215) | |||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } | |||
} | |||
</syntaxhighlight> | |||
; query result | |||
[https://tinyurl.com/29p27jry tinyurl.com - short URL] / [https://wikibase.world/query/#PREFIX%20wdt%3A%20%3Chttps%3A%2F%2Fwikibase.world%2Fprop%2Fdirect%2F%3E%0APREFIX%20wd%3A%20%3Chttps%3A%2F%2Fwikibase.world%2Fentity%2F%3E%0A%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Furl%20%3FonlineLabel%20%3Fextension%20%3FextensionLabel%0AWHERE%20%7B%0A%20%20%3Fitem%20wdt%3AP2%20wd%3AQ5.%0A%20%20%3Fitem%20wdt%3AP1%20%3Furl%20.%0A%20%20%3Fitem%20wdt%3AP13%20%3Fonline.%0A%20%20%3Fitem%20wdt%3AP14%20%3Fextension.%0A%20%20FILTER%28%3Fextension%20%3D%20wd%3AQ215%29%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D%0A%0A - long URL] |