In the end it was a very simple change today (huge thanks to Nikki!), but Wikidata now escapes SMILES and CXSMILES (P10718) with the formatter URL (P1630)!
That means that the link to CDK Depict now also works for SMILES (P233 and P2017) with a triple bond in it :) And because Adriano created the so far missing formatter URL for CXSMILES, it also works for lipid classes (see my post yesterday), polymers, etc :)
![]() |
CXSMILES for a group of acyl-carrier proteins. |
![]() |
The formatter URL info added to make the link outs for CXSMILES work. The patch by Nikki ensures that characters like # are escaped before the URL is created. |
Nice hack, thank to all. Unfortunately no extension for structure models (mol, cml, pdb) in Wikimedia Commons works nowadays. Is there some workaround about this?
ReplyDeleteI do not know, I'm afraid. That would be nice, indeed. Wikipedia solves this by using Jmol's feature to create a 3D model from the SMILES.
DeleteJmol is used for the InChIs, CDKDepict for the SMILES on Wikidata
Delete