Shortcuts: WD:PC, WD:CHAT, WD:?

Wikidata:Project chat

From Wikidata
Jump to navigation Jump to search

How to see all uses of files in WMC cat that miss a qualifier?

[edit]

I'd like to see all videos in c:Category:Videos by Terra X in German (audio in German, subtitles vary) that are used in Wikidata items but do not have the qualifier language of work or name (P407) set so that I can set these qualifiers.
This Glamorous scan gets fairly close but I can't make it show only items that miss this qualifier and while it may be fine to just go through all items once and check if it's set manually, that method can't be used for maintaining that this qualifier is set since people also add these videos to more files (and also one could maybe also use this on larger categories) to make sure files have this qualifier set. Prototyperspective (talk) 17:07, 5 November 2024 (UTC)[reply]

I think that this SPARQL query, using the Commons Query Service, should give you what you need M2Ys4U (talk) 19:31, 5 November 2024 (UTC)[reply]
Sounds great but it only shows, maybe try linking it via the Visual Editor and without linkshortener:

HTTP ERROR 500
Problem accessing /oauth/check_login. Reason:
Request failed.
Powered by Jetty:// 9.4.12.v20180830

Prototyperspective (talk) 20:10, 5 November 2024 (UTC)[reply]
Try going to https://commons-query.wikimedia.org/ separately first (and log in if needed), then the above link might work better (that fixed it for me, at least). Lucas Werkmeister (WMDE) (talk) 09:58, 6 November 2024 (UTC)[reply]
Thanks, it does work now albeit when I first opened that page it also showed an error (no error after refresh). @M2Ys4U: That query shows all files in the category, not videos that are used on Wikidata items. I may try adjusting it later but I'm not using commons queries much. Prototyperspective (talk) 13:15, 6 November 2024 (UTC)[reply]
Glamorous is a tool that can show which files of a WMC cat are in use on a specific Wikimedia project. Via this line of code it seems like the "Commons API" is being used. However I couldn't yet figure out how to make it show file-uses. Then it's unclear whether it's possible to use this in the SPARQL queries and if so how. None of the examples here are useful. Do you or somebody else here know how to query for file uses? I found this by now which shows image uses but replacing it with fileusage (mw:API:Fileusage) doesn't work (also replacing wikibase:endpoint with "www.wikidata.org") Prototyperspective (talk) 15:42, 6 November 2024 (UTC)[reply]
Oh, I see. Sorry, I misunderstood your question. Here is another SPARQL query that should show files in that category that are used in video (P10) statements on Wikidata that don't have a language of work or name (P407) qualifier on them. M2Ys4U (talk) 12:08, 7 November 2024 (UTC)[reply]
Amazing, thank you very much! I think using this query the challenge of videos missing the language qualifier can be solved – see meta:Community Wishlist/Wishes/Suggest media set in Wikidata items for their Wikipedia articles. An issue is that some videos have subtitles and sometimes the video would be good to add despite being in another language if it has good-quality subtitles for the target language. One could think about this later, I'll link this query solution on the talk page of the wish and will use it to finish this backlog. There should probably be some script that automatically sets the language qualifier if the video is in any subcategory of e.g. c:Category:Videos in German but that's a broader discussion. If somebody knows anything about this, like a good place to propose this, please comment. It could probably be implemented already via adjusting your query somehow and QuickStatements. Prototyperspective (talk) 13:10, 7 November 2024 (UTC)[reply]
Is it possible to have the query also check files in subcategories like PetScan and the deepcategory search operator on Commons do? I couldn't find info on that in mw:API:Categorymembers. Prototyperspective (talk) 18:46, 7 November 2024 (UTC)[reply]

Two separate individual's data on one item, how to separate?

[edit]

