Skip to content

Commit 5ff2860

Browse files
committed
feat(shapes): all shapes require class and iri
1 parent bc17751 commit 5ff2860

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

catalog-shacl.shce

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@ shape :SolidResourceShape {
1010
rdf:type in=[ex:CreativeWork ex:Event ex:Software ex:Service ex:Person ex:Organization ex:Specification ex:Ontology ex:ClassOfProduct] .
1111
}
1212
shape :CreativeWorkShape -> ex:CreativeWork ;
13-
sh:name "Creative Work"@en {
13+
sh:name "Creative Work"@en;
14+
sh:node sh:IRI;
15+
sh:class ex:CreativeWork {
1416
ex:name xsd:string|rdf:langString [1..1] %
1517
sh:name "name"@en
1618
% .
@@ -43,7 +45,9 @@ shape :CreativeWorkShape -> ex:CreativeWork ;
4345
% .
4446
}
4547
shape :EventShape -> ex:Event ;
46-
sh:name "Event"@en {
48+
sh:name "Event"@en;
49+
sh:node sh:IRI;
50+
sh:class ex:Event {
4751
ex:name xsd:string|rdf:langString [1..1] %
4852
sh:name "name"@en
4953
% .
@@ -66,7 +70,9 @@ shape :EventShape -> ex:Event ;
6670
% .
6771
}
6872
shape :ServiceShape -> ex:Service ;
69-
sh:name "Service"@en {
73+
sh:name "Service"@en;
74+
sh:node sh:IRI;
75+
sh:class ex:Service {
7076
ex:name xsd:string|rdf:langString [1..1] %
7177
sh:name "name"@en
7278
% .
@@ -113,6 +119,8 @@ shape :ServiceShape -> ex:Service ;
113119
}
114120
shape :SoftwareShape -> ex:Software ;
115121
sh:name "Software"@en;
122+
sh:class ex:Software;
123+
sh:node sh:IRI;
116124
sh:class ex:Software {
117125
ex:name xsd:string|rdf:langString [1..1] %
118126
sh:name "name"@en
@@ -179,7 +187,9 @@ shape :SoftwareShape -> ex:Software ;
179187
% .
180188
}
181189
shape :SpecificationShape -> ex:Specification ;
182-
sh:name "Specification"@en {
190+
sh:name "Specification"@en;
191+
sh:node sh:IRI;
192+
sh:class ex:Specification {
183193
ex:name xsd:string|rdf:langString [1..1] %
184194
sh:name "name"@en
185195
% .
@@ -207,13 +217,16 @@ shape :SpecificationShape -> ex:Specification ;
207217
}
208218
shape :ClassOfProductShape -> ex:ClassOfProduct ;
209219
sh:name "Class of Product"@en;
220+
sh:node sh:IRI;
210221
sh:class ex:ClassOfProduct {
211222
ex:name xsd:string|rdf:langString [1..1] %
212223
sh:name "name"@en
213224
% .
214225
}
215226
shape :OntologyShape -> ex:Ontology ;
216-
sh:name "Ontology"@en {
227+
sh:name "Ontology"@en;
228+
sh:node sh:IRI;
229+
sh:class ex:Ontology {
217230
ex:name xsd:string|rdf:langString [1..1] %
218231
sh:name "name"@en
219232
% .
@@ -239,6 +252,7 @@ shape :OntologyShape -> ex:Ontology ;
239252
}
240253
shape :OrganizationShape -> ex:Organization ;
241254
sh:name "Organization"@en;
255+
sh:node sh:IRI;
242256
sh:class ex:Organization {
243257
ex:name xsd:string|rdf:langString [1..1] %
244258
sh:name "name"@en
@@ -278,6 +292,7 @@ shape :OrganizationShape -> ex:Organization ;
278292
}
279293
shape :PersonShape -> ex:Person ;
280294
sh:name "Person"@en;
295+
sh:node sh:IRI;
281296
sh:class ex:Person {
282297
ex:name xsd:string|rdf:langString [1..1] %
283298
sh:name "name"@en

0 commit comments

Comments
 (0)