Page MenuHomePhabricator

Jarekt (Jarek Tuszynski)
User

Projects

Today

  • Clear sailing ahead.

Tomorrow

  • Clear sailing ahead.

Wednesday

  • Clear sailing ahead.

User Details

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

Admin on Commons and Wikidata

Recent Activity

Fri, Nov 20

Jarekt added a comment to T57755: Allow time values more precise than day on Wikidata.

I see the following use cases:

  • A source states that the death of .. occurred at 9:25 on some day. I would like to save that information and I find the current approach of using refine date (P4241) = 09:25 (Q55810989) qualifier totally crazy
  • In case of images on Commons, like this one, upload wizard saved the date "9 March 2019, 17:20:46" and I would like to store it in SDC. I need up to a second precision if I want to order write SPARQL query of photographs from that event and sort them in a chronological order. In such a case the timezone is irrelevant.
Fri, Nov 20, 10:12 PM · Wikidata, MediaWiki-extensions-WikibaseRepository

Wed, Nov 4

Jarekt added a comment to T237991: Changes to Structured Data on Commons should trigger page refresh.

@matthiasmullie, in case it helps: most of out SDC tracking templates are based on c:Module:SDC_tracking and templates calling it. You probably recreated something similar for testing, but in case it is easier to test with already existing code, here it is.

Wed, Nov 4, 3:15 AM · Structured-Data-Backlog (Current Work), User-Daniel, VisualEditor, TemplateData, Commons, Wikidata, SDC General

Sun, Nov 1

Jarekt added a comment to T237991: Changes to Structured Data on Commons should trigger page refresh.

I tried it again did SDC edits using ACDC tool which should have emptied all 183 files from https://commons.wikimedia.org/wiki/Category:Creative_Commons_Attribution-Share_Alike_1.0_missing_SDC_copyright_license. An hour latter 136 files remain. See https://commons.wikimedia.org/w/index.php?title=File%3AAdil_Ray.JPG&type=revision&diff=508801789&oldid=443468314 for details.

Sun, Nov 1, 3:39 AM · Structured-Data-Backlog (Current Work), User-Daniel, VisualEditor, TemplateData, Commons, Wikidata, SDC General
Jarekt added a comment to T237991: Changes to Structured Data on Commons should trigger page refresh.

@Ramsey-WMF I just did bunch of SDC edits which should have removed a tracking category for files missing the template. Afterwards the category should have been empty, but the number of files did not change. I run a quick touch operation (add and empty line to the end of the file) and afterwards the category is empty. So no it is not working for me.

Sun, Nov 1, 2:18 AM · Structured-Data-Backlog (Current Work), User-Daniel, VisualEditor, TemplateData, Commons, Wikidata, SDC General

Oct 30 2020

Jarekt added a comment to T266407: Increase maximum precision for time datatype from day to second on Commons.

I fully support this change. But, does this mean that all the bots that add date to Commons SDC fields in 65M files will have to go back and do it again? Most of the time I do not find time of the day that useful. For example with my own photos I set the time to US eastern time zone but than fly to California and take photos there. The date in the EXIF has date and time but no timezone, so unless I take a photo of a sunset I do not know the precise time. However I find time (hour:minute:second) part very useful when I am trying to occasionally figure out the order of the photographs taken by the same camera.

Oct 30 2020, 9:39 PM · Wikidata, StructuredDataOnCommons, MediaWiki-extensions-WikibaseRepository, Structured-Data-Backlog, Commons

Sep 18 2020

Jarekt added a comment to T263088: Allow to download WDQS and WCQS results as Excel spreadsheet.

MS Excel has a lot of issues with CSV files

Can these issues be solved?

Sep 18 2020, 7:08 PM · Wikidata, Wikidata-Query-Service

Sep 17 2020

Jarekt renamed T263088: Allow to download WDQS and WCQS results as Excel spreadsheet from WDQS excel to Allow to download WDQS and WCQS results as Excel spreadsheet.
Sep 17 2020, 1:33 AM · Wikidata, Wikidata-Query-Service
Jarekt created T263088: Allow to download WDQS and WCQS results as Excel spreadsheet.
Sep 17 2020, 1:25 AM · Wikidata, Wikidata-Query-Service

