-
Notifications
You must be signed in to change notification settings - Fork 1
/
OntoMetadataShape.ttl
1559 lines (1405 loc) · 94.7 KB
/
OntoMetadataShape.ttl
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
@base <https://www.purl.org/ontologymetadata/shape> .
@prefix adms: <http://www.w3.org/ns/adms#> .
@prefix bibo: <http://purl.org/ontology/bibo/> .
@prefix cc: <http://creativecommons.org/ns#> .
@prefix dash: <http://datashapes.org/dash#> .
@prefix dbo: <http://dbpedia.org/ontology/> .
@prefix dc: <http://purl.org/dc/elements/1.1/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix doap: <http://usefulinc.com/ns/doap#> .
@prefix mod: <https://w3id.org/mod#> .
@prefix ontometa: <https://www.purl.org/ontologymetadata/shape#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix pav: <http://purl.org/pav/> .
@prefix prov: <http://www.w3.org/ns/prov#> .
@prefix premis: <http://www.loc.gov/premis/rdf/v3/> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix shacl: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix vann: <http://purl.org/vocab/vann/> .
@prefix vs: <http://www.w3.org/2003/06/sw-vocab-status/ns#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ontometa: rdf:type owl:Ontology ;
# owl:imports <http://www.w3.org/ns/shacl#> ; #when last imported (2024-04-05), SHACL was inconsistent
<http://purl.org/dc/terms/abstract> "OntoMeta provides SHACL shapes for ontology metadata. It is intended for use in TIB Terminology Service. You may re-use (please refer back to our repo!) for your own services. Please note that adaptations might be necessary. If you have any remarks or questions get in touch with us at https://github.com/StroemPhi/Ontology-Metadata/issues"@en ;
dcterms:license <https://creativecommons.org/licenses/by/4.0/>;
<http://purl.org/dc/terms/created> "2024-05-02T11:42:00"^^xsd:dateTime;
<http://www.w3.org/2002/07/owl#versionIRI> <https://www.purl.org/ontologymetadata/shape/20240502>;
<http://purl.org/dc/terms/title> "Ontology Metadata Shape by TIB"@en, "TIB Metadatenshape für Ontologien";
<http://purl.org/dc/terms/creator> <https://orcid.org/0000-0002-1019-9151>, <https://orcid.org/0000-0003-1043-4964>, <https://orcid.org/0000-0003-2499-7741>, <https://orcid.org/0000-0002-1595-3213> , <https://orcid.org/0000-0002-8280-0487> ;
<http://purl.org/vocab/vann/preferredNamespacePrefix> "ontometa";
<http://usefulinc.com/ns/doap#bug-database> <https://gitlab.com/TIBHannover/terminology/tib-terminology-service-issue-tracker> ;
<http://www.loc.gov/premis/rdf/v3/documentation> <tbd> ;
<http://purl.org/ontology/bibo/status> "active"@en ;
<http://usefulinc.com/ns/doap#audience> "Ontology engineers, ontology publishers, terminology service providers, terminology service curators"@en;
dcterms:language <http://id.loc.gov/vocabulary/iso639-2/eng>;
<http://purl.org/dc/terms/subject> <http://d-nb.info/gnd/4827894-4>, <http://d-nb.info/gnd/4410512-5> ;
<http://usefulinc.com/ns/doap#repository> <tbd>;
<http://omv.ontoware.org/2005/05/ontology#hasOntologySyntax> <https://www.iana.org/assignments/media-types/text/turtle> ;
<http://purl.org/dc/terms/references> <https://www.doi.org/10.5281/zenodo.11103071>
#<https://w3id.org/mod#hasFormalityLevel>
.
# Start of the Ontology Metadata Shape
ontometa:OntologyMetadataShape a sh:NodeShape ;
sh:targetClass owl:Ontology ;
# MANDATORY METADATA
## Ontology title
### status: developer and external review needed
sh:property [
sh:path [sh:alternativePath (rdfs:label skos:prefLabel dc:title dcterms:title schema:name schema:headline) ] ;
sh:severity sh:Warning ;
sh:minCount 1 ;
sh:message """
You must add an ontology title or label. The title should be an rdf:langString.
Recommended property: <http://purl.org/dc/terms/title>.
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:title "Some Ontology"@en .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology has a title or label. It produces a warning message if the title is missing. The ontology title is mandatory."@en ;
sh:name "Ontology title"@en ;
] ;
sh:property [
sh:path [sh:alternativePath (rdfs:label skos:prefLabel dc:title dcterms:title schema:name schema:headline) ] ;
sh:severity sh:Info ;
sh:datatype rdf:langString ;
sh:uniqueLang true ;
sh:message """
You should make the ontology title an rdf:langString by adding a language tag to it.
There may be only title per language.
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:title "Some Ontology"@en .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology title literal value is an rdf:langString and whether only one title per language is given. It produces an info message if the title does not carry a language tag or if several titles in the same language are present."@en ;
sh:name "Ontology title - datatype"@en ;
] ;
## Preferred ontology prefix/ acronym
### status: developer and external review needed: add check for forbidden characters like - ?
sh:property [
sh:path [sh:alternativePath ( <http://purl.org/vocab/vann/preferredNamespacePrefix> <https://w3id.org/mod#acronym> )];
sh:severity sh:Warning;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message """
You must declare at most one preferred namespace prefix or acronym for the ontology.
It must not contain hyphens or other special characters and should be written in lowercase.
Recommended property: <http://purl.org/vocab/vann/preferredNamespacePrefix>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> vann:preferredNamespacePrefix "so"^^xsd:string .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology declares a preferred namespace prefix. It produces a warning message if the ontology does not declare a preferred namespace prefix."@en ;
sh:name "Preferred ontology prefix/ acronym"@en ;
] ;
sh:property [
sh:path [sh:alternativePath (<http://purl.org/vocab/vann/preferredNamespacePrefix> <https://w3id.org/mod#acronym>)];
sh:severity sh:Info ;
sh:datatype xsd:string ;
sh:message """
You should provide the ontology's preferred namespace prefix or acronym as an xsd:string.
Example statement (text/turtle): <https://www.purl.org/SomeOntology> vann:preferredNamespacePrefix "so"^^xsd:string .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology's preferred namespace prefix or acronym is an xsd:string. It produces an info message if it is not."@en ;
sh:name "Preferred ontology prefix/ acronym - datatype"@en ;
] ;
## Ontology license
### status: developer and external review needed
sh:property [
sh:path [sh:alternativePath (dcterms:license dcterms:rights schema:license cc:license dbo:license)] ;
sh:severity sh:Warning ;
sh:minCount 1;
sh:maxCount 1;
# tbd/todo: add further licenses to the list of accepted licenses?
sh:xone (
[sh:hasValue <http://opendatacommons.org/licenses/by/summary/> ;]
[sh:hasValue <https://opendatacommons.org/licenses/by/summary/> ;]
[sh:hasValue <http://opendatacommons.org/licenses/by/1-0/> ;]
[sh:hasValue <https://opendatacommons.org/licenses/by/1-0/> ;]
[sh:hasValue <http://opendatacommons.org/licenses/by/1.0/> ;]
[sh:hasValue <https://opendatacommons.org/licenses/by/1.0/> ;]
[sh:hasValue <http://opendatacommons.org/licenses/pddl/1-0/> ;]
[sh:hasValue <https://opendatacommons.org/licenses/pddl/1-0/> ;]
[sh:hasValue <http://opendatacommons.org/licenses/pddl/summary/> ;]
[sh:hasValue <https://opendatacommons.org/licenses/pddl/summary/> ;]
[sh:hasValue <http://opendatacommons.org/licenses/pddl/1.0/> ;]
[sh:hasValue <https://opendatacommons.org/licenses/pddl/1.0/> ;]
[sh:hasValue <http://opendatacommons.org/licenses/odbl/summary/> ;]
[sh:hasValue <https://opendatacommons.org/licenses/odbl/summary/> ;]
[sh:hasValue <http://opendatacommons.org/licenses/odbl/1-0/> ;]
[sh:hasValue <https://opendatacommons.org/licenses/odbl/1-0/> ;]
[sh:hasValue <http://opendatacommons.org/licenses/odbl/1.0/> ;]
[sh:hasValue <https://opendatacommons.org/licenses/odbl/1.0/> ;]
[sh:hasValue <http://spdx.org/licenses/Unlicense.html> ;]
[sh:hasValue <https://spdx.org/licenses/Unlicense.html> ;]
[sh:hasValue <http://unlicense.org/> ;]
[sh:hasValue <https://unlicense.org/> ;]
[sh:hasValue <http://creativecommons.org/publicdomain/zero/1.0/> ;]
[sh:hasValue <https://creativecommons.org/publicdomain/zero/1.0/> ;]
[sh:hasValue <http://creativecommons.org/publicdomain/zero/1.0/legalcode> ;]
[sh:hasValue <https://creativecommons.org/publicdomain/zero/1.0/legalcode> ;]
[sh:hasValue <https://creativecommons.org/publicdomain/zero/1.0/deed> ;]
[sh:hasValue <http://creativecommons.org/publicdomain/zero/1.0/deed> ;]
[sh:hasValue <http://creativecommons.org/licenses/by/3.0/legalcode> ;]
[sh:hasValue <https://creativecommons.org/licenses/by/3.0/legalcode> ;]
[sh:hasValue <https://creativecommons.org/licenses/by/3.0/deed> ;]
[sh:hasValue <http://creativecommons.org/licenses/by/3.0/deed> ;]
[sh:hasValue <http://creativecommons.org/licenses/by/3.0/> ;]
[sh:hasValue <https://creativecommons.org/licenses/by/3.0/> ;]
[sh:hasValue <https://creativecommons.org/licenses/by/3.0/de/deed> ;]
[sh:hasValue <http://creativecommons.org/licenses/by/3.0/de/deed> ;]
[sh:hasValue <http://creativecommons.org/licenses/by/3.0/de/legalcode> ;]
[sh:hasValue <https://creativecommons.org/licenses/by/3.0/de/legalcode> ;]
[sh:hasValue <https://creativecommons.org/licenses/by/3.0/de/> ;]
[sh:hasValue <http://creativecommons.org/licenses/by/3.0/de/> ;]
[sh:hasValue <http://creativecommons.org/licenses/by-sa/3.0/legalcode> ;]
[sh:hasValue <https://creativecommons.org/licenses/by-sa/3.0/legalcode> ;]
[sh:hasValue <https://creativecommons.org/licenses/by-sa/3.0/deed> ;]
[sh:hasValue <http://creativecommons.org/licenses/by-sa/3.0/deed> ;]
[sh:hasValue <http://creativecommons.org/licenses/by-sa/3.0/> ;]
[sh:hasValue <https://creativecommons.org/licenses/by-sa/3.0/> ;]
[sh:hasValue <https://creativecommons.org/licenses/by/4.0/> ;]
[sh:hasValue <http://creativecommons.org/licenses/by/4.0/> ;]
[sh:hasValue <http://creativecommons.org/licenses/by/4.0/legalcode> ;]
[sh:hasValue <https://creativecommons.org/licenses/by/4.0/legalcode> ;]
[sh:hasValue <https://creativecommons.org/licenses/by/4.0/deed> ;]
[sh:hasValue <https://creativecommons.org/licenses/by/4.0/deed> ;]
[sh:hasValue <http://creativecommons.org/licenses/by-sa/4.0/> ;]
[sh:hasValue <https://creativecommons.org/licenses/by-sa/4.0/> ;]
[sh:hasValue <http://creativecommons.org/licenses/by-sa/4.0/legalcode> ;]
[sh:hasValue <https://creativecommons.org/licenses/by-sa/4.0/legalcode> ;]
[sh:hasValue <http://creativecommons.org/licenses/by-sa/4.0/deed> ;]
[sh:hasValue <https://creativecommons.org/licenses/by-sa/4.0/deed> ;]
# [sh:hasValue <> ;]
);
sh:message """
You must provide exactly one ontology license.
The license must be open (Read more about open licenses at https://opendefinition.org/licenses/).
The license must be given as an IRI from the following list:
- <https://creativecommons.org/publicdomain/zero/1.0/>
- <https://creativecommons.org/licenses/by/4.0/>
- <http://opendatacommons.org/licenses/by/1.0/>
- <http://opendatacommons.org/licenses/by/summary/>
- <http://opendatacommons.org/licenses/pddl/summary/>
- <http://opendatacommons.org/licenses/pddl/1.0/>
- <http://creativecommons.org/licenses/by/4.0/legalcode>
- <http://creativecommons.org/licenses/by/3.0/legalcode>
- <https://creativecommons.org/publicdomain/zero/1.0/legalcode>
- <http://creativecommons.org/licenses/by-sa/4.0/>
- <http://creativecommons.org/licenses/by-sa/4.0/legalcode>
- <http://creativecommons.org/licenses/by-sa/3.0/legalcode>
- <http://opendatacommons.org/licenses/odbl/summary/>
- <http://opendatacommons.org/licenses/odbl/1.0/>
- <https://spdx.org/licenses/Unlicense.html>
Recommended property: <http://purl.org/dc/terms/license>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:license <http://creativecommons.org/licenses/by/4.0/> .
You want to use a different open license? File an issue at https://gitlab.com/TIBHannover/terminology/tib-terminology-service-issue-tracker/-/issues
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides a license IRI from a list of accepted open licenses. It produces a warning message if not."@en ;
sh:name "Ontology license"@en ;
] ;
sh:property [
sh:path [sh:alternativePath (dcterms:license dcterms:rights schema:license cc:license dbo:license)] ;
sh:severity sh:Warning ;
# tbd/todo: add further licenses to the list of unaccepted licenses?
# tbd/todo: discuss > redundant test?
sh:not [sh:hasValue <https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode> ;] ;
sh:not [sh:hasValue <https://creativecommons.org/licenses/by-nc-nd/4.0/deed> ;] ;
sh:not [sh:hasValue <http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode> ;] ;
sh:not [sh:hasValue <http://creativecommons.org/licenses/by-nc-nd/4.0/deed> ;] ;
sh:not [sh:hasValue <https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode> ;] ;
sh:not [sh:hasValue <https://creativecommons.org/licenses/by-nc-nd/4.0/deed> ;] ;
sh:not [sh:hasValue <http://creativecommons.org/licenses/by-nc-nd/4.0/legalcode> ;] ;
sh:not [sh:hasValue <http://creativecommons.org/licenses/by-nc-nd/4.0/deed> ;] ;
sh:not [sh:hasValue <https://creativecommons.org/licenses/by-nc-nd/3.0/de/legalcode> ;] ;
sh:not [sh:hasValue <https://creativecommons.org/licenses/by-nc-nd/3.0/de/deed> ;] ;
sh:not [sh:hasValue <http://creativecommons.org/licenses/by-nc-nd/3.0/de/legalcode> ;] ;
sh:not [sh:hasValue <http://creativecommons.org/licenses/by-nc-nd/3.0/de/deed> ;] ;
sh:not [sh:hasValue <https://creativecommons.org/licenses/by-nd/4.0/legalcode> ;] ;
sh:not [sh:hasValue <https://creativecommons.org/licenses/by-nd/4.0/deed> ;] ;
sh:not [sh:hasValue <http://creativecommons.org/licenses/by-nd/4.0/deed> ;] ;
sh:not [sh:hasValue <http://creativecommons.org/licenses/by-nd/4.0/legalcode> ;] ;
sh:not [sh:hasValue <https://creativecommons.org/licenses/by-nd/3.0/de/legalcode> ;] ;
sh:not [sh:hasValue <http://creativecommons.org/licenses/by-nd/3.0/de/legalcode> ;] ;
sh:not [sh:hasValue <https://creativecommons.org/licenses/by-nd/3.0/de/deed> ;] ;
sh:not [sh:hasValue <http://creativecommons.org/licenses/by-nd/3.0/de/deed> ;] ;
# sh:not [sh:hasValue <> ;] ;
sh:message """
The ontology license is not accepted at TIB Terminology Service since it is not an open license according to the Open Definition (https://opendefinition.org/licenses/).
You must provide an open ontology license.
The license must be given as an IRI.
The following licenses are not accepted at TIB Terminology Service:
- https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode
- https://creativecommons.org/licenses/by-nc-nd/4.0/legalcode
- https://creativecommons.org/licenses/by-nc-nd/3.0/de/legalcode
- https://creativecommons.org/licenses/by-nd/4.0/legalcode
- https://creativecommons.org/licenses/by-nd/3.0/de/legalcode
Recommended property: <http://purl.org/dc/terms/license>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:license <http://creativecommons.org/licenses/by/4.0/> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides a license IRI from a list of unaccepted, non-open licenses. It produces a warning message if it does."@en ;
sh:name "Ontology license"@en ;
] ;
## Ontology creator(s)
### status: developer and external review needed
sh:property [
sh:path [sh:alternativePath (dc:creator dcterms:creator schema:creator pav:createdBy prov:wasAttributedTo schema:accountablePerson schema:author)];
sh:severity sh:Warning ;
sh:minCount 1;
sh:message """
You must add the ontology creators.
You must list at least one person who was involved in developing the ontology.
Creators should be referenced via PIDs, e.g. ORCiDs for persons and RORs for organisations.
If an ontology is developed by a larger group, it is recommended to give the organization or project identifier as the creator and list individual persons as contributors.
Recommended property: <http://purl.org/dc/terms/creator>
Example statement 1 (text/turtle): <https://www.purl.org/SomeOntology> <http://purl.org/dc/terms/creator> <https://orcid.org/0000-0000-0000-0000>. <https://orcid.org/0000-0000-0000-0000> rdf:type foaf:Person .
Plain name strings could be provided in addition (for readability).
Example statement 2 (text/turtle):
<https://www.purl.org/SomeOntology> <http://purl.org/dc/terms/creator> <https://orcid.org/0000-0000-0000-0000>.
<https://orcid.org/0000-0000-0000-0000> rdf:type foaf:Person ; <http://xmlns.com/foaf/0.1/firstName> "Max" ;
<http://xmlns.com/foaf/0.1/lastName> "Muster" .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides information about its creator. It produces a warning message if no creator information is present."@en ;
sh:name "Ontology creator(s)"@en ;
] ;
sh:property [
sh:path [sh:alternativePath (dc:creator dcterms:creator schema:creator pav:createdBy prov:wasAttributedTo schema:accountablePerson schema:author)];
sh:severity sh:Info ;
sh:nodeKind sh:IRI;
sh:message """
You should provide the ontology creators as IRIs.
Please make sure to provide persistent identifiers (PIDs) wherever possible, e.g. ORCiDs for persons and RORs for organisations.
If an ontology is developed by a larger group, it is recommended to give the organization or project identifier as the creator and list individual persons as contributors.
Recommended property: <http://purl.org/dc/terms/creator>
Example statement 1 (text/turtle): <https://www.purl.org/SomeOntology> <http://purl.org/dc/terms/creator> <https://orcid.org/0000-0000-0000-0000>. <https://orcid.org/0000-0000-0000-0000> rdf:type foaf:Person .
Plain name strings could be provided in addition (for readability).
Example statement 2 (text/turtle):
<https://www.purl.org/SomeOntology> <http://purl.org/dc/terms/creator> <https://orcid.org/0000-0000-0000-0000>.
<https://orcid.org/0000-0000-0000-0000> rdf:type foaf:Person ; <http://xmlns.com/foaf/0.1/firstName> "Max" ;
<http://xmlns.com/foaf/0.1/lastName> "Muster" .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology states its creator as an IRI. It produces an info message if creator information is given e.g. as xsd:string"@en ;
sh:name "Ontology creator(s) - datatype"@en ;
] ;
## Version information
### Ontology version IRI
#### status: developer and external review needed
sh:property [
sh:path owl:versionIRI ;
sh:severity sh:Warning ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message """
You must add a versionIRI to the ontology.
The versionIRI should be stable and resolvable, i.e. a fixed version of the ontology should be retrievable from the provided IRI.
It is recommended to use semantic versioning (cf. https://semver.org/) or OBO style date-based versioning (http://obofoundry.org/principles/fp-004-versioning.html).
Recommended property: <http://www.w3.org/2002/07/owl#versionIRI>
Example statement 1 (text/turtle): <https://www.purl.org/SomeOntology> <http://www.w3.org/2002/07/owl#versionIRI> <https://www.purl.org/SomeOntology/1.0.0>.
Example statement 2 (text/turtle): <https://www.purl.org/SomeOntology> <http://www.w3.org/2002/07/owl#versionIRI> <https://www.purl.org/SomeOntology/2019-12-31> .
Example statement 3 (text/turtle): <http://purl.obolibrary.org/obo/pco.owl> <http://www.w3.org/2002/07/owl#versionIRI> <http://purl.obolibrary.org/obo/pco/releases/2021-05-03/pco.owl> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provids exactly one versionIRI. It produces a warning message if none is found."@en ;
sh:name "Ontology version IRI"@en ;
] ;
sh:property [
sh:path owl:versionIRI ;
sh:severity sh:Info ;
sh:nodeKind sh:IRI;
sh:message """
You should state the versionIRI as an IRI. It should not be given as a sring or literal.
Recommended property: <http://www.w3.org/2002/07/owl#versionIRI>
Example statement 1 (text/turtle): <https://www.purl.org/SomeOntology> <http://www.w3.org/2002/07/owl#versionIRI> <https://www.purl.org/SomeOntology/1.0.0>.
Example statement 2 (text/turtle): <https://www.purl.org/SomeOntology> <http://www.w3.org/2002/07/owl#versionIRI> <https://www.purl.org/SomeOntology/2019-12-31> .
Example statement 3 (text/turtle): <http://purl.obolibrary.org/obo/pco.owl> <http://www.w3.org/2002/07/owl#versionIRI> <http://purl.obolibrary.org/obo/pco/releases/2021-05-03/pco.owl> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology versionIRI is provided as an IRI (https://www.w3.org/TR/rdf11-concepts/#dfn-iri) (as compared to a literal). It produces an info message if it is not."@en ;
sh:name "Ontology version IRI - datatype"@en ;
] ;
### Ontology creation date
### status: developer and external review needed
sh:property [
sh:path [sh:alternativePath (dcterms:created schema:dateCreated pav:createdOn prov:generatedAtTime )] ;
sh:severity sh:Warning ;
sh:minCount 1;
sh:maxCount 1 ;
sh:message """
You must add a creation date to the ontology.
You must provide exactly one date in xsd:dateTime format.
Recommended property: <http://purl.org/dc/terms/created>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:created "2020-11-19T00:00:00"^^xsd:dateTime .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides its creation date. It produces a warning message if not."@en ;
sh:name "Ontology creation date"@en ;
] ;
sh:property [
sh:path [sh:alternativePath (dcterms:created schema:dateCreated pav:createdOn prov:generatedAtTime )] ;
sh:severity sh:Info ;
sh:datatype xsd:dateTime ;
sh:message """
You should provide the creation date of the ontology in xsd:dateTime format.
Recommended property: <http://purl.org/dc/terms/created>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:created "2020-11-19T00:00:00"^^xsd:dateTime .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides its creation date in xsd:dateTime format. It produces an info message if not."@en ;
sh:name "Ontology creation date - datatype"@en ;
] ;
## Ontology abstract
### status: developer and external review needed
sh:property [
sh:path [sh:alternativePath (dcterms:abstract <https://schema.org/abstract>)] ;
sh:severity sh:Warning ;
sh:minCount 1 ;
sh:message """
You must provide a short abstract about the ontology and its scope.
Recommended property: <http://purl.org/dc/terms/abstract>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:abstract "SomeOntology defines a range of classes and properties which can be applied to do stuff in a particular domain."@en , "SomeOntology definiert eine Reihe von Klassen und Properties, die in einer bestimmten Domäne verwendet werden können, um etwas damit zu tun."@de .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides an abstract. It produces an info message if not."@en ;
sh:name "Ontology abstract"@en ;
] ;
sh:property [
sh:path [sh:alternativePath (dcterms:abstract <https://schema.org/abstract>)] ;
sh:severity sh:Info ;
sh:nodeKind sh:Literal ;
sh:datatype rdf:langString ;
sh:message """
You should provide the ontology abstract as an rdf:langString.
Recommended property: <http://purl.org/dc/terms/abstract>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:abstract "SomeOntology defines a range of classes and properties which can be applied to do stuff in a particular domain."@en , "SomeOntology definiert eine Reihe von Klassen und Properties, die in einer bestimmten Domäne verwendet werden können, um etwas damit zu tun."@de .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides its abstract as an rdf:langString. It produces an info message if not."@en ;
sh:name "Ontology abstract - language"@en ;
] ;
sh:property [
sh:path [sh:alternativePath (dcterms:abstract <https://schema.org/abstract>)] ;
sh:severity sh:Info ;
sh:uniqueLang true ;
sh:message """
You should provide only one ontology abstract per language.
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides several abstracts in the same language. It produces an info message if it does."@en ;
sh:name "Ontology abstract - unique language"@en ;
] ;
sh:property [
sh:path [sh:alternativePath (dcterms:abstract <https://schema.org/abstract>)] ;
sh:severity sh:Info ;
sh:maxLength 500 ;
sh:message """
You should limit the ontology abstract to 500 characters maximum.
The TIB Terminology Service requires short ontology descriptions for a user-friendly ontology list.
To provide more information about the ontology, add an additional description (recommended property: <http://purl.org/dc/terms/escription>) or add a reference to a related article (recommended property: <http://purl.org/dc/terms/isReferencedBy>).
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape cheks whether the ontology abstract is longer than 500 characters. It produces an info message if it does."@en ;
sh:name "Ontology abstract - length"@en ;
] ;
## Ontology issue tracker
### status: developer and external review needed
sh:property [
sh:path <http://usefulinc.com/ns/doap#bug-database> ;
sh:severity sh:Warning ;
sh:nodeKind sh:IRI ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message """
You must provide an IRI for the ontology's issue tracker or another location where bugs and suggestions for the ontology can be reported.
Recommended property: <http://usefulinc.com/ns/doap#bug-database>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> doap:bug-database <https://github.com/SomeOrganisation/SomeOntology/issues> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology references an issue tracker on its repository (e.g. at GitLab or GitHub). It creates a warning message, if it does not."@en ;
sh:name "Ontology issue tracker"@en ;
] ;
## Ontology documentation
### status: developer and external review needed
sh:property [
sh:path <http://www.loc.gov/premis/rdf/v3/documentation> ;
sh:severity sh:Warning ;
sh:nodeKind sh:IRI ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message """
You must provide an IRI to the ontology documentation.
Recommended property: <http://www.loc.gov/premis/rdf/v3/documentation>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> premis:documentation <https://www.purl.org/SomeOntology/Documentation> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides a link to its documentation. It produces warning message if it does not."@en ;
sh:name "Ontology documentation"@en ;
] ;
# RECOMMENDED METADATA
## Ontology contributor(s)
### status: developer and external review needed
sh:property [
sh:path [sh:alternativePath (dcterms:contributor dc:contributor schema:contributor pav:contributedBy)] ;
sh:severity sh:Info ;
sh:minCount 1 ;
sh:message """
You should list all contributors to the ontology.
Contributors should be referenced via PIDs, e.g. ORCiDs for persons and RORs for organisations.
If an ontology is developed by a larger group, it is recommended to give the organization or project identifier as the creator and list individual persons as contributors.
Recommended property: <http://purl.org/dc/terms/contributor>
Example statement 1 (text/turtle): <https://www.purl.org/SomeOntology> <http://purl.org/dc/terms/contributor> <https://orcid.org/0000-0000-0000-0000>. <https://orcid.org/0000-0000-0000-0000> rdf:type foaf:Person .
Plain name strings can be provided in addition (for readability).
Example statement 2 (text/turtle):
<https://www.purl.org/SomeOntology> <http://purl.org/dc/terms/contributor> <https://orcid.org/0000-0000-0000-0000>.
<https://orcid.org/0000-0000-0000-0000> rdf:type foaf:Person ;<http://xmlns.com/foaf/0.1/firstName> "Max" ;
<http://xmlns.com/foaf/0.1/lastName> "Muster" .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides information about its contributors. It produces an info message if no contributor information is present."@en ;
sh:name "Ontology contributor(s)"@en ;
] ;
sh:property [
sh:path [sh:alternativePath (dcterms:contributor dc:contributor schema:contributor pav:contributedBy)] ;
sh:severity sh:Info ;
sh:nodeKind sh:IRI ;
sh:message """
You should provide the ontology contributor information as IRIs.
Please make sure to provide persistent identifiers (PIDs) wherever possible, e.g. ORCiDs for persons and RORs for organisations.
If an ontology is developed by a larger group, it is recommended to give the organization or project identifier as the creator and list individual persons as contributors.
Recommended property: <http://purl.org/dc/terms/contributor>
Example statement 1 (text/turtle): <https://www.purl.org/SomeOntology> <http://purl.org/dc/terms/contributor> <https://orcid.org/0000-0000-0000-0000>. <https://orcid.org/0000-0000-0000-0000> rdf:type foaf:Person .
Plain name strings could be provided in addition (for readability).
Example statement 2 (text/turtle):
<https://www.purl.org/SomeOntology> <http://purl.org/dc/terms/contributor> <https://orcid.org/0000-0000-0000-0000>.
<https://orcid.org/0000-0000-0000-0000> rdf:type foaf:Person ; <http://xmlns.com/foaf/0.1/firstName> "Max" ;
<http://xmlns.com/foaf/0.1/lastName> "Muster" .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology states its contributors via IRIs. It produces an info message if contributor information is given e.g. as xsd:string."@en ;
sh:name "Ontology contributor(s) - datatype"@en ;
] ;
## Ontology funder
### status: developer and external review needed
sh:property [
sh:path <https://schema.org/funder> ;
sh:severity sh:Info ;
sh:minCount 1 ;
sh:message """
If applicable, you should reference any institutions funding the work on the ontology.
The funding instution(s) should be referenced by PIDs, e.g. RORs (https://ror.org/) or Crossref Funder Registry IDs (https://www.crossref.org/services/funder-registry/)).
Recommended property: <https://schema.org/funder>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> <https://schema.org/funder> <https://ror.org/018mejw64> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology references funding information. It produces an info message if not."@en ;
sh:name "Ontology funder"@en ;
] ;
sh:property [
sh:path <https://schema.org/funder> ;
sh:severity sh:Info ;
sh:nodeKind sh:IRI ;
sh:message """
You should reference any institutions funding your ontology via IRI.
The funding institution should be referenced by PIDs, e.g. RORs (https://ror.org/) or Crossref Funder Registry IDs (https://www.crossref.org/services/funder-registry/)).
Recommended property: <https://schema.org/funder>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> <https://schema.org/funder> <https://ror.org/018mejw64> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology references its funder via IRI. It produces an info message if it does not."@en ;
sh:name "Ontology funder"@en ;
] ;
## Ontology funding
### status: developer and external review needed
sh:property [
sh:path <https://schema.org/funding> ;
sh:severity sh:Info ;
sh:minCount 1 ;
sh:message """
If applicable, you should reference the grant which funds the work on the ontology.
The grant should be referenced by PID, e.g. Crossref Grant ID (https://www.crossref.org/documentation/research-nexus/grants/)).
Recommended property: <https://schema.org/funding>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> <https://schema.org/funding> <https://doi.org/00.00000/000000000> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology references a grant funding the work on the ontology. It produces an info message if not."@en ;
sh:name "Ontology funding (grant)"@en ;
] ;
sh:property [
sh:path <https://schema.org/funding> ;
sh:severity sh:Info ;
sh:nodeKind sh:IRI ;
sh:message """
You should reference any grants funding your ontology via IRI.
The funding grant should be referenced by PID, e.g. Crossref Grant IDs (https://www.crossref.org/documentation/research-nexus/grants/)).
Recommended property: <https://schema.org/funding>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> <https://schema.org/funding> <https://doi.org/00.00000/000000000> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology references its funding grant via IRI. It produces an info message if it does not."@en ;
sh:name "Ontology funding (grant)"@en ;
] ;
## Ontology audience description
### status: developer and external review needed
sh:property [
sh:path [sh:alternativePath (doap:audience schema:audience dcterms:audience)] ;
sh:severity sh:Info ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message """
You should describe the intended audience of the ontology.
The audience description should be a short, language-tagged text.
Recommended property: <http://usefulinc.com/ns/doap#audience>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> doap:audience \"This ontology is intended for researchers in derivational morphology, a branch of linguistics.\"@en .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology describes its audience. It produces an info message if audience information is missing."@en ;
skos:editorialNote "see also open comment at G-Doc: https://docs.google.com/document/d/1FRmCQ7eD6PcqSQgPbqCGjki3t39ROoYozsehCPX9E0Q/edit?disco=AAAAwke7GNs" ;
sh:name "Ontology audience description"@en ;
] ;
sh:property [
sh:path [sh:alternativePath (doap:audience schema:audience dcterms:audience)] ;
sh:severity sh:Info ;
sh:datatype rdf:langString ;
sh:message """
You should provide the audience description of the ontology as an rdf:langString.
Recommended property: <http://usefulinc.com/ns/doap#audience>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> doap:audience \"This ontology is intended for researchers in derivational morphology, a branch of linguistics.\"@en .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides the audience description as an rdf:langString. It produces an info message if not."@en ;
sh:name "Ontology audience description - language"@en ;
] ;
## Ontology subject(s)
### status: developer and external review needed
sh:property [
sh:path dcterms:subject ;
sh:severity sh:Info ;
sh:minCount 1 ;
sh:message """
You should provide some keywords to describe the subject(s) of your ontology.
It is recommended to use identifiers of controlled vocabularies or ontologies to do so.
You can search for fitting terms on TIB Terminology Service (https://terminology.tib.eu).
Recommended property: <http://purl.org/dc/terms/subject>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:subject <https://d-nb.info/gnd/4067537-3>, <https://d-nb.info/gnd/4070177-3>, <http://uri.gbv.de/terminology/bk/42.15>, <https://github.com/tibonto/dfgfo/201-03>.
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides subjects. It produces an info message if it does not."@en ;
sh:name "Ontology subject(s)"@en ;
] ;
sh:property [
sh:path dcterms:subject ;
sh:severity sh:Info ;
sh:nodeKind sh:IRI ;
sh:message """
You should provide ontology subjects with IRIs from controlled vocabularies or ontologies.
You can search for fitting terms on TIB Terminology Service (https://terminology.tib.eu).
Recommended property: <http://purl.org/dc/terms/subject>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:subject <https://d-nb.info/gnd/4067537-3>, <https://d-nb.info/gnd/4070177-3>, <http://uri.gbv.de/terminology/bk/42.15>, <https://github.com/tibonto/dfgfo/201-03>.
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides its subjects via IRIs. It produces an info message if it does not."@en ;
sh:name "Ontology subject(s) - datatype"@en ;
] ;
## Ontology annotation language(s)
### status: developer and external review needed
sh:property [
sh:path [sh:alternativePath (dcterms:language <https://schema.org/inLanguage>) ];
sh:severity sh:Info ;
sh:minCount 1 ;
sh:message """
You should provide information about the ontology annotation language(s) (e.g. for term labels, term definitions, etc.).
You should only claim that the ontology uses an annotation language, if all ontology elements or an extensive part of the ontology is annotaed in that languge.
Recommended controlled vocabulary: <http://id.loc.gov/vocabulary/iso639-2>
Recommended property: <https://schema.org/inLanguage>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:language <http://id.loc.gov/vocabulary/iso639-2/eng>, <http://id.loc.gov/vocabulary/iso639-2/tgl> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology specifies the languages it covers (e.g. for term labels, term definitions, etc.). It produces an info message if no language information is given."@en ;
sh:name "Ontology annotation language(s)"@en ;
] ;
sh:property [
sh:path [sh:alternativePath (dcterms:language <https://schema.org/inLanguage>) ];
sh:severity sh:Info ;
sh:nodeKind sh:IRI ;
sh:message """
You should specify the ontology annotation language(s) via IRIs.
Recommended controlled vocabulary: <http://id.loc.gov/vocabulary/iso639-2>
Recommended property: <https://schema.org/inLanguage>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:language <http://id.loc.gov/vocabulary/iso639-2/eng>, <http://id.loc.gov/vocabulary/iso639-2/tgl> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides information about its language coverage via IRIs. It produces an info message if it does not."@en ;
sh:name "Ontology annotation language(s) - datatype"@en ;
] ;
sh:property [
sh:path [sh:alternativePath (dcterms:language <https://schema.org/inLanguage>) ];
sh:severity sh:Info ;
sh:pattern "(^http://id.loc.gov/vocabulary/iso639-2/[a-z]{3}$|^https://id.loc.gov/vocabulary/iso639-2/[a-z]{3}$)" ;
sh:message """
You should provide ontology annotation language values that match the pattern for language identifiers from 'ISO 639-2: Codes for the Representation of Names of Languages - Part 2: Alpha-3 Code for the Names of Languages' (cf. https://id.loc.gov/vocabulary/iso639-2.html).
Example identifier: <http://id.loc.gov/vocabulary/iso639-2/tgl>
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the values for language coverage match the pattern for language identifiers from 'ISO 639-2: Codes for the Representation of Names of Languages - Part 2: Alpha-3 Code for the Names of Languages'. It produces an info message if they do not."@en ;
sh:name "Ontology annotation language(s) - pattern"@en ;
] ;
## Applied logical framework
### status: developer and external review needed
sh:property [
sh:path <https://w3id.org/mod#hasFormalityLevel>;
sh:severity sh:Info ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:message """
You should state which logical framework the ontology applies.
The information can be given as a text, referring to the Semantic Web Standard (e.g. 'OWL 2') and possibly the OWL profile (e.g. 'OWL 2 EL profile').
Recommended property: <https://w3id.org/mod#hasFormalityLevel>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> mod:hasFormalityLevel \"OWL version 2, EL profile\"@en .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology specifies the logical framework it applies. It produces an info message if the information is missing."@en ;
sh:name "Applied logical framework description"@en ;
] ;
sh:property [
sh:path <https://w3id.org/mod#hasFormalityLevel>;
sh:severity sh:Info ;
sh:datatype rdf:langString ;
sh:message """
You should provide the description of the logical framework applied by the ontology as an rdf:langString.
Recommended property: <https://w3id.org/mod#hasFormalityLevel>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> mod:hasFormalityLevel \"OWL version 2, EL profile\"@en .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology's information about it applied logical framework is provided as an rdf:langString. It produces an info message if it does not."@en ;
sh:name "Applied logical framework description - language"@en ;
] ;
## Ontology serialization/ file format
### status: developer and external review needed
sh:property [
sh:path [sh:alternativePath (<http://omv.ontoware.org/2005/05/ontology#hasOntologySyntax> <http://purl.org/dc/terms/format> <http://purl.org/dc/elements/1.1/format>) ];
sh:severity sh:Info ;
sh:minCount 1 ;
sh:message """
You should state the ontology's serialization/ file format.
The value should be provided as an IRI.
We recommend to provide the information about the media type/ file format of your ontology as one of the values from the Media Types list of the Internet Assigned Number Authority (IANA) (cf. https://www.iana.org/assignments/media-types/media-types.xhtml) or from the W3C resource "Unique URIs for File Formats" <https://www.w3.org/ns/formats/>:
In order to publish your ontology on the TIB Terminology Service, you must provide the ontology in one of the following formats:
- <https://www.iana.org/assignments/media-types/application/rdf+xml> resp. <http://www.w3.org/ns/formats/RDF_XML>
- <https://www.iana.org/assignments/media-types/text/turtle> resp. <http://www.w3.org/ns/formats/Turtle>
- OBO format (cf. http://purl.obolibrary.org/obo/oboformat/spec.html)
Currently, there is no registered media type for obo format.
Recommended property: <http://omv.ontoware.org/2005/05/ontology#hasOntologySyntax>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> omv:hasOntologySyntax <http://www.w3.org/ns/formats/RDF_XML> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology specifies its serialization/ file format. It produces an info message if it does not."@en ;
sh:name "Ontology serialization/ file format"@en ;
] ;
sh:property [
sh:path <http://omv.ontoware.org/2005/05/ontology#hasOntologySyntax>;
sh:severity sh:Info ;
sh:nodeKind sh:IRI ;
sh:message """
You should state the ontology's serialization/ file format.
The value should be provided as an IRI.
We recommend to provide the information about the media type/ file format of your ontology as one of the values from the Media Types list of the Internet Assigned Number Authority (IANA) (cf. https://www.iana.org/assignments/media-types/media-types.xhtml) or from the W3C resource "Unique URIs for File Formats" <https://www.w3.org/ns/formats/>:
In order to publish your ontology on the TIB Terminology Service, you must provide the ontology in one of the following formats:
- <https://www.iana.org/assignments/media-types/application/rdf+xml> resp. <http://www.w3.org/ns/formats/RDF_XML>
- <https://www.iana.org/assignments/media-types/text/turtle> resp. <http://www.w3.org/ns/formats/Turtle>
- OBO format (cf. http://purl.obolibrary.org/obo/oboformat/spec.html)
Currently, there is no registered media type for obo format.
Recommended property: <http://omv.ontoware.org/2005/05/ontology#hasOntologySyntax>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> omv:hasOntologySyntax <http://www.w3.org/ns/formats/RDF_XML> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology specifies its serialization/ file format via IRI. It produces an info message if it does not."@en ;
sh:name "Ontology serialization/ file format - datatype"@en ;
] ;
sh:property [
sh:path <http://omv.ontoware.org/2005/05/ontology#hasOntologySyntax>;
sh:severity sh:Info ;
sh:maxCount 1;
sh:xone (
# tbd: not all are relevant or digestable by the TS
# for the TS rdf+xml, turtle and obo are confirmed
# no expected value for obo ontologies > Ontorowser mentions application/obo and text/obo, but these are specific to the service, not officially acknowledged: https://github.com/Novartis/ontobrowser/blob/master/doc/web_services.md
# [sh:hasValue <http://www.w3.org/ns/formats/JSON-LD> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/N3> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/N-Triples> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/N-Quads> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/LD_Patch> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/microdata> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/OWL_XML> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/OWL_Functional> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/OWL_Manchester> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/POWDER> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/POWDER-S> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/PROV-N> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/PROV-XML> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/RDFa> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/RDF_JSON> ;]
[sh:hasValue <http://www.w3.org/ns/formats/RDF_XML> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/RIF_XML> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/SPARQL_Results_XML> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/SPARQL_Results_JSON> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/SPARQL_Results_CSV> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/SPARQL_Results_TSV> ;]
[sh:hasValue <http://www.w3.org/ns/formats/Turtle> ;]
# [sh:hasValue <http://www.w3.org/ns/formats/TriG> ;]
[sh:hasValue <https://www.iana.org/assignments/media-types/application/rdf+xml> ;]
[sh:hasValue <https://www.iana.org/assignments/media-types/text/turtle> ;]
# [sh:hasValue <https://www.iana.org/assignments/media-types/application/trig> ;]
# [sh:hasValue <https://www.iana.org/assignments/media-types/text/n3> ;]
# [sh:hasValue <https://www.iana.org/assignments/media-types/application/n-triples> ;]
# [sh:hasValue <https://www.iana.org/assignments/media-types/application/n-quads> ;]
# [sh:hasValue <https://www.iana.org/assignments/media-types/application/ld+json> ;]
);
sh:message """
You should state the ontology's serialization/ file format.
The value should be provided as an IRI.
We recommend to provide the information about the media type/ file format of your ontology as one of the values from the Media Types list of the Internet Assigned Number Authority (IANA) (cf. https://www.iana.org/assignments/media-types/media-types.xhtml) or from the W3C resource "Unique URIs for File Formats" <https://www.w3.org/ns/formats/>:
In order to publish your ontology on the TIB Terminology Service, you must provide the ontology in one of the following formats:
- <https://www.iana.org/assignments/media-types/application/rdf+xml> resp. <http://www.w3.org/ns/formats/RDF_XML>
- <https://www.iana.org/assignments/media-types/text/turtle> resp. <http://www.w3.org/ns/formats/Turtle>
- OBO format (cf. http://purl.obolibrary.org/obo/oboformat/spec.html)
Currently, there is no registered media type for obo format.
Recommended property: <http://omv.ontoware.org/2005/05/ontology#hasOntologySyntax>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> omv:hasOntologySyntax <http://www.w3.org/ns/formats/RDF_XML> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology's serialization/ file format value is from a selection of the recommended controlled lists. It produces an info message if there is more than one value or when the value is not from the selection of the list."@en ;
sh:name "Ontology serialization/ file format - controlled vocabulary value"@en ;
] ;
## Ontology status
### status: developer and external review needed
### for later: dedicated ontology_status property missing - suggest to OBO? if available: use instead of bibo:status
sh:property [
sh:path <http://purl.org/ontology/bibo/status> ;
sh:severity sh:Info ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:datatype rdf:langString ;
sh:message """
You should declare the current maintenance status of the ontology. You could use an English label to do so. We recommend using one of 'active', 'inactive', 'orphaned' or 'obsolete' (cf. https://obofoundry.org/docs/OntologyStatus.html).
The value you use should be language-tagged.
Recommended property: <http://purl.org/ontology/bibo/status>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> bibo:status "inactive"@en .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides its maintenance status. It produces an info message, if the information is missing."@en ;
sh:name "Ontology status"@en ;
] ;
## Ontology code repository
### status: developer and external review needed
sh:property [
sh:path <http://usefulinc.com/ns/doap#repository>;
sh:severity sh:Info ;
sh:minCount 1;
sh:maxCount 1;
sh:message """
You should provide the link to the ontology's code repository.
The ontology should be on a code repository and the ontology should contain the repository's IRI.
Recommended property: <http://usefulinc.com/ns/doap#repository>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> doap:repository <https://github.com/SomeOrganisation/SomeOntology> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology povides a link to its code repository. It produces an info message, if the information is missing."@en ;
sh:name "Ontology code repository"@en ;
] ;
sh:property [
sh:path <http://usefulinc.com/ns/doap#repository>;
sh:severity sh:Info ;
sh:nodeKind sh:IRI;
sh:message """
You should provide the link to the ontology's code repository as an IRI.
Recommended property: <http://usefulinc.com/ns/doap#repository>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> doap:repository <https://github.com/SomeOrganisation/SomeOntology> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology povides the link to its code repository as an IRI. It produces an info message, if the information is given as an xsd:string or the like."@en ;
sh:name "Ontology code repository - datatype"@en ;
] ;
## Ontology distributions/ products
### status: developer and external review needed
sh:property [
sh:path [ sh:alternativePath (<http://www.w3.org/ns/dcat#distribution> schema:distribution dcterms:hasFormat)];
sh:severity sh:Info ;
sh:minCount 1 ;
sh:nodeKind sh:IRI ;
sh:message """
You should provide IRIs to available alternative serializations or distributions of the ontology.
Recommended property: <http://www.w3.org/ns/dcat#distribution>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcat:distribution <https://www.purl.org/SomeOntology.owl>, <https://www.purl.org/SomeOntology.json>, <https://www.purl.org/SomeOntology.ttl> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides links to alternative serializations. It produces an info message if the ontology is missing or not provided as an IRI."@en ;
sh:name "Ontology distributions/ products"@en ;
] ;
## Application example
### status: developer and external review needed
sh:property [
sh:path <https://vocab.org/vann/example> ;
sh:severity sh:Info ;
sh:minCount 1 ;
sh:nodeKind sh:IRI ;
sh:message """
You should provide a link to an application example of the ontology.
Ideally, the ontology provides a PID to e.g. a publication describing applications of the ontology, or directly to an application or online service that uses the ontology.
Recommended property: <https://vocab.org/vann/example>
Example statement (text/turtle): <http://www.w3.org/ns/dcat> vann:example <https://www.w3.org/TR/vocab-dcat-2/#collection-of-examples> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides links to application examples. It produces an info message if the information is missing or not provided as an IRI."@en ;
sh:name "Application example"@en ;
] ;
## Related resource(s)
### status: developer and external review needed
sh:property [
sh:path dcterms:references ;
sh:severity sh:Info ;
sh:minCount 1 ;
sh:nodeKind sh:IRI ;
sh:message """
You should provide references to resources related to the ontology via IRI.
Related recources could for example be publications introducing, discussing, evaluating or describing the ontology, recources containing alignments of your ontology to other ontologies, or any other resources that you would like to reference in your ontology.
The reference should be provided via PID, for example a DOI, if available.
Recommended property: <http://purl.org/dc/terms/references>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:references <http://doi.org/10.00000/some0.ontolo> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides references to related resources as IRIs. It produces an info message if the information is missing or not provided as an IRI."@en ;
sh:name "Related resource(s)"@en ;
] ;
## Citation suggestion
### status: developer and external review needed
sh:property [
sh:path dcterms:bibliographicCitation ;
sh:severity sh:Info ;
sh:minCount 1 ;
sh:message """
You should provide information about how the ontology should be cited.
The information should be provided as an rdf:langString.
Recommended property: <http://purl.org/dc/terms/bibliographicCitation>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> dcterms:bibliographicCitation \"Last name, first name; last name, first name et al. (YYYY): Title. URL: https://w3id.org/SomeOntology/1.1.6\"@en .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape ckecks whether the ontology provides information about how it should be cited. It produces an info message if the information is missing."@en ;
sh:name "Citation suggestion"@en ;
] ;
## Ontology sources (derived from)
### status: developer and external review needed
sh:property [
sh:path [sh:alternativePath (<http://purl.org/pav/derivedFrom> <http://www.w3.org/ns/prov#wasDerivedFrom>)] ;
sh:severity sh:Info ;
sh:minCount 1 ;
sh:nodeKind sh:IRI ;
sh:message """
You should specify whether and from which other ontologies your ontology has been derived.
The reference should be made by an owl:versionIRI of the ontology from which the current ontology has been derived.
Recommended property: <http://purl.org/pav/derivedFrom>
Example statement (text/turtle): <https://www.purl.org/SomeOntology> pav:derivedFrom <https://www.purl.org/SomeOtherOntology/3.1.2> .
Need help? Learn more about SHACL: https://www.w3.org/TR/2017/REC-shacl-20170720/
"""@en ;
sh:description "This shape checks whether the ontology provides links to other ontologies it has been derived from. It produces an info message if the information is missing or not provided as IRIs."@en ;
sh:name "Ontology sources (derived from)"@en ;
];
## Ontology root classes
### status: developer and external review needed
sh:property [