Shape Expression Vocabulary
This document describes the RDFS vocabulary description used in the Shape Expression Language (ShEx) shex-semantics along with the default JSON-LD Context and shape expression to validate RDF versions of shapes.
Annotation
Annotations provide a format-independent way to provide additional information about elements in a schema.
Each Of
A TripleExpression composed of one or more sub-expressions, all of which must match.
IRI Stem
An IRI prefix used for matching IRIs.
IRI StemRange
An IRI prefix (or wildcard) along with a set of excluded values, used for node matching.
Language
An Language tag used for matching Literal Languages.
Language Stem
An Language prefix used for matching Literal Languages.
Language StemRange
An Language prefix (or wildcard) along with a set of excluded values, used for node matching.
Literal Stem
An Literal prefix used for matching Literals.
Literal StemRange
An Literal prefix (or wildcard) along with a set of excluded values, used for node matching.
Node Constraint
A constraint on the type or value of an RDF Node.
Node Kind
The set of kinds of RDF Nodes.
One Of
A TripleExpression composed of one or more sub-expressions, one of which must match.
Schema
A Schema contains the set of shapes, used for matching a focus node.
Semantic Actions
A list of Semantic Actions that serve as an extension point for Shape Expressions. They appear in lists in Schema's startActs and Shape, OneOf, EachOf and TripleConstraint's semActs.
Shape Or
A shapes schema is captured in a Schema object where shapes is a mapping from shape label to shape expression.
Shape And
A ShapeExpression composed of one or more sub-expressions, all of which must match.
Shape Expression
The abstract class of Shape Expressions.
Shape External
A reference to a shape defined in some external Schema.
Shape Not
A ShapeNot is satisfied when it’s included ShapeExpression is not satisfied.
A ShapeExpression composed of one or more sub-expressions, one of which must match.
Stem
Abstract class for Stems
StemRange
Abstract Class for Stem Ranges
Triple Constraint
A constraint on a triple having a specific predicate and optionally a shape expression used for matching values.
Triple Expression
The abstract class of Triple Expressions.
Wildcard
Indicates that a stem is a Wildcard, rather than a URI prefix.
annotation
Annotations on a TripleExpression.
closed
Indicates that a Shape is closed, meaning that it may contain no property values other than those used within TripleConstraints.
code
Code executed by Semantic Action.
datatype
A datatype constraint.
exclusion
Values that are excluded from value matching.
expression
Expression associated with the TripleExpression.
expressions
List of 2 or more expressions associated with the TripleExpression.
extra
Properties which may have extra values beyond those matched through a constraint.
flags
Regular expression flags
fraction digits
for "fractiondigits" constraints, v is less than or equals the number of digits to the right of the decimal place in the XML Schema canonical form[xmlschema-2] of the value of n, ignoring trailing zeros.
inverse
Constrains the subject of a triple, rather than the object.
language tag
The value used to match the language tag of a language-tagged string.
length
The exact length of the value of the cell.
maximum cardinality
Maximum number of times this TripleExpression may match; -1 for “*”
max exclusive
An atomic property that contains a single number that is the maximum valid value (exclusive).
max inclusive
An atomic property that contains a single number that is the maximum valid value (inclusive).
max length
A numeric atomic property that contains a single integer that is the maximum length of the value.
minimum cardinatliy
Minimum number of times this TripleExpression may match.
min exclusive
An atomic property that contains a single number that is the minimum valid value (exclusive).
min inclusive
An atomic property that contains a single number that is the minimum valid value (inclusive).
min length
An atomic property that contains a single integer that is the minimum length of the value.
name
Identifier of SemAct extension.
node kind
Restiction on the kind of node matched; restricted to the defined instances of NodeKind. One of shex:iri, shex:bnode, shex:literal, or shex:nonliteral.
Abstract property of numeric facets on a NodeConstraint.
object
The object of an Annotation.
pattern
A regular expression used for matching a value.
predicate
The predicate of a TripleConstraint or Annotation.
semantic action
Semantic Actions on this TripleExpression.
shape expression
Shape Expression referenced by this shape.
shape expressions
A list of 2 or more Shape Expressions referenced by this shape.
shapes
Shapes in this Schema.
start
A ShapeExpression matched against the focus node prior to any other mapped expressions.
start actions
Semantic Actions run on the Schema.
stem
A stem value used for matching or excluding values.
An abstract property of string facets on a NodeConstraint.
total digits
for "totaldigits" constraints, v equals the number of digits in the XML Schema canonical form[xmlschema-2] of the value of n
value expression
A ShapeExpression used for matching the object (or subject if inverted) of a TripleConstraint.
values
A value restriction on a NodeConstraint.
An abstract property of string and numeric facets on a NodeConstraint.
bnode
Requires node to be a Blank Node
iri
Requires node to be an IRI
literal
Requires node to be an rdf:Literal
nonliteral
Requires node to be a Blank Node or IRI