-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrdf-connect-js.ttl
171 lines (157 loc) · 5.15 KB
/
rdf-connect-js.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
@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 sh: <http://www.w3.org/ns/shacl#> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix fno: <https://w3id.org/function/ontology#> .
@prefix fnom: <https://w3id.org/function/vocabulary/mapping#> .
@prefix rdfl: <https://w3id.org/rdf-lens/ontology#> .
@prefix rdfc: <https://w3id.org/rdf-connect#> .
@prefix rdfc-js: <https://w3id.org/rdf-connect/js#> .
#################################################################
# JavaScript-specific Classes
#################################################################
rdfc-js:Runner a rdfs:Class ;
rdfs:subClassOf rdfc:Runner ;
rdfs:label "JavaScript runner" ;
rdfs:comment "A runner that executes JavaScript processors" ;
dct:created "2024-08-01"^^xsd:date .
rdfc-js:Processor a rdfs:Class ;
rdfs:subClassOf rdfc:Processor ;
rdfs:label "JavaScript processor" ;
rdfs:comment "A data processing step implemented in JavaScript" ;
dct:created "2024-07-29"^^xsd:date .
rdfc-js:JSChannel a rdfs:Class ;
rdfs:subClassOf rdfc:Channel ;
rdfs:label "JavaScript in-memory channel" ;
rdfs:comment "A channel that enables in-memory communication among JavaScript processors" ;
dct:created "2024-08-01"^^xsd:date .
rdfc-js:JSReaderChannel a rdfs:Class ;
rdfs:subClassOf rdfc:ReaderChannel ;
rdfs:label "JavaScript in-memory reader channel" ;
rdfs:comment "Reading end of a channel from which JavaScript processors can read/listen to in-memory data flows" ;
dct:created "2024-08-01"^^xsd:date .
rdfc-js:JSWriterChannel a rdfs:Class ;
rdfs:subClassOf rdfc:WriterChannel ;
rdfs:label "JavaScript in-memory writer channel" ;
rdfs:comment "Writing end of a channel to which JavaScript processors can write/push in-memory data flows" ;
dct:created "2024-08-01"^^xsd:date .
#################################################################
# JavaScript Shapes
#################################################################
rdfc-js:JSRunnerShape a sh:NodeShape ;
sh:targetClass rdfc-js:Runner ;
sh:property [
sh:path ( ) ;
sh:name "id" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:datatype xsd:iri
], [
sh:path rdfc:supportsChannel ;
sh:name "supports channel" ;
sh:minCount 0 ;
sh:in (
rdfc-js:JSChannel
rdfc:FileChannel
rdfc:HttpChannel
rdfc:WebSocketChannel
rdfc:KafkaChannel
)
] .
rdfc-js:JSProcessorShape a sh:NodeShape ;
sh:targetClass rdfc-js:Processor ;
sh:property [
sh:datatype xsd:iri ;
sh:path ( ) ;
sh:name "ty" ;
sh:maxCount 1 ;
sh:minCount 1
], [
sh:datatype xsd:string ;
sh:path rdfc-js:file ;
sh:name "file" ;
sh:maxCount 1 ;
sh:minCount 1
], [
sh:datatype xsd:string ;
sh:path rdfc-js:location ;
sh:name "location" ;
sh:maxCount 1 ;
sh:minCount 1
], [
sh:datatype xsd:string ;
sh:path rdfc-js:function ;
sh:name "func" ;
sh:maxCount 1 ;
sh:minCount 1
], [
sh:class fno:Mapping ;
sh:path rdfc-js:mapping ;
sh:name "mapping" ;
sh:maxCount 1 ;
sh:minCount 1
], [
sh:path rdfc:executedBy ;
sh:name "executed by" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:hasValue rdfc-js:Runner
] .
rdfc-js:FnOMappingShape a sh:NodeShape ;
sh:targetClass fno:Mapping ;
sh:property [
sh:class fnom:PositionParameterMapping ;
sh:path fno:parameterMapping ;
sh:name "parameters"
].
rdfc-js:FnOPositionParameterMappingShape a sh:NodeShape ;
sh:targetClass fnom:PositionParameterMapping ;
sh:property [
sh:datatype xsd:string ;
sh:path fnom:functionParameter ;
sh:name "parameter" ;
sh:maxCount 1
], [
sh:datatype xsd:integer ;
sh:path fnom:implementationParameterPosition ;
sh:name "position" ;
sh:maxCount 1 ;
].
rdfc-js:JSChannelShape a sh:NodeShape ;
sh:targetClass rdfc-js:JSChannel ;
sh:property [
sh:path ( ) ;
sh:name "id" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:datatype xsd:iri
], [
sh:path rdfc:reader ;
sh:name "reader" ;
sh:maxCount 1 ;
sh:class rdfc-js:JSReaderChannel
], [
sh:path rdfc:writer ;
sh:name "writer" ;
sh:maxCount 1 ;
sh:class rdfc-js:JSWriterChannel
] .
rdfc-js:ReaderChannelShape a sh:NodeShape ;
sh:targetClass rdfc-js:JSReaderChannel ;
sh:property [
sh:path [ sh:inversePath rdfc:reader ] ;
sh:name "channel" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:datatype xsd:iri
] .
rdfc-js:WriterChannelShape a sh:NodeShape ;
sh:targetClass rdfc-js:JSWriterChannel ;
sh:property [
sh:path [ sh:inversePath rdfc:writer ] ;
sh:name "channel" ;
sh:maxCount 1 ;
sh:minCount 1 ;
sh:datatype xsd:iri
] .