src/rdflib/namespace/_SH.py
1from rdflib.namespace import DefinedNamespace, Namespace
2from rdflib.term import URIRef
3
4
5class SH(DefinedNamespace):
6 """
7 W3C Shapes Constraint Language (SHACL) Vocabulary
8
9 This vocabulary defines terms used in SHACL, the W3C Shapes Constraint Language.
10
11 Generated from: https://www.w3.org/ns/shacl.ttl
12 Date: 2020-05-26 14:20:08.041103
13
14 """
15
16 _fail = True
17
18 # http://www.w3.org/1999/02/22-rdf-syntax-ns#Property
19 alternativePath: URIRef # The (single) value of this property must be a list of path elements, representing the elements of alternative paths.
20 annotationProperty: URIRef # The annotation property that shall be set.
21 annotationValue: URIRef # The (default) values of the annotation property.
22 annotationVarName: URIRef # The name of the SPARQL variable from the SELECT clause that shall be used for the values.
23 ask: URIRef # The SPARQL ASK query to execute.
24 closed: URIRef # If set to true then the shape is closed.
25 condition: URIRef # The shapes that the focus nodes need to conform to before a rule is executed on them.
26 conforms: URIRef # True if the validation did not produce any validation results, and false otherwise.
27 construct: URIRef # The SPARQL CONSTRUCT query to execute.
28 datatype: URIRef # Specifies an RDF datatype that all value nodes must have.
29 deactivated: URIRef # If set to true then all nodes conform to this.
30 declare: URIRef # Links a resource with its namespace prefix declarations.
31 defaultValue: URIRef # A default value for a property, for example for user interface tools to pre-populate input fields.
32 description: URIRef # Human-readable descriptions for the property in the context of the surrounding shape.
33 detail: URIRef # Links a result with other results that provide more details, for example to describe violations against nested shapes.
34 disjoint: URIRef # Specifies a property where the set of values must be disjoint with the value nodes.
35 entailment: URIRef # An entailment regime that indicates what kind of inferencing is required by a shapes graph.
36 equals: URIRef # Specifies a property that must have the same values as the value nodes.
37 expression: URIRef # The node expression that must return true for the value nodes.
38 filterShape: (
39 URIRef # The shape that all input nodes of the expression need to conform to.
40 )
41 flags: (
42 URIRef # An optional flag to be used with regular expression pattern matching.
43 )
44 focusNode: URIRef # The focus node that was validated when the result was produced.
45 group: URIRef # Can be used to link to a property group to indicate that a property shape belongs to a group of related property shapes.
46 hasValue: URIRef # Specifies a value that must be among the value nodes.
47 ignoredProperties: URIRef # An optional RDF list of properties that are also permitted in addition to those explicitly enumerated via sh:property/sh:path.
48 intersection: URIRef # A list of node expressions that shall be intersected.
49 inversePath: URIRef # The (single) value of this property represents an inverse path (object to subject).
50 js: URIRef # Constraints expressed in JavaScript.
51 jsFunctionName: URIRef # The name of the JavaScript function to execute.
52 jsLibrary: URIRef # Declares which JavaScript libraries are needed to execute this.
53 jsLibraryURL: URIRef # Declares the URLs of a JavaScript library. This should be the absolute URL of a JavaScript file. Implementations may redirect those to local files.
54 labelTemplate: URIRef # 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.
55 languageIn: (
56 URIRef # Specifies a list of language tags that all value nodes must have.
57 )
58 lessThan: URIRef # Specifies a property that must have smaller values than the value nodes.
59 lessThanOrEquals: URIRef # Specifies a property that must have smaller or equal values than the value nodes.
60 maxCount: (
61 URIRef # Specifies the maximum number of values in the set of value nodes.
62 )
63 maxExclusive: URIRef # Specifies the maximum exclusive value of each value node.
64 maxInclusive: URIRef # Specifies the maximum inclusive value of each value node.
65 maxLength: URIRef # Specifies the maximum string length of each value node.
66 message: URIRef # A human-readable message (possibly with placeholders for variables) explaining the cause of the result.
67 minCount: (
68 URIRef # Specifies the minimum number of values in the set of value nodes.
69 )
70 minExclusive: URIRef # Specifies the minimum exclusive value of each value node.
71 minInclusive: URIRef # Specifies the minimum inclusive value of each value node.
72 minLength: URIRef # Specifies the minimum string length of each value node.
73 name: URIRef # Human-readable labels for the property in the context of the surrounding shape.
74 namespace: URIRef # The namespace associated with a prefix in a prefix declaration.
75 node: URIRef # Specifies the node shape that all value nodes must conform to.
76 nodeKind: URIRef # Specifies the node kind (e.g. IRI or literal) each value node.
77 nodeValidator: URIRef # The validator(s) used to evaluate a constraint in the context of a node shape.
78 nodes: URIRef # The node expression producing the input nodes of a filter shape expression.
79 object: (
80 URIRef # An expression producing the nodes that shall be inferred as objects.
81 )
82 oneOrMorePath: URIRef # The (single) value of this property represents a path that is matched one or more times.
83 optional: URIRef # Indicates whether a parameter is optional.
84 order: URIRef # Specifies the relative order of this compared to its siblings. For example use 0 for the first, 1 for the second.
85 parameter: URIRef # The parameters of a function or constraint component.
86 path: URIRef # Specifies the property path of a property shape.
87 pattern: URIRef # Specifies a regular expression pattern that the string representations of the value nodes must match.
88 predicate: URIRef # An expression producing the properties that shall be inferred as predicates.
89 prefix: URIRef # The prefix of a prefix declaration.
90 prefixes: URIRef # The prefixes that shall be applied before parsing the associated SPARQL query.
91 property: URIRef # Links a shape to its property shapes.
92 propertyValidator: URIRef # The validator(s) used to evaluate a constraint in the context of a property shape.
93 qualifiedMaxCount: (
94 URIRef # The maximum number of value nodes that can conform to the shape.
95 )
96 qualifiedMinCount: (
97 URIRef # The minimum number of value nodes that must conform to the shape.
98 )
99 qualifiedValueShape: (
100 URIRef # The shape that a specified number of values must conform to.
101 )
102 qualifiedValueShapesDisjoint: URIRef # Can be used to mark the qualified value shape to be disjoint with its sibling shapes.
103 result: URIRef # The validation results contained in a validation report.
104 resultAnnotation: URIRef # 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.
105 resultMessage: URIRef # Human-readable messages explaining the cause of the result.
106 resultPath: URIRef # The path of a validation result, based on the path of the validated property shape.
107 resultSeverity: URIRef # The severity of the result, e.g. warning.
108 returnType: (
109 URIRef # The expected type of values returned by the associated function.
110 )
111 rule: URIRef # The rules linked to a shape.
112 select: URIRef # The SPARQL SELECT query to execute.
113 severity: URIRef # Defines the severity that validation results produced by a shape must have. Defaults to sh:Violation.
114 shapesGraph: (
115 URIRef # Shapes graphs that should be used when validating this data graph.
116 )
117 shapesGraphWellFormed: URIRef # If true then the validation engine was certain that the shapes graph has passed all SHACL syntax requirements during the validation process.
118 sourceConstraint: (
119 URIRef # The constraint that was validated when the result was produced.
120 )
121 sourceConstraintComponent: (
122 URIRef # The constraint component that is the source of the result.
123 )
124 sourceShape: URIRef # The shape that is was validated when the result was produced.
125 sparql: URIRef # Links a shape with SPARQL constraints.
126 subject: URIRef # An expression producing the resources that shall be inferred as subjects.
127 suggestedShapesGraph: URIRef # Suggested shapes graphs for this ontology. The values of this property may be used in the absence of specific sh:shapesGraph statements.
128 target: URIRef # Links a shape to a target specified by an extension language, for example instances of sh:SPARQLTarget.
129 targetClass: URIRef # Links a shape to a class, indicating that all instances of the class must conform to the shape.
130 targetNode: URIRef # Links a shape to individual nodes, indicating that these nodes must conform to the shape.
131 targetObjectsOf: URIRef # 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.
132 targetSubjectsOf: URIRef # 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.
133 union: URIRef # A list of node expressions that shall be used together.
134 uniqueLang: URIRef # Specifies whether all node values must have a unique (or no) language tag.
135 update: URIRef # The SPARQL UPDATE to execute.
136 validator: URIRef # The validator(s) used to evaluate constraints of either node or property shapes.
137 value: URIRef # An RDF node that has caused the result.
138 xone: URIRef # Specifies a list of shapes so that the value nodes must conform to exactly one of the shapes.
139 zeroOrMorePath: URIRef # The (single) value of this property represents a path that is matched zero or more times.
140 zeroOrOnePath: URIRef # The (single) value of this property represents a path that is matched zero or one times.
141
142 # http://www.w3.org/2000/01/rdf-schema#Class
143 AbstractResult: URIRef # The base class of validation results, typically not instantiated directly.
144 ConstraintComponent: URIRef # The class of constraint components.
145 Function: URIRef # The class of SHACL functions.
146 JSConstraint: URIRef # The class of constraints backed by a JavaScript function.
147 JSExecutable: URIRef # Abstract base class of resources that declare an executable JavaScript.
148 JSFunction: URIRef # The class of SHACL functions that execute a JavaScript function when called.
149 JSLibrary: URIRef # Represents a JavaScript library, typically identified by one or more URLs of files to include.
150 JSRule: URIRef # The class of SHACL rules expressed using JavaScript.
151 JSTarget: URIRef # The class of targets that are based on JavaScript functions.
152 JSTargetType: URIRef # The (meta) class for parameterizable targets that are based on JavaScript functions.
153 JSValidator: URIRef # A SHACL validator based on JavaScript. This can be used to declare SHACL constraint components that perform JavaScript-based validation when used.
154 NodeKind: URIRef # The class of all node kinds, including sh:BlankNode, sh:IRI, sh:Literal or the combinations of these: sh:BlankNodeOrIRI, sh:BlankNodeOrLiteral, sh:IRIOrLiteral.
155 NodeShape: URIRef # A node shape is a shape that specifies constraint that need to be met with respect to focus nodes.
156 Parameter: URIRef # The class of parameter declarations, consisting of a path predicate and (possibly) information about allowed value type, cardinality and other characteristics.
157 Parameterizable: URIRef # Superclass of components that can take parameters, especially functions and constraint components.
158 PrefixDeclaration: URIRef # The class of prefix declarations, consisting of pairs of a prefix with a namespace.
159 PropertyGroup: URIRef # Instances of this class represent groups of property shapes that belong together.
160 PropertyShape: URIRef # A property shape is a shape that specifies constraints on the values of a focus node for a given property or path.
161 ResultAnnotation: URIRef # 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.
162 Rule: URIRef # The class of SHACL rules. Never instantiated directly.
163 SPARQLAskExecutable: (
164 URIRef # The class of SPARQL executables that are based on an ASK query.
165 )
166 SPARQLAskValidator: URIRef # 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.
167 SPARQLConstraint: URIRef # The class of constraints based on SPARQL SELECT queries.
168 SPARQLConstructExecutable: (
169 URIRef # The class of SPARQL executables that are based on a CONSTRUCT query.
170 )
171 SPARQLExecutable: URIRef # The class of resources that encapsulate a SPARQL query.
172 SPARQLFunction: (
173 URIRef # A function backed by a SPARQL query - either ASK or SELECT.
174 )
175 SPARQLRule: URIRef # The class of SHACL rules based on SPARQL CONSTRUCT queries.
176 SPARQLSelectExecutable: (
177 URIRef # The class of SPARQL executables based on a SELECT query.
178 )
179 SPARQLSelectValidator: URIRef # 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.
180 SPARQLTarget: URIRef # The class of targets that are based on SPARQL queries.
181 SPARQLTargetType: URIRef # The (meta) class for parameterizable targets that are based on SPARQL queries.
182 SPARQLUpdateExecutable: (
183 URIRef # The class of SPARQL executables based on a SPARQL UPDATE.
184 )
185 Severity: URIRef # The class of validation result severity levels, including violation and warning levels.
186 Shape: URIRef # A shape is a collection of constraints that may be targeted for certain nodes.
187 Target: URIRef # The base class of targets such as those based on SPARQL queries.
188 TargetType: URIRef # The (meta) class for parameterizable targets. Instances of this are instantiated as values of the sh:target property.
189 TripleRule: URIRef # A rule based on triple (subject, predicate, object) pattern.
190 ValidationReport: URIRef # The class of SHACL validation reports.
191 ValidationResult: URIRef # The class of validation results.
192 Validator: URIRef # 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.
193
194 # http://www.w3.org/2000/01/rdf-schema#Resource
195 this: URIRef # A node expression that represents the current focus node.
196
197 # http://www.w3.org/ns/shacl#ConstraintComponent
198 AndConstraintComponent: URIRef # A constraint component that can be used to test whether a value node conforms to all members of a provided list of shapes.
199 ClassConstraintComponent: URIRef # A constraint component that can be used to verify that each value node is an instance of a given type.
200 ClosedConstraintComponent: URIRef # A constraint component that can be used to indicate that focus nodes must only have values for those properties that have been explicitly enumerated via sh:property/sh:path.
201 DatatypeConstraintComponent: URIRef # A constraint component that can be used to restrict the datatype of all value nodes.
202 DisjointConstraintComponent: URIRef # A constraint component that can be used to verify that the set of value nodes is disjoint with the the set of nodes that have the focus node as subject and the value of a given property as predicate.
203 EqualsConstraintComponent: URIRef # A constraint component that can be used to verify that the set of value nodes is equal to the set of nodes that have the focus node as subject and the value of a given property as predicate.
204 ExpressionConstraintComponent: URIRef # A constraint component that can be used to verify that a given node expression produces true for all value nodes.
205 HasValueConstraintComponent: URIRef # A constraint component that can be used to verify that one of the value nodes is a given RDF node.
206 InConstraintComponent: URIRef # A constraint component that can be used to exclusively enumerate the permitted value nodes.
207 JSConstraintComponent: URIRef # A constraint component with the parameter sh:js linking to a sh:JSConstraint containing a sh:script.
208 LanguageInConstraintComponent: URIRef # A constraint component that can be used to enumerate language tags that all value nodes must have.
209 LessThanConstraintComponent: URIRef # A constraint component that can be used to verify that each value node is smaller than all the nodes that have the focus node as subject and the value of a given property as predicate.
210 LessThanOrEqualsConstraintComponent: URIRef # A constraint component that can be used to verify that every value node is smaller than all the nodes that have the focus node as subject and the value of a given property as predicate.
211 MaxCountConstraintComponent: URIRef # A constraint component that can be used to restrict the maximum number of value nodes.
212 MaxExclusiveConstraintComponent: URIRef # A constraint component that can be used to restrict the range of value nodes with a maximum exclusive value.
213 MaxInclusiveConstraintComponent: URIRef # A constraint component that can be used to restrict the range of value nodes with a maximum inclusive value.
214 MaxLengthConstraintComponent: URIRef # A constraint component that can be used to restrict the maximum string length of value nodes.
215 MinCountConstraintComponent: URIRef # A constraint component that can be used to restrict the minimum number of value nodes.
216 MinExclusiveConstraintComponent: URIRef # A constraint component that can be used to restrict the range of value nodes with a minimum exclusive value.
217 MinInclusiveConstraintComponent: URIRef # A constraint component that can be used to restrict the range of value nodes with a minimum inclusive value.
218 MinLengthConstraintComponent: URIRef # A constraint component that can be used to restrict the minimum string length of value nodes.
219 NodeConstraintComponent: URIRef # A constraint component that can be used to verify that all value nodes conform to the given node shape.
220 NodeKindConstraintComponent: URIRef # A constraint component that can be used to restrict the RDF node kind of each value node.
221 NotConstraintComponent: URIRef # A constraint component that can be used to verify that value nodes do not conform to a given shape.
222 OrConstraintComponent: URIRef # A constraint component that can be used to restrict the value nodes so that they conform to at least one out of several provided shapes.
223 PatternConstraintComponent: URIRef # A constraint component that can be used to verify that every value node matches a given regular expression.
224 PropertyConstraintComponent: URIRef # A constraint component that can be used to verify that all value nodes conform to the given property shape.
225 QualifiedMaxCountConstraintComponent: URIRef # A constraint component that can be used to verify that a specified maximum number of value nodes conforms to a given shape.
226 QualifiedMinCountConstraintComponent: URIRef # A constraint component that can be used to verify that a specified minimum number of value nodes conforms to a given shape.
227 SPARQLConstraintComponent: URIRef # A constraint component that can be used to define constraints based on SPARQL queries.
228 UniqueLangConstraintComponent: URIRef # A constraint component that can be used to specify that no pair of value nodes may use the same language tag.
229 XoneConstraintComponent: URIRef # A constraint component that can be used to restrict the value nodes so that they conform to exactly one out of several provided shapes.
230
231 # http://www.w3.org/ns/shacl#NodeKind
232 BlankNode: URIRef # The node kind of all blank nodes.
233 BlankNodeOrIRI: URIRef # The node kind of all blank nodes or IRIs.
234 BlankNodeOrLiteral: URIRef # The node kind of all blank nodes or literals.
235 IRI: URIRef # The node kind of all IRIs.
236 IRIOrLiteral: URIRef # The node kind of all IRIs or literals.
237 Literal: URIRef # The node kind of all literals.
238
239 # http://www.w3.org/ns/shacl#Parameter
240
241 # http://www.w3.org/ns/shacl#Severity
242 Info: URIRef # The severity for an informational validation result.
243 Violation: URIRef # The severity for a violation validation result.
244 Warning: URIRef # The severity for a warning validation result.
245
246 # Valid non-python identifiers
247 _extras = [
248 "and",
249 "class",
250 "in",
251 "not",
252 "or",
253 "AndConstraintComponent-and",
254 "ClassConstraintComponent-class",
255 "ClosedConstraintComponent-closed",
256 "ClosedConstraintComponent-ignoredProperties",
257 "DatatypeConstraintComponent-datatype",
258 "DisjointConstraintComponent-disjoint",
259 "EqualsConstraintComponent-equals",
260 "ExpressionConstraintComponent-expression",
261 "HasValueConstraintComponent-hasValue",
262 "InConstraintComponent-in",
263 "JSConstraint-js",
264 "LanguageInConstraintComponent-languageIn",
265 "LessThanConstraintComponent-lessThan",
266 "LessThanOrEqualsConstraintComponent-lessThanOrEquals",
267 "MaxCountConstraintComponent-maxCount",
268 "MaxExclusiveConstraintComponent-maxExclusive",
269 "MaxInclusiveConstraintComponent-maxInclusive",
270 "MaxLengthConstraintComponent-maxLength",
271 "MinCountConstraintComponent-minCount",
272 "MinExclusiveConstraintComponent-minExclusive",
273 "MinInclusiveConstraintComponent-minInclusive",
274 "MinLengthConstraintComponent-minLength",
275 "NodeConstraintComponent-node",
276 "NodeKindConstraintComponent-nodeKind",
277 "NotConstraintComponent-not",
278 "OrConstraintComponent-or",
279 "PatternConstraintComponent-flags",
280 "PatternConstraintComponent-pattern",
281 "PropertyConstraintComponent-property",
282 "QualifiedMaxCountConstraintComponent-qualifiedMaxCount",
283 "QualifiedMaxCountConstraintComponent-qualifiedValueShape",
284 "QualifiedMaxCountConstraintComponent-qualifiedValueShapesDisjoint",
285 "QualifiedMinCountConstraintComponent-qualifiedMinCount",
286 "QualifiedMinCountConstraintComponent-qualifiedValueShape",
287 "QualifiedMinCountConstraintComponent-qualifiedValueShapesDisjoint",
288 "SPARQLConstraintComponent-sparql",
289 "UniqueLangConstraintComponent-uniqueLang",
290 "XoneConstraintComponent-xone",
291 ]
292
293 _NS = Namespace("http://www.w3.org/ns/shacl#")