axiothOntology Hub

Ontologies / shex

Shape Expression Vocabulary

Original text (English), from: BioregistryThe Shape Expressions (ShEx) language describes RDF nodes and graph structures. A node constraint describes an RDF node (IRI, blank node or literal) and a shape describes the triples involving nodes in an RDF graph. These descriptions identify predicates and their associated cardinalities and datatypes. ShEx shapes can be used to communicate data structures associated with some process or interface, generate or validate data, or drive user interfaces.

Namespace IRI
http://www.w3.org/ns/shex#
Type
Ontology
Field
Metadata and data catalogues
Version
https://github.com/shexSpec/shexTest/commit/e51237875c69bb1fbc86def8f3c895b213a6ff9c
Licence statement
License not verified
Standard or contact
Not registered
Definition file check
File parsed · Nov 30, 2026 UTC
Collected from
Bioregistry

At a glance

Derived from the parsed definition file, not written by an editor.

Classes
28
Properties
45
Triples in file
537
Connections
3
Papers and standards
0

Counted as stated directly in the definition file, within its own namespace, without imports or inference. The file also declares 0 terms from other namespaces.

Central classes

The classes with the most subclass and property links.

Shape ExpressionStemStemRangeTriple ExpressionNode ConstraintTriple Constraint

Top of the hierarchy

Classes with subclasses but no parent inside this file.

Shape ExpressionStemStemRangeTriple ExpressionQuery Map

What it lets you say

Properties read as domain, property, range.

  • Triple Constraintvalue expressionShape Expression
  • Shape OrextendsShape Expression
  • SchemastartShape Expression
  • Query MapshapeShape Expression
  • Shape Notshape expressionShape Expression
  • Shape Andshape expressionsShape Expression
  • StemRangeexclusionStem
  • Node ConstraintvaluesStem

Class hierarchy

Open a class to follow its subclasses downward. The number is how many direct subclasses it has.

  • Shape Expression6
    • Node Constraint
    • Shape And
    • Shape External
    • Shape Not
    • Shape Or
    • Shape Or
  • Stem3
    • IRI Stem
    • Language Stem
    • Literal Stem
  • StemRange3
    • IRI StemRange
    • Language StemRange
    • Literal StemRange
  • Triple Expression3
    • Each Of
    • One Of
    • Triple Constraint
  • Query Map1
    • Shape Map

Class graph

Select a class to read its original definition and the properties attached to it. Drag to move, scroll to zoom.

subclass of (child to parent)property (domain to range)

