Wikidata:WikiProject Schemas
Wikidata Schemas are formally described expectations on a set of Wikidata entities. Subsets of Wikidata can be tested to see whether or not they conform to a specific schema. Schemas are stored on a dedicated namespace and expressed in the Shape Expressions language (ShEx), using ShExC syntax. An alternative approach to schemas are property constraints. For a less technical explanation of schemas and to propose new schemas please see Wikidata:Schemas.
ShEx
[edit]Shape Expressions (Q29377880) is a concise, formal modeling and validation language for RDF structures. ShEx can be used to define shapes within the RDF graph. In the case of Wikidata, this would be sets of properties, qualifiers and references that describe the domain being modeled.
Examples and Tutorials
[edit]- Simple schema of human: E10
- Danish lexeme: E15
- Schema of an actor: E25
- Schema of an author: E42
- Edition of a written work: E36
- Clinical trial: E189
- all pages in the EntitySchema namespace
- schemas tutorial
- Kat Thornton: Modeling Software and File Formats. ShEx for data models (slides)
- Wikidata:Lexical Masks: information on using ShEx for lexemes, also an offer to help creating more such schemata for lexemes
- list of existing EntitySchemas
- Video of Wikipedia Weekly Entity Schemas and Shape Expressions (ShEx)
Technical Descriptions
[edit]- MediaWiki extension EntitySchema
- ShEx Primer
- ShEx Specification
- Chapter 4: Shape Expressions of Validating RDF Data (Q51601248)
Other useful resources
[edit]- Create a new EntitySchema
- Template to cite an EntitySchema
- EntitySchema directory, where entity schemas are sorted based on categories.
Properties
[edit]Tools
[edit]- See also: ShEx § Implementations on the English Wikipedia.
- WikiShape — a Shape Expressions playground customized for Wikidata; allows validating items against a Shape Expression and extracting a schema from a Wikidata entity
- Wikidata Shape Expressions Inference — automatically infer ShEx schemas from a set of exemplary Wikidata items selected by a SPARQL query (WARNING: this is a research project which creates long and complicated schemas)
Shexer— a similar tool (Website down as of December 2022)- User:Teester/CheckShex.js — allows selecting an EntitySchema and validating the current item against the schema directly from the Wikidata interface
- User:Zvpunry/EntitySchemaHighlighter.js
- Cradle — tool to create new items with a form containing relevant fields, with experimental support for ShEx
- YASHE (Yet Another ShEx Editor)
- Shape Designer — Java-based GUI tool to create ShEx schemas (video demo)
ProWD— not yet integrated with ShEx, but enables to visualize completion Wikidata items given a profile of properties. (Website down as of December 2022.)- EntitySchema Generator — GUI for creating EntitySchemas for Wikidata
Online Validators
[edit]- ShEx2 Simple Online Validator (Toolforge deployment)
- A new output UI mode is available here
- RDFShape: RDF playground (source here: https://github.com/weso/rdfshape)
- PyShExy
Templates
[edit]{{EntitySchema}}
{{ShEx2}}
Issue tracker on Phabricator
[edit]- See https://phabricator.wikimedia.org/project/view/3356/
- Issues tagged shape expressions
Community chat
[edit]- Gitter channel (outdated?)
- Telegram group
Participants
[edit]The participants listed below can be notified using the following template in discussions:{{Ping project|Schemas}}
- Andra Waagmeester Andrawaag (talk) 19:33, 30 January 2018 (UTC)
- YULdigitalpreservation (talk) 13:32, 6 February 2018 (UTC)
- Daniel Mietchen (talk) 01:52, 7 February 2018 (UTC)
- Finn Årup Nielsen (fnielsen) (talk) 13:55, 13 February 2018 (UTC)
- Lucas Werkmeister (talk) 12:34, 14 February 2018 (UTC)
- John Samuel 20:31, 26 February 2018 (UTC)
- Dhx1 (talk) 02:39, 8 March 2018 (UTC)
- Jneubert (talk) 13:35, 19 June 2018 (UTC)
- Malore (talk) 15:59, 24 August 2018 (UTC)
- Vladimir Alexiev (talk) 06:33, 10 September 2018 (UTC)
- Jose Emilio Labra Gayo (talk) 19:34, 21 November 2018 (UTC)
- Spinster 💬 08:45, 18 December 2018 (UTC)
- Egon Willighagen (talk) 07:43, 5 March 2019 (UTC)
- EricP (talk) 10:44, 14 March 2019 (UTC)
- Tombakerii (talk) 15:03, 17 May 2019 (UTC)
- Maxlath (talk) 13:26, 19 May 2019 (UTC)
- Jumtist (talk) 13:29, 19 May 2019 (UTC)
- SilentSpike (talk) 13:48, 19 May 2019 (UTC)
- MisterSynergy (talk) 19:17, 19 May 2019 (UTC)
- Harmonia Amanda (talk) 06:32, 20 May 2019 (UTC)
- Salgo60 (talk) 09:07, 20 May 2019 (UTC)
- Ivanhercaz (Talk) 15:38, 20 May 2019 (UTC)
- Andrew Su (talk) 15:50, 20 May 2019 (UTC)
- Mlemusrojas (talk) 16:50, 21 May 2019 (UTC)
- Dani Fernandez 14:11, 23 May 2019 (UTC)
- PKM (talk) 02:43, 29 May 2019 (UTC)
- Sannita - not just another it.wiki sysop 09:47, 2 June 2019 (UTC)
- Infomuse (talk) 22:37, 3 June 2019 (UTC)
- Buccalon (talk) 17:42, 18 June 2019 (UTC)
- author TomT0m / talk page 11:52, 30 June 2019 (UTC)
- Ecritures (talk) 20:08, 15 July 2019 (UTC)
- Fuzheado (talk) 17:03, 10 July 2019 (UTC)
- Iovka Boneva (Iovka)
- Csisc (talk) 20:43, 24 August 2019 (UTC)
- Fuzheado (talk) 18:01, 23 October 2019 (UTC)
- Ash Crow (talk)
- Pdehaye (talk) 22:13, 27 October 2019 (UTC)
- Tinker Bell ★ ♥ 20:18, 1 November 2019 (UTC)
- So9q (talk) 06:26, 13 November 2019 (UTC)
- ElanHR (talk) 21:29, 14 November 2019 (UTC)
- Arybolab (talk)
- Blue Rasberry (talk) 14:21, 24 November 2019 (UTC)
- Susanna Ånäs (Susannaanas) (talk)
- BlaueBlüte (talk) 22:20, 8 December 2019 (UTC)
- Arcadialib (talk) 21:37, 19 February 2020 (UTC)
- Andy Mabbett (Pigsonthewing); Talk to Andy; Andy's edits
- TiagoLubiana (talk) 18:31, 23 March 2020 (UTC)
- VIGNERON (talk)
- Iwan.Aucamp (talk) 11:39, 5 May 2020 (UTC)
- —M@sssly✉ 15:52, 30 April 2020 (UTC)
- Moebeus Moebeus (talk) 11:41, 27 May 2020 (UTC)
- CamelCaseNick (talk) 17:13, 28 May 2020 (UTC)
- Jvcavv (talk) 21:38, 23 September 2020 (UTC)
- Bodhisattwa (talk) 15:23, 6 November 2020 (UTC)
- DeniseSl (talk) 09:49, 11 November 2020 (UTC)
- VisbyStar (talk) 21:11, 23 March 2021 (UTC)
- RShigapov 7:47, 17 June 2021 (UTC)
- PAC2 (talk) 19:02, 26 June 2021 (UTC)
- Seyed Amir Hosseini Seyed1411 (talk) 19:10, 25 July 2021 (UTC)
- Lectrician1 (talk) 19:48, 10 November 2021 (UTC)
- So9q (talk) 11:03, 18 September 2022 (UTC)
- Waldyrious (talk) 12:33, 27 November 2022 (UTC)
- Elwin Huaman (talk) 11:31, 7 April 2023 (UTC)
- Andrea Westerinen (talk) 23:36, 2 December 2023 (UTC)