请输入您要查询的百科知识:

 

词条 ShEx
释义

  1. Example

  2. Implementations

  3. Online playgrounds and demos

  4. References

  5. Further reading

  6. See also

{{Infobox programming language
| name = ShEx - Shape Expressions
| logo =
| paradigm = Data Validation
| year_started = 2013
| designer = Eric Prud'hommeaux, Iovka Boneva, Jose Emilio Labra Gayo, Gregg Kellogg, [https://www.w3.org/community/shex/ Shape Expressions W3C Community Group]
| programming language = Javascript, Scala
| latest_release_version = 2.1
| latest_release_date = {{Start date and age|2018|11|21}}
| file ext = shex, sx
| scope = Semantic Web
| abbreviation = ShEx
| website = {{url|https://www.w3.org/community/shex/}}
| implementations = [https://github.com/shexSpec/shex.js/ shex.js][1], Shaclex[1]
| influenced by = Turtle, SPARQL, RelaxNG
| influenced = SHACL
}}

Shape Expressions (ShEx) [2] is a language for validating and describing RDF.

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 Resource Description Framework (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 :

PREFIX schema:

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

  • [https://github.com/shexSpec/shex.js/ shex.js]: Javascript
  • shaclex: Scala library with support for Jena (framework) and RDF4J
  • [https://pypi.org/project/PyShEx/ PyShEx]: Python
  • [https://github.com/iovka/shex-java shexjava]: Java

Online playgrounds and demos

  • [https://rawgit.com/shexSpec/shex.js/master/doc/shex-simple.html ShExSimple]: Online demo based on [https://github.com/shexSpec/shex.js/ shex.js]
  • rdfshape: online demo based on shaclex

References

1. ^{{cite book | last1 = Labra Gayo | first1 = Jose Emilio | last2 = Prud'hommeaux | first2 = Eric | last3 = Boneva | first3 = Iovka | last4 = Kontokostas | first4 = Dimitris | title = Validating RDF Data | publisher = Morgan & Claypool | pages = 328 | date = 2018 | isbn = 9781681731650 | url = http://book.validatingrdf.com/ }}
2. ^http://shex.io/shex-semantics-20170327/
3. ^https://www.w3.org/2012/12/rdf-val/

Further reading

Specification
  • {{cite book| editor1-first = Eric| editor1-last = Prud'hommeaux| editor2-first=Iovka| editor2-last=Boneva| editor3-first=Jose Emilio|editor3-last=Labra Gayo|editor4-first=Gregg|editor4-last=Kellogg| title = Shape Expressions Language Specification| url = https://shexspec.github.io/spec/| year = 2018| publisher = W3C Draft Community Group Report|ref = harv}}
  • {{cite book| author1-first = Jose Emilio| author1-last = Labra Gayo| author2-first=Eric| author2-last=Prud'hommeaux| author3-first=Iovka|author3-last=Boneva|author4-first=Dimitris|author4-last=Kontokostas| title = Validating RDF Data| url = https://book.validatingrdf.com/| year = 2018| publisher = Morgan & Claypool |ref = harv}}

See also

  • SHACL
  • Wikidata
  • XML schemas
{{Semantic Web}}

8 : Resource Description Framework|Data modeling languages|Declarative programming languages|RDF data access|Resource Description Framework|Semantic Web|World Wide Web Consortium standards|SPARQL

随便看

 

开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。

 

Copyright © 2023 OENC.NET All Rights Reserved
京ICP备2021023879号 更新时间:2024/11/10 18:34:18