The item for Felix Patrick Quinn (Q5442294) the Canadian politician (properly linked to Wikipedia) has been given the data for "Quinn, Patrick Francis, 1918-" (Library of Congress n83188492 Poet Quinn). Looking at the history the item belonged to the Canadian politician Quinn and not the poet Quinn. I am sure if there is a process besides reverting the item to the stage before the poet Quinn's data was put in on January 30, 2023 (by Reinheitsgebot)? I noticed that other sites (VIAF, LOC) now link to this wikidata item? Any advice or help would be great. (EDIT: as a note I found the same thing happened with Fred Sanderson (Q5496212) and Pamphile Réal Du Tremblay (Q3361816)) - Caddyshack01 (talk) 13:23, 6 November 2024 (UTC)[reply]

Notified participants of WikiProject Conflation 🚨. Samoasambia 21:18, 6 November 2024 (UTC)[reply]
@Caddyshack01: Typically when this happens you'll deprecate any identifiers for the poet (or whoever isn't supposed to be on this item) with the reason for deprecation as "applies to other person". Then you'll create an item for the poet so there's a place for those identifiers to go, and finally link the old item and the new item with a "different from" property. I did this for Patrick Quinn and Fred Sanderson, but I've run out of time to check all the identifiers on Pamphile Réal Du Tremblay, and create and connect a new item for Réal Tremblay. You're welcome to do so and use the other two conflations I fixed as a model. Thanks! Mcampany (talk) 16:51, 11 November 2024 (UTC)[reply]

Views an element's subclasses

[edit]

Is there a way to see which elements have listed a given element as Property:P279? Ragnar Ekre (talk) 21:28, 7 November 2024 (UTC)[reply]

Yes, via https://query.wikidata.org/ ChristianKl21:35, 7 November 2024 (UTC)[reply]
https://w.wiki/BtNY Infrastruktur (talk) 11:23, 8 November 2024 (UTC)[reply]

(Semi-)automated Wikipedia editing based on WD content

[edit]

What would one use if one would like to put a certain template into a specific section (always the same name) into Wikipedia articles where the Wikipedia is the one linked on the Wikidata item and the content of the template set in the Wikidata item? I think one could use sparql to get the Wikipedia article title/link and the column(s) for the data relevant to the template. Maybe AWB? I don't know of a better place to ask here, on WP maybe it's Wikipedia:Bot requests. Prototyperspective (talk) 23:08, 7 November 2024 (UTC)[reply]

There is Template:Wikidata list (Q19860885) on most projects that takes a SPARQL query and then ListeriaBot (talkcontribslogs) comes by later and creates the table. William Graham (talk) 23:59, 7 November 2024 (UTC)[reply]
This is only suitable for adding a table but I'd like to add a template with some info from Wikidata. Maybe something similar to it exists then, I have used that bot already. Also I'd like to just enter many Wikipedia articles to add the template to the top of the specified section. Prototyperspective (talk) 00:03, 8 November 2024 (UTC)[reply]
While Template:Wikidata list (Q19860885) does exist, it's currently not used in Wikipedia articles but only in other pages like user pages and Wikiprojects. If someone tries to use it in an article I would expect that to result in pushback from Wikipedians.
That said, Wikipedia editing (which is what ListeriaBot does) and Wikipedia template themselves getting data from Wikidata are two different things. Templates can load data from Wikidata via the lua code of modules. SPAQRL queries however can't be made from the lua code.
If you want to add a template to a lot of Wikipedia pages automatically, that needs some kind of consensus within Wikipedia and trying to do that without seeking consensus might get you banned and would generally not be good for the Wikipedia/Wikidata relationship. Doing a bot request is a way to build consenus. ChristianKl08:35, 8 November 2024 (UTC)[reply]
Yes and this is not about Wikidata list. I know that data can be loaded from Wikidata dynamically but it seems like it's preferred and it may also generally be better to add content based on Wikidata content instead of just specifying which value of which prop(s) should dynamically be loaded. So it's just a static template without any WD-calls that I intend to add. Yes, a bot request would be done albeit I don't know what counts as "many pages" (and there is lots of semi-automatic editing on WP) but it seems like it only can be done by bot developers and I'm not developing any bots – the question then is not how to get permission/consensus but how it would be implemented. Prototyperspective (talk) 13:11, 8 November 2024 (UTC)[reply]
It's not just an issue of "many pages" but of in Wikipedia policy terms of "controversial". Automatically, adding information-based on Wikidata would fall under that category within Wikipedia given how past RfC's regarding Wikidata went where opinions within Wikipedians differ quite a bit. ChristianKl10:29, 9 November 2024 (UTC)[reply]
It's better to ask is this bot or this idea bot okay than to ask is this hypothetical idea for a bot which may not be possible and which I have no idea how to create okay. Prototyperspective (talk) 23:52, 9 November 2024 (UTC)[reply]
If you automatically add information to Wikipedia who can do that with a bot or with a tool like AutoWikiBrowser but AutoWikiBrowser also has as Rules of use "3. Do not make controversial edits with it. Seek consensus for changes that could be controversial at the appropriate venue; village pump, WikiProject, etc. "Being bold" is not a justification for mass editing lacking demonstrable consensus."
Most Wikidata imports would fall into that category. ChristianKl22:46, 10 November 2024 (UTC)[reply]

