-
Notifications
You must be signed in to change notification settings - Fork 0
/
contract-agreement-message-shape.ttl
42 lines (37 loc) · 1.42 KB
/
contract-agreement-message-shape.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 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/v0.8/> .
@prefix dspace_shapes: <https://w3id.org/dspace/shapes/v0.8/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
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/v0.8/"^^xsd:anyURI ;
] ;
.
shapes:ContractAgreementMessageShape
a sh:NodeShape ;
sh:targetClass dspace:ContractAgreementMessage ;
rdfs:subClassOf shapes:ContractNegotiationMessageShape ;
sh:property [
a sh:PropertyShape ;
sh:path odrl:agreement ;
sh:class odrl:Agreement ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:severity sh:Violation ;
sh:message "<https://raw.githubusercontent.com/International-Data-Spaces-Association/ids-specification/master/schemas/contract-agreement-message-shape.ttl> (ContractAgreementMessageShape): An odrl:agreement property must point to exactly one odrl:Agreement."@en ;
] ;
.