Jump to content

Wikifunctions:Project chat

From Wikifunctions
Revision as of 03:08, 21 December 2024 by SpBot (talk | contribs) (archive 2 sections: 1 to Wikifunctions:Project chat/Archive/2024/11, 1 to Wikifunctions:Project chat/Archive/2024/12 - previous edit: MediaWiki message delivery, 2024-12-19 22:06)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Shortcut:
WF:CHAT

Welcome to the Project chat, a place to discuss any and all aspects of Wikifunctions: the project itself, policy and proposals, individual data items, technical issues, etc.

Other places to find help:

SpBot archives all sections tagged with {{Section resolved|1=~~~~}} after 1 day and sections whose most recent comment is older than 30 days.
Archive
Archives

Search for functions, excluding test cases

I tried to search for functions involving ISBN but the result contains both actual functions such as is valid ISBN, Python (Z16842) and test cases such as 9992158107 is valid ISBN-10 (Z11708). Is there or will there be a way to differentiate both in search? JakobVoss (talk) 14:38, 25 November 2024 (UTC)Reply

Not currently, but it's planed in the future. Thanks! Feeglgeef (talk) 14:52, 25 November 2024 (UTC)Reply
You can also put "Z8" in "exactly this text" in the advanced search menu, but if an object mentions Z8 and is not a function for some reason, it will still be show, but it works as a solution for the time being. Feeglgeef (talk) 14:53, 25 November 2024 (UTC)Reply
Not in current plans (No current plans / external) but being looked at again. GrounderUK (talk) 00:52, 27 November 2024 (UTC)Reply
It's in Longer-term plans in WF:Status, so I guess that should be changed? Feeglgeef (talk) 00:55, 27 November 2024 (UTC)Reply
Possibly. The ticket’s still open, so I suggest we leave Current status as it is until we get some response from the team. I’ll add it to the To-do list below. GrounderUK (talk) 01:11, 27 November 2024 (UTC)Reply
Try
https://www.wikifunctions.org/w/index.php?fulltext=1&ns0=1&profile=advanced&search=ISBN+Z8K1&title=Special%3ASearch
Adding “Z8K1” will tend to exclude objects that are not of type Function (Z8). (Similarly, adding “Z14K1” will tend to return only objects of type Implementation (Z14) and adding “Z20K1” will tend to return only objects of type Test case (Z20).) GrounderUK (talk) 14:59, 25 November 2024 (UTC)Reply
You can get even more accurate if you have it match exactly '"Z2K2": { "Z1K1": "Z8"' Feeglgeef (talk) 15:07, 25 November 2024 (UTC)Reply
Thanks! If every ZObjects must have Type, filtering by type seems an important criteria for search. I managed to get a list of types via https://www.wikifunctions.org/w/index.php?search=%22Z1K1%3AZ4%22&title=Special:Search&ns0=1 JakobVoss (talk) 10:12, 26 November 2024 (UTC)Reply
Yes. We do have Special:ListObjectsByType and type-specific lists like Special:ListObjectsByType/Z4 but these cannot be filtered or searched yet. Your approach using a (case insensitive) z1k1:z… search term is probably as good as it gets currently, being both reliable and relatively simple. Thank you for sharing! GrounderUK (talk) 11:01, 26 November 2024 (UTC)Reply
To do:
GrounderUK (talk) 20:07, 26 November 2024 (UTC)Reply

Update "Functions to try out"

Currently, the "Functions to try out" section of the main page has functions that are quite old. The one most recently created was made in March. I think we should replace the contents with the previous functions of the week. This would direct new users to our current work with Wikidata lexeme (Z6005), Rational number (Z19677), Gregorian year (Z20159), Day of Roman year (Z20342), where they are currently directed to string functions, which, while important to include, misrepresent the project and its current status. Thanks! Feeglgeef (talk) 03:22, 3 December 2024 (UTC)Reply

Can we make the 'Functions to try out' section more dynamic? I mean, we can use a set of multiple templates, each containing different functions to try out. The templates could be displayed randomly (along with the purge) or on a day to day basis. Just an idea though. Asked42 (talk) 15:55, 11 December 2024 (UTC)Reply