Sep 14 2020

Jarekt added a comment to T237899: Wikidata item ID changes caused by merges do not update entities on Structured data on Commons.

I created T262837 which might be a blocking issue for this task.

Sep 14 2020, 5:37 PM · Structured-Data-Backlog, Wikidata-Query-Service, Wikidata
Jarekt created T262837: SDC statements should record entity usage for wikidata entities used in statements.
Sep 14 2020, 5:35 PM · SDC General, Wikidata
Jarekt added a comment to T237899: Wikidata item ID changes caused by merges do not update entities on Structured data on Commons.

Furthermore, from a technical perspective I doubt it’s even possible for Wikibase to update statements on Commons when items on Wikidata are merged. Within Wikidata, the software could discover all the affected pages through the pagelinks table, but on Commons I don’t know how Wikibase would even find the affected pages that need to be edited. (MediaInfo statements don’t seem to automatically record entity usage for entities used in statements; compare the page information for a Test Commons file with one statement.)

Sep 14 2020, 5:16 PM · Structured-Data-Backlog, Wikidata-Query-Service, Wikidata
Jarekt added a comment to T237899: Wikidata item ID changes caused by merges do not update entities on Structured data on Commons.

Note that KrBot only updates statements pointing to redirects after a certain time has passed (a week, I believe). This is by design: otherwise, it would be more difficult to “untangle” bad merges, since after undoing the merge on the item itself, you could not distinguish between statements that should now point back to the original item and statements that always pointed to the other (merge target) item.

Sep 14 2020, 3:47 PM · Structured-Data-Backlog, Wikidata-Query-Service, Wikidata

Sep 12 2020

Jarekt added a comment to T237899: Wikidata item ID changes caused by merges do not update entities on Structured data on Commons.

WCQS queries that have to look things up on wikidata have a very tiny connection between WCQS and WDQS and are so under-powered it can not run queries of that complexity. See T261716 where I was just advised that for queries that rely on WDQS an "offline processing via the dumps might be a better option" because "we want to have strong limits on resource consumption". I personally have no idea how to use commons and wikidata dumps to stand up a database to do a simple SPARQL query. And how to rebuild that weekly.

Sep 12 2020, 1:01 AM · Structured-Data-Backlog, Wikidata-Query-Service, Wikidata

Sep 9 2020

Jarekt added a comment to T261716: Allow WCQS large volume connection to MWAPI and Wikidata services.

Those were just 2 usecases I run into lately, but great many queries we are trying to write run into this issue, as they seem to need something from "service https://query.wikidata.org/sparql" and that connection has very small bottleneck. Commons community is still mostly learning how to use WCQS, but If you look at Commons:SPARQL_query_service/queries/examples almost all examples rely on federation through a service of some sort, to connect it to Wikidata or Commons categories. A lot of those require some major changes to go around those limits. At the moment majority of my queries result in a timeout as I am searching for some combination that goes through.

Sep 9 2020, 9:39 PM · Commons, Wikidata, Wikidata-Query-Service

Sep 8 2020

Jarekt added a comment to T262178: One week after SDC edits the data still shows up in WCQS queries.

I can confirm that my query works as expected today all the found duplicates were real. I did not realized that we had at maximum one week lag between edit and the update of WCQS. The length of that lag was my concern, but it sounds like it will not be addressed in beta version

Sep 8 2020, 3:39 AM · Discovery-Search (Current work), Wikidata, Wikidata-Query-Service, SDC General

Sep 7 2020

Jarekt renamed T262178: One week after SDC edits the data still shows up in WCQS queries from One week after SDC queries the data still shows up in WCQS queries to One week after SDC edits the data still shows up in WCQS queries.
Sep 7 2020, 2:37 AM · Discovery-Search (Current work), Wikidata, Wikidata-Query-Service, SDC General
Jarekt created T262178: One week after SDC edits the data still shows up in WCQS queries.
Sep 7 2020, 2:37 AM · Discovery-Search (Current work), Wikidata, Wikidata-Query-Service, SDC General

Sep 3 2020

Gnoeee awarded T261909: In the Quary tool the download as excel creates empty files a Like token.
Sep 3 2020, 5:29 PM · Quarry
Jarekt created T261909: In the Quary tool the download as excel creates empty files.
Sep 3 2020, 1:57 AM · Quarry

