-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaatc_shacl.ttl
65 lines (61 loc) · 1.56 KB
/
aatc_shacl.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
@prefix dct: <http://purl.org/dc/terms/> .
@prefix ex: <http://example.com/ns#> .
@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 skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
ex:ConceptShape
a sh:NodeShape ;
sh:targetClass skos:Concept ;
sh:property [
sh:path skos:prefLabel ;
# sh:maxCount 2 ;
sh:minCount 1 ; # note: there are terms with only EN labels
sh:datatype rdf:langString ;
] ;
sh:property [
sh:path skos:inScheme ;
sh:class skos:ConceptScheme ;
sh:nodeKind sh:IRI ;
] ;
sh:property [
sh:path rdf:type ;
sh:nodeKind sh:IRI ;
sh:hasValue skos:Concept
] ;
sh:closed true .
ex:ConceptSchemeShape
a sh:NodeShape ;
sh:targetClass skos:ConceptScheme ;
sh:property [
sh:path dct:title ;
sh:datatype rdf:langString ;
] ;
sh:property [
sh:path rdfs:label ;
sh:datatype rdf:langString ;
] ;
sh:property [
sh:path rdfs:comment ;
sh:datatype rdf:langString ;
] ;
sh:property [
sh:path dct:creator ;
sh:nodeKind sh:IRI ;
] ;
sh:property [
sh:path dct:license ;
sh:nodeKind sh:IRI ;
] ;
sh:property [
sh:path dct:created ;
sh:nodeKind sh:Literal ;
sh:datatype xsd:date ;
] ;
sh:property [
sh:path rdf:type ;
sh:nodeKind sh:IRI ;
sh:hasValue skos:ConceptScheme
] ;
sh:closed true .