title problem about Korean novel

[edit]

Hello! I made a new page about Korean novel, but I want to know how to add title. Should I split English translate title and Korean title? Or it's okay to add together like now? Q131048165 This is the page that I made. Hee Jung, Yoon (talk) 06:17, 8 November 2024 (UTC)[reply]

@Hee Jung, Yoon: Yes, that is okay :). Samoasambia 14:19, 8 November 2024 (UTC)[reply]

Telemark (Q2254)

[edit]

Telemark is now restored. It is wrong information that it is a former county. It was merged with Vestfold, but now it is reestablished. How to edit this information? Tollef Salemann (talk) 12:06, 8 November 2024 (UTC)[reply]

I mean, it is by some reason showed in the info boxes in Wikimedia Commons that Telemark was "Replaced by
Vestfold og Telemark", and i dont know how to edit this. Tollef Salemann (talk) 12:09, 8 November 2024 (UTC)[reply]
Hi Tollef Salemann! Technically speaking Telemark (Q2254) has been a former county between 2020–2023 until it was re-established in the beginning of 2024. On Wikidata we want to store that kind of historical information about too. I added some qualifiers about the dates of abolishment/re-establisment to replaces (P1365) and replaced by (P1366), and now the template on Wikimedia Commons is a bit more detailed. Samoasambia 14:17, 8 November 2024 (UTC)[reply]
Oh, no, I mean that there is some mistake in the code, because info boxes in Wikimedia Commons say that Telemark was "Replaced by Vestfold og Telemark", and it happens because of some fail in the Wikidata. Tollef Salemann (talk) 19:19, 9 November 2024 (UTC)[reply]
Well, technically Telemark was replaced by Vestfold og Telemark in 2020 and then Vestfold og Telemark was replaced by Telemark when the county was re-established in 2024. So the data is correct but I understand that it can look misleading. Samoasambia 20:05, 9 November 2024 (UTC)[reply]

Thank you!

[edit]

It was 12 years and 9 month since I become administrator in Wikidata, and fortunately it got removed due to my inactivity. I will not intend to re-apply as there are great administrators in here who can take care wikidata well. I just want to leave message say it was my pleasure to serving administrator here. :)--*Youngjin (talk) 06:39, 9 November 2024 (UTC)[reply]

Thank you for your service. Ymblanter (talk) 18:15, 9 November 2024 (UTC)[reply]

How to add participating artists to a building item?

[edit]

I created an item for the old Polish Embassy in Berlin (Q131136067) and was able to credit the architects, but how do I add the artist that created the ornamental metal doors? As many modernist buildings have works applied to them that are not seperate artworks, but directly connected to the building, I guess this is something that occurs more often. Carl Ha (talk) 14:16, 10 November 2024 (UTC)[reply]

If they are notable, I would suggest making them separate items and linking them with has part(s) of the class (P2670). Sjoerd de Bruin (talk) 16:55, 10 November 2024 (UTC)[reply]
But sometimes the sources don't give info what "work" exactly these artists did to the building, just that they participated. Carl Ha (talk) 16:58, 10 November 2024 (UTC)[reply]
contributor to the creative work or subject (P767)? Sjoerd de Bruin (talk) 17:10, 10 November 2024 (UTC)[reply]
thank you! Carl Ha (talk) 17:28, 10 November 2024 (UTC)[reply]

