generated from rdf-connect/template-processor-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocessor.ttl
95 lines (90 loc) · 2.68 KB
/
processor.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
@prefix js: <https://w3id.org/conn/js#>.
@prefix fno: <https://w3id.org/function/ontology#>.
@prefix fnom: <https://w3id.org/function/vocabulary/mapping#>.
@prefix xsd: <http://www.w3.org/2001/XMLSchema#>.
@prefix : <https://w3id.org/conn#>.
@prefix sh: <http://www.w3.org/ns/shacl#>.
### WriteReplication ###
js:WriteReplication a js:JsProcess;
js:file <./lib/index.js>;
js:function "writeReplication";
js:location <./>;
js:mapping [
a fno:Mapping;
fno:parameterMapping [
a fnom:PositionParameterMapping;
fnom:functionParameter "incoming";
fnom:implementationParameterPosition "0"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "append";
fnom:implementationParameterPosition "1"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "savePath";
fnom:implementationParameterPosition "2"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "max";
fnom:implementationParameterPosition "3"^^xsd:int;
];
].
[ ] a sh:NodeShape;
sh:targetClass js:WriteReplication;
sh:property [
sh:class :ReaderChannel;
sh:path js:incoming;
sh:name "incoming";
sh:maxCount 1;
sh:minCount 1;
], [
sh:datatype xsd:boolean;
sh:path js:append;
sh:name "append";
sh:minCount 0;
sh:maxCount 1;
], [
sh:datatype xsd:string;
sh:path js:savePath;
sh:name "savePath";
sh:minCount 1;
sh:maxCount 1;
], [
sh:datatype xsd:integer;
sh:path js:max;
sh:name "max";
sh:minCount 0;
sh:maxCount 1;
].
### ReadReplication ###
js:ReadReplication a js:JsProcess;
js:file <./lib/index.js>;
js:function "readReplication";
js:location <./>;
js:mapping [
a fno:Mapping;
fno:parameterMapping [
a fnom:PositionParameterMapping;
fnom:functionParameter "outgoing";
fnom:implementationParameterPosition "0"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "savePath";
fnom:implementationParameterPosition "1"^^xsd:int;
];
].
[ ] a sh:NodeShape;
sh:targetClass js:ReadReplication;
sh:property [
sh:class :WriterChannel;
sh:path js:outgoing;
sh:name "outgoing";
sh:maxCount 1;
sh:minCount 1;
], [
sh:datatype xsd:string;
sh:path js:savePath;
sh:name "savePath";
sh:minCount 1;
sh:maxCount 1;
].