Page MenuHomePhabricator

Jarekt (Jarek Tuszynski)
User

Projects

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Monday

  • Clear sailing ahead.

User Details

User Since
Nov 5 2014, 5:13 PM (295 w, 2 d)
Availability
Available
LDAP User
Unknown
MediaWiki User
Jarekt [ Global Accounts ]

Admin on Commons and Wikidata

Recent Activity

Thu, Jul 2

TheDJ awarded T256933: Alter the look of SDC GUI to hide input fields for properties which are not beeing edited a Like token.
Thu, Jul 2, 8:51 AM · Structured-Data-Backlog (Current Work), Patch-For-Review, Wikidata, Structured Data Engineering, SDC General
Jarekt added a comment to T256933: Alter the look of SDC GUI to hide input fields for properties which are not beeing edited.

By the way, I explained the issue with always on input field for geo-coordinate statements with single value constraint in T227116, before it was rolled out, but my comment did not altered that aspect of the design

Thu, Jul 2, 3:13 AM · Structured-Data-Backlog (Current Work), Patch-For-Review, Wikidata, Structured Data Engineering, SDC General
Jarekt created T256933: Alter the look of SDC GUI to hide input fields for properties which are not beeing edited.
Thu, Jul 2, 3:08 AM · Structured-Data-Backlog (Current Work), Patch-For-Review, Wikidata, Structured Data Engineering, SDC General

Wed, Jul 1

Jarekt added a comment to T56097: [Story] allow to select globe in the UI.

7 years and this is still an annoying issue.

Wed, Jul 1, 2:53 AM · Story, Wikidata, patch-welcome, MediaWiki-extensions-WikibaseRepository

Mon, Jun 22

Jarekt added a comment to T245861: Add Structured data during file upload with Upload Wizard.

I am not sure why is that a low priority. We have a structured data at the upload time (username of the uploader, do they claim "own work" or not, geo coordinates date picked on the calendar, etc. ) then we downgrade it all to unstructured wikitext, and then much latter (possibly after many error-prone edits) rely on user written bots to parse it and recover the original structured data. I know we have to do it the hard way for the old uploads, but in case of new ones we do not have to rely on this error-prone process and store original structured data directly. I do not mind "interesting hackathon project" but that seem to me as basic functionality of SDC.

Mon, Jun 22, 7:29 PM · Structured-Data-Backlog, StructuredDataOnCommons, UploadWizard, Structured Data Engineering

Fri, Jun 12

Jarekt added a comment to T241614: in bot mode, after 50k-ish good edits bot started randomly blanking pages.

It seems to have happen again, as reported at c:User_talk:Jarekt#Your_bot_blanked_hundreds_of_pages. Due to bug T251507 my bot is running thousands of "touch" operations using AWB, by adding a single line to a page, which is ignored by the software but it does trigger page refresh. Those edits do not show in the user contributions or page history. However once in a while AWB goes berserk.

Fri, Jun 12, 6:30 PM · WorkType-Maintenance, AutoWikiBrowser

Thu, Jun 4

Jarekt awarded T253053: Make it possible to add references to statements in Structured Data on Wikimedia Commons a Like token.
Thu, Jun 4, 7:46 PM · Structured-Data-Backlog, GLAM-Tech
Jarekt updated subscribers of T247433: Disable watchlist notifications for bot edits made on Commons structured data.

This is probably a duplicate of T246746. This ticket is likely about edits by my bot, which I fired off about the same time and I got a lot of unpleasant feedback about. As I understand it, not all edits by bot accounts are marked as "bot edits", but only edits with a "bot=1" flag set somewhere for each edit. For my edits, I am using QuickStatements, an excellent tool by @Magnus. QuickStatements is able to operate on SDC only in batch mode (aka asynchronous mode) and in that mode it either does not set that flag properly or that flag does not work properly in that mode. The issue was reported also at https://github.com/magnusmanske/quickstatements_rs/issues/2.

Thu, Jun 4, 6:54 PM · Structured-Data-Backlog, Structured Data Engineering

May 27 2020

Jarekt added a comment to T252259: Refine Commons Template:Map with Lua modules to populate the template with Wikidata.

That is strange, my system behaves differently. After opening a Module file originally there are no number lines, but than a different skin (or something ) kicks in and I can see code lines. Also if I see an error line number that is the correct line number I see in Notepad++ and in the on-wiki editor.

May 27 2020, 7:17 PM · Wikidata, Commons, Wikibase-Lua, Wikimedia-Hackathon-2020
Jarekt added a comment to T252259: Refine Commons Template:Map with Lua modules to populate the template with Wikidata.

Lena, I am happy to help, I just cant commit to do all the work as I am stretch quite thin with maintenance of existing modules. There are no instructions other than https://www.mediawiki.org/wiki/Extension:Scribunto/Lua_reference_manual and https://www.mediawiki.org/wiki/Extension:Wikibase_Client/Lua, so the best way is to learn by example. [[Module:Artwork]] has a lot of overlap but it does a lot of other stuff (like allow transfer of data from commons to wikidata) which can be confusing. [[Module:Information]] or Module:Creator also do similar things.

May 27 2020, 3:10 PM · Wikidata, Commons, Wikibase-Lua, Wikimedia-Hackathon-2020

May 22 2020

Jarekt created T253387: Create a Lua convenience functions for conversion betweem language code and project and sitelink code.
May 22 2020, 3:51 PM · Wikibase-Lua, Wikidata

May 10 2020

Jarekt added a comment to T252307: Create a Lua module that converts tabular data to a wiki table.

Should we try to unify the functionality in https://en.wikipedia.org/wiki/Template:Json2table and https://en.wikipedia.org/wiki/Module:Tabular_data? Or maybe it’s better to have one focus on “raw” output and the other focus on polished formatting?

