Page MenuHomePhabricator

The EntitySchema type URI is missing from the Wikibase ontology
Open, Needs TriagePublicBUG 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

Example:
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.

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

Acceptenace Criteria

Event Timeline

ArthurTaylor renamed this task from The EntitySchema type URI is missing from the Wikibase ontology to [SW] The EntitySchema type URI is missing from the Wikibase ontology.Wed, Nov 6, 10:41 AM
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.Mon, Nov 11, 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.