Adding compounds: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 6: Line 6:
groovy createWDitemsFromSMILES.groovy -w compoundcloud.wikibase.cloud -a P11
groovy createWDitemsFromSMILES.groovy -w compoundcloud.wikibase.cloud -a P11
</pre>
</pre>
This script starts with a plain text file with one SMILES string on each line.
If you add a tab-separated label/name on the same line, you can use this command:
<pre>
groovy createWDitemsFromSMILES.groovy -w compoundcloud.wikibase.cloud -a P11 -l
</pre>
The output of the command is a file called ''output.quickstatements''. Due to a bug in the
Wikibase software, the unit annotation should removed by removing the "U3" string from the
file. After that, enter it via the [https://compoundcloud.wikibase.cloud/tools/quickstatements/ QuickStatements API].
Bureaucrats, emailconfirmed, Administrators
6,041

edits