List of properties by date added and category?

[edit]

Is there a list of properties by date added and category? Eurohunter (talk) 18:45, 10 November 2024 (UTC)[reply]

The properties were added in sequential order, see PID milestone (Q73616850) for which properties were created when. Subclasses of wikidata property is listed at Wikidata:Properties/Classes. Example list of wikidata properties for AC for actors: https://www.wikidata.org/w/index.php?search=haswbstatement%3AP31%3DQ111481605&title=Special%3ASearch&profile=advanced&fulltext=1&ns120=1 Infrastruktur (talk) 23:44, 10 November 2024 (UTC)[reply]

Wikibase REST API is now on version 1!

[edit]

Hi everyone,

We are excited to announce that the Wikibase REST API will move to a stable v1 version, which will go live on November 11, 2024. This new version will adhere to the Stable Interface Policy, ensuring reliability.

It's important to note that the older v0, which has been live on Wikidata since early 2023, will remain available for a four-week transition period until mid-December 2024 in order to avoid unnecessary maintenance costs.

We encourage all users to migrate to the new v1 API during this time to ensure that their applications can continue to work seamlessly. In almost all cases, this should just require replacing v0 in the routes with v1.

Please refer to the Open API swagger documentation for detailed information about the v1 API, including all endpoints, parameters, errors, request and response formats. Additionally, you can find all the background information and relevant links curated on our project page.

If you encounter problems or want to request a new feature, please create a ticket on our Phabricator board. If you have questions or want to leave feedback, please do so at project talk page or reach out to Ifrah Khanyaree, the product manager for the REST API.

Cheers, -Mohammed Abdulai (WMDE) (talk) 12:36, 11 November 2024 (UTC)[reply]

How to turn a query into a "ListeriaBot subpage"?

[edit]

I'd like to use ListeriaBot if that's ok to create a subpage on my Userpage so that this query can be turned into a subpage so that I don't have to run it manually each time I wanna see how many Steam Deck verified titles and Nintendo Switch titles there are:

# Steam Deck verified titles on Wikidata query.
#title:Steam Deck verified titles
SELECT ?item WHERE {
  ?item wdt:P8956 wd:Q107542665;
        p:P8956 ?statement.
  ?statement pq:P1552 wd:Q117413402.
}
Steam Deck verified titles

Then I also got this one related to amount of Nintendo Switch titles:

# Platform Nintendo Switch
#title:Nintendo Switch titles
SELECT ?item ?itemLabel
WHERE
{
  ?item wdt:P400 wd:Q19610114. # Platform Nintendo Switch
  SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],mul,en". } # Helps get the label in your language, if not, then default for all languages, then en language
}
Nintendo Switch titles

I was worried that the right to use ListeriaBot would require special permission and I have checked another user who didn't seem to have been given any special privileges but still had subpages using ListeriaBot. This made me think that maybe anyone on Wikidata can use ListeriaBot, I guess as long as its ok with the bot maintainer? Is it ok if I create 2 subpages on my user page so that I don't have to run the queries manually? I'm using this to keep track of my progress when adding Steam Deck verified titles or adding the data to titles and its something that motivates me to keep editing. Right now these queries exist just like I present them here and its the same on my user page, I run them both manually and then I make notes, a bit tedious.

Also if you think my queries can be improved please help or is Wikidata:Request_a_query a better place for query optimization? SuperUltraHardCoreGamer (talk) 13:21, 11 November 2024 (UTC)[reply]

You really don't need a special permission for that, user space is totally appropriate for sharing ListeriaBot queries. --Matěj Suchánek (talk) 14:32, 12 November 2024 (UTC)[reply]
It's here now User:SuperUltraHardCoreGamer/Sandbox. Will ListeriaBot eventually process it or should I press on the Manually update list on the top right? SuperUltraHardCoreGamer (talk) 10:12, 14 November 2024 (UTC)[reply]

