User:Syced: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
No edit summary Tag: 2017 source edit |
Tag: 2017 source edit |
||
(18 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
{{#babel:fr-N|en-5|ja-5|de-3|nl-1|es-1|it-1|zh-1|ru-0|fa-0|hi-0}} |
{{#babel:fr-N|en-5|ja-5|de-3|nl-1|es-1|it-1|zh-1|ru-0|fa-0|hi-0|be-0|uk-0}} |
||
Please let me know If I am doing anything wrong! |
Please let me know If I am doing anything wrong! |
||
Line 6: | Line 6: | ||
* Move [[Wikidata:Infobox_mappings]] data to https://tools.wmflabs.org/pltools/harvesttemplates/share.php |
* Move [[Wikidata:Infobox_mappings]] data to https://tools.wmflabs.org/pltools/harvesttemplates/share.php |
||
* Extract transliteration from Japanese Wikipedia articles, even those without an infobox. Example: 犀川駅(さいがわえき)は、 → {{P|1814}} さいがわえき {{P|2125}} saigawaeki |
* Extract transliteration from Japanese Wikipedia articles, even those without an infobox. Example: 犀川駅(さいがわえき)は、 → {{P|1814}} さいがわえき {{P|2125}} saigawaeki |
||
* [https://query.wikidata.org/# |
* [https://query.wikidata.org/#%23defaultView%3AMap%0ASELECT%20%3Flocation%20%3Fq%20%3FqLabel%20WHERE%20%7B%0A%20SERVICE%20wikibase%3Aaround%7B%3Fq%20wdt%3AP625%20%3Flocation.%20bd%3AserviceParam%20wikibase%3Acenter%20%22Point%28139.735064%2035.660428%29%22%5E%5Egeo%3AwktLiteral.%20bd%3AserviceParam%20wikibase%3Aradius%20%225%22.%7D%0A%20MINUS%20%7B%20%3Fq%20wdt%3AP18%20%3Fimage%20%7D%0A%20MINUS%20%7B%20%3Fq%20wdt%3AP31%20%3Fclass%20%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%2Cja%22.%20%7D%0A%7D%20LIMIT%20100 Add] {{P|31}} to items around you. |
||
* Add {{P|2910}} and {{P|18}} to most core items |
* Add {{P|2910}} and {{P|18}} to most core items |
||
* Tables to write SPARQL queries for: [https://query.wikidata.org/#SELECT%20%3Fitem%20%3FitemLabel%20%3Fimage%20WHERE%20%7B%0A%20%23%3Fitem%20p%3AP31%2Fps%3AP31%2Fwdt%3AP279%2a%20wd%3AQ174211.%0A%20%3Fitem%20p%3AP31%2Fps%3AP31%20wd%3AQ174211.%0A%20OPTIONAL%7B%3Fitem%20wdt%3AP18%20%3Fimage.%7D%0A%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D organic compounds] |
* Tables to write SPARQL queries for: [https://query.wikidata.org/#SELECT%20%3Fitem%20%3FitemLabel%20%3Fimage%20WHERE%20%7B%0A%20%23%3Fitem%20p%3AP31%2Fps%3AP31%2Fwdt%3AP279%2a%20wd%3AQ174211.%0A%20%3Fitem%20p%3AP31%2Fps%3AP31%20wd%3AQ174211.%0A%20OPTIONAL%7B%3Fitem%20wdt%3AP18%20%3Fimage.%7D%0A%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D organic compounds] |
||
Line 12: | Line 12: | ||
* Select an image for items that have a Commons category: [https://tools.wmflabs.org/fist/wdfist/?depth=3&language=en&project=wikipedia&sparql=SELECT%20?item%20WHERE%20%20{%20%20%20?item%20wdt:P373%20?commonsCategory.%20%20%20?item%20wdt:P31%20wd:Q188451.%20%20%20MINUS%20{%20%20%20%20%20?item%20wdt:P18%20?image.%20%20%20}%20}&no_images_only=1&search_commons=1&prefilled=1 Music genres], [https://tools.wmflabs.org/fist/wdfist/?depth=3&language=en&project=wikipedia&sparql=SELECT%20?item%20WHERE%20%20{%20%20%20?item%20wdt:P373%20?commonsCategory.%20%20%20?item%20wdt:P131*%20wd:Q1490.%20%20%20MINUS%20{%20%20%20%20%20?item%20wdt:P18%20?image.%20%20%20}%20}&no_images_only=1&search_commons=1&prefilled=1 Things in Tokyo] |
* Select an image for items that have a Commons category: [https://tools.wmflabs.org/fist/wdfist/?depth=3&language=en&project=wikipedia&sparql=SELECT%20?item%20WHERE%20%20{%20%20%20?item%20wdt:P373%20?commonsCategory.%20%20%20?item%20wdt:P31%20wd:Q188451.%20%20%20MINUS%20{%20%20%20%20%20?item%20wdt:P18%20?image.%20%20%20}%20}&no_images_only=1&search_commons=1&prefilled=1 Music genres], [https://tools.wmflabs.org/fist/wdfist/?depth=3&language=en&project=wikipedia&sparql=SELECT%20?item%20WHERE%20%20{%20%20%20?item%20wdt:P373%20?commonsCategory.%20%20%20?item%20wdt:P131*%20wd:Q1490.%20%20%20MINUS%20{%20%20%20%20%20?item%20wdt:P18%20?image.%20%20%20}%20}&no_images_only=1&search_commons=1&prefilled=1 Things in Tokyo] |
||
* [https://query.wikidata.org/#SELECT%20%3Fhuman1%20%3Fhuman1Label%20%3Fhuman2%20%3Fhuman2Label%20%3Fimage%0AWHERE%0A%7B%0A%09%3Fhuman1%20wdt%3AP31%20wd%3AQ5.%0A%09%3Fhuman2%20wdt%3AP31%20wd%3AQ5.%0A%09%3Fhuman1%20wdt%3AP18%20%3Fimage.%0A%09%3Fhuman2%20wdt%3AP18%20%3Fimage.%0A%20%20%20%20FILTER%20%28%3Fhuman1%20%21%3D%20%3Fhuman2%29.%0A%09SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22%20%7D%0A%7D%0ALIMIT%205 Different humans with the same image]: Fix any mistake or crop the image. |
* [https://query.wikidata.org/#SELECT%20%3Fhuman1%20%3Fhuman1Label%20%3Fhuman2%20%3Fhuman2Label%20%3Fimage%0AWHERE%0A%7B%0A%09%3Fhuman1%20wdt%3AP31%20wd%3AQ5.%0A%09%3Fhuman2%20wdt%3AP31%20wd%3AQ5.%0A%09%3Fhuman1%20wdt%3AP18%20%3Fimage.%0A%09%3Fhuman2%20wdt%3AP18%20%3Fimage.%0A%20%20%20%20FILTER%20%28%3Fhuman1%20%21%3D%20%3Fhuman2%29.%0A%09SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22%20%7D%0A%7D%0ALIMIT%205 Different humans with the same image]: Fix any mistake or crop the image. |
||
* [https://query.wikidata.org/#SELECT%20%3Fitem%20%3FitemLabel%20%3FclassLabel%0AWHERE%20%0A%7B%0A%20%20%3Fitem%20wdt%3AP131%2a%20wd%3AQ193638.%0A%20%20MINUS%7B%3Fitem%20wdt%3AP625%20%3Fgeo%7D%0A%20%20OPTIONAL%7B%3Fitem%20wdt%3AP31%20%3Fclass%7D%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cja%2Cen%22.%20%7D%0A%7D Shibuya items without coordinates] [https://query.wikidata.org/#%23defaultView%3AMap%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Fgeo%0AWHERE%20%0A%7B%0A%20%20%3Fitem%20wdt%3AP131%2a%20wd%3AQ193638.%0A%20%20%3Fitem%20wdt%3AP625%20%3Fgeo.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D Map of Shibuya items] |
|||
* [https://query.wikidata.org/#SELECT%20%3Fplace1%20%3Fplace1Label%20%3Fplace2%20%3Fplace2Label%0AWHERE%20%0A%7B%0A%20%20%3Fplace1%20wdt%3AP190%20%3Fplace2.%20%23%20Twinned%20administrative%20bodies.%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D Twin cities] [https://query.wikidata.org/#SELECT%20%3Fplace1%20%3Fplace1Label%20%3Fcountry1Label%20%3Fplace2%20%3Fplace2Label%20%3Fcountry2Label%0AWHERE%20%0A%7B%0A%20%20%3Fplace1%20wdt%3AP131%2a%20wd%3AQ865.%20%23%20Taiwan%0A%20%20%3Fplace1%20wdt%3AP190%20%3Fplace2.%20%23%20Twinned%20administrative%20bodies.%0A%20%20%3Fplace2%20wdt%3AP17%20wd%3AQ142.%20%23%20France%0A%20%20SERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%22.%20%7D%0A%7D France-Taiwan twin cities] |
|||
* [https://commons-query.wikimedia.org/#SELECT%20DISTINCT%20%3Fdepicted%20%3Flabel%20%3Fdescription%20%3Fimage%0AWITH%0A%7B%0A%20%20SELECT%20%3Fdepicted%20%3Ffile%0A%20%20WHERE%20%0A%20%20%7B%0A%20%20%20%20%3Ffile%20wdt%3AP180%20%3Fdepicted.%0A%20%20%20%20SERVICE%20wikibase%3Abox%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%3Ffile%20wdt%3AP1259%20%3Flocation.%0A%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3AcornerWest%20%22Point%28139.6%2035.6%29%22%5E%5Egeo%3AwktLiteral%20.%0A%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3AcornerEast%20%22Point%28139.7%2035.7%29%22%5E%5Egeo%3AwktLiteral%20.%0A%20%20%20%20%7D%0A%20%20%7D%0A%7D%20AS%20%25items%0AWHERE%0A%7B%0A%20%20INCLUDE%20%25items%0A%20%20SERVICE%20%3Chttps%3A%2F%2Fquery.wikidata.org%2Fsparql%3E%0A%20%20%7B%0A%20%20%20%20OPTIONAL%20%7B%3Fdepicted%20wdt%3AP18%20%3Fimg%7D%0A%20%20%20%20FILTER%20%28%21BOUND%28%3Fimg%29%29%0A%20%20%20%20MINUS%20%7B%3Fdepicted%20wdt%3AP31%20wd%3AQ4167410%7D%20%23%20Filter%20out%20disambiguation%20pages.%0A%20%20%20%20SERVICE%20wikibase%3Alabel%20%7B%0A%20%20%20%20%20%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO_LANGUAGE%5D%2Cen%2Cja%2Cfr%22.%0A%20%20%20%20%20%20%3Fdepicted%20rdfs%3Alabel%20%3Flabel.%0A%20%20%20%20%20%20%3Fdepicted%20schema%3Adescription%20%3Fdescription.%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20%3Ffile%20schema%3Aurl%20%3Fimage.%0A%7D%0AORDER%20BY%20%3Fdepicted Items with no P18 despite having a Commons category] |
|||
* [https://fist.toolforge.org/wdfist/?depth=3&language=en&project=wikipedia&sparql=SELECT%20?item%20WHERE%20%20{%20%20%20?item%20wdt:P31%20wd:Q6256.%20}&no_images_only=1&prefilled=1 Add P18 to countries (WDFIST)] |
|||
* [https://commons-query.wikimedia.org/embed.html#SELECT%20%0A%20%20%3Fcount%0A%20%20%3Fdepicted%20%3FdepictedLabel%0A%20%20%3Fexample_file%0AWHERE%20%7B%0A%20%20%7B%0A%20%20%20%20SELECT%20%0A%20%20%20%20%20%20(COUNT(*)%20AS%20%3Fcount)%0A%20%20%20%20%20%20%3Fdepicted%0A%20%20%20%20%20%20(SAMPLE(%3Ffile)%20AS%20%3Fexample_file)%0A%20%20%20%20WHERE%20%7B%0A%20%20%20%20%20%20%3Ffile%20wdt%3AP180%20%3Fdepicted%20.%0A%20%20%20%20%7D%0A%20%20%20%20GROUP%20BY%20%3Fdepicted%0A%20%20%20%20ORDER%20BY%20DESC(%3Fcount)%0A%20%20%20%20LIMIT%20100%0A%20%20%7D%0A%20%20SERVICE%20%3Chttps%3A%2F%2Fquery.wikidata.org%2Fsparql%3E%20%7B%0A%20%20%20%20MINUS%20%7B%20%3Fdepicted%20wdt%3AP18%20%5B%5D%20%7D%0A%20%20%20%20OPTIONAL%20%7B%3Fdepicted%20rdfs%3Alabel%20%3FdepictedLabel%20FILTER%20(lang(%3FdepictedLabel)%20%3D%20'en')%20%7D%20.%0A%20%20%7D%0A%7D%0AORDER%20BY%20DESC(%3Fcount) Most-depicted items without a P18] |
|||
== Memo == |
== Memo == |
||
[https://query.wikidata.org/embed.html#%23Embassies%20and%20consulates%0ASELECT%20DISTINCT%20%23(SAMPLE(%3Flabel)%20as%20%3Flabel)%0A%09(SAMPLE(%3Fcountry_label)%20as%20%3Fcountry)%09(SAMPLE(%3Fcity_label)%20as%20%3Fcity)%09(SAMPLE(%3Faddress)%20as%20%3Faddress)%09(SAMPLE(%3Fcoordinates)%20as%20%3Fcoordinates)%0A%09(SAMPLE(%3Foperator_label)%20as%20%3Foperator)%09(SAMPLE(%3Ftype_label)%20as%20%3Ftype)%09(SAMPLE(%3Fphone)%20as%20%3Fphone)%09%09(SAMPLE(%3Femail)%20as%20%3Femail)%0A%09(SAMPLE(%3Fwebsite)%20as%20%3Fwebsite)%09%09%09(SAMPLE(%3Fimage)%20as%20%3Fimage)%09%09%3Fwikidata%0A%09%23(SAMPLE(%3Ffacebook)%20as%20%3Ffacebook)%20(SAMPLE(%3Ftwitter)%20as%20%3Ftwitter)%20(SAMPLE(%3Fyoutube)%20as%20%3Fyoutube)%20(SAMPLE(%3Finception)%20as%20%3Finception)%0AWHERE%20%7B%0A%20%23OPTIONAL%20%7B%3Fwikidata%20rdfs%3Alabel%20%3Flabel.%7D%0A%09%7B%20%3Fwikidata%20p%3AP31%2Fps%3AP31%2Fwdt%3AP279*%20wd%3AQ3917681.%20%7D%20UNION%20%7B%20%3Fwikidata%20p%3AP31%2Fps%3AP31%2Fwdt%3AP279*%20wd%3AQ7843791.%20%7D%20%23%20Embassy%20or%20consulate%0A%09%3Fwikidata%20p%3AP31%2Fps%3AP31%20%3FtypeId.%20%3FtypeId%20wdt%3AP279*%20wd%3AQ43229.%20%3FtypeId%20rdfs%3Alabel%20%3Ftype_label.%20FILTER%20(lang(%3Ftype_label)%20%3D%20%22en%22).%0A%09%3Fwikidata%20wdt%3AP131*%2Fwdt%3AP17%20%3FcountryId.%20%3FcountryId%20rdfs%3Alabel%20%3Fcountry_label.%20FILTER%20(lang(%3Fcountry_label)%20%3D%20%22en%22).%0A%09%7B%3Fwikidata%20wdt%3AP137%20%3FoperatorId.%7D%20UNION%20%0A%20%7B%3Fwikidata%20p%3AP31%2Fps%3AP31%20%3Fnunciature.%20%3Fnunciature%20wdt%3AP137%20%3FoperatorId.%7D%20%3FoperatorId%20rdfs%3Alabel%20%3Foperator_label.%20FILTER%20(lang(%3Foperator_label)%20%3D%20%22en%22).%0A%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP131%20%3FcityId.%20%3FcityId%20rdfs%3Alabel%20%3Fcity_label.%20FILTER%20(lang(%3Fcity_label)%20%3D%20%22en%22).%7D%0A%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP969%20%3Faddress.%7D%09%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP625%20%3Fcoordinates.%7D%0A%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP1329%20%3Fphone.%7D%09%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP968%20%3Femail.%7D%0A%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP856%20%3Fwebsite.%7D%09%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP18%20%3Fimage.%7D%0A%20%23OPTIONAL%20%7B%3Fwikidata%20wdt%3AP2013%20%3Ffacebook.%7D%20OPTIONAL%20%7B%3Fwikidata%20wdt%3AP2002%20%3Ftwitter.%7D%0A%20%23OPTIONAL%20%7B%3Fwikidata%20wdt%3AP2397%20%3Fyoutube.%7D%20OPTIONAL%20%7B%3Fwikidata%20wdt%3AP571%20%3Finception.%7D%0A%20MINUS%20%7B%3Fwikidata%20wdt%3AP582%20%3Fendtime.%7D%09%20MINUS%20%7B%3Fwikidata%20wdt%3AP582%20%3FdissolvedOrAbolished.%7D%0A%09MINUS%20%7B%3Fwikidata%20p%3AP31%20%3FinstanceStatement.%20%3FinstanceStatement%20pq%3AP582%20%3FendtimeQualifier.%7D%09%0A%7D%20GROUP%20BY%20%3Fwikidata%20ORDER%20BY%20ASC(%3Fcountry)%20ASC(%3Fcity)%20ASC(%3Foperator)%20DESC(%3Ftype) Embedded Wikidata query] |
* [https://query.wikidata.org/embed.html#%23Embassies%20and%20consulates%0ASELECT%20DISTINCT%20%23(SAMPLE(%3Flabel)%20as%20%3Flabel)%0A%09(SAMPLE(%3Fcountry_label)%20as%20%3Fcountry)%09(SAMPLE(%3Fcity_label)%20as%20%3Fcity)%09(SAMPLE(%3Faddress)%20as%20%3Faddress)%09(SAMPLE(%3Fcoordinates)%20as%20%3Fcoordinates)%0A%09(SAMPLE(%3Foperator_label)%20as%20%3Foperator)%09(SAMPLE(%3Ftype_label)%20as%20%3Ftype)%09(SAMPLE(%3Fphone)%20as%20%3Fphone)%09%09(SAMPLE(%3Femail)%20as%20%3Femail)%0A%09(SAMPLE(%3Fwebsite)%20as%20%3Fwebsite)%09%09%09(SAMPLE(%3Fimage)%20as%20%3Fimage)%09%09%3Fwikidata%0A%09%23(SAMPLE(%3Ffacebook)%20as%20%3Ffacebook)%20(SAMPLE(%3Ftwitter)%20as%20%3Ftwitter)%20(SAMPLE(%3Fyoutube)%20as%20%3Fyoutube)%20(SAMPLE(%3Finception)%20as%20%3Finception)%0AWHERE%20%7B%0A%20%23OPTIONAL%20%7B%3Fwikidata%20rdfs%3Alabel%20%3Flabel.%7D%0A%09%7B%20%3Fwikidata%20p%3AP31%2Fps%3AP31%2Fwdt%3AP279*%20wd%3AQ3917681.%20%7D%20UNION%20%7B%20%3Fwikidata%20p%3AP31%2Fps%3AP31%2Fwdt%3AP279*%20wd%3AQ7843791.%20%7D%20%23%20Embassy%20or%20consulate%0A%09%3Fwikidata%20p%3AP31%2Fps%3AP31%20%3FtypeId.%20%3FtypeId%20wdt%3AP279*%20wd%3AQ43229.%20%3FtypeId%20rdfs%3Alabel%20%3Ftype_label.%20FILTER%20(lang(%3Ftype_label)%20%3D%20%22en%22).%0A%09%3Fwikidata%20wdt%3AP131*%2Fwdt%3AP17%20%3FcountryId.%20%3FcountryId%20rdfs%3Alabel%20%3Fcountry_label.%20FILTER%20(lang(%3Fcountry_label)%20%3D%20%22en%22).%0A%09%7B%3Fwikidata%20wdt%3AP137%20%3FoperatorId.%7D%20UNION%20%0A%20%7B%3Fwikidata%20p%3AP31%2Fps%3AP31%20%3Fnunciature.%20%3Fnunciature%20wdt%3AP137%20%3FoperatorId.%7D%20%3FoperatorId%20rdfs%3Alabel%20%3Foperator_label.%20FILTER%20(lang(%3Foperator_label)%20%3D%20%22en%22).%0A%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP131%20%3FcityId.%20%3FcityId%20rdfs%3Alabel%20%3Fcity_label.%20FILTER%20(lang(%3Fcity_label)%20%3D%20%22en%22).%7D%0A%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP969%20%3Faddress.%7D%09%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP625%20%3Fcoordinates.%7D%0A%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP1329%20%3Fphone.%7D%09%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP968%20%3Femail.%7D%0A%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP856%20%3Fwebsite.%7D%09%09OPTIONAL%20%7B%3Fwikidata%20wdt%3AP18%20%3Fimage.%7D%0A%20%23OPTIONAL%20%7B%3Fwikidata%20wdt%3AP2013%20%3Ffacebook.%7D%20OPTIONAL%20%7B%3Fwikidata%20wdt%3AP2002%20%3Ftwitter.%7D%0A%20%23OPTIONAL%20%7B%3Fwikidata%20wdt%3AP2397%20%3Fyoutube.%7D%20OPTIONAL%20%7B%3Fwikidata%20wdt%3AP571%20%3Finception.%7D%0A%20MINUS%20%7B%3Fwikidata%20wdt%3AP582%20%3Fendtime.%7D%09%20MINUS%20%7B%3Fwikidata%20wdt%3AP582%20%3FdissolvedOrAbolished.%7D%0A%09MINUS%20%7B%3Fwikidata%20p%3AP31%20%3FinstanceStatement.%20%3FinstanceStatement%20pq%3AP582%20%3FendtimeQualifier.%7D%09%0A%7D%20GROUP%20BY%20%3Fwikidata%20ORDER%20BY%20ASC(%3Fcountry)%20ASC(%3Fcity)%20ASC(%3Foperator)%20DESC(%3Ftype) Embedded Wikidata query] |
||
* [[Wikidata:Property_proposal/opening_hours_(v.3)]] |
|||
* [https://meta.wikimedia.org/wiki/Abstract_Wikipedia Abstract Wikipedia] |
|||
== Harvesting infoboxes to add P31 (instance of) == |
== Harvesting infoboxes to add P31 (instance of) == |
||
Line 27: | Line 34: | ||
# Open https://tools.wmflabs.org/quickstatements and import as CSV |
# Open https://tools.wmflabs.org/quickstatements and import as CSV |
||
# Run |
# Run |
||
== Business hours == |
|||
[[Wikidata:Property_proposal/opening_hours_(v.3)]] |
|||
# Museums around me that are open right now |
|||
SELECT ?place ?location ?distance ?placeLabel WHERE { |
|||
# Museums |
|||
?place p:P31/ps:P31/wdt:P279* wd:Q33506. |
|||
# Open today |
|||
# TODO |
|||
# Open today at now's time |
|||
# TODO |
|||
# Around me |
|||
SERVICE wikibase:around { |
|||
?place wdt:P625 ?location . |
|||
bd:serviceParam wikibase:center "Point(-122.399523 37.786952)"^^geo:wktLiteral . |
|||
bd:serviceParam wikibase:radius "1" . |
|||
bd:serviceParam wikibase:distance ?distance . |
|||
} |
|||
SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } |
|||
} ORDER BY ?distance LIMIT 10 |
Latest revision as of 09:03, 1 July 2022
Babel user information | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||||||
Users by language |
Please let me know If I am doing anything wrong!
TODO
[edit]- Harvest dissolutions of Japanese former territorial entities such as 泥江町
- Move Wikidata:Infobox_mappings data to https://tools.wmflabs.org/pltools/harvesttemplates/share.php
- Extract transliteration from Japanese Wikipedia articles, even those without an infobox. Example: 犀川駅(さいがわえき)は、 → name in kana (P1814) さいがわえき Revised Hepburn romanization (P2125) saigawaeki
- Add instance of (P31) to items around you.
- Add icon (P2910) and image (P18) to most core items
- Tables to write SPARQL queries for: organic compounds
- Wikidata:WikiProject_sum_of_all_paintings/Possible_paintings
- Select an image for items that have a Commons category: Music genres, Things in Tokyo
- Different humans with the same image: Fix any mistake or crop the image.
- Shibuya items without coordinates Map of Shibuya items
- Twin cities France-Taiwan twin cities
- Items with no P18 despite having a Commons category
- Add P18 to countries (WDFIST)
- Most-depicted items without a P18
Memo
[edit]Harvesting infoboxes to add P31 (instance of)
[edit]Let's say all articles on the Polish Wikipedia with template "Meteoryt infobox" are about a meteorite. Many of them do not have any P31. Let's fix that:
- Open https://tools.wmflabs.org/pltools/harvesttemplates/ and set Wiki=pl.wikipedia.org, Property=P31, Template=Meteoryt infobox, Parameter=0
- Press on "get values" then "demo". Do NOT press on "add values"!
- Wait for the demo to finish (this step retrieves the QIDs, all lines become red, don't worry)
- Press "TSV" to download the data in Gnumeric
- Keep only the second column "qid"
- Add a second column with header "P31" and "Q9252191" (replace with the QID of the class you want these items to be an instance of) on all rows
- Copy the data into Geany, replace all tabs with a comma
- Open https://tools.wmflabs.org/quickstatements and import as CSV
- Run
Business hours
[edit]Wikidata:Property_proposal/opening_hours_(v.3)
# Museums around me that are open right now SELECT ?place ?location ?distance ?placeLabel WHERE { # Museums ?place p:P31/ps:P31/wdt:P279* wd:Q33506. # Open today # TODO # Open today at now's time # TODO # Around me SERVICE wikibase:around { ?place wdt:P625 ?location . bd:serviceParam wikibase:center "Point(-122.399523 37.786952)"^^geo:wktLiteral . bd:serviceParam wikibase:radius "1" . bd:serviceParam wikibase:distance ?distance . } SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],en". } } ORDER BY ?distance LIMIT 10