Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fetch description from Wikidata #31

Open
waldyrious opened this issue Oct 28, 2017 · 2 comments
Open

Fetch description from Wikidata #31

waldyrious opened this issue Oct 28, 2017 · 2 comments

Comments

@waldyrious
Copy link
Owner

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
Copy link
Owner Author

Related links:

  • Stubopedia (proposal for a collection of only lemmas and one-liner definitions)
  • Wiktionary (contains one-line definitions for some terms corresponding to Wikipedia articles, but not all Wikipedia articles have a matching Wiktionary entry)
  • NinjaWords (a streamlined interface to Wiktionary definitions)
  • WP:LEADSENTENCE (guidelines for the first sentence of a Wikipedia article)

@waldyrious
Copy link
Owner Author

More related links:

Note: Most of these are also listed here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant