-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathshapetrees.ttl
257 lines (223 loc) · 8.94 KB
/
shapetrees.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
BASE <http://www.w3.org/ns/shapetrees>
PREFIX : <#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX dcterms: <http://purl.org/dc/terms/>
PREFIX owl: <http://www.w3.org/2002/07/owl#>
<>
dcterms:issued "2020-07-01"^^xsd:date ;
dcterms:modified "2020-07-06"^^xsd:date ;
rdfs:label "ShapeTree terms"@en .
# ShapeTree Class
#############################################################################
# Defines a tree of related resources which combine to enable some task
# see: https://shapetrees.org/TR/specification/
#############################################################################
:ShapeTree
a rdfs:Class ;
rdfs:comment "Defines a composite data structure including a tree of resources and validation criteria"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Shape Tree"@en .
:expectsType
a owl:ObjectProperty ;
rdfs:domain :ShapeTree ;
rdfs:range [ owl:oneOf ( :Container :Resource ) ] ;
rdfs:comment "Describes the expected type of resource the ShapeTree will validate against."@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Expects Type"@en .
:contains
a owl:ObjectProperty ;
rdfs:domain :ShapeTree ;
rdfs:range :ShapeTree ;
rdfs:comment "Links a ShapeTree to another ShapeTree that is directly contained within its planted ShapeTreeContainer"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Contains"@en .
:references
a owl:ObjectProperty ;
rdfs:domain :ShapeTree ;
rdfs:range :Reference ;
rdfs:isDefinedBy <> ;
rdfs:comment "Links a ShapeTree to a Shape Tree Reference"@en ;
rdfs:label "References"@en .
:shape
a owl:ObjectProperty ;
rdfs:domain :ShapeTree ;
rdfs:comment "Links a ShapeTree to a Shape"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Shape"@en .
# Container IRI (maps to ldp:Container)
#############################################################################
# An IRI that represents a generalized container used in a ShapeTree
#############################################################################
:Container
rdfs:comment "Describes a generalized container within a ShapeTree ecosystem"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Container"@en .
# Resource IRI (maps to ldp:Resource)
#############################################################################
# An IRI that represents a generalized resource used in a ShapeTree
#############################################################################
:Resource
rdfs:comment "Describes a generalized RDF resource (non-container) within a ShapeTree ecosystem"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Resource"@en .
# NonRDFResource IRI (maps to ldp:NonRDFSource)
#############################################################################
# An IRI that represents a generalized resource used in a ShapeTree
#############################################################################
:NonRDFResource
rdfs:comment "Describes a generalized non RDF / binary content within a ShapeTree ecosystem"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Non-RDF Resource"@en .
# Shape Tree Reference class
#############################################################################
# An st:Reference provides the necessary context to associate instance
# data between related ShapeTrees via a ShapePath
#############################################################################
:Reference
a rdfs:Class ;
rdfs:comment "Describes how a ShapeTree references another ShapeTree"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Shape Tree Reference"@en .
:referencesShapeTree
a owl:DatatypeProperty ;
rdfs:domain :Reference ;
rdfs:range :ShapeTree ;
rdfs:comment "Point to the shape tree this is being referenced"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "referencesShapeTree"@en .
:viaShapePath
a owl:DatatypeProperty ;
rdfs:domain :Reference ;
rdfs:range xsd:string ;
rdfs:comment "Describes how one ShapeTree traverses its instance data to reach another ShapeTree via a ShapePath"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Via ShapePath"@en .
:viaPredicate
a owl:DatatypeProperty ;
rdfs:domain :Reference ;
rdfs:comment "Describes how one ShapeTree traverses its instance data to reach another ShapeTree via predicate"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Via Predicate"@en .
# Shape Tree Description Set
#############################################################################
# An st:DescriptionSet details a ShapeTree in a human-readable way.
# It is primarily used for use cases where a ShapeTree must be described to
# a user in scenarios like authorization or data listings
#############################################################################
:DescriptionSet
a rdfs:Class ;
rdfs:comment "Provides an index of SKOS poly-hierarchies which can be used to describe a ShapeTree"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Shape Tree Description Set"@en .
:describedBy
a owl:ObjectProperty ;
rdfs:range :DescriptionSet ;
rdfs:isDefinedBy <> ;
rdfs:label "Described By"@en .
:usesLanguage
a owl:ObjectProperty ;
rdfs:domain :ShapeTreeDecoratorIndex ;
rdfs:range xsd:language ;
rdfs:comment "Describes the language used by associated ShapeTreeDecoratorResource"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Uses language"@en .
# Shape Tree Description
#############################################################################
# A Shape Tree Description is used to explain the details of a Shape Tree
#############################################################################
:Description
a rdfs:Class ;
rdfs:comment "A Shape Tree Description is used to explain the details of a shape tree"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Shape Tree Description"@en .
:describes
a owl:ObjectProperty ;
rdfs:domain :Description ;
rdfs:range :ShapeTree ;
rdfs:comment "The Shape Tree that the Description describes"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Describes"@en .
:describesInstance
a owl:ObjectProperty ;
rdfs:domain :Description ;
rdfs:comment ""@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Describes Instance"@en .
:inDescriptionSet
a owl:ObjectProperty ;
rdfs:domain :Description ;
rdfs:range :DescriptionSet ;
rdfs:comment "The DescriptionSet that the Description belongs to"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "In Description Set"@en .
# Shape Tree Manager
#############################################################################
# An st:Manager associates a managed resource with one or more
# shape trees.
#############################################################################
:Manager
a rdfs:Class ;
rdfs:comment "Associates a managed resource with one or more shape trees."@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Shape Tree Manager"@en .
:hasAssignment
a owl:ObjectProperty ;
rdfs:range :Assignment ;
rdfs:comment "Links to a Shape Tree Assignment"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Has Shape Tree Assignment"@en .
:managedBy
a owl:ObjectProperty ;
rdfs:comment "Links a Shape Tree Manager to a managed resource"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Managed By"@en .
# Shape Tree Assignment
#############################################################################
# An st:Assignment identifies a shape tree and the managed resource it is
# associated with, the focus node for shape validation, and the information
# needed to navigate the physical hierarchy in which that managed resource
# resides.
#############################################################################
:Assignment
a rdfs:Class ;
rdfs:comment "identifies a shape tree and the managed resource it is associated with, the focus node for shape validation, and the information needed to navigate the physical hierarchy in which that managed resource resides"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Shape Tree Assignment"@en .
:manages
a owl:ObjectProperty ;
rdfs:domain :Manager ;
rdfs:comment "Identifies the managed resource the shape tree is assigned to"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Manages Resource"@en .
:hasRootAssignment
a owl:ObjectProperty ;
rdfs:range :Assignment ;
rdfs:comment "Identifies the root shape tree assignment"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Has Root Shape Tree Assignment"@en .
:focusNode
a owl:ObjectProperty ;
rdfs:domain :Assignment ;
rdfs:comment "Identifies the focus node for shape validation in the associated managed resource"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Has Focus Node"@en .
:assigns
a owl:ObjectProperty ;
rdfs:range :ShapeTree ;
rdfs:comment "Represents the IRI of a ShapeTree that is assigned"@en ;
rdfs:isDefinedBy <> ;
rdfs:label "Assigns Shape Tree"@en .
################################################################
# Resource Type Shape Tree Definitions
################################################################
:NonRDFResourceTree
a :ShapeTree ;
:expectsType :NonRDFResource .
:ResourceTree
a :ShapeTree ;
:expectsType :Resource .
:ContainerTree
a :ShapeTree ;
:expectsType :Container .