User:KasparBot/Kaspar

From Wikidata
Jump to navigation Jump to search

Kaspar is a Java programm which provides Wikidata information based on Wikipedia categories. It is used by the KasparBot. The source code can be downloaded at GitHub.

Parameters[edit]

  • a Wikipedia category (e.g. de:Kategorie:Jordanier = all people who live in Jordan)
  • a Wikidata property (e.g. Property:P27 = country of citizenship)
  • a Wikidata item as value (e.g. Q810 = Jordan)
  • a Wikidata reference property (e.g. Property:P143 = data origin)
  • a Wikidata item as reference value (e.g. Q48183 = German Wikipedia)

Procedure[edit]

  1. fetch category members from Wikipedia
  2. iterate over all category members
    1. fetch Wikidata item from Wikipedia
    2. if the article is not connected to Wikidata: skip
    3. look up if this item provides the given property
    4. if not, add property with given value and add reference with given property and value

The programm skips a Wikidata item if it has already this specific property. It only adds information and does not delete or manipulate anything which is already saved.

The bot will only work on manually selected categories with manally selected property and value information.

Possible tasks[edit]

Possible tasks could be: persons with membership in a specific party, persons with specific country of citizenship, persons with specific gender