Page MenuHomePhabricator

Add EntitySchemas to the Query Service
Open, Needs TriagePublic

Description

Users would like to query EntitySchemas through the query service.

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 added a subscriber: John_Cummings.

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