Microsoft

How can we improve Project Event Tracking?

Wikidata Item Identifier API query parameter

For API query parameters, please consider offering the Wikidata Item Identifier instead of (or, alternatively to) the Wikipedia Link to identify a Wikipedia entity.

This makes referencing entities easier because you avoid the case-sensitive nature of Wikipedia Links and reduces errors in link composition.

For example, the following will fail due to the 'wikipediaid' parameter value lower-case 'a' and 'i', and, the omission of the period ('.') at the end of the entity name:

https://api.labs.cognitive.microsoft.com/eventknowledge/v1.0/relatedevents?wikipediaid=apple+inc

The correct API request should be:
https://api.labs.cognitive.microsoft.com/eventknowledge/v1.0/relatedevents?wikipediaid=Apple+Inc.

Instead, you might want to offer a 'wikidataitemid' parameter that allows developers to reference the Q-prefixed identifier for a given Wikipedia entity, e.g. 'Q2283' (https://www.wikidata.org/wiki/Q2283).

Related: https://www.wikidata.org/wiki/Help:Items

1 vote
Sign in
Check!
(thinking…)
Reset
or sign in with
  • facebook
  • google
    Password icon
    Signed in as (Sign out)

    We’ll send you updates on this idea

    James Chivers shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →

    0 comments

    Sign in
    Check!
    (thinking…)
    Reset
    or sign in with
    • facebook
    • google
      Password icon
      Signed in as (Sign out)
      Submitting...

      Feedback and Knowledge Base