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

A WikidataCon 2017 session on Shape Expressions (ShEx)

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

Technical Descriptions edit

Other useful resources edit

Property proposals edit

Tools edit

See also: ShEx § Implementations on the English Wikipedia.
ShExStatements
ShExStatements allows users to generate shape expressions (ShEx/entity schemas) from simple CSV statements and files. It can be used from both web interface as well as the command line.
by Jsamwrites
Entityshape (Q119899931)
A Python library based on code by Mark Tully (Teester) to compare a Wikidata item with an entity schema and determine whether it is valid and what triggered the invalidation if it isn’t.
by So9q
  • 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

Templates edit

Issue tracker on Phabricator edit

Community chat edit

Participants edit

The participants listed below can be notified using the following template in discussions:
{{Ping project|Schemas}}

Subpages edit