waldyrious / primerpedia

Simplified extracts of Wikipedia articles, showing just the basic information.
https://primerpedia.toolforge.org
Other
11 stars 7 forks source link

Fetch description from Wikidata #31

Open waldyrious opened 6 years ago

waldyrious commented 6 years ago

Once the simpler variable content length feature is implemented (#19), it would be nice to compare the first sentence of the Wikipedia article with the Wikidata description, and eventually even allow editing them (#3)

The API calls to get the description from Wikidata should be pretty similar to the ones already used to fetch the article content, but I haven't tried them. From a quick look, I'd say that either wbsearchentities or wbgetentities actions are the ones we'd care about (there are examples at the bottom of both pages, as well as links to the live sandbox where experiments can be performed).

waldyrious commented 6 years ago

Related links:

waldyrious commented 5 years ago

More related links:

_Note: Most of these are also listed here._