aboutsummaryrefslogtreecommitdiffstats
path: root/lv2/patch/patch.ttl
blob: e8fe8c604aff0a0c23f2a695717080b94c7f61ea (plain)
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
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix patch: <http://lv2plug.in/ns/ext/patch#> .
@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#> .

<http://lv2plug.in/ns/ext/patch>
	a owl:Ontology ;
	rdfs:seeAlso <patch.h> ,
		<patch.meta.ttl> ;
	rdfs:label "LV2 Patch" ;
	rdfs:comment "A protocol for accessing and manipulating properties." .

patch:Ack
	a rdfs:Class ;
	rdfs:subClassOf patch:Response ;
	rdfs:label "Ack" ;
	rdfs:comment "An acknowledgement that a request was successful." .

patch:Copy
	a rdfs:Class ;
	rdfs:subClassOf patch:Request ;
	rdfs:label "Copy" ;
	rdfs:subClassOf [
		a owl:Restriction ;
		owl:minCardinality 1 ;
		owl:onProperty patch:subject
	] , [
		a owl:Restriction ;
		owl:cardinality 1 ;
		owl:onProperty patch:destination
	] ;
	rdfs:comment "A request to copy the patch:subject to the patch:destination." .

patch:Delete
	a rdfs:Class ;
	rdfs:subClassOf patch:Request ;
	rdfs:label "Delete" ;
	rdfs:comment "Request that the patch:subject or subjects be deleted." .

patch:Error
	a rdfs:Class ;
	rdfs:subClassOf patch:Response ;
	rdfs:label "Error" ;
	rdfs:comment "A response indicating an error processing a request." .

patch:Get
	a rdfs:Class ;
	rdfs:subClassOf patch:Request ;
	rdfs:label "Get" ;
	rdfs:comment "A request for a description of the patch:subject." .

patch:Insert
	a rdfs:Class ;
	rdfs:subClassOf patch:Request ;
	rdfs:label "Insert" ;
	rdfs:subClassOf [
		a owl:Restriction ;
		owl:cardinality 1 ;
		owl:onProperty patch:subject
	] ;
	rdfs:comment "A request to insert a patch:body into the patch:subject." .

patch:Message
	a rdfs:Class ;
	rdfs:label "Patch Message" ;
	rdfs:comment "A patch message." .

patch:Move
	a rdfs:Class ;
	rdfs:subClassOf patch:Request ;
	rdfs:label "Move" ;
	rdfs:subClassOf [
		a owl:Restriction ;
		owl:cardinality 1 ;
		owl:onProperty patch:subject
	] , [
		a owl:Restriction ;
		owl:cardinality 1 ;
		owl:onProperty patch:destination
	] ;
	rdfs:comment "A request to move the patch:subject to the patch:destination." .

patch:Patch
	a rdfs:Class ;
	rdfs:subClassOf patch:Request ,
	[
		a owl:Restriction ;
		owl:minCardinality 1 ;
		owl:onProperty patch:subject
	] , [
		a owl:Restriction ;
		owl:cardinality 1 ;
		owl:onProperty patch:add
	] , [
		a owl:Restriction ;
		owl:cardinality 1 ;
		owl:onProperty patch:remove
	] ;
	rdfs:label "Patch" ;
	rdfs:comment "A request to add and/or remove properties of the patch:subject." .

patch:Put
	a rdfs:Class ;
	rdfs:subClassOf patch:Request ;
	rdfs:label "Put" ;
	rdfs:subClassOf [
		a owl:Restriction ;
		owl:cardinality 1 ;
		owl:onProperty patch:subject
	] ;
	rdfs:comment "A request to put the patch:body as the patch:subject." .

patch:Request
	a rdfs:Class ;
	rdfs:label "Request" ;
	rdfs:subClassOf patch:Message ;
	rdfs:comment "A patch request message." .

patch:Response
	a rdfs:Class ;
	rdfs:subClassOf patch:Message ;
	rdfs:label "Response" ;
	rdfs:comment "A response to a patch:Request." .