All 28 classes
TermOriginal definition
Node Constraint
shex:NodeConstraint
A constraint on the type or value of an RDF Node.
Shape Expression
shex:ShapeExpression
The abstract class of Shape Expressions.
Triple Constraint
shex:TripleConstraint
A constraint on a triple having a specific predicate and optionally a shape expression used for matching values.
Each Of
shex:EachOf
A TripleExpression composed of one or more sub-expressions, all of which must match.
One Of
shex:OneOf
A TripleExpression composed of one or more sub-expressions, one of which must match.
Stem
shex:Stem
Abstract class for Stems
StemRange
shex:StemRange
Abstract Class for Stem Ranges
Shape Or
shex:Shape
A shapes schema is captured in a Schema object where shapes is a mapping from shape label to shape expression.
Triple Expression
shex:TripleExpression
The abstract class of Triple Expressions.
Schema
shex:Schema
A Schema contains the set of shapes, used for matching a focus node.
Semantic Actions
shex:SemAct
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.
Annotation
shex:Annotation
Annotations provide a format-independent way to provide additional information about elements in a schema.
Query Map
shex:QueryMap
A map of node selectors to shape labels, used to select the nodes to be validated against particular shapes. Node selectors are RDF nodes or triple patterns.
Shape Declaration
shex:ShapeDecl
Associates a shape expression with a label, and optionally declares it abstract. The shapes in a Schema are ShapeDecls.
Language
shex:Language
An Language tag used for matching Literal Languages.
Shape And
shex:ShapeAnd
A ShapeExpression composed of one or more sub-expressions, all of which must match.
Shape Map
shex:ShapeMap
A QueryMap in which each node selector is an RDF node; associates RDF nodes with shapes, optionally recording the validation status of each association.
Shape Not
shex:ShapeNot
A ShapeNot is satisfied when it’s included ShapeExpression is not satisfied.
Shape Or
shex:ShapeOr
A ShapeExpression composed of one or more sub-expressions, one of which must match.
IRI Stem
shex:IriStem
An IRI prefix used for matching IRIs.
IRI StemRange
shex:IriStemRange
An IRI prefix (or wildcard) along with a set of excluded values, used for node matching.
Language Stem
shex:LanguageStem
An Language prefix used for matching Literal Languages.
Language StemRange
shex:LanguageStemRange
An Language prefix (or wildcard) along with a set of excluded values, used for node matching.
Literal Stem
shex:LiteralStem
An Literal prefix used for matching Literals.
Literal StemRange
shex:LiteralStemRange
An Literal prefix (or wildcard) along with a set of excluded values, used for node matching.
Node Kind
shex:NodeKind
The set of kinds of RDF Nodes.
Shape External
shex:ShapeExternal
A reference to a shape defined in some external Schema.
Wildcard
shex:Wildcard
Indicates that a stem is a Wildcard, rather than a URI prefix.
All 45 properties
TermOriginal definition
abstract
shex:abstract
Declares a ShapeDecl abstract, meaning that every reference to it must also identify at least one non-abstract shape.
annotation
shex:annotation
Annotations on a TripleExpression.
closed
shex:closed
Indicates that a Shape is closed, meaning that it may contain no property values other than those used within TripleConstraints.
code
shex:code
Code executed by Semantic Action.
datatype
shex:datatype
A datatype constraint.
exclusion
shex:exclusion
Values that are excluded from value matching.
expression
shex:expression
Expression associated with the TripleExpression.
expressions
shex:expressions
List of 2 or more expressions associated with the TripleExpression.
extends
shex:extends
Base shape expressions for this shape.
extra
shex:extra
Properties which may have extra values beyond those matched through a constraint.
flags
shex:flags
Regular expression flags
fraction digits
shex:fractiondigits
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.
imports
shex:imports
Schemas imported by this Schema; their shape and triple expression labels are also in scope here.
inverse
shex:inverse
Constrains the subject of a triple, rather than the object.
language tag
shex:languageTag
The value used to match the language tag of a language-tagged string.
length
shex:length
The exact length of the value of the cell.
maximum cardinality
shex:max
Maximum number of times this TripleExpression may match; -1 for “*”
max exclusive
shex:maxexclusive
An atomic property that contains a single number that is the maximum valid value (exclusive).
max inclusive
shex:maxinclusive
An atomic property that contains a single number that is the maximum valid value (inclusive).
max length
shex:maxlength
A numeric atomic property that contains a single integer that is the maximum length of the value.
minimum cardinatliy
shex:min
Minimum number of times this TripleExpression may match.
min exclusive
shex:minexclusive
An atomic property that contains a single number that is the minimum valid value (exclusive).
min inclusive
shex:mininclusive
An atomic property that contains a single number that is the minimum valid value (inclusive).
min length
shex:minlength
An atomic property that contains a single integer that is the minimum length of the value.
name
shex:name
Identifier of SemAct extension.
node
shex:node
An RDF node, or a triple pattern which is used to select RDF nodes to be validated.
node kind
shex:nodeKind
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.
numericFacet
shex:numericFacet
Abstract property of numeric facets on a NodeConstraint.
object
shex:object
The object of an Annotation.
pattern
shex:pattern
A regular expression used for matching a value.
predicate
shex:predicate
The predicate of a TripleConstraint or Annotation.
semantic action
shex:semActs
Semantic Actions on this TripleExpression.
shape
shex:shape
A ShEx shape expression label identifying the shape expression against which the selected nodes are validated, or the string "START" for the schema's start shape expression.
shape expression
shex:shapeExpr
Shape Expression referenced by this shape or shape declaration.
shape expressions
shex:shapeExprs
A list of 2 or more Shape Expressions referenced by this shape.
shapes
shex:shapes
Shape declarations in this Schema.
start
shex:start
A ShapeExpression matched against the focus node prior to any other mapped expressions.
start actions
shex:startActs
Semantic Actions run on the Schema.
status
shex:status
The validation status of a node/shape association: "conformant" or "nonconformant". Defaults to "conformant".
stem
shex:stem
A stem value used for matching or excluding values.
stringFacet
shex:stringFacet
An abstract property of string facets on a NodeConstraint.
total digits
shex:totaldigits
for "totaldigits" constraints, v equals the number of digits in the XML Schema canonical form[xmlschema-2] of the value of n
value expression
shex:valueExpr
A ShapeExpression used for matching the object (or subject if inverted) of a TripleConstraint.
values
shex:values
A value restriction on a NodeConstraint.
xsFacet
shex:xsFacet
An abstract property of string and numeric facets on a NodeConstraint.

Connections

Relations stated in a definition file or an official registry. Each row shows where the statement comes from.

What this ontology builds on 3

What builds on this ontology 0

None

rdfdctermsxsdgithub.com/shexspec/shexs…shrrcsvwjsonscowlshex

Ontology with a stated relationPaper or standardRepositorySimilarity candidate (computed)

Show the evidence table (3 rows)
DirectionOntologyRelationEvidence
This → otherThe RDF Concepts Vocabularyreuses terms (5 terms)definition file
type, Property, first
This → otherDCMI Metadata Termsreuses terms (3 terms)definition file
title, description, date
This → otherXML Schemareuses terms (5 terms)definition file
boolean, string, integer

Similarity candidates

Candidates are ranked by shared words in descriptions and term labels. They are a starting point for your own check, not a statement of equivalence, compatibility or official relation.

Similar ontologies

Similar papers and standards

Papers and standards

No paper or standard is linked yet. A missing paper is not a defect: an official specification can serve as evidence.

Files and repository

FileFormatLocation
Definition fileTurtlehttps://www.w3.org/ns/shex.ttl
Repository—https://github.com/shexspec/shexspec.github.io

Check record

  1. Fetch fileDone
  2. Parse RDFDone
  3. Extract termsDone

A parsed file means it could be read. It does not vouch for logical consistency or modelling quality.

Definition file check
File parsed
Checked at
Nov 30, 2026 UTC
Format
Turtle
Parser
n3
Size
19,976 B
SHA-256
3dd94fb3f96ac3d0e41c665705b5ac90d6fd82aa42ca180f56e4b628fb824206

Bioregistry page for this resource