[Wikidata-tech] JavaScript libraries are now submodules of Wikibase git repository
Hi, this announcement should be only relevant to people who use a copy of the git repository of Wikibase. Changes discussed below should be transparent to other users of Wikibase. As of yesterday (namely having merged 8f694176c839e98909e7695f6b86b6cff05c372c) JavaScript libraries used in Wikibase front-end have been integrated into Wikibase git repository as submodules located under view/lib directory. They are no longer installed as Composer dependencies of Wikibase. When updating Wikibase, you might need to run some commands to update submodules (e.g. to fetch updated files of a particular library). The commands to be run are: git submodule init git submodule update or simply: git submodule update --init Should you have any questions regarding this change, or encounter problems after recent update, especially in the UI-related code, please reach out to the development team at WMDE. Best regards, Leszek Manicki -- Leszek Manicki Software Developer Wikimedia Deutschland e. V. | Tempelhofer Ufer 23-24 | 10963 Berlin Phone: +49 (0)30 219 158 26-0 http://wikimedia.de Imagine a world, in which every single human being can freely share in the sum of all knowledge. That‘s our commitment. Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207. ___ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
[Wikidata-tech] Repository of the Wikibase JavaScript API has moved
Hi, one more brief announcement: The gerrit repository of the Wikibase JavaScript API library ( https://www.npmjs.com/package/wikibase-api, previously known as https://packagist.org/packages/wikibase/javascript-api) was moved yesterday to a new location at https://gerrit.wikimedia.org/r/#/admin/projects/wikibase/javascript-api. The old location https://gerrit.wikimedia.org/r/#/admin/projects/mediawiki/extensions/WikibaseJavaScriptApi has been archived and made read-only. Should your tools use this little library, please make sure you have update the URL of the repository in your local copy. Best regards, Leszek Manicki -- Leszek Manicki Software Developer Wikimedia Deutschland e. V. | Tempelhofer Ufer 23-24 | 10963 Berlin Phone: +49 (0)30 219 158 26-0 http://wikimedia.de Imagine a world, in which every single human being can freely share in the sum of all knowledge. That‘s our commitment. Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207. ___ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Re: [Wikidata-tech] lexeme fulltext search display
On 21 June 2018 at 21:05, Stas Malyshev wrote: > Hi! > > > In any case, thanks for bringing the issue up. Regarding link > > formatting: this is the very topic we're working actively right now, in > > a broader context, and all you need should be there rather soon. Hence > > I'd prefer to avoid duplicating efforts now. > > Could you send me the phab task ID so I could subscribe to it and know > when it's ready? I've paused the fulltext patch for now waiting for it, > Hi Stas, it is going to take some time until this is all ready, so in order to unblock your work I went ahead and had a look at the link formatter and HtmlPageLinkRendererBeginHookHandler, as it is seemed pretty straight-forward to have a basic working (hopefully) thing done on a Friday afternoon. You could see what I came up with at https://gerrit.wikimedia.org/r/#/c/mediawiki/extensions/WikibaseLexeme/+/441554/ . I hope that help with the search work. Feel free to mention any missing bits or issues. Formatter is very rudimentary for now (e.g. "title" attribute is intentionally just showing form ID), but I hope this is an implementation detail that can be added later (we'll take care of the formatter). Have a good weekend! > -- > Stas Malyshev > smalys...@wikimedia.org > -- Leszek Manicki Software Developer Wikimedia Deutschland e. V. | Tempelhofer Ufer 23-24 | 10963 Berlin Phone: +49 (0)30 219 158 26-0 http://wikimedia.de Imagine a world, in which every single human being can freely share in the sum of all knowledge. That‘s our commitment. Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207. ___ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Re: [Wikidata-tech] lexeme fulltext search display
On 19 June 2018 at 01:35, Stas Malyshev wrote: > Hi! > > > I can reimplement it manually, but I would be largely duplicating what > > HtmlPageLinkRendererBeginHookHandler is supposed to do. The problem > > seems to be that it is not doing it right. When the code works on the > > link like /wiki/Lexeme:L2#L2-F1, it does this: > > > > $entityId = $foreignEntityId ?: > > $this->entityIdLookup->getEntityIdForTitle( $target ); > > > > Which produces back LexemeId instead of Form ID. It can't return Lexeme > > ID since lexeme does not have content model, and getEntityIdForTitle > > uses content model to get from Title to ID. So, I could duplicate all > > this code but I don't particularly like it. Could we fix > > HtmlPageLinkRendererBeginHookHandler instead maybe? > > Also, looks like Form actually doesn't have link-formatter-callback and > its own link formatter code. So I wonder if there's an existing facility > to format links to Forms? Leszek, do you have any information on this? > Hi Stas, would \Wikibase\Lexeme\PropertyType\FormIdHtmlFormatter be of any help for you in this case, at least temporarily? In any case, thanks for bringing the issue up. Regarding link formatting: this is the very topic we're working actively right now, in a broader context, and all you need should be there rather soon. Hence I'd prefer to avoid duplicating efforts now. If this works for you Stas, my suggestion would be that you assume that the link formatting code is there, and make sure the data needed to display the link is in the search results etc. Once the ground work we're doing now is finished, and Lydia has defined how the search result link etc should look, we'll add it there. Best > > Thanks, > -- > Stas Malyshev > smalys...@wikimedia.org > -- Leszek Manicki Software Developer Wikimedia Deutschland e. V. | Tempelhofer Ufer 23-24 | 10963 Berlin Phone: +49 (0)30 219 158 26-0 http://wikimedia.de Imagine a world, in which every single human being can freely share in the sum of all knowledge. That‘s our commitment. Wikimedia Deutschland - Gesellschaft zur Förderung Freien Wissens e. V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207. ___ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
[Wikidata-tech] [TAIM] Wednesday: Technical Advice IRC Meeting
Sorry for cross-posting! Reminder: Technical Advice IRC meeting this week **Wednesday 4-5 pm UTC** on #wikimedia-tech. *Note the time change due to Berlin having switched to winter time!* Questions can be asked in English, and Spanish! The Technical Advice IRC Meeting (TAIM) is a weekly support event for volunteer developers. Every Wednesday, two full-time developers are available to help you with all your questions about MediaWiki, gadgets, tools and more! This can be anything from "how to get started" over "who would be the best contact for X" to specific questions on your project. If you already know what you would like to discuss or ask, please add your topic to the next meeting: https://www.mediawiki.org/wiki/Technical_Advice_IRC_Meeting Hope to see you there! -- Leszek Manicki Engineering Manager Wikimedia Deutschland e. V. | Tempelhofer Ufer 23-24 | 10963 Berlin Phone: +49 (0)30 219 158 26-0 http://wikimedia.de Imagine a world in which every single human being can freely share in the sum of all knowledge. Help us to achieve our vision! https://spenden.wikimedia.de Wikimedia Deutschland – Gesellschaft zur Förderung Freien Wissens e. V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207. ___ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
[Wikidata-tech] [TAIM] Wednesday: Technical Advice IRC Meeting
Sorry for cross-posting! Reminder: Technical Advice IRC meeting this week **Wednesday 4-5 pm UTC** on #wikimedia-tech. *Note the time change due to Berlin having switched to winter time!* Questions can be asked in English. The Technical Advice IRC Meeting (TAIM) is a weekly support event for volunteer developers. This week we have a special theme, related to the upcoming Wikimedia Technical Conference focusing on Developer Productivity. In particular we're interested in hearing about your experiences with developer productivity in the context of your work with on-wiki tools (gadgets, templates, modules, etc). Your input is going to be useful for the "Developer Productivity & onwiki tooling" ( https://phabricator.wikimedia.org/T234661) session held at the Conference next week. Hope to see you there! -- Leszek Manicki Engineering Manager Wikimedia Deutschland e. V. | Tempelhofer Ufer 23-24 | 10963 Berlin Phone: +49 (0)30 219 158 26-0 http://wikimedia.de Imagine a world in which every single human being can freely share in the sum of all knowledge. Help us to achieve our vision! https://spenden.wikimedia.de Wikimedia Deutschland – Gesellschaft zur Förderung Freien Wissens e. V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207. ___ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
Re: [Wikidata-tech] Wikidata API documentation
Howdy, you could also try if consulting https://doc.wikimedia.org/mediawiki-extensions-Wikibase/master/php/md_docs_topics_changeop-serializations.html for items and properties, and (pretty rudimentary and still-not-markdown-nor-linkable-html-doc) https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/WikibaseLexeme/+/refs/heads/master/docs/change-op-serialization.wiki for some lexicographical-data-specific bits helps you in your case. Best On Wed, 1 Apr 2020 at 02:15, Michael F. Schönitzer wrote: > Hello, > > Is there any documentation to "wbeditentity", except from the few > examples on the API-document-page? > Any documentation about the format/grammar of the data? > > And is there any API-documentation for lexicographical data at al? > The few bits on the source-code generated page aren't sufficient. > > Cheers, > M > > -- > Michael F. Schönitzer > Prochintalstr. 2 > 80993 München > Mail: mich...@schoenitzer.de > Jabber: schoenit...@jabber.ccc.de > Tel: 089/37918949 - Mobil: 017657895702 > > ___ > Wikidata-tech mailing list > Wikidata-tech@lists.wikimedia.org > https://lists.wikimedia.org/mailman/listinfo/wikidata-tech > -- Leszek Manicki Engineering Manager Wikimedia Deutschland e. V. | Tempelhofer Ufer 23-24 | 10963 Berlin Phone: +49 (0)30 219 158 26-0 http://wikimedia.de Imagine a world in which every single human being can freely share in the sum of all knowledge. Help us to achieve our vision! https://spenden.wikimedia.de Wikimedia Deutschland – Gesellschaft zur Förderung Freien Wissens e. V. Eingetragen im Vereinsregister des Amtsgerichts Berlin-Charlottenburg unter der Nummer 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207. ___ Wikidata-tech mailing list Wikidata-tech@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikidata-tech
[Wikidata-tech] Re: Auth: Refresh Token
Hi Tobias, there has been a mistake/a bug in the example -- the URL included /w/rest.php twice, wrongly. The URL part of curl request should rather be the following: --url https://www.wikidata.org/w/rest.php/oauth2/access_token \ Hope that helps. Peace On Wed, 6 Sept 2023 at 07:52, Tobias Schweizer wrote: > Hi there, > > > > I am trying to perform the token refresh operation ( > https://www.wikidata.org/wiki/Wikidata:REST_API/Authentication#Non-owner-only_clients), > but I get a 404: > > > > curl --request POST \ > > > --url https://www.wikidata.org/w/rest.php/w/rest.php/oauth2/access_token > \ > > --header 'Content-Type: application/x-www-form-urlencoded' \ > > --data grant_type=client_credentials \ > > --data client_id=abc \ > > --data client_secret=xyz > > > > {"messageTranslations":{"en":"The requested relative path > (/w/rest.php/oauth2/access_token) did not match any known > handler"},"httpCode":404,"httpReason":"Not Found"}% > > > > Even with some invalid data for my client_id / client_Secret I would > expect a different HTTP status telling me that the credentials are invalid > etc. > > > > Any idea what goes wrong? > > > > Thanks and kind regards, > > > > Tobias > ___ > Wikidata-tech mailing list -- wikidata-tech@lists.wikimedia.org > To unsubscribe send an email to wikidata-tech-le...@lists.wikimedia.org > -- Leszek Manicki Engineering Manager Wikimedia Deutschland e. V. | Tempelhofer Ufer 23-24 | 10963 Berlin Phone: +49 (0)30-577 11 62-0 https://wikimedia.de Keep up to date! Current news and exciting stories about Wikimedia, Wikipedia and Free Knowledge in our newsletter (in German): Subscribe now. Imagine a world in which every single human being can freely share in the sum of all knowledge. Help us to achieve our vision! https://spenden.wikimedia.de Imagine a world in which every single human being can freely share in the sum of all knowledge. Help us to achieve our vision! https://spenden.wikimedia.de Wikimedia Deutschland — Gesellschaft zur Förderung Freien Wissens e. V. Eingetragen im Vereinsregister des Amtsgerichts Charlottenburg, VR 23855 B. Als gemeinnützig anerkannt durch das Finanzamt für Körperschaften I Berlin, Steuernummer 27/029/42207. Geschäftsführende Vorstände: Franziska Heine, Dr. Christian Humborg ___ Wikidata-tech mailing list -- wikidata-tech@lists.wikimedia.org To unsubscribe send an email to wikidata-tech-le...@lists.wikimedia.org