„Shape Expressions (ShEx)“ – Versionsunterschied
| [ungesichtete Version] | [ungesichtete Version] |
Die Seite wurde neu angelegt: „{{Short description|Language for validating, describing or transforming RDF graphs}} {{For|the UK government body|Shareholder Executive}} {{Infobox programming language | name = ShEx - Shape Expressions | logo = File:ShexLogo.png | paradigm = Data Validation | year_started = 2013 | designer = Eric Prud'hommeaux, Iovka Boneva, Jose Emilio Labra Gayo, Gregg Kellogg, [https://www.w3.org/community/shex/ Sha…“ |
KKeine Bearbeitungszusammenfassung |
||
| Zeile 30: | Zeile 30: | ||
}} | }} | ||
'''Shape Expressions''' ('''ShEx''') <ref>{{Cite web|url=http://shex.io/shex-semantics-20170327/|title=Shape Expressions Language 2.0|date=27 March 2017 }}</ref> is a [[data model]]ling language for validating and describing a [[Resource Description Framework | '''Shape Expressions''' ('''ShEx''') <ref>{{Cite web|url=http://shex.io/shex-semantics-20170327/|title=Shape Expressions Language 2.0|date=27 March 2017 }}</ref> is a [[data model]]ling language for validating and describing a [[Resource Description Framework (RDF)]]. | ||
It was proposed at the 2012 RDF Validation Workshop<ref>{{Cite web|url=https://www.w3.org/2012/12/rdf-val/|title = RDF Validation Workshop: Practical Assurances for Quality RDF Data}}</ref> as a high-level, concise language for RDF validation. | It was proposed at the 2012 RDF Validation Workshop<ref>{{Cite web|url=https://www.w3.org/2012/12/rdf-val/|title = RDF Validation Workshop: Practical Assurances for Quality RDF Data}}</ref> as a high-level, concise language for RDF validation. | ||
Version vom 21. Oktober 2025, 06:19 Uhr
Vorlage:Short description Vorlage:For Vorlage:Infobox programming language
Shape Expressions (ShEx) [1] is a data modelling language for validating and describing a Resource Description Framework (RDF).
It was proposed at the 2012 RDF Validation Workshop[2] 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.
Example
PREFIX : <http://example.org/>
PREFIX schema: <http://schema.org/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
: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
Online playgrounds and demos
- ShExSimple: Online demo based on shex.js
- rdfshape: online demo based on shaclex web.archive.org Fehler bei Vorlage * Parametername unbekannt (Vorlage:Webarchiv): "date" Fehler bei Vorlage:Webarchiv: Genau einer der Parameter 'wayback', 'webciteID', 'archive-today', 'archive-is' oder 'archiv-url' muss angegeben werden. Fehler bei Vorlage:Webarchiv: Archiv-URL im Parameter 'url' anstatt URL der Originalquelle. Entferne den vor der Original-URL stehenden Mementobestandteil und setze den Archivierungszeitstempel in den Parameter 'wayback', 'webciteID', 'archive.today' oder 'archive-is' ein, sofern nicht bereits befüllt.
References
Further reading
Specification
- Shape Expressions Language Specification. W3C Draft Community Group Report, 2018 (github.io).
- Validating RDF Data. Morgan & Claypool, 2018 (validatingrdf.com).
Other
- Katherine Thornton, Harold Solbrig, Gregory S. Stupp, Jose Emilio Labra Gayo, Daniel Mietchen, Eric Prud'hommeaux, Andra Waagmeester: Using Shape Expressions (Shex) To Share Rdf Data Models And To Guide Curation With Rigorous Validation. In: Zenodo. 7. April 2018, doi:10.5281/ZENODO.1214521 (englisch, zenodo.org).
- Thornton Katherine: Using ShEx to Investigate Data about Software and File Formats in Wikidata | Software Preservation Network (SPN). In: www.softwarepreservationnetwork.org. Abgerufen am 24. Juni 2023.