It was proposed at the 2012 RDF Validation Workshop[3] as a high-level, concise language for RDF validation.
The shapes can be defined in a human-friendly compact syntax called ShExC or using any RDF serialization formats like JSON-LD or Turtle.
ShEx expressions can be used both to describe RDF and to automatically check the conformance of RDF data. The syntax of ShEx is similar to Turtle and SPARQL while the semantics is inspired by regular expression languages like RelaxNG.
The previous example declares that nodes conforming to shape Person must have one property schema:name with a string value and zero or more properties schema:knows whose values must conform with shape Person.
Implementationsedit
Project
Programming language
Version
Latest release
Compatible ShEx version
Features
value checking
cardinality
manifest shapemap
imports
external shapes
annotations
semantic actions
ShEx.ex
Elixir
v0.1.4
2020-10-13
?
?
?
?
no
no
no
no
Ruby ShEx
Ruby
0.7.1
2022-01-29
2.0
?
?
?
?
?
?
yes
shexjava
Java
none
none
2.0
?
?
?
?
?
?
?
PyShEx
Python
v0.8.1
2022-04-14
2.0
yes
yes
no
no
?
?
?
entityshape
Python
0.0.2
2023-06-24
?
yes
yes
no
no
no
no
no
shaclex
Scala
0.1.70
2020-11-02
?
?
?
?
?
?
?
?
shex.js
JavaScript
v1.0.0-alpha.26
2023-04-25
?
?
?
?
?
?
?
?
Online playgrounds and demosedit
ShExSimple: Online demo based on shex.js
rdfshape: online demo based on shaclex 2018-11-19 at the Wayback Machine
Referencesedit
^ abLabra Gayo, Jose Emilio; Prud'hommeaux, Eric; Boneva, Iovka; Kontokostas, Dimitris (2018). Validating RDF Data. Morgan & Claypool. p. 328. ISBN9781681731650.
^"RDF Validation Workshop: Practical Assurances for Quality RDF Data".
Further readingedit
Specification
Prud'hommeaux, Eric; Boneva, Iovka; Labra Gayo, Jose Emilio; Kellogg, Gregg, eds. (2018). Shape Expressions Language Specification. W3C Draft Community Group Report.
Labra Gayo, Jose Emilio; Prud'hommeaux, Eric; Boneva, Iovka; Kontokostas, Dimitris (2018). Validating RDF Data. Morgan & Claypool.
Other
Thornton, Katherine; Solbrig, Harold; Stupp, Gregory S.; Labra Gayo, Jose Emilio; Mietchen, Daniel; Prud'hommeaux, Eric; Waagmeester, Andra (2018-04-07). "Using Shape Expressions (Shex) To Share Rdf Data Models And To Guide Curation With Rigorous Validation". doi:10.5281/ZENODO.1214521. {{cite journal}}: Cite journal requires |journal= (help)
Katherine, Thornton. "Using ShEx to Investigate Data about Software and File Formats in Wikidata | Software Preservation Network (SPN)". www.softwarepreservationnetwork.org. Retrieved 2023-06-24.
shex, government, body, shareholder, executive, shape, expressions, data, modelling, language, validating, describing, resource, description, framework, shape, expressionsparadigmdata, validationdesigned, byeric, prud, hommeaux, iovka, boneva, jose, emilio, la. For the UK government body see Shareholder Executive Shape Expressions ShEx 2 is a data modelling language for validating and describing a Resource Description Framework RDF ShEx Shape ExpressionsParadigmData ValidationDesigned byEric Prud hommeaux Iovka Boneva Jose Emilio Labra Gayo Gregg Kellogg Shape Expressions W3C Community GroupStable release2 1 November 21 2018 5 years ago 2018 11 21 ScopeSemantic WebImplementation languageJavaScript ScalaFilename extensionsshex sxWebsitewww wbr w3 wbr org wbr community wbr shex wbr Major implementationsshex js 1 Shaclex 1 Influenced byTurtle SPARQL RelaxNGInfluencedSHACLIt was proposed at the 2012 RDF Validation Workshop 3 as a high level concise language for RDF validation The shapes can be defined in a human friendly compact syntax called ShExC or using any RDF serialization formats like JSON LD or Turtle ShEx expressions can be used both to describe RDF and to automatically check the conformance of RDF data The syntax of ShEx is similar to Turtle and SPARQL while the semantics is inspired by regular expression languages like RelaxNG Contents 1 Example 2 Implementations 3 Online playgrounds and demos 4 References 5 Further reading 6 See alsoExample editPREFIX lt http example org gt PREFIX schema lt http schema org gt PREFIX xsd lt http www w3 org 2001 XMLSchema gt Person schema name xsd string schema knows Person The previous example declares that nodes conforming to shape Person must have one property schema name with a string value and zero or more properties schema knows whose values must conform with shape Person Implementations editProject Programming language Version Latest release Compatible ShEx version Featuresvalue checking cardinality manifest shapemap imports external shapes annotations semantic actionsShEx ex Elixir v0 1 4 2020 10 13 no no no noRuby ShEx Ruby 0 7 1 2022 01 29 2 0 yesshexjava Java none none 2 0 PyShEx Python v0 8 1 2022 04 14 2 0 yes yes no no entityshape Python 0 0 2 2023 06 24 yes yes no no no no noshaclex Scala 0 1 70 2020 11 02 shex js JavaScript v1 0 0 alpha 26 2023 04 25 Online playgrounds and demos editShExSimple Online demo based on shex js rdfshape online demo based on shaclex Archived 2018 11 19 at the Wayback MachineReferences edit a b Labra Gayo Jose Emilio Prud hommeaux Eric Boneva Iovka Kontokostas Dimitris 2018 Validating RDF Data Morgan amp Claypool p 328 ISBN 9781681731650 Shape Expressions Language 2 0 27 March 2017 RDF Validation Workshop Practical Assurances for Quality RDF Data Further reading editSpecificationPrud hommeaux Eric Boneva Iovka Labra Gayo Jose Emilio Kellogg Gregg eds 2018 Shape Expressions Language Specification W3C Draft Community Group Report Labra Gayo Jose Emilio Prud hommeaux Eric Boneva Iovka Kontokostas Dimitris 2018 Validating RDF Data Morgan amp Claypool OtherThornton Katherine Solbrig Harold Stupp Gregory S Labra Gayo Jose Emilio Mietchen Daniel Prud hommeaux Eric Waagmeester Andra 2018 04 07 Using Shape Expressions Shex To Share Rdf Data Models And To Guide Curation With Rigorous Validation doi 10 5281 ZENODO 1214521 a href Template Cite journal html title Template Cite journal cite journal a Cite journal requires journal help Katherine Thornton Using ShEx to Investigate Data about Software and File Formats in Wikidata Software Preservation Network SPN www softwarepreservationnetwork org Retrieved 2023 06 24 See also editSHACL Wikidata XML schemas Retrieved from https en wikipedia org w index php title ShEx amp oldid 1171102639, wikipedia, wiki, book, books, library,