Page MenuHomePhabricator

[Analytics] [Request] [WDPE] Data about identifiers and their impact on notability
Closed, ResolvedPublic

Description

Wikidata Analytics Request

This task was generated using the Wikidata Analytics request form. Please use the task templates linked on our project page to create tasks for the team. Thank you!

Purpose

Please provide as much context as possible as well as what the produced insights or services will be used for.

As part of the discussions around reforming the notability policy for Wikidata the topic of identifiers and which of them bestow notability on Items. We need some data for that discussion and investigation.

Specifically this request relates to the classification of external identifier Properties into ones suggesting notability (example statement) (Q62589316) and those that don't (example statement) (Q62589320).

Desired Outputs

The desired outputs of this task are listed as check boxes and confirmed as being finished below.

  • A table providing data for all external ID Properties such as this:
External ID PropertyLabelImplies notability yes/no/not specifiedUsed on how many Items?Used on how many Items with at least one sitelink?
P1XYZ IDyes30000200
  • A list of Items that currently do not have any statements with an external ID Property that suggests notability and also no sitelink

Deadline

Please make the time sensitivity of this request clear with a date that it should be completed by. If there is no specific date, then the task will be triaged based on its priority.

ASAP, the deadline for the OKR related to this work was end of Q1 so this should be prioritised.


Information below this point is filled out by the task assignee.

Assignee Planning

Sub Tasks

A full breakdown of the steps to complete this task.

  • Subtask

Estimation

Estimate:
Actual:

Data

The tables that will be referenced in this task and the samples from them that will be used.

  • wmf.wikidata_entity
    • We need to use all of the data for this
    • wmf.wikidata_entity is a massive table, so minimal rows should be used in exploration
    • Use the snapshot field to derive the latest snapshot of the table
      • SHOW PARTITIONS wmf.wikidata_entity; -> snapshot='2026-05-11'
    • Properties will be in claims
    • Sitelinks will be in sitelinks
  • FYI for other information wmf.wikidata_item_page_link

Notes

Things that came up during the completion of this task, questions to be answered and follow up tasks.
Test external property: https://www.wikidata.org/wiki/Property:P227
Notability ID identifier: https://www.wikidata.org/wiki/Q62589316
No notability ID identifier: https://www.wikidata.org/wiki/Q62589320

  • Note

Event Timeline

Requested an initial review from @AndrewTavis_WMDE - however, am expecting there to be some changes / updates / lessons - in order for me to understand the process for running one-off tasks. Link for MR here: https://gitlab.wikimedia.org/repos/wmde/analytics/-/merge_requests/30

Output shared / updated with @Lydia_Pintscher (as initial share had wrongly included language codes as "labels" - when in fact label is the property title, returned in English). The previous shared sheet is now updated with this.

As per previous comment, have also updated and added to the repo with:

  • Updated table name / location
  • Updated hql for the insert statement, as in the previous iteration I created a temporary table - however, this DDL statement does not work when running the code in the terminal.
  • Added an ipynb file, to show the steps taken in Jupyter Notebook to publish the data as a csv.

Thank you, @catherine.kelsey.wmde!
I looked through the spreadsheet and it seems the numbers are off. Some examples:

Do you know what's going on?

Hi Lydia - will take a look at this and come back to you ASAP!

Hi Lydia - apologies for the delay on this. But I now realise the issue: I had used the incorrect parameter from the table, falsely understanding that claims.id and site_links.site were correct in providing the numbers for the items that a property links to. I believe I now have found the correct parameter in the table to use, so will be re-building this now.

Hi Lydia - some hopefully happy news today, I've re-run and updated the sheet. This time using a more recent snapshot date of 01/06/2026. And have cross checked for just taking the counts of item links / site links and we get the same result. Please be aware, it's slightly lower than what's on the site now - I assume that's because it's from a few weeks back. But hopefully is ok for you with this snapshot.

Sheet here: https://docs.google.com/spreadsheets/d/1CfCC57p3RvyaueKsa2XrLi7dg0qSOhf9Q396KwEoybw/edit?gid=707586689#gid=707586689

Will move to review, and if you have any other questions / concerns - please let me know. Apologies for the delay / back and forth on this!

Thank you so much!

I just noticed that it doesn't just contain Properties with datatype external identifier but that's actually useful from a quick look over it so let's keep it as is.

One remaining issue I saw: There are a bunch of entries with no data for the last 2 columns. They are now at the bottom of the sheet. Do you know what's going on there?

And last but not least: Any chance I or someone else can run the script as well? I am starting to see issues as I go through the data and it'd be useful to see changes reflected without having to potentially bother you again and again.

Hi @Lydia_Pintscher - thanks for taking a look and the questions :). To answer them:

  1. OK great!
  2. I've done some checks / investigation to this, and the properties at the end are returning null, because of how we need to define and then bve able to count the items. These properties are within another property for the item. The property being "main wikidata property". See an example here: https://www.wikidata.org/wiki/Q112174921 (in relation to P10830). I have spot checked a few others, and see the same pattern. If you have any details on the concept of how this type of Wikidata structure, let me know - and can run something specific for these properties.
  3. The code can be found here - but let me know if you need further support - as to re-run would need to update the Snapshot date in the .hql file, and then use the python script to export.

Let me know what other support you need for this, as am happy to help :)

Hi @Lydia_Pintscher - thanks for taking a look and the questions :). To answer them:

  1. OK great!
  2. I've done some checks / investigation to this, and the properties at the end are returning null, because of how we need to define and then bve able to count the items. These properties are within another property for the item. The property being "main wikidata property". See an example here: https://www.wikidata.org/wiki/Q112174921 (in relation to P10830). I have spot checked a few others, and see the same pattern. If you have any details on the concept of how this type of Wikidata structure, let me know - and can run something specific for these properties.

Ahhhh! Ok I see what's going on. Then I'll consider them as 0.
Might be nice to make the script write 0 for those cases but this will do for me.

  1. The code can be found here - but let me know if you need further support - as to re-run would need to update the Snapshot date in the .hql file, and then use the python script to export.

Great. Maybe we can give this a try at the off-site together.

Let me know what other support you need for this, as am happy to help :)

I think this is good to close then. Thanks!

Hey @Lydia_Pintscher

  1. I've created a follow up ticket for these types of properties here. Let me know if it covers everything for you / feel free to add!
  2. Would love this, especially as it might mean I can use your brain for more help with understanding Wikidata entity set-up. I've put a reminder in my calendar for this during the offsite!
  3. Great, will close this now :)

Next steps:

  1. Add data_type field to query and re-run.
  2. Create an additional query for the cases where there is a main wikiData property on the item - e.g.: https://www.wikidata.org/wiki/Q58781582

Hey again @Lydia_Pintscher - I think we are there! Update made for the code to include a block that scans for this weird case of main wikiData property. Sheet here https://docs.google.com/spreadsheets/d/1CfCC57p3RvyaueKsa2XrLi7dg0qSOhf9Q396KwEoybw/edit?gid=1186769380#gid=1186769380

AndrewTavis_WMDE renamed this task from [Analytics] [Request] Data about identifiers and their impact on notability to [Analytics] [Request] [WDPE] Data about identifiers and their impact on notability.Aug 4 2026, 1:32 PM