axiothOntology Hub

Ontologies / sh

SHACL Shapes Constraint Language

Original text (English), from: definition fileThis vocabulary defines terms used in SHACL, the W3C Shapes Constraint Language.

Namespace IRI
http://www.w3.org/ns/shacl#
Type
Vocabulary
Field
Semantic web core
Version
Not verified
Licence statement
W3C-20150513 (Bioregistry)
Standard or contact
W3C Recommendation
Definition file check
File parsed · Nov 30, 2026 UTC
Collected from
Site seed list
Also listed in
Linked Open Vocabularies (LOV), Bioregistry
Reuse counted by LOV
10 vocabularies, 0 datasets

At a glance

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

Classes
40
Properties
101
Triples in file
1,128
Connections
22
Papers and standards
1

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.

ShapeAbstract resultJavaScript executableValidatorSPARQL SELECT executableSPARQL ASK executable

Top of the hierarchy

Classes with subclasses but no parent inside this file.

ShapeAbstract resultJavaScript executableValidatorParameterizableSPARQL executableRuleTarget

What it lets you say

Properties read as domain, property, range.

  • Abstract resultsource shapeShape
  • ShaperuleRule
  • RuleconditionShape
  • ShapepropertyProperty shape
  • Abstract resultdetailAbstract result
  • ShapetargetTarget
  • ShapeseveritySeverity
  • Abstract resultsource constraint componentConstraint component