May 10 2020, 4:58 PM · Wikimedia-Hackathon-2020, covid-19, Commons-Datasets
Jarekt awarded T252320: Improve video cropping + rotating experience. a Like token.
May 10 2020, 12:59 PM · Patch-For-Review, Wikimedia-Hackathon-2020, VideoCutTool
Jarekt claimed T252307: Create a Lua module that converts tabular data to a wiki table.
May 10 2020, 12:49 PM · Wikimedia-Hackathon-2020, covid-19, Commons-Datasets
Jarekt added a comment to T252307: Create a Lua module that converts tabular data to a wiki table.

I did not see mxn posts and wrote Template:Json2table. It has a lot of styling and formatting options.

This is already pretty remarkable and even better than I could imagine when writing this task. Great work! Are you still improving it or is it ready to be copied to other language projects?

May 10 2020, 12:48 PM · Wikimedia-Hackathon-2020, covid-19, Commons-Datasets
Jarekt added a comment to T252307: Create a Lua module that converts tabular data to a wiki table.

I did not see mxn posts and wrote Template:Json2table. It has a lot of styling and formatting options.

May 10 2020, 4:34 AM · Wikimedia-Hackathon-2020, covid-19, Commons-Datasets

May 9 2020

Jarekt added a comment to T252259: Refine Commons Template:Map with Lua modules to populate the template with Wikidata.

Can we make a temporary template for this module, like MapWD?

May 9 2020, 9:45 PM · Wikidata, Commons, Wikibase-Lua, Wikimedia-Hackathon-2020
Jarekt renamed T252307: Create a Lua module that converts tabular data to a wiki table from Create a Lua module that converts tabular data to a table to Create a Lua module that converts tabular data to a wiki table.
May 9 2020, 9:26 PM · Wikimedia-Hackathon-2020, covid-19, Commons-Datasets
Jarekt awarded T3886: A cross-wiki "What links here" (aggregate local iwbacklinks from wikis) a Like token.
May 9 2020, 9:18 PM · Wikimedia-Hackathon-2017, Community-Wishlist-Survey-2016, MediaWiki-Special-pages
Jarekt added a comment to T252259: Refine Commons Template:Map with Lua modules to populate the template with Wikidata.

I have very early stage of Module:Map done. At this stage the goal is to recreate Template:Map in Lua. Template Map has so many fields that at this point I added about 50-60% of fields which were shared with Artwork template. I will switch to other tasks now, but it would be great if others would help by adding the rest of the fields. Especially fields which are only used by this template and which might need translations set up at Module:I18n/map. Ping me here or on my commons talk page if there are any questions.

May 9 2020, 7:28 PM · Wikidata, Commons, Wikibase-Lua, Wikimedia-Hackathon-2020
Jarekt created T252300: Modify javascript Gadget-PermissionOTRS.js on Commons to add P6305 SDC statement.
May 9 2020, 2:54 PM · Commons, Structured-Data-Backlog, Wikimedia-Hackathon-2020, SDC-Statements
Jarekt added a comment to T252259: Refine Commons Template:Map with Lua modules to populate the template with Wikidata.

I'm up for working with you if @Jarekt can give advise!

May 9 2020, 2:09 PM · Wikidata, Commons, Wikibase-Lua, Wikimedia-Hackathon-2020
Jarekt added a comment to T252289: Import properties with qualifiers from CSV-file.

Python version would be great, but traditionally that task is done using QuicKStatements.

May 9 2020, 1:44 PM · Wikimedia-Hackathon-2020

May 8 2020

Jarekt added a comment to T248440: Extract CSV file from Wikipedia/Commons/MediaWiki Special pages.

I think CSV download option would be great. Over time I found that I can often get list of pages from many MediaWiki Special pages using AutoWikiBrowser, and when that fails then there is always https://quarry.wmflabs.org, but a simple CSV download option would be preferable. Even better would be CSV/Excel download option, as files with UTF-8 or unicode characters are tricky to open in such a way as keep them intact.

May 8 2020, 1:49 PM · Wikimedia-Hackathon-2020, MediaWiki-Special-pages

May 7 2020

Jarekt added a comment to T252079: mw.wikibase.getLabelByLang('Q1','en') returning nil today.

I purged my test page and now mw.wikibase.getLabelByLang('Q1','en') returned "universe". Thank you.

May 7 2020, 3:00 AM · MW-1.35-notes (1.35.0-wmf.32; 2020-05-12), Wikibase - Federated Properties (Sprint 5/6 (Hike 1)), User-Addshore, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞), Wikidata, Wikibase-Lua, MediaWiki-extensions-WikibaseClient

May 6 2020

Jarekt triaged T252079: mw.wikibase.getLabelByLang('Q1','en') returning nil today as Unbreak Now! priority.
May 6 2020, 10:59 PM · MW-1.35-notes (1.35.0-wmf.32; 2020-05-12), Wikibase - Federated Properties (Sprint 5/6 (Hike 1)), User-Addshore, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞), Wikidata, Wikibase-Lua, MediaWiki-extensions-WikibaseClient
Jarekt created T252079: mw.wikibase.getLabelByLang('Q1','en') returning nil today.
May 6 2020, 10:06 PM · MW-1.35-notes (1.35.0-wmf.32; 2020-05-12), Wikibase - Federated Properties (Sprint 5/6 (Hike 1)), User-Addshore, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞), Wikidata, Wikibase-Lua, MediaWiki-extensions-WikibaseClient

May 5 2020

Jarekt added a comment to T251507: [Spike] Investigate page cache not being purged when SD edits are made.

