[05:40:26] Does wikidata ever use CommonLogic? [05:40:58] Such as CLIF (or even KIF) [09:50:14] hi, I'm looking for a way to override some settings set in repo/config/Wikibase.default.php during unit tests [09:59:50] I see that I can use $repo->getSettings()->setSetting() (seen in https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/Wikibase/+/master/repo/tests/phpunit/includes/Api/SetSiteLinkTest.php#381) [09:59:54] will try that [10:04:35] sjoerddebruin: https://www.wikidata.org/wiki/Q2708781 Fun merge to untangle.... [10:05:07] multichil: There are some that are even more fun, where the mess on Wikidata made mess on VIAF [10:05:46] Here the sitelink was on the wrong item and the two got merged [10:06:06] :( [10:08:04] Oh, wait, so these viaf broken links are only broken in the old database, not in the new [12:31:00] Lucas_WMDE: Lucas_WMDE_ Maybe we should also have mw.wikibase.normalizeEntityId() [12:31:18] So that mw.wikibase.normalizeEntityId( ':q42' ) -> 'Q42' [12:31:44] implemented as entityIdParser->parse( $entityIdSerialization )->serialize() ? [12:31:47] could make sense [12:31:55] yeah [12:32:22] though I’m not sure if it’s useful… is it likely that a module will have a non-normalized version of an entity ID and will need a normalized version for something? [12:32:34] (I guess the normalized version would mainly be useful for displaying?) [12:33:32] It might be useful for cleaning up user-supplied entity ids for using them when traversing data structures etc. [12:33:44] but overall we can probably leave it for now [12:33:48] ok [12:34:06] And only add it on request? [12:34:36] yeah [12:47:28] hoo: IT'S ALIVE! [12:47:41] huh? :D [12:47:56] https://commons.wikimedia.org/wiki/Template_talk:Creator#Links_to_Wikidata_redirected_item [12:48:37] hoo: ^^ [12:49:56] multichil: Will open a ticket… that should be easy to do [12:50:13] Currently not possible, right? [12:51:06] hoo: Just having mw.wikibase.entity:getId is probably already enough [12:51:30] Than you can just check if the supplied ID is not the same as mw.wikibase.entity:getId [12:54:35] Well mw.wikibase.getEntity( 'Q10000003' ).id -> Q7809164 [12:55:04] multichil: Is that enough? Or do we want a getId helper? [12:55:21] id is exposed? Why isn't that documented? [12:56:26] hoo: What else is exposed and not documented? Or where is this documented? [12:56:36] Yeah, mw.wikibase.getEntity is almost the same as a wbgetentities [12:57:21] I guess we can make the documentation more explicit… maybe with an example [12:57:25] * hoo thinks out loud [13:13:29] hoo: https://commons.wikimedia.org/w/index.php?title=Module:Creator/sandbox&diff=prev&oldid=295603609 [13:13:32] Added https://www.mediawiki.org/w/index.php?title=Extension%3AWikibase_Client%2FLua&type=revision&diff=2752446&oldid=2749852 to the docs [13:15:05] multichil: Thanks, I'll probably take it from there and maybe also add a very brief example [13:16:30] Does LUA have a way to dump a data structure in a somewhat pretty format? [13:16:55] Like json.dumps in Python? [13:17:22] sure [13:18:18] You can link to that as an example [13:18:34] mw.logObject(mw.wikibase.getEntity('Q…')) [13:18:59] You just have to find an item which uses all Wikibase features [13:18:59] Yeah, might make sense as well [13:19:23] Germany :P [13:19:38] but I suppose that's browsercrashingly hard to read [13:19:57] Let's make that more specific: Smallest item with all features enabled [13:26:33] spinster: I see you have https://www.wikidata.org/wiki/User:Spinster/Musical_instruments - are you actively working on instruments? [14:06:36] PROBLEM - Check systemd state on wdqs2006 is CRITICAL: CRITICAL - degraded: The system is operational but one or more units failed. [14:06:37] PROBLEM - Blazegraph Port on wdqs2006 is CRITICAL: connect to address 127.0.0.1 and port 9999: Connection refused [14:06:45] PROBLEM - WDQS HTTP Port on wdqs2006 is CRITICAL: HTTP CRITICAL: HTTP/1.1 502 Bad Gateway - 380 bytes in 0.001 second response time [14:06:56] PROBLEM - Blazegraph process on wdqs2006 is CRITICAL: PROCS CRITICAL: 0 processes with UID = 499 (blazegraph), regex args ^java .* blazegraph-service-.*war [14:07:02] :S [15:16:36] reosarevok: I have been dabbling in musical instruments, yes, and occasionally work on them when I feel like it. Not very actively at the moment though. If you are interested in working on them, go ahead! [15:17:34] Hi! Not specifically, although I deal with them wrt MusicBrainz sometimes. But maybe you can have a look at a question :) [15:17:47] Oh, sure! [15:18:38] "16:12  what should I do about https://www.wikidata.org/wiki/Q213461 and https://www.wikidata.org/wiki/Q20825271 and the language links?" (They seem to both be for harmonium in many languages but is it just that there's the same word for different things? [15:19:01] (MusicBrainz instruments person was wondering) [15:23:24] that's a hard one :| Is it very crucial to have the links to Wikipedias exactly right? Wikipedians have decided to do the interwiki links like this, even if it seems incorrect or inaccurate in some places. In my experience with more popular articles, it is tempting to start to re-organize them and add each article to its correct Wikidata item, but some Wikipedia editors might not be happy with that. I tend to leave such cases alone in most cases [15:23:25] now [15:23:43] It's going to be quite a big puzzle in any case :-) [15:24:13] Curious if other people in this chat have an opinion, cause this is not specific to musical instruments - you see this quite often in other fields too [15:25:02] (I hope this answers your question - if not, let me know!) [15:29:01] well it kind matters a little, as it dictates what we (musicbrainz) will link to via wikipedia, when I(hi!) link so and such wikidata item [15:29:14] if the wikidata item is well defined though, thet helps better :D [15:29:40] erh what different languae wikipedia we link to through wikidata i mean [15:30:01] for example, we will fetch a blurb of the (usually english, but if eng is mising, soem other langue) [15:30:13] of the wikipage linked wia wikidata item [15:30:47] so whne i come across it, i try to differenciate these to the best of my ability [15:31:37] wikipdias deletion and merging policy annoys me to no end :) [15:36:36] CatQuest: Very interesting to hear that! It's a good argument to keep things clean indeed - proof that it's not just about Wikipedia, but also about how the rest of the world uses our data :-) [15:36:47] deff [15:36:54] i absolutely *love* wikidata [15:37:11] Wikidata *is* love ;-) [15:37:16] :D [15:38:15] I'm still a totla noob though, even if WD is the metawiki project I have the most edits on :D [15:38:28] or is that wikimedia? [15:38:32] i've never understood that [15:38:40] Wikimedia [15:38:46] right [15:38:47] I don't blame you, we are very confusing [15:38:51] hah [15:39:17] been gnoming on various wikis since almost '05 and i'm still unknowledgable :P [15:39:59] haven't really dipped my whole body in though, just the toes. mostly i edit with MetaBrainz :D [15:40:43] but yea. we do use WD a lot [15:42:18] so when I am adding an instrument on mb I link the WD entry, sometimes I have to even create it! [15:42:18] and if wd instrument is very lacking, i'vebeen increasingly improving where i can too [15:42:19] I also try to use remember to use mb instrument id aon the item too [15:42:30] a little bit afraid to make mistakes though :) [15:42:41] well it's easily reverted [15:42:52] just, don't wanna come across as a complete idiot :D [15:43:28] and annoy people :D [15:43:32] Don't worry - the Wikidata community is generally extremely friendly [15:43:43] yaaay [15:43:50] same with the MetaBrainz :) [15:44:03] Do you have an idea how many of the MusicBrainz instruments are mapped to Wikidata, and vice versa? https://musicbrainz.org/instruments [15:44:22] hmmm [15:44:48] reosarevok: didn't we have that raprto that yvanzo was writing? (or did nothing coem of that) [15:44:53] raport* [15:45:38] visa versa should be most if not all now as we got the mineobot up and running and adding those mbids to things in wd (artists, release groups, instruments etc) [15:46:16] there are a few instruments that don't have wikidata items, either they are too generic or not ntable enough [15:46:37] 699 instruments have MusicBrainz IDs, apparently https://www.wikidata.org/wiki/Property_talk:P1330 [15:46:59] (I'm working on it though) [15:46:59] initially we had an instrument tree and not a database of entities so some of these are left over from that [15:53:15] 700 :D [15:54:42] meh, it annoys me that the "commons category" often produces a non-link (and adding an unerscore is frowned upon) [15:55:13] oh. here isa nother ting I use wikidata for: the various language aliases for instruments [15:56:16] for example https://www.wikidata.org/wiki/Q930827 will have french alias "régale" and greek "ρεγκάλ" [15:56:23] RECOVERY - Blazegraph Port on wdqs2006 is OK: TCP OK - 0.000 second response time on 127.0.0.1 port 9999 [15:56:32] RECOVERY - Check systemd state on wdqs2006 is OK: OK - running: The system is fully operational [15:56:52] RECOVERY - Blazegraph process on wdqs2006 is OK: PROCS OK: 1 process with UID = 499 (blazegraph), regex args ^java .* blazegraph-service-.*war [15:56:53] RECOVERY - WDQS HTTP Port on wdqs2006 is OK: HTTP OK: HTTP/1.1 200 OK - 434 bytes in 0.071 second response time [15:57:32] PROBLEM - High lag on wdqs2006 is CRITICAL: CRITICAL - scalar(time() - blazegraph_lastupdated{instance=wdqs2006:9193}): 6486.0 = 3600.0 https://grafana.wikimedia.org/dashboard/db/wikidata-query-service?orgId=1&panelId=8&fullscreen [15:59:36] ACKNOWLEDGEMENT - High lag on wdqs2006 is CRITICAL: CRITICAL - scalar(time() - blazegraph_lastupdated{instance=wdqs2006:9193}): 6228.0 = 3600.0 Gehel data transfer in progress, recovering already https://grafana.wikimedia.org/dashboard/db/wikidata-query-service?orgId=1&panelId=8&fullscreen [16:21:33] RECOVERY - High lag on wdqs2006 is OK: OK - scalar(time() - blazegraph_lastupdated{instance=wdqs2006:9193}) within thresholds https://grafana.wikimedia.org/dashboard/db/wikidata-query-service?orgId=1&panelId=8&fullscreen [18:37:18] hi [18:37:27] is there a way to programatically update wikidata? [18:51:40] Cu5tosLimen: yes, what do you want to do? [18:52:25] reosarevok, Import ITU references [18:52:37] and maybe make plugin for asciidoc to pull out data [19:06:28] Hi guys, can this link be considered as URI so that we can apply for property for it? http://iris.banq.qc.ca/alswww2.dll/APS_PRESENT_BIB?Style=Portal3&SubStyle=&Lang=ENG&ResponseEncoding=utf-8&no=0005534395&Via=Z3950&View=ISBD&Parent=Obj_552041522955071&SearchBrowseList=Obj_552041522955071&SearchBrowseListItem=87053&BrowseList=Obj_552041522955071?Style=Portal3&SubStyle=&Lang=ENG&ResponseEncoding=utf-8&BrowseListItem=87053&QueryObj [19:08:35] Hi Wikidatians! [19:15:27] Hi guys, can this link be considered as URI so that we can apply for property for it? http://iris.banq.qc.ca/alswww2.dll/APS_PRESENT_BIB?Style=Portal3&SubStyle=&Lang=ENG&ResponseEncoding=utf-8&no=0005534395&Via=Z3950&View=ISBD&Parent=Obj_552041522955071&SearchBrowseList=Obj_552041522955071&SearchBrowseListItem=87053&BrowseList=Obj_552041522955071?Style=Portal3&SubStyle=&Lang=ENG&ResponseEncoding=utf-8&BrowseListItem=87053&QueryObj [19:25:47] Cu5tosLimen: look into pywikibot [19:26:04] And https://www.wikidata.org/wiki/Wikidata:Requests_for_permissions/Bot [19:26:11] (if you want a fully-automated bot approach) [19:26:26] Eh, sorry, https://www.wikidata.org/wiki/Special:MyLanguage/Wikidata:Bots#Approval_process is more useful I guess :) [19:48:27] Helmoony: https://www.wikidata.org/wiki/Property:P1823 ? [19:48:57] Cu5tosLimen: How is your Python? https://www.mediawiki.org/wiki/Manual:Pywikibot [19:49:18] multichil, thanks I'm looking at it [19:49:45] I mean reosarevok [19:49:59] multichil, it is okay - I'm looking at using it now thanks [19:50:03] https://www.wikidata.org/wiki/Special:Contributions/BotMultichill & https://www.wikidata.org/wiki/Special:Contributions/BotMultichillT is all Pywikibot [19:51:14] so maybe I'm unclear on this - can I edit without approval? [19:51:27] multichil: cool, thank you. it seems not populated. I was writing a request for that property! [20:06:29] Cu5tosLimen: you, yes [20:06:32] Your bot, no [20:07:04] (basically, if you do bot-edits, you should make a few test edits before you get the approval, but not too many - 50 to 200 IIRC? - and then ask for approval and show the edits) [20:07:19] reosarevok, do I have to show the bot? [20:07:30] source I mean [20:08:20] When requesting a bot there's a section: "Link to your online repository (github, bitbucket, fossil, etc.). Optional but highly encouraged" [20:09:10] I would say do it - people didn't complain about my awful code, so they won't complain about yours. Unless there's something that can't be shown for some reason, in which case you should probably explain the reason when requesting the bot [20:15:41] reosarevok: All code is awful :P [21:04:35] reosarevok, I'm just worried about doxing myself is all [21:04:41] but I want to share code [21:04:45] :\ [21:05:02] I mean, you shouldn't need to add any tokens, identifying info or whatnot [21:05:11] Just put placeholders in for those if you share the code [21:05:38] no - I mean if I link to code it links to my name unless I made fake github account [21:16:01] Oh. Well, worst thing, make it a random logged-out gist, better than nothing :) . Or yeah, a separate github account with a fake name, or bitbucket or whatever, nobody will complain [21:19:22] reosarevok, yeah I just make a mailinator based github [21:35:07] Jonas_WMDE: Would be great if you can have a look at https://www.wikidata.org/wiki/Template_talk:Property_documentation#Usage_history_graph_weird_data_notation tomorrow