Class hierarchy

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

  • JavaScript executable6
    • JavaScript function
    • JavaScript rule
    • JavaScript target
    • JavaScript target type
    • JavaScript validator
    • JavaScript-based constraint
  • SPARQL executable4
    • SPARQL SELECT executable5
      • SPARQL constraint
      • SPARQL function
      • SPARQL SELECT validator
      • SPARQL target
      • SPARQL target type
    • SPARQL ASK executable4
      • SPARQL ASK validator
      • SPARQL function
      • SPARQL target
      • SPARQL target type
    • SPARQL CONSTRUCT executable1
      • SPARQL CONSTRUCT rule
    • SPARQL UPDATE executable
  • Validator3
    • JavaScript validator
    • SPARQL ASK validator
    • SPARQL SELECT validator
  • Parameterizable3
    • Function2
      • JavaScript function
      • SPARQL function
    • Target type2
      • JavaScript target type
      • SPARQL target type
    • Constraint component
  • Rule3
    • A rule based on triple (subject, predicate, object) pattern.
    • JavaScript rule
    • SPARQL CONSTRUCT rule
  • Shape2
    • Property shape1
      • Parameter
    • Node shape
  • Target2
    • JavaScript target
    • SPARQL target
  • Abstract result1
    • Validation result

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 40 classes
TermOriginal definition
Shape
sh:Shape
A shape is a collection of constraints that may be targeted for certain nodes.
Abstract result
sh:AbstractResult
The base class of validation results, typically not instantiated directly.
Property shape
sh:PropertyShape
A property shape is a shape that specifies constraints on the values of a focus node for a given property or path.
JavaScript executable
sh:JSExecutable
Abstract base class of resources that declare an executable JavaScript.
Validator
sh:Validator
The class of validators, which provide instructions on how to process a constraint definition. This class serves as base class for the SPARQL-based validators and other possible implementations.
SPARQL SELECT executable
sh:SPARQLSelectExecutable
The class of SPARQL executables based on a SELECT query.
Parameterizable
sh:Parameterizable
Superclass of components that can take parameters, especially functions and constraint components.
SPARQL executable
sh:SPARQLExecutable
The class of resources that encapsulate a SPARQL query.
SPARQL ASK executable
sh:SPARQLAskExecutable
The class of SPARQL executables that are based on an ASK query.
Rule
sh:Rule
The class of SHACL rules. Never instantiated directly.
Constraint component
sh:ConstraintComponent
The class of constraint components.
Result annotation
sh:ResultAnnotation
A class of result annotations, which define the rules to derive the values of a given annotation property as extra values for a validation result.
Validation report
sh:ValidationReport
The class of SHACL validation reports.
Prefix declaration
sh:PrefixDeclaration
The class of prefix declarations, consisting of pairs of a prefix with a namespace.
Target
sh:Target
The base class of targets such as those based on SPARQL queries.
Target type
sh:TargetType
The (meta) class for parameterizable targets. Instances of this are instantiated as values of the sh:target property.
Function
sh:Function
The class of SHACL functions.
A rule based on triple (subject, predicate, object) pattern.
sh:TripleRule
Not registered
Severity
sh:Severity
The class of validation result severity levels, including violation and warning levels.
Parameter
sh:Parameter
The class of parameter declarations, consisting of a path predicate and (possibly) information about allowed value type, cardinality and other characteristics.
SPARQL SELECT validator
sh:SPARQLSelectValidator
The class of validators based on SPARQL SELECT queries. The queries are evaluated for each focus node and are supposed to produce bindings for all focus nodes that do not conform.
SPARQL CONSTRUCT executable
sh:SPARQLConstructExecutable
The class of SPARQL executables that are based on a CONSTRUCT query.
SPARQL target
sh:SPARQLTarget
The class of targets that are based on SPARQL queries.
SPARQL target type
sh:SPARQLTargetType
The (meta) class for parameterizable targets that are based on SPARQL queries.
SPARQL function
sh:SPARQLFunction
A function backed by a SPARQL query - either ASK or SELECT.
JavaScript library
sh:JSLibrary
Represents a JavaScript library, typically identified by one or more URLs of files to include.
Node shape
sh:NodeShape
A node shape is a shape that specifies constraint that need to be met with respect to focus nodes.
Node kind
sh:NodeKind
The class of all node kinds, including sh:BlankNode, sh:IRI, sh:Literal or the combinations of these: sh:BlankNodeOrIRI, sh:BlankNodeOrLiteral, sh:IRIOrLiteral.
Validation result
sh:ValidationResult
The class of validation results.
SPARQL ASK validator
sh:SPARQLAskValidator
The class of validators based on SPARQL ASK queries. The queries are evaluated for each value node and are supposed to return true if the given node conforms.
SPARQL UPDATE executable
sh:SPARQLUpdateExecutable
The class of SPARQL executables based on a SPARQL UPDATE.
SPARQL constraint
sh:SPARQLConstraint
The class of constraints based on SPARQL SELECT queries.
Property group
sh:PropertyGroup
Instances of this class represent groups of property shapes that belong together.
SPARQL CONSTRUCT rule
sh:SPARQLRule
The class of SHACL rules based on SPARQL CONSTRUCT queries.
JavaScript target
sh:JSTarget
The class of targets that are based on JavaScript functions.
JavaScript target type
sh:JSTargetType
The (meta) class for parameterizable targets that are based on JavaScript functions.
JavaScript-based constraint
sh:JSConstraint
The class of constraints backed by a JavaScript function.
JavaScript function
sh:JSFunction
The class of SHACL functions that execute a JavaScript function when called.
JavaScript rule
sh:JSRule
The class of SHACL rules expressed using JavaScript.
JavaScript validator
sh:JSValidator
A SHACL validator based on JavaScript. This can be used to declare SHACL constraint components that perform JavaScript-based validation when used.
All 101 properties
TermOriginal definition
deactivated
sh:deactivated
If set to true then all nodes conform to this.
target class
sh:targetClass
Links a shape to a class, indicating that all instances of the class must conform to the shape.
target node
sh:targetNode
Links a shape to individual nodes, indicating that these nodes must conform to the shape.
target objects of
sh:targetObjectsOf
Links a shape to a property, indicating that all all objects of triples that have the given property as their predicate must conform to the shape.
target subjects of
sh:targetSubjectsOf
Links a shape to a property, indicating that all subjects of triples that have the given property as their predicate must conform to the shape.
message
sh:message
A human-readable message (possibly with placeholders for variables) explaining the cause of the result.
severity
sh:severity
Defines the severity that validation results produced by a shape must have. Defaults to sh:Violation.
conforms
sh:conforms
True if the validation did not produce any validation results, and false otherwise.
result
sh:result
The validation results contained in a validation report.
shapes graph well-formed
sh:shapesGraphWellFormed
If true then the validation engine was certain that the shapes graph has passed all SHACL syntax requirements during the validation process.
detail
sh:detail
Links a result with other results that provide more details, for example to describe violations against nested shapes.
focus node
sh:focusNode
The focus node that was validated when the result was produced.
result message
sh:resultMessage
Human-readable messages explaining the cause of the result.
result path
sh:resultPath
The path of a validation result, based on the path of the validated property shape.
result severity
sh:resultSeverity
The severity of the result, e.g. warning.
source constraint
sh:sourceConstraint
The constraint that was validated when the result was produced.
source shape
sh:sourceShape
The shape that is was validated when the result was produced.
source constraint component
sh:sourceConstraintComponent
The constraint component that is the source of the result.
value
sh:value
An RDF node that has caused the result.
shapes graph
sh:shapesGraph
Shapes graphs that should be used when validating this data graph.
suggested shapes graph
sh:suggestedShapesGraph
Suggested shapes graphs for this ontology. The values of this property may be used in the absence of specific sh:shapesGraph statements.
entailment
sh:entailment
An entailment regime that indicates what kind of inferencing is required by a shapes graph.
path
sh:path
Specifies the property path of a property shape.
inverse path
sh:inversePath
The (single) value of this property represents an inverse path (object to subject).
alternative path
sh:alternativePath
The (single) value of this property must be a list of path elements, representing the elements of alternative paths.
zero or more path
sh:zeroOrMorePath
The (single) value of this property represents a path that is matched zero or more times.
one or more path
sh:oneOrMorePath
The (single) value of this property represents a path that is matched one or more times.
zero or one path
sh:zeroOrOnePath
The (single) value of this property represents a path that is matched zero or one times.
parameter
sh:parameter
The parameters of a function or constraint component.
label template
sh:labelTemplate
Outlines how human-readable labels of instances of the associated Parameterizable shall be produced. The values can contain {?paramName} as placeholders for the actual values of the given parameter.
optional
sh:optional
Indicates whether a parameter is optional.
validator
sh:validator
The validator(s) used to evaluate constraints of either node or property shapes.
shape validator
sh:nodeValidator
The validator(s) used to evaluate a constraint in the context of a node shape.
property validator
sh:propertyValidator
The validator(s) used to evaluate a constraint in the context of a property shape.
and
sh:and
RDF list of shapes to validate the value nodes against.
class
sh:class
The type that all value nodes must have.
closed
sh:closed
If set to true then the shape is closed.
ignored properties
sh:ignoredProperties
An optional RDF list of properties that are also permitted in addition to those explicitly enumerated via sh:property/sh:path.
datatype
sh:datatype
Specifies an RDF datatype that all value nodes must have.
disjoint
sh:disjoint
Specifies a property where the set of values must be disjoint with the value nodes.
equals
sh:equals
Specifies a property that must have the same values as the value nodes.
has value
sh:hasValue
Specifies a value that must be among the value nodes.
in
sh:in
Specifies a list of allowed values so that each value node must be among the members of the given list.
language in
sh:languageIn
Specifies a list of language tags that all value nodes must have.
less than
sh:lessThan
Specifies a property that must have smaller values than the value nodes.
less than or equals
sh:lessThanOrEquals
Specifies a property that must have smaller or equal values than the value nodes.
max count
sh:maxCount
Specifies the maximum number of values in the set of value nodes.
max exclusive
sh:maxExclusive
Specifies the maximum exclusive value of each value node.
max inclusive
sh:maxInclusive
Specifies the maximum inclusive value of each value node.
max length
sh:maxLength
Specifies the maximum string length of each value node.
min count
sh:minCount
Specifies the minimum number of values in the set of value nodes.
min exclusive
sh:minExclusive
Specifies the minimum exclusive value of each value node.
min inclusive
sh:minInclusive
Specifies the minimum inclusive value of each value node.
min length
sh:minLength
Specifies the minimum string length of each value node.
node
sh:node
Specifies the node shape that all value nodes must conform to.
node kind
sh:nodeKind
Specifies the node kind (e.g. IRI or literal) each value node.
not
sh:not
Specifies a shape that the value nodes must not conform to.
or
sh:or
Specifies a list of shapes so that the value nodes must conform to at least one of the shapes.
flags
sh:flags
An optional flag to be used with regular expression pattern matching.
pattern
sh:pattern
Specifies a regular expression pattern that the string representations of the value nodes must match.
property
sh:property
Links a shape to its property shapes.
qualified max count
sh:qualifiedMaxCount
The maximum number of value nodes that can conform to the shape.
qualified min count
sh:qualifiedMinCount
The minimum number of value nodes that must conform to the shape.
qualified value shape
sh:qualifiedValueShape
The shape that a specified number of values must conform to.
qualified value shapes disjoint
sh:qualifiedValueShapesDisjoint
Can be used to mark the qualified value shape to be disjoint with its sibling shapes.
unique languages
sh:uniqueLang
Specifies whether all node values must have a unique (or no) language tag.
exactly one
sh:xone
Specifies a list of shapes so that the value nodes must conform to exactly one of the shapes.
ask
sh:ask
The SPARQL ASK query to execute.
construct
sh:construct
The SPARQL CONSTRUCT query to execute.
select
sh:select
The SPARQL SELECT query to execute.
update
sh:update
The SPARQL UPDATE to execute.
prefixes
sh:prefixes
The prefixes that shall be applied before parsing the associated SPARQL query.
declare
sh:declare
Links a resource with its namespace prefix declarations.
prefix
sh:prefix
The prefix of a prefix declaration.
namespace
sh:namespace
The namespace associated with a prefix in a prefix declaration.
constraint (in SPARQL)
sh:sparql
Links a shape with SPARQL constraints.
default value
sh:defaultValue
A default value for a property, for example for user interface tools to pre-populate input fields.
description
sh:description
Human-readable descriptions for the property in the context of the surrounding shape.
group
sh:group
Can be used to link to a property group to indicate that a property shape belongs to a group of related property shapes.
name
sh:name
Human-readable labels for the property in the context of the surrounding shape.
order
sh:order
Specifies the relative order of this compared to its siblings. For example use 0 for the first, 1 for the second.
target
sh:target
Links a shape to a target specified by an extension language, for example instances of sh:SPARQLTarget.
return type
sh:returnType
The expected type of values returned by the associated function.
result annotation
sh:resultAnnotation
Links a SPARQL validator with zero or more sh:ResultAnnotation instances, defining how to derive additional result properties based on the variables of the SELECT query.
annotation property
sh:annotationProperty
The annotation property that shall be set.
annotation value
sh:annotationValue
The (default) values of the annotation property.
annotation variable name
sh:annotationVarName
The name of the SPARQL variable from the SELECT clause that shall be used for the values.
filter shape
sh:filterShape
The shape that all input nodes of the expression need to conform to.
nodes
sh:nodes
The node expression producing the input nodes of a filter shape expression.
intersection
sh:intersection
A list of node expressions that shall be intersected.
union
sh:union
A list of node expressions that shall be used together.
expression
sh:expression
The node expression that must return true for the value nodes.
rule
sh:rule
The rules linked to a shape.
condition
sh:condition
The shapes that the focus nodes need to conform to before a rule is executed on them.
subject
sh:subject
An expression producing the resources that shall be inferred as subjects.
predicate
sh:predicate
An expression producing the properties that shall be inferred as predicates.
object
sh:object
An expression producing the nodes that shall be inferred as objects.
JavaScript constraint
sh:js
Constraints expressed in JavaScript.
JavaScript function name
sh:jsFunctionName
The name of the JavaScript function to execute.
JavaScript library
sh:jsLibrary
Declares which JavaScript libraries are needed to execute this.
JavaScript library URL
sh:jsLibraryURL
Declares the URLs of a JavaScript library. This should be the absolute URL of a JavaScript file. Implementations may redirect those to local files.

