Page MenuHomePhabricator

The EntitySchema type URI is missing from the Wikibase ontology
Closed, ResolvedPublicBUG REPORT

Description

Problem
The EntitySchema type URI is http://wikiba.se/ontology#EntitySchema and referenced in Wikidata RDF (example), the URI is, however, not defined in the ontology: http://wikiba.se/ontology

Solution:
The content of this file exists in the Wikidata source code.

We must confirm that the ontology in the Wikidata source code contains EntitySchema URI. If it doesn't exist there we need to add it in.

To align with other Entity Types, we must update the EntitySchema wikibase:propertyType value to http://wikiba.se/ontology#WikibaseEntitySchema

Once that is completed, we need to provide the new content of the file to the Wikibase Suite team to update the information on wikiba.se

And as updating the wikibase:propertyType value will be a "Breaking Change" in our Stable Interface Policy we must announce this 2 weeks before rolling it out.

Acceptenace Criteria

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes
Lydia_Pintscher renamed this task from [SW] The EntitySchema type URI is missing from the Wikibase ontology to The EntitySchema type URI is missing from the Wikibase ontology.Nov 11 2024, 10:55 AM

Change #1093883 had a related patch set uploaded (by Arthur taylor; author: Arthur taylor):

[mediawiki/extensions/EntitySchema@master] Add a basic ontology file for EntitySchema

https://gerrit.wikimedia.org/r/1093883

Created a patch for adding an ontology file to the EntitySchema repo (similarly to what we have done for Wikibase and WikibaseLexeme).

The EntitySchema type URI is http://wikiba.se/ontology#EntitySchema and referenced in Wikidata RDF (example)

I think we might have messed up the naming here, actually :/ for other entity types, we have the following URIs (see e.g. curl -sL https://www.wikidata.org/wiki/Special:EntityData/Q115569934.rdf | grep -e rdf:type -e wikibase:propertyType | sort -u):

But for EntitySchema, what we have so far is:

entity typerdf:type valuewikibase:propertyType value
EntitySchemanone yethttp://wikiba.se/ontology#EntitySchema

That is to say, EntitySchema’s property type URI looks like other entity types’ entity type URI. This inconsistent naming isn’t a problem per se, but it is at least confusing, and when we add an RDF export for EntitySchema’s own data, we’ll have to find another name / URI for the rdf:type value that doesn’t overlap with the already-used http://wikiba.se/ontology#EntitySchema. (Unless we rename that first, but I don’t know if that’s even feasible.)

That explains my confusion over at T371752.

(Unless we rename that first, but I don’t know if that’s even feasible.)

Problematic indeed but on the other hand, if it should ever be made consistent the time is probably now before there is an RDF export.

Okay. That sounds like a decision product should make. @Lydia_Pintscher , @Arian_Bozorg - do we want to change our current RDF export format to match the convention of wikibase:propertyType URIs including the word Wikibase, or do we want to come up with a different name for the rdf:type for EntitySchema when we get to that point?

change our current RDF export format

Wait what?

Sorry @Abbe98 - hard for me to respond to unstructured criticism of the suggestion.

@ArthurTaylor how do you imagine changing the current RDF export format without causing massive breakage for everyone relying on the data model to be stable? I'm sorry for my short comment but I felt that your proposal was rather destructive, I would expect there to be more to your suggestion than that of your comment?

@Abbe98 yes - of course any change to the existing export format would have to take account of our stable interface policy, and we would need to weigh the costs of both options. It's good that you speak to the "massive breakage" that changing the format will cause. That's helpful information for our product team to make their decision. I wasn't trying to make a case for either course of action - merely trying to highlight / summarise the paths available to us so that product can make their decision.

The simplest solution here could be to update the EntitySchema wikibase:propertyType value to http://wikiba.se/ontology#WikibaseEntitySchema, but we will need to see how disruptive that would be. I'll create an investigation for Andrew tro look into the numbers and see what the affects could be.

Hi @Abbe98,
From our investigation here: T380976 we found that the result of the number of wikibase:propertyType wikibase:EntitySchema queries given two different methods of finding such queries is <=5 (4 with the raw queries over three months and 5 with the parsed query dataset over an even longer time).

With this in mind, we will move ahead with this as a "Breaking Change" in our Stable Interface Policy and announce this two weeks ahead of rolling it out.

Arian_Bozorg updated the task description. (Show Details)

Change #1134642 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@master] WIP: Rename propertyType from EntitySchema to WikibaseEntitySchema

https://gerrit.wikimedia.org/r/1134642

@Arian_Bozorg I just noticed that the task description and acceptance criteria includes http://wikiba.se/ontology#EntitySchema as the rdf:type URI – as far as I understand, this shouldn’t be part of this task because we’re not generating RDF for EntitySchemas themselves yet. There currently isn’t an rdf:type URI for them that we would have to change.

Thanks so much, just updated the description

Change #1134687 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@master] Remove config for renaming WikibaseEntitySchema propertyType

https://gerrit.wikimedia.org/r/1134687

Change #1134691 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[operations/mediawiki-config@master] Fix EntitySchema propertyType on Test Wikidata

https://gerrit.wikimedia.org/r/1134691

Change #1134692 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[operations/mediawiki-config@master] Fix EntitySchema propertyType on Wikidata

https://gerrit.wikimedia.org/r/1134692

Change #1134693 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[operations/mediawiki-config@master] Remove unused EntitySchema config

https://gerrit.wikimedia.org/r/1134693

With this in mind, we will move ahead with this as a "Breaking Change" in our Stable Interface Policy and announce this two weeks ahead of rolling it out.

The above changes should implement the wikibase:EntitySchemawikibase:WikibaseEntitySchema rename, so let’s start working on the announcement and scheduling :)

