Page MenuHomePhabricator

Add EntitySchemas to the Query Service
Open, MediumPublic

Assigned To
None
Authored By
Lea_Lacroix_WMDE
Jun 13 2019, 8:54 AM
Referenced Files
F36867690: image.png
Feb 24 2023, 10:13 AM
Tokens
"Love" token, awarded by Sj."Like" token, awarded by TiagoLubiana."Insectivore" token, awarded by Daniel_Mietchen."Love" token, awarded by NavinoEvans.

Description

Users would like to query EntitySchemas through the Query Service.

As a first step we would like to make EntitySchemas available only as datatypes with a canonical URI scheme.
e.g. you can query all EntitySchemas that are describing a subclass of game, but not the labels of an EntitySchema (yet!)

Please see the below flow chart for your reference.

image.png (259×832 px, 84 KB)

We expect this to be possible once these tickets are complete: T214884 T225778

Event Timeline

+ check items against EntitySchemas

According to this post on Wikidata-l, there is a standard RDF serialisation (ShExR) for Shape Expressions, with a test suite on the ShEx spec github.

John_Cummings subscribed.

Myself and @NavinoEvans are currently working on schema documentation and place for the community to discuss schemas to increase to use and usability of them, having this feature would really help.

There is now an experimental query service at https://adhs-wde.toolforge.org/sparql that has a subset of all EntitySchemas. The default query shows that the ShExC code is embedded in the RDF as a rdfs:comment and can so it can be queried too. The next milestone is to load from the WD database instead of static files.

We have now finished the work on creating a space for community discussion of schemas.

https://www.wikidata.org/wiki/Wikidata:Schemas

https://www.wikidata.org/wiki/Wikidata:Schema_proposals

Having EntitySchemas in queries and as part of statements will allow us to make use of them much more in Wikidata. E.g we'd really love to have a property called something like 'Community agreed schema' for a topic to allow people to more easily understand and use schemas, possibly it could be this existing property proposal https://www.wikidata.org/wiki/Wikidata:Property_proposal/Shape_Expression_for_class

VIGNERON triaged this task as Medium priority.Jul 10 2022, 1:12 PM

I think this is quite important (for discoverability and so on) so I set priority to "medium".