Tickets T237991 and T245349 are basically the same: edits to SDC should trigger purge of associated file. Ticket T173339 might be more tricky,as it would require edits to wikidata item to trigger purge of pages linked to that item on other projects. The link would be through a sitelink or pages that load that item's entity.

May 5 2020, 1:50 PM · Patch-For-Review, Structured-Data-Backlog (Current Work)

May 4 2020

Jarekt added a comment to T221921: Provision search endpoint for SDC. Requirements from Product Team..

For me the big issue is quality control. As more people and bots are adding more statements, I am concerned about people finding multiple creative ways to store the same type of information, resulting in multiple parallel data models. SPARQL endpoint and property constraints is a way to check if everybody uses the same data model and allows to address issues quickly, but we are still in the dark.

May 4 2020, 12:51 PM · Wikidata-Query-Service, SDC General, Commons, Wikidata
Jarekt added a comment to T68051: Implement Lua alternative to {{int:Lang}} / wgUserLanguage.

There is an API to get languages users speak: https://commons.wikimedia.org//w/api.php?action=query&meta=babel&babuser=Jarekt. Maybe it would be possible to get babel preferences of the current user.

May 4 2020, 3:43 AM · MediaWiki-Internationalization, Wikidata, MediaWiki-extensions-Scribunto

May 1 2020

Jarekt added a comment to T157868: Lua functions do not resolve redirects.

I just came here to report this issue, but apparently it has been known for a while. An issue was reported at c:Template_talk:Label, so I began testing. I wrote

May 1 2020, 12:49 PM · Wikidata-Campsite, Wikibase-Lua, MediaWiki-extensions-WikibaseClient, Wikidata
Jarekt added a comment to T216337: New lua function to follow entity redirects.

I agree, That is why I use this approach for pages where I load the whole entity anyway. Many infoboxes on commons are created based on item ID and for those we load the whole entity.

May 1 2020, 12:40 PM · Wikibase-Lua, Wikidata
Jarekt added a comment to T216337: New lua function to follow entity redirects.

@Bugreporater, if you have a item ID and you want to find out if it is a redirect than you can use

function folowRedirect(id)
	return mw.wikibase.getEntity(id).id
end

It works, and folowRedirect('Q50940519') will give you "Q9178333". It is useful if working with whole entities.

May 1 2020, 2:51 AM · Wikibase-Lua, Wikidata

Apr 30 2020

Jarekt added a comment to T246746: Bot edits on Wikidata should be hidden in other project's recent changes.

If you look at this query you can see my resent edits. In QuickStatements I do not think are any tweakable parameters to inform QuickStatements to mark edits with bot flag, so the code must be taking care of that. I assume that since bot flag is an edit level setting (as opposed to account level setting) and QuickStatements is not marking it correctly, then the the issue need to be fixed in QuickStatements.

Apr 30 2020, 1:17 PM · Upstream, MediaWiki-extensions-WikibaseClient, Wikidata, MediaWiki-Recent-changes, Edit-Review-Improvements-RC-Page, Growth-Team

Apr 28 2020

Jarekt added a comment to T246746: Bot edits on Wikidata should be hidden in other project's recent changes.

I just got another frustrated message from someone whose watchlist I flooded. Please resolve this issue.

Apr 28 2020, 1:48 PM · Upstream, MediaWiki-extensions-WikibaseClient, Wikidata, MediaWiki-Recent-changes, Edit-Review-Improvements-RC-Page, Growth-Team
Jarekt added a comment to T241614: in bot mode, after 50k-ish good edits bot started randomly blanking pages.

No I was not thinking that and sorry if I sounded unpleasant. I use AWB a LOT and this issue happen to me only twice, so it is a very rare event. I was wandering if the issue was not related somehow to a large number of edits I was making. I tend to keep it always open and just give it new tasks. I will be adding SDC statements (kind of like wikidata statements) to 1.3 M pages (using QuickStatements) and if I do not want to add them twice to the same file, I have to purge the page with nul edit adter adding each statement. So I will be doing it a lot. I know reproducing it is hard, that is why I proposed something that would detect the outcome (page blanking) and stop the bot before it makes much damage. In majority of the cases, page blanking is not expected outcome and maybe in those cases you would need to turn this option off. Another way of inquiry would be to see if there is some (improbable) set of conditions which would lead to AWB behaving that way.

Apr 28 2020, 3:12 AM · WorkType-Maintenance, AutoWikiBrowser

Apr 27 2020

Jarekt added a comment to T241614: in bot mode, after 50k-ish good edits bot started randomly blanking pages.

This happen to me too twice before. Yesterday, I was using AWB for purging pages, (adding an empty line to a file page, which is ignored as an edit but it refreshes the page). Due to T245349, I need to purge pages after adding SDC statements. I added ~100-150k statements and purged about that many file pages before something went wrong and AWB started blanking pages, see here. It blanked about 200 of them before sameone noticed a problem and stopped the bot. Restarting AWB fixed the issue.

Apr 27 2020, 2:35 AM · WorkType-Maintenance, AutoWikiBrowser

Apr 24 2020

Jarekt added a comment to T68051: Implement Lua alternative to {{int:Lang}} / wgUserLanguage.

@matej_suchanek Sorry for nit-picking but that second sentence is in documentation of mw.wikibase.getLabel function, and I did not noticed it when I was reading documentation of mw.wikibase.getLabelWithLang. There is a link to the other function, so it should not have been hard to find.

Apr 24 2020, 6:14 PM · MediaWiki-Internationalization, Wikidata, MediaWiki-extensions-Scribunto
Jarekt added a comment to T68051: Implement Lua alternative to {{int:Lang}} / wgUserLanguage.

