-
Notifications
You must be signed in to change notification settings - Fork 0
/
rdf-connect.ttl
476 lines (431 loc) · 15 KB
/
rdf-connect.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
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>.
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix cc: <http://creativecommons.org/ns#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix rdfl: <https://w3id.org/rdf-lens/ontology#> .
@prefix rdfc: <https://w3id.org/rdf-connect#> .
@prefix rdfc-js: <https://w3id.org/rdf-connect/js#> .
@prefix rdfc-jvm: <https://w3id.org/rdf-connect/jvm#> .
rdfc: a owl:Ontology ;
cc:license <https://creativecommons.org/licenses/by/4.0/> ;
dct:author [
a foaf:Person ;
foaf:name "Arthur Vercruysse"
] ;
dct:contributor
[
a foaf:Person ;
foaf:name "Jens Pots"
] ,
<https://julianrojas.org/#me> ,
<https://pietercolpaert.be/#me> ;
dct:issued "2024-07-29"^^xsd:date ;
dct:modified "2024-08-02"^^xsd:date ;
dct:title "RDF-Connect ontology"@en ;
rdfs:comment "Ontology for describing data processing pipelines in the RDF-Connect framework"@en ;
owl:versionInfo "v0.1.1"@en ;
owl:versionURI <https://github.com/rdf-connect/ontology/releases/tag/v0.1.0> ;
owl:imports rdfc-js:, rdfc-jvm: . # Import JavaScript and JVM-specific classes
#################################################################
# Classes
#################################################################
rdfc:Runner a rdfs:Class ;
rdfs:label "Runner" ;
rdfs:comment "An application for running execution environment specific processors" ;
dct:created "2024-07-29"^^xsd:date .
rdfc:Processor a rdfs:Class ;
rdfs:label "Processor" ;
rdfs:comment "A data processing unit that can be executed by a runner" ;
dct:created "2024-07-29"^^xsd:date .
rdfc:Channel a rdfs:Class ;
rdfs:label "Channel" ;
rdfs:comment "A data channel that enables communication among processors" ;
dct:created "2024-07-29"^^xsd:date .
rdfc:ReaderChannel a rdfs:Class ;
rdfs:subClassOf rdfc:Channel ;
rdfs:label "Reader channel" ;
rdfs:comment "Reading end of a channel from which processors can read/listen to data flows" ;
dct:created "2024-07-29"^^xsd:date .
rdfc:WriterChannel a rdfs:Class ;
rdfs:subClassOf rdfc:Channel ;
rdfs:label "Writer channel" ;
rdfs:comment "Writing end of a channel to which processors can write/push data flows" ;
dct:created "2024-07-29"^^xsd:date .
#################################################################
# Properties
#################################################################
rdfc:supportsChannel a rdfs:Property ;
rdfs:label "supports channel" ;
rdfs:comment "Indicates that a runner supports a specific channel type" ;
rdfs:domain rdfc:Runner ;
rdfs:range rdfs:Class ;
dct:created "2024-08-02"^^xsd:date .
rdfc:executedBy a rdfs:Property ;
rdfs:label "executed by" ;
rdfs:comment "Indicates the class of runners that can execute a specific processor" ;
rdfs:domain rdfc:Processor ;
rdfs:range rdfs:Class ;
dct:created "2024-08-02"^^xsd:date .
rdfc:reader a rdfs:Property ;
rdfs:label "reader" ;
rdfs:comment "Indicates the reader end of a channel" ;
rdfs:domain rdfc:Channel ;
rdfs:range rdfc:ReaderChannel ;
dct:created "2024-08-01"^^xsd:date .
rdfc:writer a rdfs:Property ;
rdfs:label "writer" ;
rdfs:comment "Indicates the writer end of a channel" ;
rdfs:domain rdfc:Channel ;
rdfs:range rdfc:WriterChannel ;
dct:created "2024-08-01"^^xsd:date .
#################################################################
# Channel types
#################################################################
rdfc:FileChannel a rdfs:Class ;
rdfs:subClassOf rdfc:Channel ;
rdfs:label "File channel" ;
rdfs:comment "A channel that passes data among processors via files" ;
dct:created "2024-08-02"^^xsd:date .
rdfc:FileReaderChannel a rdfs:Class ;
rdfs:subClassOf rdfc:ReaderChannel ;
rdfs:label "File reader channel" ;
rdfs:comment "Reading end of a file channel from which processors can read/listen to data flows" ;
dct:created "2024-08-02"^^xsd:date .
rdfc:FileWriterChannel a rdfs:Class ;
rdfs:subClassOf rdfc:WriterChannel ;
rdfs:label "File writer channel" ;
rdfs:comment "Writing end of a file channel to which processors can write/push data flows" ;
dct:created "2024-08-02"^^xsd:date .
rdfc:HttpChannel a rdfs:Class ;
rdfs:subClassOf rdfc:Channel ;
rdfs:label "HTTP channel" ;
rdfs:comment "A channel that enables HTTP-based communication for processors" ;
dct:created "2024-08-02"^^xsd:date .
rdfc:HttpReaderChannel a rdfs:Class ;
rdfs:subClassOf rdfc:ReaderChannel ;
rdfs:label "HTTP reader channel" ;
rdfs:comment "Reading end of an HTTP channel from which processors can read/listen to data flows" ;
dct:created "2024-08-02"^^xsd:date .
rdfc:HttpWriterChannel a rdfs:Class ;
rdfs:subClassOf rdfc:WriterChannel ;
rdfs:label "HTTP writer channel" ;
rdfs:comment "Writing end of an HTTP channel to which processors can write/push data flows" ;
dct:created "2024-08-02"^^xsd:date .
rdfc:WebSocketChannel a rdfs:Class ;
rdfs:subClassOf rdfc:Channel ;
rdfs:label "WebSocket channel" ;
rdfs:comment "A channel that enables WebSocket-based communication for processors" ;
dct:created "2024-08-02"^^xsd:date .
rdfc:WebSocketReaderChannel a rdfs:Class ;
rdfs:subClassOf rdfc:ReaderChannel ;
rdfs:label "WebSocket reader channel" ;
rdfs:comment "Reading end of a WebSocket channel from which processors can read/listen to data flows" ;
dct:created "2024-08-02"^^xsd:date .
rdfc:WebSocketWriterChannel a rdfs:Class ;
rdfs:subClassOf rdfc:WriterChannel ;
rdfs:label "WebSocket writer channel" ;
rdfs:comment "Writing end of a WebSocket channel to which processors can write/push data flows" ;
dct:created "2024-08-02"^^xsd:date .
rdfc:KafkaChannel a rdfs:Class ;
rdfs:subClassOf rdfc:Channel ;
rdfs:label "Kafka channel" ;
rdfs:comment "A channel that enables Kafka-based communication for processors" ;
dct:created "2024-08-02"^^xsd:date .
rdfc:KafkaReaderChannel a rdfs:Class ;
rdfs:subClassOf rdfc:ReaderChannel ;
rdfs:label "Kafka reader channel" ;
rdfs:comment "Reading end of a Kafka channel from which processors can read/listen to data flows" ;
dct:created "2024-08-02"^^xsd:date .
rdfc:KafkaWriterChannel a rdfs:Class ;
rdfs:subClassOf rdfc:WriterChannel ;
rdfs:label "Kafka writer channel" ;
rdfs:comment "Writing end of a Kafka channel to which processors can write/push data flows" ;
dct:created "2024-08-02"^^xsd:date .
#################################################################
# Channel Shapes
#################################################################
rdfc:ReaderChannelShape a sh:NodeShape ;
sh:targetClass rdfc:ReaderChannel ;
sh:property [
sh:path ( ) ;
sh:name "id" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:datatype xsd:iri
], [
sh:path rdf:type ;
sh:name "ty" ;
sh:maxCount 1 ;
sh:datatype xsd:iri
], [
sh:path ( ) ;
sh:name "config" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:class rdfl:TypedExtract
] .
rdfc:WriterChannelShape a sh:NodeShape ;
sh:targetClass rdfc:WriterChannel ;
sh:property [
sh:path ( ) ;
sh:name "id" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:datatype xsd:iri
], [
sh:path rdf:type ;
sh:name "ty" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:datatype xsd:iri
], [
sh:path ( ) ;
sh:name "config" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:class rdfl:TypedExtract
] .
rdfc:FileChannelShape a sh:NodeShape ;
sh:targetClass rdfc:FileChannel ;
sh:property [
sh:path rdfc:reader ;
sh:name "reader" ;
sh:maxCount 1 ;
sh:class rdfc:FileReaderChannel
], [
sh:path rdfc:writer ;
sh:name "writer" ;
sh:maxCount 1 ;
sh:class rdfc:FileWriterChannel
] .
rdfc:FileRWChannelShape a sh:NodeShape;
sh:targetClass rdfc:FileReaderChannel, rdfc:FileWriterChannel ;
sh:property [
sh:path rdfc:filePath ;
sh:name "path" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:datatype xsd:string ;
sh:description "Path of the used file"
], [
sh:path rdfc:fileOnReplace ;
sh:name "onReplace" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:datatype xsd:boolean ;
sh:description "Boolean indicating if the files is always replaced, or appended to"
], [
sh:path rdfc:fileReadFirstContent ;
sh:name "readFirstContent" ;
sh:maxCount 1 ;
sh:datatype xsd:boolean ;
sh:description "Boolean indicating whether or not the initial content is also a message"
], [
sh:path rdfc:fileEncoding ;
sh:name "encoding" ;
sh:maxCount 1 ;
sh:datatype xsd:string ;
sh:description "The encoding used for the file"
].
rdfc:HttpChannelShape a sh:NodeShape ;
sh:targetClass rdfc:HttpChannel ;
sh:property [
sh:path rdfc:reader ;
sh:name "reader" ;
sh:maxCount 1 ;
sh:class rdfc:HttpReaderChannel
], [
sh:path rdfc:writer ;
sh:name "writer" ;
sh:maxCount 1 ;
sh:class rdfc:HttpWriterChannel
] .
rdfc:HttpChannelReaderShape a sh:NodeShape ;
sh:targetClass rdfc:HttpReaderChannel ;
sh:property [
sh:path rdfc:httpEndpoint ;
sh:name "endpoint" ;
sh:maxCount 1 ;
sh:datatype xsd:string ;
sh:description "Used endpoint"
], [
sh:path rdfc:httpPort ;
sh:name "port" ;
sh:maxCount 1 ;
sh:datatype xsd:integer ;
sh:description "Used port" ;
], [
sh:path rdfc:binary ;
sh:name "binary" ;
sh:maxCount 1 ;
sh:datatype xsd:boolean ;
sh:description "Stream raw bytes if true" ;
], [
sh:path rdfc:waitHandled ;
sh:name "waitHandled" ;
sh:maxCount 1 ;
sh:datatype xsd:boolean ;
sh:description "Wait for handlers to be have handled the incoming message"
], [
sh:path rdfc:responseCode ;
sh:name "responseCode" ;
sh:maxCount 1 ;
sh:datatype xsd:integer ;
sh:description "Specify the expected response code (default 200)"
] .
rdfc:HttpChannelWriterShape a sh:NodeShape ;
sh:targetClass rdfc:HttpWriterChannel ;
sh:property [
sh:path rdfc:httpEndpoint ;
sh:name "endpoint" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:datatype xsd:string ;
sh:description "Used endpoint"
], [
sh:path rdfc:httpMethod ;
sh:name "method" ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:datatype xsd:string ;
sh:description "Used method"
] .
rdfc:WebSocketChannelShape a sh:NodeShape ;
sh:targetClass rdfc:WebSocketChannel ;
sh:property [
sh:path rdfc:reader ;
sh:name "reader" ;
sh:maxCount 1 ;
sh:class rdfc:WebSocketReaderChannel
], [
sh:path rdfc:writer ;
sh:name "writer" ;
sh:maxCount 1 ;
sh:class rdfc:WebSocketWriterChannel
] .
rdfc:WebSocketReaderChannelShape a sh:NodeShape ;
sh:targetClass rdfc:WebSocketReaderChannel ;
sh:property [
sh:name "port" ;
sh:path rdfc:wsPort ;
sh:datatype xsd:integer ;
sh:maxCount 1 ;
sh:minCount 1 ;
], [
sh:name "host" ;
sh:path rdfc:wsHost ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:minCount 1 ;
] .
rdfc:WebSocketWriterChannelShape a sh:NodeShape ;
sh:targetClass rdfc:WebSocketWriterChannel ;
sh:property [
sh:name "url" ;
sh:path rdfc:wsUrl ;
sh:datatype xsd:string ;
sh:maxCount 1 ;
sh:minCount 1
] .
rdfc:KafkaChannelShape a sh:NodeShape ;
sh:targetClass rdfc:KafkaChannel ;
sh:property [
sh:path rdfc:reader ;
sh:name "reader" ;
sh:maxCount 1 ;
sh:class rdfc:KafkaReaderChannel
], [
sh:path rdfc:writer ;
sh:name "writer" ;
sh:maxCount 1 ;
sh:class rdfc:KafkaWriterChannel
] .
rdfc:KafkaReaderChannelShape a sh:NodeShape ;
sh:targetClass rdfc:KafkaReaderChannel ;
sh:property [
sh:path rdfc:kafkaTopic ;
sh:name "topic" ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:class rdfc:KafkaTopic ;
sh:description "Information about the used topic"
], [
sh:path rdfc:kafkaConsumer ;
sh:name "consumer" ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:class rdfc:KafkaConsumer ;
sh:description "Information about the kafka consumer"
], [
sh:path rdfc:kafkaBroker ;
sh:name "broker" ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:class rdfc:KafkaBroker ;
sh:description "Information about the kafka broker"
] .
rdfc:KafkaWriterChannelShape a sh:NodeShape ;
sh:targetClass rdfc:KafkaWriterChannel ;
sh:property [
sh:path rdfc:kafkaTopic ;
sh:name "topic" ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:class rdfc:KafkaTopic ;
sh:description "Information about the used topic"
], [
sh:path rdfc:kafkaBroker ;
sh:name "broker" ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:class rdfc:KafkaBroker ;
sh:description "Information about the kafka broker"
], [
sh:path rdfc:kafkaProducer ;
sh:name "producer" ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:class rdfc:KafkaProducer ;
sh:description "Information about the kafka producer"
] .
rdfc:KafkaTopicShape a sh:NodeShape ;
sh:targetClass rdfc:KafkaTopic ;
sh:property [
sh:path rdfc:topicName ;
sh:name "name" ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:datatype xsd:string ;
sh:description "Name of the topic"
], [
sh:path rdfc:topicFromBeginning ;
sh:name "fromBeginning" ;
sh:maxCount 1 ;
sh:datatype xsd:boolean ;
sh:description "Restart the topic from the beginning"
] .
rdfc:KafkaConsumerShape a sh:NodeShape ;
sh:targetClass rdfc:KafkaConsumer ;
sh:property [
sh:path rdfc:groupId ;
sh:name "groupId" ;
sh:minCount 1 ;
sh:maxCount 1 ;
sh:datatype xsd:string ;
sh:description "Group identifier"
].
rdfc:KafkaBrokerShape a sh:NodeShape ;
sh:targetClass rdfc:KafkaBroker ;
sh:property [
sh:path rdfc:brokerHost ;
sh:name "hosts" ;
sh:minCount 1 ;
sh:datatype xsd:string ;
sh:description "Broker host to connect to"
].
rdfc:KafkaProducerShape a sh:NodeShape ;
sh:targetClass rdfc:KafkaProducer .