Wikidata Infernal is an API that allows you to infer new facts from Wikidata. It uses a set of rules to infer new facts from existing ones. The generated statements will have qualifiers to indicate the source and method of the inference. Output is an array of statements in JSON/Wikidata format.
/P131/LAT/LON
Finds items with a P131 near the given location, and returns their administrative region (P131) as statements.
Example (a point in Cambridge, UK)
/name_gender/NAME
Parses a (western-style, "first_name last_name") personal name, and tries to infer items for first and last names, as well as gender, based on first names.
Example (Yours Truly)
/country_year/ITEM/YEAR
/country_year/ITEM/YEAR/PROPERTY
For a given location item (e.g. a city), finds the country in the given year, and returns it as a statement. Will return the "default" country (no qualifiers) if no better match can be found.
Example (country of citizenship for people born in Cologne in 1921)
Code on GitHub.