4 ms·
Why manually, when you have APIs to find Wikidata items and properties based on their labels, descriptions, aliases, data, metadata and use? If you mean autoco
by tuukkah 5y ago
Why manually, when you have APIs to find Wikidata items and properties based on their labels, descriptions, aliases, data, metadata and use?
If you mean autocomplete UI or tooltips, look no further than the query editor and its Ctrl+Space at https://query.wikidata.org/ https://query.wikidata.org/
- ablekh 5y agoI meant APIs, not UI or tooltips. And while Wikidata entities and properties could be accessed using MediaWiki API, arguably, there are, at least, two issues with this: 1) you have to know exact names of all the relevant metadata, which is quite overwhelming* (and the SPARQL query editor's autocomplete feature does not seem to help with this, except for top-level attributes); 2) entity disambiguation - yes, it can be implemented programmatically, however, it has to rely on knowing exact names (values), which brings us back to the point #1. *) Here is an example of the number of attributes for a single entity: https://www.wikidata.org/w/api.php?action=wbgetentities&ids=Q42&languages=en https://www.wikidata.org/w/api.php?action=wbgetentities&ids=....