Change #1134642 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Rename propertyType from EntitySchema to WikibaseEntitySchema

https://gerrit.wikimedia.org/r/1134642

hoo subscribed.

AFAICT the remaining open changes are all blocked on this being deployed/ the setting being set.

Change #1134691 merged by jenkins-bot:

[operations/mediawiki-config@master] Fix EntitySchema propertyType on Test Wikidata

https://gerrit.wikimedia.org/r/1134691

Mentioned in SAL (#wikimedia-operations) [2025-04-08T13:22:49Z] <lucaswerkmeister-wmde@deploy1003> Started scap sync-world: Backport for [[gerrit:1133317|Increase entityAccessLimit from 400 to 500 for all wikis except commons. (T384455)]], [[gerrit:1134064|Remove unused config vars (T389429)]], [[gerrit:1134691|Fix EntitySchema propertyType on Test Wikidata (T371196)]]

Mentioned in SAL (#wikimedia-operations) [2025-04-08T13:30:20Z] <lucaswerkmeister-wmde@deploy1003> lucaswerkmeister-wmde, ebernhardson, seanleong-wmde: Backport for [[gerrit:1133317|Increase entityAccessLimit from 400 to 500 for all wikis except commons. (T384455)]], [[gerrit:1134064|Remove unused config vars (T389429)]], [[gerrit:1134691|Fix EntitySchema propertyType on Test Wikidata (T371196)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-04-08T13:38:19Z] <lucaswerkmeister-wmde@deploy1003> Finished scap sync-world: Backport for [[gerrit:1133317|Increase entityAccessLimit from 400 to 500 for all wikis except commons. (T384455)]], [[gerrit:1134064|Remove unused config vars (T389429)]], [[gerrit:1134691|Fix EntitySchema propertyType on Test Wikidata (T371196)]] (duration: 15m 30s)

From announcement on April 16: Rollout Timeline:

  • Test Wikidata: The updated configuration is now deployed on Test Wikidata.
  • Full Rollout on Wikidata: The change will go live on Wikidata on 24 April 2025 following the two-week advance notice as required by our Stable Interface Policy.

Change #1134692 merged by jenkins-bot:

[operations/mediawiki-config@master] Fix EntitySchema propertyType on Wikidata

https://gerrit.wikimedia.org/r/1134692

Mentioned in SAL (#wikimedia-operations) [2025-04-24T14:13:07Z] <lucaswerkmeister-wmde@deploy1003> Started scap sync-world: Backport for [[gerrit:1134692|Fix EntitySchema propertyType on Wikidata (T371196)]]

Mentioned in SAL (#wikimedia-operations) [2025-04-24T14:17:31Z] <lucaswerkmeister-wmde@deploy1003> lucaswerkmeister-wmde: Backport for [[gerrit:1134692|Fix EntitySchema propertyType on Wikidata (T371196)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-04-24T14:25:19Z] <lucaswerkmeister-wmde@deploy1003> Finished scap sync-world: Backport for [[gerrit:1134692|Fix EntitySchema propertyType on Wikidata (T371196)]] (duration: 12m 11s)

The change from wikibase:EntitySchema to wikibase:WikibaseEntitySchema should be deployed now! The EntitySchema propertiesP12861 and P12886 – probably need refreshing in the query service now.

Change #1134687 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Remove config for renaming WikibaseEntitySchema propertyType

https://gerrit.wikimedia.org/r/1134687

Change #1093883 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@master] Add a basic ontology file for EntitySchema

https://gerrit.wikimedia.org/r/1093883

Change #1139842 had a related patch set uploaded (by Lucas Werkmeister (WMDE); author: Lucas Werkmeister (WMDE)):

[mediawiki/extensions/EntitySchema@wmf/1.44.0-wmf.25] Remove config for renaming WikibaseEntitySchema propertyType

https://gerrit.wikimedia.org/r/1139842

Change #1139842 merged by jenkins-bot:

[mediawiki/extensions/EntitySchema@wmf/1.44.0-wmf.25] Remove config for renaming WikibaseEntitySchema propertyType

https://gerrit.wikimedia.org/r/1139842

Mentioned in SAL (#wikimedia-operations) [2025-04-29T13:33:07Z] <lucaswerkmeister-wmde@deploy1003> Started scap sync-world: Backport for [[gerrit:1139842|Remove config for renaming WikibaseEntitySchema propertyType (T371196)]]

Mentioned in SAL (#wikimedia-operations) [2025-04-29T13:39:29Z] <lucaswerkmeister-wmde@deploy1003> lucaswerkmeister-wmde: Backport for [[gerrit:1139842|Remove config for renaming WikibaseEntitySchema propertyType (T371196)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-04-29T13:46:12Z] <lucaswerkmeister-wmde@deploy1003> Finished scap sync-world: Backport for [[gerrit:1139842|Remove config for renaming WikibaseEntitySchema propertyType (T371196)]] (duration: 13m 04s)

Change #1134693 merged by jenkins-bot:

[operations/mediawiki-config@master] Remove unused EntitySchema config

https://gerrit.wikimedia.org/r/1134693

Mentioned in SAL (#wikimedia-operations) [2025-04-29T13:52:02Z] <lucaswerkmeister-wmde@deploy1003> Started scap sync-world: Backport for [[gerrit:1134693|Remove unused EntitySchema config (T371196)]]

Mentioned in SAL (#wikimedia-operations) [2025-04-29T13:58:29Z] <lucaswerkmeister-wmde@deploy1003> lucaswerkmeister-wmde: Backport for [[gerrit:1134693|Remove unused EntitySchema config (T371196)]] synced to the testservers (https://wikitech.wikimedia.org/wiki/Mwdebug)

Mentioned in SAL (#wikimedia-operations) [2025-04-29T14:05:59Z] <lucaswerkmeister-wmde@deploy1003> Finished scap sync-world: Backport for [[gerrit:1134693|Remove unused EntitySchema config (T371196)]] (duration: 13m 57s)

This still needs an update to http://wikiba.se/ontology, though in my opinion we could defer that to the parent (T371752), which also requires an update to our ontology.owl.