-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathPersonShape_op_and_dp.ttl
More file actions
77 lines (75 loc) · 1.56 KB
/
PersonShape_op_and_dp.ttl
File metadata and controls
77 lines (75 loc) · 1.56 KB
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
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <http://schema.org/> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix dbo: <http://dbpedia.org/ontology/> .
schema:PersonShape a sh:NodeShape ;
sh:targetClass dbo:Person ;
sh:property [
sh:path rdfs:label;
sh:minCount 1 ;
sh:datatype xsd:string;
];
sh:or (
[
sh:property [
sh:path dbo:birthDate;
sh:datatype xsd:date;
sh:minCount 1;
sh:maxCount 1;
]
]
[
sh:property [
sh:path dbo:birthYear;
sh:datatype xsd:gYear;
sh:minCount 1;
sh:maxCount 1;
]
]
);
sh:property [
sh:path dbo:deathYear;
sh:minCount 0;
sh:maxCount 1;
sh:datatype xsd:gYear;
];
sh:property [
sh:path dbo:alias;
sh:datatype xsd:string ;
sh:minCount 0;
sh:maxCount 10;
sh:nodeKind sh:Literal;
];
sh:property [
sh:path dbo:birthName ;
sh:datatype xsd:string ;
sh:minCount 0;
sh:maxCount 1;
sh:nodeKind sh:Literal ;
] ;
sh:property [
sh:path dbo:deathDate ;
sh:datatype xsd:date ;
sh:minCount 0;
sh:maxCount 1;
] ;
sh:property [
sh:path dbo:birthPlace ;
sh:class dbo:Place ;
sh:minCount 0;
sh:maxCount 1;
] ;
sh:property [
sh:path dbo:deathPlace ;
sh:class dbo:Place ;
sh:minCount 0;
sh:maxCount 1;
] ;
sh:property [
sh:path dbo:nationality ;
sh:class dbo:Country ;
sh:minCount 0;
sh:maxCount 10;
].