Page MenuHomePhabricator

[ES-M2]: [EPIC] Linking EntitySchemas in statements
Open, HighPublic

Description

As an editor, I want to refer to existing EntitySchemas in statements on Items, Lexemes etc. in order to make it easier to find and classify EnititySchemas. We need a new datatype to link to EntitySchemas in statements.

Example:
Human (Q5) is governed by the EntitySchema Human (E10).

We would like to link these via statements to show the link between the Item and the EntitySchema.

BDD
GIVEN an Item
AND an EntitySchema that governs that class
THEN a new statement can be added that links the Item and the EntitySchema

Acceptance criteria:

  • a new datatype exists that allows linking to EntitySchema
  • Only existing EntitySchemas can be selected as values
  • Link text should be the ID (or label) of the EntitySchema
  • The value of that link should be exported in RDF as a URI
  • "What Links Here" on an EntitySchema should list all entities (Items, Lexemes etc.) linking to it through the new datatype

Notes:

Related Objects

StatusSubtypeAssignedTask
OpenNone
OpenNone
ResolvedAug 6 2019Ladsgroup
ResolvedHasanAkgun_WMDE
Resolvedguergana.tzatchkova
ResolvedItamarWMDE
OpenFeatureNone
Resolvedhoo
Resolved karapayneWMDE
OpenNone
ResolvedMichael
ResolvedMichael
OpenNone
ResolvedNone
DeclinedNone
ResolvedNone
ResolvedNone
ResolvedNone
OpenNone
OpenNone
InvalidBUG REPORTLucas_Werkmeister_WMDE
OpenNone
OpenNone
OpenNone
ResolvedNone
OpenNone
Openhoo
ResolvedLucas_Werkmeister_WMDE
ResolvedLucas_Werkmeister_WMDE
ResolvedLucas_Werkmeister_WMDE
ResolvedMichael
ResolvedMichael
ResolvedLucas_Werkmeister_WMDE
ResolvedMichael
Resolvedguergana.tzatchkova
Resolvedhoo
InvalidNone
OpenNone
ResolvedIfrahkhanyaree_WMDE
OpenNone

Event Timeline

There are a very large number of changes, so older changes are hidden. Show Older Changes

Tried it \o/
Two remaining issues I found:

Screenshot_20190731_125529.png (476×1 px, 46 KB)

Change 526770 had a related patch set uploaded (by Ladsgroup; owner: Ladsgroup):
[mediawiki/extensions/Wikibase@master] Add remaining i18n messages for EntitySchema data type

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

Change 526770 merged by jenkins-bot:
[mediawiki/extensions/Wikibase@master] Add remaining i18n messages for EntitySchema data type

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

A couple of issues:

On the beta system, Pages that link to "EntitySchema:E1" isn't showing anything, despite Entity schema (P253078) having it as a value of property P253078

Secondly, can we confirm that, on WDQS, a property Pxxxxx with data type 'EntitySchema' (eg this proposal Wikidata:Property proposal/Shape Expression for class will lead to statements of the form

wd:Q5  wdt:Pxxxxx  wd:E10

with the wd:E10 being appropriately linked by the UI and turned into an appropriate URL in the download ?

If this is not the case, then the datatype is not ready to go. (Also, are these a reflection of a fundamental issue that the internal type ought to be "Wikibase entity id", not "string" ?)

Ok. Based on the comments here and in project chat let's flip the config switch for this to off and see what we can do about the raised points.

wd:Q5  wdt:Pxxxxx  wd:E10

I don't support reusing wd: prefix (T225778#5391086). We should define a new prefix like wdes:E123

(striken 2023-08-29; see T344609#9124706)
(reinstated 2023-10-18; see T344609#9260423)

@Bugreporter : T225778 "Define canonical URI for EntitySchemas" was opened a few weeks ago as a specific ticket for what the canonical URI should be, so I've added that in as a subtask for this ticket.

But, why is it that you object to wd:E10 (ie http://www.wikidata.org/entity/E10), similar to eg wd:L20 (ie http://www.wikidata.org/entity/L20) for a Lexeme ?

It refers to https://www.wikidata.org/wiki/Special:EntityData/E10, and Special:EntityData is served by Wikibase, but EntitySchema is not based on Wikibase.

(striken 2023-08-29; see T344609#9124706)
(reinstated 2023-10-18; see T344609#9260423)

Deadline added for the decision, 02.09.2019 end of work day.

@Lydia_Pintscher I added two entries to the AC for RDF URI output and for What Links Here functionality to be fixed. If that looks good on your end for releasing this feature, let's move it to Ready to Estimate.

TODO: Just wanted to highlight that once decisions are made... please ensure to update the Glossary item ! Currently it reads:

EntitySchema is a special type of Wikidata page containing a document in ShEx format, and related metadata. Although it may have labels, descriptions and aliases similar to items, it is not a type of entity, nor powered by Wikibase. Entities may be validated against an EntitySchema using a tool.

As a Data Architect in real life working with databases & entities, I actually appreciate and like the fact that EntitySchema is not a type of entity and as @alaa_wmde states, it decouples concepts and allows flexibility with multiple viewpoints from around the world. It also allows external publishers to express their own views and later link them and validate them. (not every entity/thing has to be stored in Wikibase, but allowing conceptual linking helps the world, so a canonical URI is a "good thing" and agree with @Jheald )

@Lydia_Pintscher I just discussed with @WMDE-leszek about how we should move forward with this. The ticket should probably be evaluated again, and then prioritize. Basically, nothing prevents us to move forward with linking Schemas in statements.

Is there anything inherently wrong or technically infeasible or undesirable, if an id used 2 letters? ES45 versus E45 ?

One suggestion made in Project chat https://www.wikidata.org/wiki/Wikidata:Project_chat#How_to_resume_a_property_proposal_being_on_hold was to bring attention to our requirement here.

We are currently trying to bring back this property discussion, currently 'under hold' : https://www.wikidata.org/wiki/Wikidata:Property_proposal/Shape_Expression_for_class. A number of entity schemas have been added during the BioHackathon. There are now around 200 Entity Schemas.

Reevaluation might be easier after having a dedicated triplestore available, please see T271065.

Arian_Bozorg renamed this task from linking Schemas in statements to Linking EnitiySchemas in statements.Feb 21 2023, 1:58 PM
Arian_Bozorg updated the task description. (Show Details)
Arian_Bozorg removed the point value for this task.

Ok. Based on the comments here and in project chat let's flip the config switch for this to off and see what we can do about the raised points.

Project Chat can be found here: https://www.wikidata.org/wiki/Wikidata:Project_chat/Archive/2019/08#New_data_type_for_EntitySchemas

Lydia_Pintscher renamed this task from Linking EnitiySchemas in statements to Linking EntitySchemas in statements.Feb 22 2023, 11:28 AM
Arian_Bozorg renamed this task from Linking EntitySchemas in statements to ES - M2: [EPIC] Linking EntitySchemas in statements.Mar 1 2023, 1:22 PM
Arian_Bozorg renamed this task from ES - M2: [EPIC] Linking EntitySchemas in statements to [ES-M2]: [EPIC] Linking EntitySchemas in statements.Mar 9 2023, 2:46 PM