forked from i40-Tools/RAMIOntology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDataSpecificationShape.ttl
42 lines (38 loc) · 1.52 KB
/
DataSpecificationShape.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
@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#> .
# author: Sebastian Bader ([email protected])
# Resources:
# RAMI Ontology: https://vocol.iais.fraunhofer.de/rami/
# W3C recommendation: https://www.w3.org/TR/shacl/
# SHACL syntax checking: http://shacl.org/playground/
# SHACL Advanced Features: https://w3c.github.io/data-shapes/shacl-af/
<#DataSpecificationShape>
a sh:NodeShape ;
sh:targetClass rami:DataSpecification ;
sh:property [
sh:path rdf:type ;
sh:minCount 1 ; # this statement is redundant as each instance of type ids:Rule has at least one class relation (type).
#sh:message ""@en ;
] ;
sh:constraint [
sh:nodeKind sh:IRI ;
sh:message "Each DataSpecification object must be a URI."@en ;
] ;
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 ;
] .