If this way of getting the language works for you, then ...

@matej_suchanek This approach seems to work in limited test I was able to perform. Q2 has labels for 287 languages and I believe MediaWiki supports over 450, so this approach would not work for users of 160 languages, but there again those are probably the languages we do not have any content in anyway. Function mw.wikibase.getLabelWithLang does on document what the language output is. By observation it seem to be the language of the viewer, but it is unclear how many languages can be returned. Mw.language library recognizes language codes which are ValidBuiltIn, Known, or supported, It would be nice to know which set the outputs of this function fall into.

Apr 24 2020, 1:14 PM · MediaWiki-Internationalization, Wikidata, MediaWiki-extensions-Scribunto

Apr 23 2020

Jarekt added a comment to T68051: Implement Lua alternative to {{int:Lang}} / wgUserLanguage.

I checked and _, lang = mw.wikibase.getLabelWithLang( 'Q2' ) is a better approach, since Q2 had labels in 287 langiuages and Q1 "only" in 189. So is this an acceptable way to look up language of the user? Every template on Commons calls {{int:Lang}}, often many times per page. If we switch from lang=frame:callParserFunction("int","lang") to _, lang = mw.wikibase.getLabelWithLang( 'Q2' ) than suddenly 50M pages will be querying Q2's label. Maybe there is a better way.

Apr 23 2020, 2:44 AM · MediaWiki-Internationalization, Wikidata, MediaWiki-extensions-Scribunto

Apr 20 2020

Jarekt added a comment to T225924: Allow to retrieve entity schemas in Scribunto modules.

See d:Module_talk:Wikidata_label#Adaptation_for_Schemas for relevant discussion.

Apr 20 2020, 11:45 PM · Wikidata, Shape Expressions
Jarekt added a comment to T246746: Bot edits on Wikidata should be hidden in other project's recent changes.

I am using QuickStatements on Commons to add statements to Structured data on Commons (see here), and I am having the same issue, that despite of being logged in as a bot, my edits are not tagged as bot edits. A lot of people (in several languages) contacted me asking about how to hide my edits. I am planning to use QuickStatements much more on Commons, but I do not want to antagonize other users. Please find a solution to this issue.

Apr 20 2020, 8:04 PM · Upstream, MediaWiki-extensions-WikibaseClient, Wikidata, MediaWiki-Recent-changes, Edit-Review-Improvements-RC-Page, Growth-Team
Jarekt added a comment to T68051: Implement Lua alternative to {{int:Lang}} / wgUserLanguage.

Can we just use _, lang = mw.wikibase.getLabelWithLang( 'Q1' ) ? That line seems to always return the language of the viewer. I do not know if Q1 has a label for all supported languages, but if not than we can add some.

Apr 20 2020, 3:55 AM · MediaWiki-Internationalization, Wikidata, MediaWiki-extensions-Scribunto

Apr 17 2020

Jarekt added a comment to T235332: Add SDC data slot to pages in the Commons data: namespace.

I began using "Data:" namespace, lately and I share desire for a place to add some metadata. I created T249896 request for allowing /doc pages where one can add documentation. Adding SDC would be also nice, but with so few pages in that namespace I do not see it as a high priority. I would not want to divert scarce resources from File namespace tasks.

Apr 17 2020, 9:47 PM · Wikidata, Commons-Datasets, Maps, SDC General
Jarekt added a comment to T250529: [S] Page content jumps around as loading happens on Structured Data tab via direct anchor link.

This might depend on gadgets and javascripts loaded. After opening a file things jump around (dangerous to click on anything), but I see no jumping when following an an anchor link

Apr 17 2020, 9:30 PM · MW-1.35-notes (1.35.0-wmf.36; 2020-06-09), Structured-Data-Backlog (Current Work), Structured Data Engineering
Jarekt added a comment to T238484: Entities returned by mw.wikibase.getEntity lua function differ based on language of the viewer.

@WMDE-leszek, Is there documentation for this feature? I would like to understand it better.

Apr 17 2020, 6:29 PM · Structured-Data-Backlog (Current Work), Wikibase-Lua, MediaWiki-extensions-WikibaseClient, Wikidata, SDC General

Apr 16 2020

Jarekt added a comment to T241338: Allow linking to specific statements in Structured data on Commons.

I noticed that this is deployed now. That is great! Two questions:

Apr 16 2020, 7:16 PM · MW-1.35-notes (1.35.0-wmf.28; 2020-04-14), Structured-Data-Backlog (Current Work), Structured Data Engineering, SDC General, Commons, Wikidata
Jarekt closed T238484: Entities returned by mw.wikibase.getEntity lua function differ based on language of the viewer as Invalid.

This behavior appears to be intentional and not causing any trouble when testing whether or not languages match, in which case I believe we can close this ticket?

Apr 16 2020, 1:32 PM · Structured-Data-Backlog (Current Work), Wikibase-Lua, MediaWiki-extensions-WikibaseClient, Wikidata, SDC General

Apr 15 2020

Jarekt added a comment to T245349: wbeditentity doesn't trigger page update on Wikimedia Commons.

I just run into this issue again. c:Category:Files with PermissionOTRS template but without P6305 SDC statement is added to files fith OTRS template but without P6305 statement and it had 47k files on 4/14 . I added P6305 to 20k of them, and afterwards there were still 47k files in the category. I would like for them to disappear from the category so I can use it to find the next 20k batch. Otherwise I might have to apply "touch" operation on the folder, which now have 70k files.

Apr 15 2020, 4:38 PM · Patch-For-Review, Structured-Data-Backlog, Wikibase-SDC-Shared, Structured Data Engineering
Jarekt added a comment to T245349: wbeditentity doesn't trigger page update on Wikimedia Commons.