Connections

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

rdfshshxsducocaseiddonen3610posocmauthn_providerbrkmedrednen2660pshbrttreeidscbsafobrickspdx3tno.interconnect.s2valuesetssh

Ontology with a stated relationPaper or standardRepositorySimilarity candidate (computed)

Show the evidence table (22 rows)
DirectionOntologyRelationEvidence
This → otherThe RDF Concepts Vocabularyreuses terms (6 terms)definition file
type, Property, List
This → otherSHACL in SHACLreuses terms (1 term)definition file
This → otherXML Schemareuses terms (4 terms)definition file
boolean, integer, string
Other → thisUnified Cyber Ontology (UCO)reuses terms (26 terms)definition file
NodeShape, class, minCount
Other → thisCASE Cyber-investigation Analysis Standard Expressionreuses terms (17 terms)definition file
NodeShape, targetClass, datatype
Other → thisThe Interconnected Data Dictionary Ontology (IDDO)reuses terms (11 terms)definition file
NodeShape, closed, class
Other → thisNEN 3610 - base model geo-informationreuses terms (23 terms)definition file
NodeShape, targetClass, property
Other → thisPositioning System Ontology Common Technologies, Algorithms and Systemsreuses terms (2 terms)definition file
NodeShape, targetClass
Other → thisAuthentication Providerreuses terms (3 terms)definition file
namespace, prefix, declare
Other → thisKey Register Cadastre (BRK) vocabularyreuses terms (16 terms)definition file
PropertyShape, class, maxCount
Other → thisMedRed ontology: clinical data acquisition modelimportsdefinition file
owl:imports <http://www.w3.org/ns/shacl#>
Other → thisNEN 2660-2:2022 'Rules for information modelling of the built environment - Part 2: Practical configuration, extension and implementation of NEN 2660-1''importsdefinition file
owl:imports <http://www.w3.org/ns/shacl>
Other → thisProbabilistic SHACL Validationreuses terms (3 terms)definition file
ValidationReport, ValidationSummary, Shape
Other → thisKey Register Topography (BRT) vocabularyreuses terms (16 terms)definition file
PropertyShape, class, maxCount
Other → thisTREEreuses terms (1 term)definition file
NodeShape
Other → thisIDS Information Modelreuses terms (1 term)definition file
shapesGraph
Other → thisNetherlands' National Statistics Office (CBS) ontologyreuses terms (12 terms)definition file
NodeShape, targetClass, property
Other → thisAllotrope Merged Ontology Suitereuses terms (1 term)definition file
Shape
Other → thisBrick Ontologyreuses terms (54 terms)definition file
NodeShape, PropertyShape, datatype
Other → thisSystem Package Data Exchangereuses terms (17 terms)definition file
NodeShape, nodeKind, BlankNodeOrIRI
Other → thisInterconnect S2 and SPINEimportsdefinition file
owl:imports <http://www.w3.org/ns/shacl#>
Other → thisValue Setsreuses terms (1 term)definition file
order

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

Papers and standards

Files and repository

FileFormatLocation
정의 파일Turtlehttps://www.w3.org/ns/shacl.ttl
Repository—https://github.com/w3c/data-shapes

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
52,899 B
SHA-256
0e5d8aea0eab98a072d4a02faaee1ee914ec99eab2ca473429726faed4a13f69

Bioregistry page for this resource

LOV page for this vocabulary