patch:Set
	a rdfs:Class ;
	rdfs:label "Set" ;
	rdfs:subClassOf patch:Request ,
	[
		a owl:Restriction ;
		owl:cardinality 1 ;
		owl:onProperty patch:property
	] , [
		a owl:Restriction ;
		owl:cardinality 1 ;
		owl:onProperty patch:value
	] ;
	rdfs:comment "A compact request to set a property to a value." .

patch:accept
	a rdf:Property ,
		owl:ObjectProperty ;
	rdfs:label "accept" ;
	rdfs:domain patch:Request ;
	rdfs:range rdfs:Class ;
	rdfs:comment "An accepted type for a response." .

patch:add
	a rdf:Property ,
		owl:ObjectProperty ,
		owl:FunctionalProperty ;
	rdfs:domain patch:Patch ;
	rdfs:range rdfs:Resource ;
	rdfs:label "add" ;
	rdfs:comment "The properties to add to the subject." .

patch:body
	a rdf:Property ,
		owl:ObjectProperty ,
		owl:FunctionalProperty ;
	rdfs:domain patch:Message ;
	rdfs:label "body" ;
	rdfs:comment "The body of a message." .

patch:context
	a rdf:Property ,
		owl:ObjectProperty ;
	rdfs:domain patch:Message ;
	rdfs:label "context" ;
	rdfs:comment "The context of properties in this message." .

patch:destination
	a rdf:Property ,
		owl:ObjectProperty ,
		owl:FunctionalProperty ;
	rdfs:domain patch:Message ;
	rdfs:label "destination" ;
	rdfs:comment "The destination to move the patch:subject to." .

patch:property
	a rdf:Property ,
		owl:ObjectProperty ;
	rdfs:label "property" ;
	rdfs:domain patch:Message ;
	rdfs:range rdf:Property ;
	rdfs:comment "The property for a patch:Set or patch:Get message." .

patch:readable
	a rdf:Property ,
		owl:ObjectProperty ;
	rdfs:label "readable" ;
	rdfs:range rdf:Property ;
	rdfs:comment "A property that can be read with a patch:Get message." .

patch:remove
	a rdf:Property ,
		owl:ObjectProperty ,
		owl:FunctionalProperty ;
	rdfs:label "remove" ;
	rdfs:domain patch:Patch ;
	rdfs:range rdfs:Resource ;
	rdfs:comment "The properties to remove from the subject." .

patch:request
	a rdf:Property ,
		owl:ObjectProperty ,
		owl:FunctionalProperty ;
	rdfs:label "request" ;
	rdfs:domain patch:Response ;
	rdfs:range patch:Request ;
	rdfs:comment "The request this is a response to." .

patch:sequenceNumber
	a rdf:Property ,
		owl:ObjectProperty ,
		owl:FunctionalProperty ;
	rdfs:label "sequence number" ;
	rdfs:domain patch:Message ;
	rdfs:range xsd:int ;
	rdfs:comment "The sequence number of a request or response." .

patch:subject
	a rdf:Property ,
		owl:ObjectProperty ,
		owl:FunctionalProperty ;
	rdfs:domain patch:Message ;
	rdfs:label "subject" ;
	rdfs:comment "The subject this message applies to." .

patch:value
	a rdf:Property ,
		owl:DatatypeProperty ;
	rdfs:label "value" ;
	rdfs:domain patch:Set ;
	rdfs:range rdf:Property ;
	rdfs:comment "The value of a property in a patch:Set message." .

patch:wildcard
	a rdfs:Resource ;
	rdfs:label "wildcard" ;
	rdfs:comment "A wildcard that matches any resource." .

patch:writable
	a rdf:Property ,
		owl:ObjectProperty ;
	rdfs:label "writable" ;
	rdfs:range rdf:Property ;
	rdfs:comment "A property that can be set with a patch:Set or patch:Patch message." .