Hi all! I'm building a web application where users can search for
protein/compound/etc. names and view their 3D structure using WebGL. I'm
currently using the PubChem (chemical compounds database) API to provide
some autocomplete data, but I found that Wikidata also has many chemical
compound names with PubChem indices! The most important reason to try to
autocomplete compound names via Wikidata is to allow users to search in
different languages. PubChem generally only provides English names.
However, I could not find a suitable API for this. I tried building a
SPARQL query but that quickly became very slow. I could not find an option
to limit full-text searches to a specific subclass in the search API
provided by:
https://www.wikidata.org/w/api.php?action=help&modules=wbsearchentities.
Do you have any ideas? The only option I see for now is iterating each
response entity and looking up their subclass of/instance of property.
_______________________________________________
Wikidata mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikidata

Reply via email to