-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgenerator.ttl
62 lines (57 loc) · 1.85 KB
/
generator.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
@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#>.
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@prefix dc: <http://purl.org/dc/terms/>.
<outputProperty> sh:class :WriterChannel;
sh:path js:output;
sh:maxCount 1;
sh:name "Data output channel".
<outputMapping> a fnom:PositionParameterMapping;
fnom:functionParameter "Data output channel";
fnom:implementationParameterPosition "0"^^xsd:int.
js:Generate a js:JsProcess;
dc:title "Simple Data Generator";
dc:description "Simple RDF data generator used for testing. This processor will periodically generate RDF objects with 3 to 4 predicates.";
js:file <../lib/generator.js>;
js:function "generate";
js:location <../>;
js:mapping [
a fno:Mapping;
fno:parameterMapping <outputMapping>;
fno:parameterMapping [
a fnom:PositionParameterMapping;
fnom:functionParameter "Count";
fnom:implementationParameterPosition "1"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "Wait duration";
fnom:implementationParameterPosition "2"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "Timestamp path";
fnom:implementationParameterPosition "3"^^xsd:int;
];
].
[ ] a sh:NodeShape;
sh:targetClass js:Generate;
sh:property <outputProperty>;
sh:property [
sh:datatype xsd:integer;
sh:path js:count;
sh:name "Count";
sh:maxCount 1;
], [
sh:datatype xsd:integer;
sh:path js:waitMS;
sh:name "Wait duration";
sh:maxCount 1;
], [
sh:datatype xsd:iri;
sh:path js:timestampPath;
sh:name "Timestamp path";
sh:maxCount 1;
].