Wikidata weekly summary #653

[edit]

Automatic linking of articles

[edit]

It was said that articles are automatically linked to new Wikidata item in some period, but there are a lot of examples like this one, which wasn't connected for over one year. Eurohunter (talk) 18:46, 12 November 2024 (UTC)[reply]

Hello Eurohunter, @Mike Peel: for information.
for unconnected articles see for example:
Screenshot for de:Luis Giraldo
A possible improvement could be the activation of
for all users per default.
Also see
M2k~dewiki (talk) 19:50, 12 November 2024 (UTC)[reply]
@M2k~dewiki: A lot of links but actually what to do in short way? Eurohunter (talk) 20:41, 12 November 2024 (UTC)[reply]
Hello, you could for example
  • use PetScan (example: Biografie według daty urodzenia) (and other categories) to check for existing items and connect them to existing items or create new ones using PetScan/QuickStatements if no item exists
  • try to activate AutosuggestSitelink for the polish language wikipedia for all users
  • ask for the polish wikipedia to be included in some tasks of User:Pi bot
  • play the distributed game
  • promote PetScan, AutosuggestSitelink, the distributed game, and the importance of connecting newly created articles and categories to existing wikidata items and help and inform new users in the polish language wikipedia with these tasks (thats what I tried to do for the last ten years for the german language wikipedia)
M2k~dewiki (talk) 20:50, 12 November 2024 (UTC)[reply]
A collection of questions I have been asked over the last years can be found at
Templates for users support can be found at
M2k~dewiki (talk) 20:54, 12 November 2024 (UTC)[reply]
@Eurohunter: Pi bot auto-creates new mostly-empty items after a waiting period (~14 days, it varies a bit depending on the last edit date) for some wikis - although I need to double-check if it's running for plwiki. It looks for possible matches first, and loads them into a Wikidata Game at https://wikidata-game.toolforge.org/distributed/#game=82 - and only creates new items for those once the potential matches have been checked, to avoid creating duplicates. There are currently 2963 plwiki matches waiting for decisions. Please do play the game and help reduce the backlog, share it with others, and let me know if I can improve that process. Thanks. Mike Peel (talk) 22:43, 12 November 2024 (UTC)[reply]

Deletion of used/referenced wikidata objects

[edit]

Hello,

@Ymblanter, BrokenSegue, Emu, Mike Peel, MisterSynergy: for information.

Item d:Q130006846 was connected to Commons:Category:Claudia Misiak, the item just has been deleted without discussion.

The references to d:Q130006846 in every image of this category became invalid, for example:

leads to the deleted item.

Shouldn't it be prevented to delete items which are in use (e.g. by structured data on commons / SDC , other items, ...) or have sitelinks to other projects or languages?

If it is not prevented, will these references (e.g. on SDC) be cleaned up after deleting the item?


In the past it also happend, that objects with an ID (Property:P6228) to the Wikimedia project hosted by Wikimedia Austria (WMAT), for example d:Q110630051, have been deleted without notice or discussion, the reference in

to this object in the bottom of the page became invalid.


Also see

M2k~dewiki (talk) 22:12, 12 November 2024 (UTC)[reply]

