Page MenuHomePhabricator

[Investigation] Entity type using Wikidata
Closed, ResolvedPublic5 Estimated Story Points

Description

As a client of the MR API, I want to see the connection between Wikipedia articles and the related Wikidata Entity type, which is normally labelled as "instance of" which has the PID==P31. However, some Wikidata entities don't have P31 so we need alternative P___ choices.

Investigate what properties are relevant, and get 5 examples of pages including a list instances_of key-value pais and/or fallback Ps.

  • Relate the Wikipedia article to the Wikidata entity
  • Pick the closest semantic key that is available to "instance of" in the Wikidata entries from that QID. There may be multiple key-value pairs from Wikidata
  • Document sample output JSON with the entity subtree.
  • Document findings: which Ps and how to access Wikidata - Answer description field from wikipedia and wikidata properties P31 and P279
  • Get 5 manual example pages including a list instances_of key-value pairs and/or fallback Ps
  • @SDelbecque-WMF sign off

Event Timeline

Protsack.stephan renamed this task from [STUB][Investigation] Add Entity type through Wikidata to [STUB] [Investigation] Add Entity type through Wikidata [.Jun 21 2023, 1:22 PM
Protsack.stephan triaged this task as Medium priority.
Protsack.stephan updated the task description. (Show Details)
Protsack.stephan renamed this task from [STUB] [Investigation] Add Entity type through Wikidata [ to [STUB] [Investigation] Add Entity type through Wikidata [5 days].Jun 21 2023, 1:33 PM
Felixejofre set the point value for this task to 5.Jun 21 2023, 1:35 PM
ROdonnell-WMF renamed this task from [STUB] [Investigation] Add Entity type through Wikidata [5 days] to Create Entity type through Wikidata and add to Sections [NEEDS GROOMING].Jul 13 2023, 10:23 AM
ROdonnell-WMF updated the task description. (Show Details)
ROdonnell-WMF renamed this task from Create Entity type through Wikidata and add to Sections [NEEDS GROOMING] to Create Entity type through Wikidata and add to Sections.Jul 13 2023, 1:37 PM
ROdonnell-WMF raised the priority of this task from Medium to High.
ROdonnell-WMF updated the task description. (Show Details)
ROdonnell-WMF renamed this task from Create Entity type through Wikidata and add to Sections to Create Entity type using Wikidata and add to Section demo.Jul 13 2023, 4:33 PM
ROdonnell-WMF renamed this task from Create Entity type using Wikidata and add to Section demo to Investigate Entity type using Wikidata.Jul 19 2023, 1:58 PM
ROdonnell-WMF updated the task description. (Show Details)
ROdonnell-WMF renamed this task from Investigate Entity type using Wikidata to [Investigation] Entity type using Wikidata.Jul 19 2023, 2:15 PM
ROdonnell-WMF updated the task description. (Show Details)

@ROdonnell-WMF can I check the boxes?

  • Relate the Wikipedia article to the Wikidata entity
  • Pick the closest semantic key that is available to "instance of" in the Wikidata entries from that QID. There may be multiple key-value pairs from Wikidata
JArguello-WMF changed the task status from Open to In Progress.Jul 31 2023, 12:25 PM

@ROdonnell-WMF Right now there is only 1 "instance_of" (probably the first) per example, could you include all instances_of and add 1 example of a page that only has subclass_of? Thanks!

In Slack, you have the link to the sample JSON folder for v2 (6 examples)

For reference, we're only looking at P31 (instance_of) and P279 (subclass_of)