Sep 2 2020

Jarekt added a comment to T258835: Update Commons query service favicon .

We have a new logo designed by User MaxxL. You can see it at File:Wikimedia_Commons_Query_Service_Logo.svg

Sep 2 2020, 12:31 PM · Discovery-Search (Current work), Logos, Wikidata-Query-Service, Wikidata, Commons

Sep 1 2020

Jarekt created T261716: Allow WCQS large volume connection to MWAPI and Wikidata services.
Sep 1 2020, 3:58 AM · Commons, Wikidata, Wikidata-Query-Service
Jarekt added a comment to T258835: Update Commons query service favicon .

I requested a new logo to be designed by the community at https://commons.wikimedia.org/wiki/Commons:Graphic_Lab/Illustration_workshop#Design_Commons_query_service_favicon

Sep 1 2020, 3:10 AM · Discovery-Search (Current work), Logos, Wikidata-Query-Service, Wikidata, Commons

Aug 24 2020

Jarekt added a comment to T230315: Allow adding references to structured data (MediaInfo) statements.

I just noticed that I can not add references to items on SDC on Commons. In case of digital representations of objects which have wikidata items, our model stores properties of the object on Wikidata and properties of digital version on Commons, but we still need to be able to add references to document where those digitization properties come from. For example we have a photograph of a sculpture downloaded from some site. The information about the photograph will be stored in SDC: maybe the name of the copyright holder or a license it was released under. Those statements require references especially if the information is not on the same page listed as a source.

Aug 24 2020, 3:42 PM · Wikidata, StructuredDataOnCommons

Aug 22 2020

Jarekt added a project to T261036: Disable Cat-a-Lot on Commons in Tabular data namespace: Wikimedia-General-or-Unknown.
Aug 22 2020, 3:30 AM · JavaScript, Commons
Jarekt created T261036: Disable Cat-a-Lot on Commons in Tabular data namespace.
Aug 22 2020, 3:29 AM · JavaScript, Commons

Aug 19 2020

Jarekt added a comment to T194465: When the author/source is indicated with a template, it is categorized as "Files with no machine-readable author/source".

Maybe the first step of resolving this issue should be some publication (or link to past publication) of machine-readable marking, expected by the software. At the moment those categories are useless, as they are filled with millions of files with correct templates and author/source info.

Aug 19 2020, 12:37 PM · CommonsMetadata, Multimedia, Commons

Aug 3 2020

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

I also reported it at https://bitbucket.org/magnusmanske/wikidata-todo/issues/124/qs-should-send-all-requests-with-bot-1

Aug 3 2020, 12:33 PM · Upstream, MediaWiki-extensions-WikibaseClient, MediaWiki-Recent-changes, Wikidata, Growth-Team, Edit-Review-Improvements-RC-Page
Jarekt added a comment to T247433: Disable watchlist notifications for bot edits made on Commons structured data.

This continues to the the issue. I reported it also at https://bitbucket.org/magnusmanske/wikidata-todo/issues/124/qs-should-send-all-requests-with-bot-1

Aug 3 2020, 12:31 PM · Tools, Structured-Data-Backlog, Structured Data Engineering
Jarekt added a project to T247433: Disable watchlist notifications for bot edits made on Commons structured data: Tools.
Aug 3 2020, 11:55 AM · Tools, Structured-Data-Backlog, Structured Data Engineering

Jul 29 2020

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

There is something odd happening now, with this issue: c:Template:PermissionOTRS adds either c:Category:Files_with_PermissionOTRS_template_but_without_P6305_SDC_statement or c:Category:P6305 SDC to files without or with P6305 statement. I recently added few hundred thousands of those statements and each edit trigered update which placed the file in c:Category:Files_with_PermissionOTRS_template_but_without_P6305_SDC_statement instead of c:Category:P6305 SDC category. It seems like adding SDC statement purges the page first and then adds the statement instead of the other way around.

Jul 29 2020, 5:28 PM · Structured-Data-Backlog (Current Work)

Jul 24 2020

Jarekt added a comment to T258489: Create a Examples Page for WCQS.