Actually, I deleted it responding to a request at the RfD page, so I can not say it was deleted without discussion. The item is not notable because the commons categories alone are not notable, and there were no signs of notability otherwise. I agree however that we should have some automatic cleanup for these cases, and possibly some notification mechanism. Ymblanter (talk) 22:22, 12 November 2024 (UTC)[reply]
Somewhat related is this report: Wikidata:Database reports/Deleted Wikidata entities used in SDC. We should IMO not delete items which are in use at Commons-SDC per the "structural need" clause. —MisterSynergy (talk) 22:28, 12 November 2024 (UTC)[reply]
@Addshore, AmaryllisGardener, Ameisenigel, Bovlb, ChristianKl: for information. M2k~dewiki (talk) 22:33, 12 November 2024 (UTC)[reply]
@Dexbot, Fralambert, Estopedist1, Infrastruktur, Madamebiblio: for information. M2k~dewiki (talk) 22:33, 12 November 2024 (UTC)[reply]
@Mahir256, Matěj Suchánek, Multichill, Wüstenspringmaus, Ymblanter: for information. M2k~dewiki (talk) 22:33, 12 November 2024 (UTC)[reply]
Well, the problem is we do not know which items are in use by SDC. I am not going to run a quiery before deleting every spam item. Ymblanter (talk) 22:40, 12 November 2024 (UTC)[reply]
It's my understanding that in the past we used the term "structural need" to speak of needs within Wikidata. Given that the deletion interface does not alert the deleting admin about usages from elsewhere, I don't think it's easy to change to treating SDC usages as structural needs. If someone wants less items like that to be deleted, petitioning WMDE or the WMF to update the deletion interface to notice cross-links within Wikimedia would be the best way forward. Ideally, if there are <10 links all links should be directly listed on the page without the admin needing to click to get more information.
Generally, it seems not to be desirable that a SEO spammer can get notability for a Wikidata item provided he can successfully have one picture of himself on WikiCommons as that would result in circular notability where the Wikidata item is notable because the image exist on Wikimedia Commons and the image is notable because the Wikidata item exists. ChristianKl09:34, 13 November 2024 (UTC)[reply]
That was a completely correct deletion. You shouldn't have created it, actually all these items in batch temporary_batch_1724864964640 should probably not have been created and are eligible for deletion. Multichill (talk) 18:54, 13 November 2024 (UTC)[reply]

[BREAKING CHANGE ANNOUNCEMENT] wbformatvalue API no longer accepts most options

[edit]

Hello,

This is a breaking change announcement for the options parameter of the wbformatvalue API. Based on recent usage data, we don’t expect most API users to be affected by this change.

The wbformatvalue API has an options parameter, where various formatting options can be specified in a JSON object. Historically, Wikibase has allowed any option to be set to any (JSON) value here, and because the formater implementations often did not validate the options, it was possible to produce various (mostly harmless) crashes in Wikibase by setting e.g. a string-valued option to an integer. Also, even when the options were being used correctly, most of them were of questionable usefulness, and tracking shows that only very few options were actually used in practice.

To simplify the API, we are changing it so that only four options are allowed in the JSON: lang, applyRounding, applyUnit, and showcalendar.These allowed options and their possible values are documented in the API documentation. Currently, invalid values for these options are already rejected; as of 2024-11-27, any option name other than these four will also be rejected, regardless of value. According to the tracking mentioned above, no API request has mentioned any of the other options in the past six months, so we do not expect that anyone will actually have to update their code to stop sending other options.

If you have any questions, feel free to leave a comment on T323778.
- Danny Benjafield (WMDE) (talk) 09:29, 13 November 2024 (UTC)[reply]

Deleted Property clean-up in references

[edit]

Property:P10589 was deleted and I have removed any Claims using it with QuickStatements having found them with a SPARQL query.

How to similarly clean up References using it? See genre in https://www.wikidata.org/wiki/Q11147846#P136 as an example? I don't think this is something QuickStatements can handle, is there another way or do I need to write a Bot to do it? OQZYwD0R (talk) 18:16, 13 November 2024 (UTC)[reply]

@OQZYwD0R: looks like User:ChristianKl was bit too quick with deleting the property. Usually we first remove all usage before doing the actual deletion. Not sure why that didn't happen here.
A property is also a wiki page so you can look at https://www.wikidata.org/wiki/Special:WhatLinksHere?target=Property%3AP10589&namespace=0&limit=50 to see where it's still used. That's currently 25 items so I don't think you'll need a bot for that. Multichill (talk) 18:58, 13 November 2024 (UTC)[reply]
I think there are more than 23 sadly; I don't see Q11283669 on that WhatLinksHere page.
Only looking for Items with a genre (P136) with a Reference containing P10589 returns about 2000 results. OQZYwD0R (talk) 19:31, 13 November 2024 (UTC)[reply]