[03:06:10] who knows how to build a gadget that would feed a Wikidata statement value to a wikifunction and add a ✅ if the function returned true? We could use Z11208 to check values of P233 assigned to molecules to check that they are valid SMILES notation, as a sort of advanced constraint check. [03:06:25] Also hi, sorry I'm late to the party! [03:14:41] Tested this morning. Nice! (re @lucaswerkmeister: copying my Wikidata birthday present announcement here too: the Wikidata Lexeme Forms tool has experimental support for generati...) [03:28:20] I'm currently doing something similar using a PAWS notebook, would that be an idea? (re @Toby: who knows how to build a gadget that would feed a Wikidata statement value to a wikifunction and add a ✅ if the function returne...) [03:28:40] Good point! (re @Msz2001: When "Wikilambda system" account makes edits (eg. to reorder implementations) it doesn't mark the edits as bot-made, so they are...) [03:30:59] I'd be keen to take a look. (re @vrandecic: I'm currently doing something similar using a PAWS notebook, would that be an idea?) [03:33:08] Is that how you check the coverage of morphemes against against Wikidata lexemes? [03:34:24] Yes [03:34:27] https://hub-paws.wmcloud.org/user/Denny/lab? [03:34:32] I'm not sure if that link works [03:34:43] It's still a work in progress [03:34:52] And only the last section is relevant [03:46:36] I think you have to "copy Public PAWS link" : https://tools-static.wmflabs.org/bridgebot/9183fe5d/file_54830.jpg [03:46:55] you'll get something like: https://hub-paws.wmcloud.org/user/99of9/lab/tree/Covid-19.ipynb [03:52:00] Hmmm, I'm tapping on it, I see that menu, click on that item, but nothing gets copied [03:52:07] Let me try from a computer [03:56:12] Same thing. I click on the item in the menu, but nothing is copied to my clipboard [03:57:11] The button at the top right might work? : https://tools-static.wmflabs.org/bridgebot/a6185273/file_54831.jpg [04:01:23] https://public-paws.wmcloud.org/User:Denny/Check%20regular%20forms.ipynb [04:01:34] Does this work? [04:04:10] Yay! [11:48:59] That was brilliant. I think I've fully adapted it to my purpose. One thing I noticed that might help you is to url_encode the argument in function_call_url, just in case your lemma has special characters in it. Here's my product for now. https://public-paws.wmcloud.org/User:99of9/SMILES.ipynb [12:23:44] Very very cool. Maybe just be careful with the example SMILES in your notebook. They seem to be SMILES describing chemical classes and not chemical compounds, thus I would argue using "*" is fine. [12:23:45] Eventually you should limit to "chemicals" only using something like [12:23:47] [12:23:48] ``` [12:23:50] VALUES ?classes { [12:23:51] wd:Q113145171 [12:23:53] wd:Q59199015 [12:23:54] } [12:23:56] ?structure wdt:P2017 ?smiles. [12:23:57] ?structure wdt:P31 ?classes.``` [12:23:59] (re @Toby: That was brilliant. I think I've fully adapted it to my purpose. One thing I noticed that might help you is to url_encode the ar...) [12:24:11] Oh, even recognizes in fences :D [13:58:44] Note that the API we are using is an internal API and subject to change. Basically we're doing things we shouldn't be, and will likely have to rewrite that part once our real API is out. [21:45:59] Agreed. I'm still working on Z11208, so this is helping to battle-test it. To include the groups of compounds, I'll probably make a version/parameter that permits [*] (re @adafede: Very very cool. Maybe just be careful with the example SMILES in your notebook. They seem to be SMILES describing chemical class...)