-
Notifications
You must be signed in to change notification settings - Fork 6
/
QualifierShape.ttl
78 lines (71 loc) · 2.49 KB
/
QualifierShape.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
@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#> .
<#QualifierShape>
<<<<<<< HEAD
a sh:QualifierShape ;
sh:path rami:Qualifier ;
sh:datatype xsd:string ;
sh:minCount 1 ;
=======
a sh:NodeShape ;
sh:targetClass rami:Qualifier ;
sh:property [
sh:path rdf:type ;
sh:minCount 1 ;
] ;
>>>>>>> details_of_the_AAS_1.1
sh:property [
sh:path rami:qualifierType ;
sh:class rami:QualifierType ;
sh:minCount 1 ;
sh:maxCount 1 ; # MANDATORY!
sh:severity sh:Violation ;
sh:message "Exactly one QualifierType instance is mandatory"@en ;
] ;
sh:property [
sh:path rami:qualifierValue ;
sh:class rami:PropertyValueType ;
sh:minCount 0 ;
sh:maxCount 1 ;
<<<<<<< HEAD
#################################
##if-based-constraints???########
#
# TODO: CONSTRAINT (s. p. 43)
# [ rami:qualifierValueId sh:count 1 (
# sh:and (
# [ rami:qualifierValue sh:count 1 (
# sh:hasValue rami:qualifierValueId ; ) ;
# ] ;
# ) ;
#) ; ]; # INVALID SYNTAX
=======
sh:description "if value and valueID are both present, they must be identical."@en ;
# missing contstraint: AAS-d006
>>>>>>> details_of_the_AAS_1.1
sh:severity sh:Violation ;
sh:message "value and valueID need to be identical if both are present"@en ;
] ;
sh:property [
sh:path rami:qualifierValueId ;
sh:class rami:Reference ; # Reference is abstract and not defined
sh:minCount 0 ;
sh:maxCount 1 ;
sh:severity sh:Violation ;
sh:message "qualifierValueId is optional and of type Reference (abstract)" ;
] .
<<<<<<< HEAD
# inherits from Constraint (not defined in the pdf ?????????)
# TODO: Implement!
=======
#inherits from Constraint (not defined in the pdf ?????????)
>>>>>>> details_of_the_AAS_1.1
#########################################################
# inherits from HasSemantics #
# hasSemantics requirements are fulfilled by RDF itself #
#########################################################