code artifacts with wikifunction api

Hi. I didn't find it in the API. Is there any way to get the function code artifact through the API. For example, for If Z802 get the python code artifact and status (passed tests, etc.) Konstantin Klepikov (talk) 01:52, 8 December 2024 (UTC)Reply

Hello, and welcome! If I remember correctly, to get connected implementations, you can get the JSON of the object from the API and grab the .Z2K2.Z8K4, which will give you a list of connected implementations. As for status, I'm not sure. Someone else may know how to do this, or you can ask the development team themselves at the volunteer's corner, at 15:30 UTC, Monday. Thanks! Feeglgeef (talk) 02:51, 8 December 2024 (UTC)Reply
Just looking through the network tab, the URL seems to be www.wikifunctions.org/w/api.php?action=wikilambda_perform_test&format=json&wikilambda_perform_test_zfunction={ZFUNCTION}&wikilambda_perform_test_zimplementations={ZIMPLEMENTATIONS (PIPE SEPERATED)}&wikilambda_perform_test_ztesters={ZTESTS (PIPE SEPERATED)&uselang=en (make sure to replace the things in curly braces. Thanks! Feeglgeef (talk) 03:05, 8 December 2024 (UTC)Reply
@Konstantin Klepikov: Our overall documentation for public APIs is at https://api.wikimedia.org/wiki/Wikifunctions_API. You can use the public API, wikilambda_fetch. Please do not use wikilambda_perform_test, it's an internal API, and might go away with no notice. (CC @Feeglgeef, please don't recommend internal APIs.) Jdforrester (WMF) (talk) 15:42, 9 December 2024 (UTC)Reply
I wasn't recommending it, I was just responding with "a way to get the [implementation] status." I, of course, would not recommend it be used. Feeglgeef (talk) 16:03, 9 December 2024 (UTC)Reply

Translations

Hi everybody. I am translating Wikifunctions in French. On Object (Z1) (for example), I don't know where to translate "identity", "keys", "label" and "validator". I encounter the same problem for other functions. I'm writing a short guide for people who would like to translate Wikifunctions into their language. Jérémy-Günther-Heinz Jähnick (talk) 07:46, 8 December 2024 (UTC)Reply

Object (Z1) is an object of type Type (Z4), so it provides values associated with the keys defined in Type (Z4). The labels for these keys can be entered on Type (Z4). I’m not sure about “the same problem for other functions” but the same principle applies more generally: the label for the key is provided by the object’s type. Just let me know if that doesn’t answer your question. GrounderUK (talk) 09:47, 8 December 2024 (UTC)Reply
Hi @GrounderUK:. On Validate HTML fragment (Z189), at "try this function", fragment HTML is in French, but not value, on I don't know where to translate value to have valeur in French. Jérémy-Günther-Heinz Jähnick (talk) 14:19, 8 December 2024 (UTC)Reply
You want to edit source on HTML fragment (Z89) and click the + here:
Feeglgeef (talk) 15:23, 8 December 2024 (UTC)Reply
@Feeglgeef:, and I do that, click the +, add valeur, and I publish and there is nothing in the history. And the second time I have Vous n’avez pas la permission de modifier les objets 'prédéfinis' existants (sous Z10000) and it not publish. I think there is a problem, maybe because I am very new on this project. Six other fields are also to translate in this item, like validator, is identity, key id... Jérémy-Günther-Heinz Jähnick (talk) 23:36, 8 December 2024 (UTC)Reply
About this file, I don't find where to translate in French key id, label and texts. Yes for value but it doesn't work when I publish. Jérémy-Günther-Heinz Jähnick (talk) 23:39, 8 December 2024 (UTC)Reply
Perhaps this is phab:T348997? I'm not sure why that would happen. Feeglgeef (talk) 02:50, 9 December 2024 (UTC)Reply
key id and label are in Key (Z3) and texts is in Multilingual text (Z12). Where there is a vertical bar to the left, this is an embedded object. The type of the embedded object is the first link for a given bar (under type), so you can just follow such a link in any similar case. GrounderUK (talk) 04:20, 9 December 2024 (UTC)Reply
Multilingual text (Z12)
@Feeglgeef and GrounderUK: It was a success for value type. I had the possibility to choose a language and add my translation. For Multilingual text (Z12) the problem is always here (and was present since my beginning here), so I make a screenshot, I should have done this since the beginning (the computer is new...). I think there is a bug, the display is different compared to Key (Z3), and I can't chose my language. If I had texte and publish, there is no action, I verify on the history. Jérémy-Günther-Heinz Jähnick (talk) 11:41, 9 December 2024 (UTC)Reply
Ah, I see… when you click the ➕ the new item is in a collapsed state. That’s probably wrong, but what you can do is click the > to the left. That should expand the item you’re andding and allow you to select the language and enter the text for the label. GrounderUK (talk) 12:24, 9 December 2024 (UTC)Reply
Ah yes, it was that. Thank you @GrounderUK:. Jérémy-Günther-Heinz Jähnick (talk) 15:35, 9 December 2024 (UTC)Reply

Sketching a path to Abstract Wikipedia

In the new Status updates there is a section about ideas how to start Abstract Wikipedia. I read the section and from my point of view there are enough available functions in Wikifunctions available to start Abstract Wikipedia. The lack of available data in Wikidata is a huge challenge for further development of Abstract Wikipedia. In conversations about Wikidata often people asked me what the data in Wikidata is used for. The motivation for editing Wikidata could increase if there is a clear case where the data will be used. I think there should be a Sandbox in Dagbani Wikipedia or another Wiki where people can test function calls to Wikifunctions to generating simple texts as used in Abstract Wikipedia in the future. Maybe I am wrong but at least the number of editors in Wikifunctions is at the moment not so high and so hopefully load to the servers will not increase drastically when there will be a Sandbox to test function calls and some tests will occur. Do you think this is a first step how to go beyound theory as written down in the Status update. Hogü-456 (talk) 21:52, 12 December 2024 (UTC)Reply

  1. I mean, sure, we kinda already have begun Abstract Wikipedia work.
  2. Sure, that might increase motivation.
  3. We plan to allow function calls on test2wiki before dagwiki
Thanks! Feeglgeef (talk) 22:13, 12 December 2024 (UTC)Reply
I look forward to test function calls in test2wiki and hope to have further discussions about it. As this thread shows there is not so much discussion about Abstract Wikipedia. I thought there will be more answers to what I wrote. Hogü-456 (talk) 16:50, 14 December 2024 (UTC)Reply
Wikifunctions itself is not very active as of now. Feeglgeef (talk) 16:57, 14 December 2024 (UTC)Reply

Staff editing policy

There is a staff editing policy as a draft at Wikifunctions:Staff editing policy. Would we like to approve it in its current form, or make modifications to it? I think the current version of the policy is fine.Feeglgeef (talk) 21:45, 15 December 2024 (UTC)Reply

I think that it was approved in the discussions following the original draft publication, but it appears no-one updated the on-wiki page. Hmm. Jdforrester (WMF) (talk) 14:52, 16 December 2024 (UTC)Reply

Wikifunctions & Abstract Wikipedia Newsletter #183 is out: Sketching a path to Abstract Wikipedia; Team offsite in Lisbon; and much more

There is a new update for Abstract Wikipedia and Wikifunctions. Please, come and read it!

In this issue, we discuss how natural language generation for Abstract Wikipedia might develop, and we share news on tools and types on Wikifunctions.

Want to catch up with the previous updates? Check our archive!

Enjoy the reading! -- User:Sannita (WMF) (talk) 18:52, 16 December 2024 (UTC)Reply

Wikifunctions & Abstract Wikipedia Newsletter #184 is out: Function of the Week: age; Intros for year articles; New Type: Floating-point number

There is a new update for Abstract Wikipedia and Wikifunctions. Please, come and read it!

In the last issue for 2024, we discuss functions to create introductions for articles about years, we showcase one of the 23 functions with the Gregorian year type, we introduce a new type, and finally we take a look at the latest software developments.

Want to catch up with the previous updates? Check our archive!

Enjoy the reading! -- User:Sannita (WMF) (talk) 22:06, 19 December 2024 (UTC)Reply