By the way, there is a lot of activity now at https://commons.wikimedia.org/wiki/c:Commons:SPARQL_query_service/queries/examples, a lot of great examples are being added.

Jul 24 2020, 7:24 PM · Discovery-Search (Current work), Wikidata-Query-Service, Wikidata
Jarekt added a comment to T258776: Add Structured Data on Commons M-ID to Wikidata dumps.

I think Wikidata and SDC has an issue with representation of Wikimedia pages. Sometimes thy are stored as URLs (see Property:P1957), sometimes as strings (see Property:P1472), images are stored using data type just for images (see Property:P18) and in SDC they are stored as M-ids based on page ID. Some years ago there was a proposal to have a property data type just for Wikimedia pages, which would allow the links to stay valid when the original page was renamed, or would allow comparison of links saved in different formats, like compare Property:P1472 with a sitelink to Commons. If we add SDoC M-IDs to WDQS, maybe we could also find some way of representing other links to Wikimedia pages in some unified way as right now it is kind of a mess.

Jul 24 2020, 7:19 PM · StructuredDataOnCommons, Wikidata-Query-Service, Wikidata
Jarekt awarded T258769: ImageGrid for WCQS a Like token.
Jul 24 2020, 6:53 PM · Commons, Wikidata-Query-Service, Wikidata

Jul 21 2020

Jarekt added a comment to T256565: Commons documents to include an option for which default page to display.

Structured Data on Commons stores page id of the title page in Property:P4714, and one use of it is to display title page when showing file metadata using {{Book}} template. Perhaps MediaWiki can also use this SDC statement to pick which page to display by default when file is multipage PDF or DjVu. It would be used when displaying files in a category or in <gallery>.

Jul 21 2020, 4:18 PM · MediaWiki-File-management, Commons

Jul 10 2020

Jarekt added a comment to T257453: Quarry's download as "Excel xlsx" creates an empty file last 2 days.

Thanks for the fix

Jul 10 2020, 1:45 AM · Quarry

Jul 8 2020

Jarekt created T257453: Quarry's download as "Excel xlsx" creates an empty file last 2 days.
Jul 8 2020, 1:47 PM · Quarry

Jul 4 2020

Marsupium awarded T256933: Alter the look of SDC GUI to hide input fields for properties which are not beeing edited a Like token.
Jul 4 2020, 8:16 PM · MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Structured-Data-Backlog (Current Work), Wikidata, Structured Data Engineering, SDC General

Jul 2 2020

TheDJ awarded T256933: Alter the look of SDC GUI to hide input fields for properties which are not beeing edited a Like token.
Jul 2 2020, 8:51 AM · MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Structured-Data-Backlog (Current Work), 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

Jul 2 2020, 3:13 AM · MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Structured-Data-Backlog (Current Work), 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.
Jul 2 2020, 3:08 AM · MW-1.35-notes (1.35.0-wmf.41; 2020-07-14), Structured-Data-Backlog (Current Work), Wikidata, Structured Data Engineering, SDC General

Jul 1 2020

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

7 years and this is still an annoying issue.

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

Jun 22 2020

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.

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

Jun 12 2020

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.

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

Jun 4 2020

Jarekt awarded T253053: Make it possible to add references to statements in Structured Data on Wikimedia Commons a Like token.
Jun 4 2020, 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.

Jun 4 2020, 6:54 PM · Tools, 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 · Wikidata, Wikibase-Lua

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 · 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, MediaWiki-Recent-changes, Wikidata, Growth-Team, Edit-Review-Improvements-RC-Page

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, MediaWiki-Recent-changes, Wikidata, Growth-Team, Edit-Review-Improvements-RC-Page
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, MediaWiki-Recent-changes, Wikidata, Growth-Team, Edit-Review-Improvements-RC-Page
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 · JsonConfig, Wikidata, Commons-Datasets, 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, SDC General, Wikidata

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, Wikidata, Commons
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, SDC General, Wikidata

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 · MW-1.36-notes (1.36.0-wmf.11; 2020-09-29), Structured-Data-Backlog (Current Work), 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 · MW-1.36-notes (1.36.0-wmf.11; 2020-09-29), Structured-Data-Backlog (Current Work), 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, SDC General, Wikidata

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, Wikidata, Commons

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, Wikidata, Commons

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