-
Notifications
You must be signed in to change notification settings - Fork 16
/
odrl-shapes.ttl
79 lines (71 loc) · 2.63 KB
/
odrl-shapes.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
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix dcat: <http://www.w3.org/ns/dcat#> .
@prefix odrl: <http://www.w3.org/ns/odrl/2/> .
@prefix cred: <https://www.w3.org/2018/credentials#> .
@prefix sec: <https://w3id.org/security#> .
@prefix dspace: <https://w3id.org/dspace/2024/1/> .
@prefix dspace_shapes: <https://w3id.org/dspace/shapes/2024/1/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
dspace_shapes:
a owl:Ontology ;
sh:declare [
sh:prefix "rdf" ;
sh:namespace "http://www.w3.org/1999/02/22-rdf-syntax-ns#"^^xsd:anyURI ;
] ;
sh:declare [
sh:prefix "dspace" ;
sh:namespace "https://w3id.org/dspace/2024/1/"^^xsd:anyURI ;
] ;
.
dspace_shapes:OfferShape
a sh:NodeShape ;
sh:targetClass odrl:Offer ;
sh:property [
a sh:PropertyShape ;
sh:path odrl:target ;
sh:datatype xsd:anyURI ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/odrl-shape.ttl> (OfferShape): An odrl:target property must point to exactly one xsd:anyURI."@en ;
] ;
.
dspace_shapes:AgreementShape
a sh:NodeShape ;
sh:targetClass odrl:Agreement ;
sh:property [
a sh:PropertyShape ;
sh:path odrl:target ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path dspace:timestamp ;
sh:datatype xsd:dateTime ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/odrl-shape.ttl> (AgreementShape): An dspace:timestamp property must point to exactly one xsd:dateTime value."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path odrl:assigner ;
sh:nodeKind sh:IRI ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/odrl-shape.ttl> (AgreementShape): An odrl:assigner property must point to exactly one Provider Node."@en ;
] ;
sh:property [
a sh:PropertyShape ;
sh:path odrl:assignee ;
sh:nodeKind sh:IRI ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/odrl-shape.ttl> (AgreementShape): An odrl:assignee property must point to exactly one Consumer Node."@en ;
] ;
.