I just run into this issue again. c:Category:Files with PermissionOTRS template but without P6305 SDC statement is added to files fith OTRS template but without P6305 statement and it has 47k files . I just added P6305 to 20k of them, and there is stil 47k files in the category. I would like for them to disappear from the category so I can use it to find more candidates.

Apr 15 2020, 1:43 AM · Patch-For-Review, Structured-Data-Backlog, Wikibase-SDC-Shared, Structured Data Engineering

Apr 10 2020

Jarekt added a comment to T239939: [S] Deploy WikibaseQualityConstraints to beta commons.

I tried those 2 links:

Apr 10 2020, 6:07 PM · Wikibase-Quality-Constraints, Wikidata, Structured-Data-Backlog (Current Work), Structured Data Engineering, SDC-Statements (other-input-types-on-a-dirigible)
Jarekt created T249896: Allow /doc subpages for documentation of pages in Data namespace.
Apr 10 2020, 3:36 AM · Commons-Datasets

Apr 5 2020

Jarekt reopened T68648: {{#time}} parser function produces incorrect dates when displaying dates before 1941 in Thai language as "Open".

My closing was premature: I tried

  • {{#time: xkY-m|1941-01}} / 1941-01
  • {{#time: xkY-m|1940-12}} / 1940-12
  • {{#time: xkY-m|1940-11}} / 1940-11
  • {{#time: xkY-m|1940-10}} / 1940-10
  • {{#time: xkY-m|1940-09}} / 1940-09
  • {{#time: xkY-m|1940-08}} / 1940-08
  • {{#time: xkY-m|1940-07}} / 1940-07
  • {{#time: xkY-m|1940-06}} / 1940-06
  • {{#time: xkY-m|1940-05}} / 1940-05
  • {{#time: xkY-m|1940-04}} / 1940-04
  • {{#time: xkY-m|1940-03}} / 1940-03
  • {{#time: xkY-m|1940-02}} / 1940-02
  • {{#time: xkY-m|1940-01}} / 1940-01
  • {{#time: xkY-m|1939-12}} / 1939-12
  • {{#time: xkY-m|1939-11}} / 1939-11
Apr 5 2020, 3:01 AM · MW-1.32-notes (WMF-deploy-2018-07-10 (1.32.0-wmf.12)), Patch-For-Review, I18n, ParserFunctions

Apr 3 2020

Jarekt added a comment to T246809: Inconsistencies between Wikidata and Structured Data about Snak's "datatype" from wbgetentities API results.

Yes, that "bug" or "feature" cause my c:Module:Wikidata date not to work with SDC entities. The fix was simple bit it took a long time to debug. It would be nice if SDC used the same schema, interface, etc. as Wikidata, so we do not have to be wasting time debugging two almost identical systems.

Apr 3 2020, 7:57 PM · Structured-Data-Backlog, Structured Data Engineering

Apr 2 2020

Jarekt added a comment to T249186: mw.text.jsonDecode fails to parse valid JSON.

I think I get it. Since I am calling mw.text.jsonDecode from lua and I have an imput string with "\" in lua I need to type "\\" to get a single "\" passed to the jsonDecode.

Apr 2 2020, 3:28 PM · MediaWiki-extensions-Scribunto
Jarekt created T249186: mw.text.jsonDecode fails to parse valid JSON.
Apr 2 2020, 4:48 AM · MediaWiki-extensions-Scribunto

Mar 28 2020

Jarekt closed T68648: {{#time}} parser function produces incorrect dates when displaying dates before 1941 in Thai language as Resolved.

I just tried "{{#time:xkY|1940-01-01|th}}" on Commons and got "2482", so my guess is that this is fixed. Closing

Mar 28 2020, 12:47 AM · MW-1.32-notes (WMF-deploy-2018-07-10 (1.32.0-wmf.12)), Patch-For-Review, I18n, ParserFunctions

Mar 26 2020

Jarekt added a comment to T238484: Entities returned by mw.wikibase.getEntity lua function differ based on language of the viewer.

I never run into this when processing Wikidata entities, so it is interesting that it happens there too. In my codes, I began to test that two languages match and ignore the rest, but if this is a "feature" not a "bug" I can probably simplify some of those codes.

Mar 26 2020, 4:56 PM · Structured-Data-Backlog (Current Work), Wikibase-Lua, MediaWiki-extensions-WikibaseClient, Wikidata, SDC General

Mar 25 2020

Jarekt added a comment to T68051: Implement Lua alternative to {{int:Lang}} / wgUserLanguage.

At the moment most modules on Commons use frame:callParserFunction("int","lang") call to get users language. It is a solution that works fine on multilingual projects like Commons and Wikidata, but I am not sure if it is accessible on other projects. I assume that the purpose of this task to come up a way which is guaranteed to work on the projects.

Mar 25 2020, 3:06 PM · MediaWiki-Internationalization, Wikidata, MediaWiki-extensions-Scribunto

Mar 16 2020

Jarekt added a comment to T221921: Provision search endpoint for SDC. Requirements from Product Team..

I'm aware of how old this ticket is and the pain it's caused trying to move it forward. There seems to be some miscommunication going on here and it's escalating, I'm going to work with some folks on clarifying intentions.

Mar 16 2020, 9:09 PM · Wikidata-Query-Service, SDC General, Commons, Wikidata

Mar 4 2020

Jarekt added a comment to T241338: Allow linking to specific statements in Structured data on Commons.

@Jarekt would you want to link to the specific statement (i.e. File:Something.jpg#M63$b81f5051-4288-a4d9-cc31-ba8b200b5e0e - the statement's GUID), or just the property level (i.e. File:Something.jpg#P180 or something similar)

Mar 4 2020, 12:13 AM · MW-1.35-notes (1.35.0-wmf.28; 2020-04-14), Structured-Data-Backlog (Current Work), Structured Data Engineering, SDC General, Commons, Wikidata

Mar 3 2020

Jarekt added a comment to T241338: Allow linking to specific statements in Structured data on Commons.

In the next version of {{information}} template we are planning to add SDC icons to fields which were filled by information from SDC. I think those icons should link to properties where the data is stored. Can we at least agree, if we are going to be able to link to specific properties and if so what would be the format? The actual implementation can follow later. That way I can add it to the next release. I am trying to have only occasional updates to template used on 50+ M pages.

Mar 3 2020, 2:14 PM · MW-1.35-notes (1.35.0-wmf.28; 2020-04-14), Structured-Data-Backlog (Current Work), Structured Data Engineering, SDC General, Commons, Wikidata

Mar 2 2020

Jarekt added a comment to T195962: "Failed to serialize data" on Commons pages using Wikidata based templates .

Same issue with c:File:Verwaistes_Bahnhofgebäude_Hof_20200223_003.jpg today

Mar 2 2020, 8:04 PM · TestMe, Commons, MediaWiki-extensions-WikibaseClient
Jarekt updated subscribers of T214405: Designing for structured Image Annotations.

I am exited to see, this moving along. We do have several competing systems right now:

Mar 2 2020, 3:11 PM · SDC General, Wikidata, Structured-Data-Design

Feb 26 2020

Jarekt added a comment to T245861: Add Structured data during file upload with Upload Wizard.

Oh, I forgot about camera coordinates and heading which we collect in the Upload Wizard, that data can also be safely stored in SDC as it would not be copyrighted.

Feb 26 2020, 3:05 PM · Structured-Data-Backlog, StructuredDataOnCommons, UploadWizard, Structured Data Engineering
Jarekt added a comment to T245861: Add Structured data during file upload with Upload Wizard.

The CC-0 issue I think applies only to captions. Other metadata like author's username, date, or source does not raise to the level of originality to warrant any copyright protection. That is my opinion, and I do not know if it would be controversial. I think it would be safe to add SDC statements related to author, source and date, the way Multichill is doing it right now with his bot.

Feb 26 2020, 5:02 AM · Structured-Data-Backlog, StructuredDataOnCommons, UploadWizard, Structured Data Engineering

Feb 23 2020

Jarekt updated subscribers of T245861: Add Structured data during file upload with Upload Wizard.

Ramsey and Keegan, Can you consider this task? It would be nice if we mostly had to worry about adding SDC properties to old files, while new ones are handled automatically at the upload time.

Feb 23 2020, 3:09 AM · Structured-Data-Backlog, StructuredDataOnCommons, UploadWizard, Structured Data Engineering
Jarekt added a comment to T239172: Enable support for the none (novalue) and unknown (somevalue) "special value" types in SDC UI.

Here's a gif of the new somevalue/novalue functionality and design.

Feb 23 2020, 3:02 AM · MW-1.35-notes (1.35.0-wmf.28; 2020-04-14), Structured-Data-Backlog (Current Work), Structured-Data-Design

Feb 21 2020

Jarekt added a comment to T245861: Add Structured data during file upload with Upload Wizard.

T243926 task already proposes the same for license statements.

Feb 21 2020, 7:59 PM · Structured-Data-Backlog, StructuredDataOnCommons, UploadWizard, Structured Data Engineering
Jarekt created T245861: Add Structured data during file upload with Upload Wizard.
Feb 21 2020, 7:57 PM · Structured-Data-Backlog, StructuredDataOnCommons, UploadWizard, Structured Data Engineering

Feb 16 2020

Jarekt added a comment to T245349: wbeditentity doesn't trigger page update on Wikimedia Commons.

Multichill, I think this might be duplicate of T237991. As someone who works with commons categories based on SDC and Wikidata I always seem to have bot running null-edit batch tasks. I use AWB for that. Those edits do not show up in the page or bot edits, but I do a lot of it.

Feb 16 2020, 5:11 PM · Patch-For-Review, Structured-Data-Backlog, Wikibase-SDC-Shared, Structured Data Engineering
Jarekt added a comment to T237991: Changes to Structured Data on Commons should trigger page refresh.

This is related to T173339, where changes to Wikidata should trigger page refresh of pages which rely on that data.

Feb 16 2020, 5:03 PM · Patch-For-Review, Commons, Wikidata, SDC General

Feb 15 2020

Jarekt added a comment to T244654: Wikibase\Lib\Store\DivergingEntityIdException: "Revision 386521405 belongs to M43864745 instead of expected M79277318".

We are still getting this error. Any ideas how to fix it?

Feb 15 2020, 3:32 PM · Structured-Data-Backlog, Structured Data Engineering, WikibaseMediaInfo, Wikimedia-production-error
Jarekt removed a project from T195962: "Failed to serialize data" on Commons pages using Wikidata based templates : Wikidata.

File [https://commons.wikimedia.org/wiki/File:L%27Int%C3%A9rieur_du_Mus%C3%A9e_des_beaux-arts_de_Nancy.jpg|c:File:L%27Int%C3%A9rieur_du_Mus%C3%A9e_des_beaux-arts_de_Nancy.jpg] shows "<span class="scribunto-error" id="mw-scribunto-error-0">Failed to serialize data.</span>" error. Attempt to do any edit on the file gives Internal Error "[XkgM4wpAMEoAAE8Us7QAAACS] 2020-02-15 15:23:15: Fatal exception of type "Wikibase\Lib\Store\DivergingEntityIdException"". Any idea how to resolve it?

Feb 15 2020, 3:26 PM · TestMe, Commons, MediaWiki-extensions-WikibaseClient

Feb 14 2020

Jarekt added a project to T243602: templatelinks table on Commons SQL database is not updating properly: Contributors-Team.

Adding Contributors-Team per above suggestion.

Feb 14 2020, 6:56 PM · Contributors-Team, Commons, Wikimedia-database-error

Feb 7 2020

Jarekt added a comment to T74768: Add chunked upload support to standard Special:Upload for files larger than POST limit.

I just run into this issue when trying to upload bigger version of existing file. I click on 'Upload a new version of this file' point to the file and I get "This file is bigger than the server is configured to allow." Chunked upload support would be great. In the meantime I guess the only workaround is to delete the image and reupload.

Feb 7 2020, 7:05 PM · Multimedia, MediaWiki-Uploading
Jarekt added a comment to T210304: Add Wikidata as a supported project.

I tried again to log in to Wikidata with AWB using Custom project option:

Feb 7 2020, 2:42 PM · WorkType-NewFunctionality, Wikidata, AutoWikiBrowser
Jarekt updated subscribers of T244529: mw.wikibase.getLabelByLang not return item label for some items, because MIGRATION_WRITE_NEW is being deployed with train for wmf.18.

Adding hoo (Marius Hoch) who wrote mw.wikibase.getLabelByLang function in the first place.

Feb 7 2020, 4:38 AM · MW-1.35-notes (1.35.0-wmf.18; 2020-02-04), MediaWiki-extensions-WikibaseRepository, User-Addshore, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞), Regression, Wikidata
Jarekt added a comment to T244529: mw.wikibase.getLabelByLang not return item label for some items, because MIGRATION_WRITE_NEW is being deployed with train for wmf.18.

As an author of Lua code behind {{Q|}} template and few others related ones I was alerted about this issue. I tried the following test; I added labelByLang function to c:Module:Test:

Feb 7 2020, 4:33 AM · MW-1.35-notes (1.35.0-wmf.18; 2020-02-04), MediaWiki-extensions-WikibaseRepository, User-Addshore, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞), Regression, Wikidata
Jarekt renamed T244529: mw.wikibase.getLabelByLang not return item label for some items, because MIGRATION_WRITE_NEW is being deployed with train for wmf.18 from {{Q|id}} syntax not displaying item label sometimes to mw.wikibase.getLabelByLang not return item label for some items.
Feb 7 2020, 4:20 AM · MW-1.35-notes (1.35.0-wmf.18; 2020-02-04), MediaWiki-extensions-WikibaseRepository, User-Addshore, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞), Regression, Wikidata

Jan 29 2020

Jarekt added a comment to T239474: [M] Units support for quantity datatype.

I just come here to report this bug. Luckily it is being fixed.

Jan 29 2020, 4:54 AM · MW-1.35-notes (1.35.0-wmf.23; 2020-03-10), User-Addshore, Wikidata-Campsite (Wikidata-Campsite-Iteration-∞), Wikidata, Patch-For-Review, Structured-Data-Backlog (Current Work), Structured Data Engineering, SDC-Statements (other-input-types-on-a-dirigible)
Jarekt added a comment to T243686: Create widget to copy coordinates from the location template to "coordinates of the point of view" (P1259).

I was thinking about tackling this exact task in the following way:

  1. harvest coordinates using https://quarry.wmflabs.org/query/41693 like query which strips coordinates and camera heading from geohack URL, for files in [[Category:Media_with_locations]] and formats the outputs results in the format of QuickStatements
  2. Save results in some spreadsheet and clean it up if needed
  3. run QuickStatements tool to add them
Jan 29 2020, 4:07 AM · Wikidata, WikibaseMediaInfo, SDC General

Jan 24 2020

Jarekt created T243602: templatelinks table on Commons SQL database is not updating properly.
Jan 24 2020, 3:02 PM · Contributors-Team, Commons, Wikimedia-database-error
Jarekt added a comment to T227116: Enhanced support for geo-coordinate Wikibase datatype.

I'm going to look into a follow up patch about consolidating the text fields into a single input which supports copy-paste of coordinates, since this is something that folks have asked for in multiple places. Will also look at changing the default precision values.

Jan 24 2020, 4:25 AM · MW-1.35-notes (1.35.0-wmf.23; 2020-03-10), Structured-Data-Backlog (Current Work), Structured Data Engineering

Jan 20 2020

Jarekt added a comment to T227116: Enhanced support for geo-coordinate Wikibase datatype.

I just tried to use the current GUI to add "coordinates of the point of view" property to one of my photographs (File:Seneca_Rocks_climbing_-_13.jpg), and it does not work very well, we really need Wikidata like interface with a single input window.

Jan 20 2020, 3:02 AM · MW-1.35-notes (1.35.0-wmf.23; 2020-03-10), Structured-Data-Backlog (Current Work), Structured Data Engineering

Jan 17 2020

Jarekt created T243086: Error "serialization is required for constructing a EntityId and must be a string" when adding a statement to SDC.
Jan 17 2020, 4:58 PM · Structured-Data-Backlog (Current Work), Wikidata, Structured Data Engineering, SDC General

Jan 10 2020

Jarekt added a comment to T227116: Enhanced support for geo-coordinate Wikibase datatype.

I just noticed that there is nothing in the original description that constraints this task to Structured Data on Commons (SDC), and the enhancements could also apply to Wikidata. My comments above were meant mostly for SDC, although some could be applied to Wikidata as well, like providing precision in meters (which is than converted to arc degrees), or more intuitive way to pick a globe for locations on other planets. Could someone clarify if the scope is SDC or SDC+Wikidata?

Jan 10 2020, 3:33 PM · MW-1.35-notes (1.35.0-wmf.23; 2020-03-10), Structured-Data-Backlog (Current Work), Structured Data Engineering
Jarekt added a comment to T237107: Extend mw.wikibase lua functions to allow accessing Structured Data on Commons items.

Great I will start replacing hacks like "M" .. mw.title.getCurrentTitle().id with "clean" code

Jan 10 2020, 2:10 AM · Structured-Data-Backlog (Current Work), Wikidata, Structured Data Engineering, SDC General, Wikibase-Lua, MediaWiki-extensions-WikibaseClient
Jarekt added a comment to T227116: Enhanced support for geo-coordinate Wikibase datatype.

Two more points:

Jan 10 2020, 1:46 AM · MW-1.35-notes (1.35.0-wmf.23; 2020-03-10), Structured-Data-Backlog (Current Work), Structured Data Engineering
Jarekt added a comment to T227116: Enhanced support for geo-coordinate Wikibase datatype.

A few comments:

Jan 10 2020, 1:22 AM · MW-1.35-notes (1.35.0-wmf.23; 2020-03-10), Structured-Data-Backlog (Current Work), Structured Data Engineering

Dec 30 2019

Jarekt awarded T230314: Show constraint violations on SDC statements a Barnstar token.
Dec 30 2019, 2:29 PM · Structured-Data-Backlog, Structured Data Engineering, Wikibase-Quality-Constraints, StructuredDataOnCommons, Wikidata

Dec 29 2019

Jarekt added a comment to T237746: page ID accessed from Lua by calling "mw.title.getCurrentTitle().id" ocassionally returns "0".

According to https://commons.wikimedia.org/wiki/Commons:Village_pump/Technical#Photograph_template_problem the issue still exist,

Dec 29 2019, 3:08 AM · MW-1.35-notes (1.35.0-wmf.20; 2020-02-18), Core Platform Team Workboards (Clinic Duty Team), MediaWiki-extensions-Scribunto, Commons, SDC General

Dec 22 2019

Jarekt updated subscribers of T241338: Allow linking to specific statements in Structured data on Commons.

In T222321 @dcausse also thought we should have

Dec 22 2019, 11:44 PM · MW-1.35-notes (1.35.0-wmf.28; 2020-04-14), Structured-Data-Backlog (Current Work), Structured Data Engineering, SDC General, Commons, Wikidata
Jarekt created T241338: Allow linking to specific statements in Structured data on Commons.
Dec 22 2019, 11:37 PM · MW-1.35-notes (1.35.0-wmf.28; 2020-04-14), Structured-Data-Backlog (Current Work), Structured Data Engineering, SDC General, Commons, Wikidata

Dec 20 2019

Jarekt added a comment to T141602: [Objective Fiscal 19-20/Q4] (9) Provide a Proof of Concept SPARQL endpoint in support of SDoC project.

Yes @Gehel thanks for reply. One use case, I could think of now would be for finding wikidata items IDs which are used in depict and other statements which point to redirects. On wikidata there are some bots that replace redirected IDs with the new IDs, but on SDC there is no way at to moment to run a query to find such IDs.

Dec 20 2019, 3:37 AM · Discovery-Search (Current work), Epic, Wikidata-Query-Service, SDC General, Commons, Wikidata

Dec 17 2019

Jarekt added a comment to T240563: broken Lua's mw.wikibase.entity:getSitelink function.

I purged all the files in Category:Pages_with_script_errors and there are no more errors in file namespace.

Dec 17 2019, 2:46 AM · MW-1.35-notes (1.35.0-wmf.10; 2019-12-10), Structured-Data-Backlog (Current Work), Regression, StructuredDataOnCommons, Wikidata

Dec 16 2019

Jarekt added a comment to T141602: [Objective Fiscal 19-20/Q4] (9) Provide a Proof of Concept SPARQL endpoint in support of SDoC project.

Hey, as a proof of concept, i've adapted my VizQuery tool to use the beta endpoint.

Dec 16 2019, 2:54 AM · Discovery-Search (Current work), Epic, Wikidata-Query-Service, SDC General, Commons, Wikidata
Jarekt added a comment to T141602: [Objective Fiscal 19-20/Q4] (9) Provide a Proof of Concept SPARQL endpoint in support of SDoC project.

Hey, as a proof of concept, i've adapted my VizQuery tool to use the beta endpoint.

Dec 16 2019, 2:47 AM · Discovery-Search (Current work), Epic, Wikidata-Query-Service, SDC General, Commons, Wikidata
Jarekt added a comment to T237899: Wikidata item ID changes caused by merges do not update entities on Structured data on Commons.

It seems like it is an user operated bot that updates redirects on Wikidata. I proposed to create similar got on Commons, see Commons:Bots/Work_requests#update_redirected_wikidata_items_used_by_SDC but there does not seem to be much response. Part of the issue is that at the moment there does not seem to be a way to even query for such redirects. I tried to write one, like this one using sdcquery.wmflabs.org, but could not get it to work. I tried to get some advice on creating such a query at Wikidata:Request_a_query#finding_redirected_wikidata_items_used_by_SDC but got no replies. So I guess we are blocked by lack of reliable querying system that can access both SDC and Wikidata.

Dec 16 2019, 2:19 AM · Wikidata, SDC General

Dec 13 2019

Jarekt updated subscribers of T240563: broken Lua's mw.wikibase.entity:getSitelink function.
Dec 13 2019, 2:33 PM · MW-1.35-notes (1.35.0-wmf.10; 2019-12-10), Structured-Data-Backlog (Current Work), Regression, StructuredDataOnCommons, Wikidata