chembl / chembl_webservices_2

Source code of the ChEMBL web services.
https://www.ebi.ac.uk/chembl/ws
Other
16 stars 3 forks source link

white space in the mechanism reference id #168

Open piotr-gawron opened 5 years ago

piotr-gawron commented 5 years ago

When you return this webpage from api: https://www.ebi.ac.uk/chembl/api/data/mechanism?molecule_chembl_id=CHEMBL2103846

There is whitespace in the PUBMED identifier (and in the end of url):

<mechanism>
  <ref_id>18216291 </ref_id>
  <ref_type>PubMed</ref_type>
  <ref_url>http://europepmc.org/abstract/MED/18216291 </ref_url>
</mechanism>

I know that in the schema the definition is string, but I think this space is making the identifier wrong.