-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathOperationShape.ttl
More file actions
107 lines (97 loc) · 3.32 KB
/
OperationShape.ttl
File metadata and controls
107 lines (97 loc) · 3.32 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rami: <https://w3id.org/i40/rami#> .
<#OperationShape>
a sh:NodeShape ;
sh:targetClass rami:Operation ;
sh:property [
sh:path rdf:type ;
sh:minCount 1 ;
] ;
sh:property [
sh:path rami:in ;
sh:class rami:OperationVariable ;
sh:minCount 0 ; # optional
sh:severity sh:Violation ;
sh:message "the rami:in attribute of rami:operation is the input parameter and of type rami:OperationVariable."@en ;
] ;
sh:property [
sh:path rami:out ;
sh:class rami:OperationVariable ;
sh:minCount 0 ; # optional
sh:severity sh:Violation ;
sh:message "the rami:out attribute of rami:Operation is output parameter and of type rami:OperationVariable."@en ;
] ;
#################################
# inherits from SubmodelElement #
#################################
sh:property [
sh:path rami:idShort ;
sh:valueDatatype xsd:string ;
sh:minCount 1 ;
sh:severity sh:Violation ;
sh:message "Each SubmodelElement must have at least one short ID with datatype xsd:string."@en ;
] ;
# sh:property [
# sh:path rami:semanticId ;
# sh:class rami:Reference ;
# ######### is the following line necessary ?
# #sh:nodeKind sh:IRI ;
# sh:minCount 1 ;
# sh:severity sh:Violation ;
# sh:message "Each SubmodelElement must have at least one semanticId attribute."@en ;
# ] ;
#############################################################################
# rami:semanticID is not necessary, because it is specified by RDF itself #
#############################################################################
# SubmodelElement inherits from Qualifiable
sh:property [
sh:path rami:qualifier ;
sh:minCount 0 ;
sh:constraint [
sh:nodeKind sh:IRI ;
] ;
sh:severity sh:Violation ;
sh:message "rami:qualifier must be point to a proper IRI."@en ;
] ;
# SubmodelElement inherits from Referable
sh:property [
sh:path rami:administration ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message "..."@en ;
] ;
# inherits from DataSpecification
sh:property [
sh:path rami:hasDataSpecification ;
sh:minCount 0 ;
sh:nodeKind sh:IRI ; # class Reference is not part of the ontology
sh:severity sh:Violation ;
sh:message "rami:hasDataSpecification must point to a proper URI."@en ;
] ;
sh:property [
sh:path rami:hasSubmodel ;
sh:class rami:Submodel ;
sh:minCount 0 ;
sh:message "A DataSpecification entity can have a rami:hasSubmodel relation to a rami:Submodel."@en ;
] ;
# Submodel inherits from HasKind
sh:property [
sh:path rami:hasKind ;
sh:minCount 0 ;
sh:maxCount 1 ;
sh:someOf [
sh:constraint [
sh:nodeKind sh:Type ;
] ;
sh:constraint [
sh:nodeKind rami:Instance ;
] ;
] ;
sh:severity sh:Violation ;
sh:message "rami:hasKind must be either a rami:Instance or a rami:Type ."@en ;
] .