-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathprocessor.ttl
85 lines (81 loc) · 2.45 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
@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 dc: <http://purl.org/dc/terms/>.
[ ] a sh:NodeShape;
sh:targetClass js:DatabaseConfig;
sh:property [
sh:datatype xsd:string;
sh:path js:metadata;
sh:minCount 1;
sh:maxCount 1;
sh:defaultValue "meta";
sh:name "metadata";
sh:description "Name of the metadata collection";
], [
sh:datatype xsd:string;
sh:path js:data;
sh:minCount 1;
sh:maxCount 1;
sh:name "data";
sh:description "Name of the data collection";
], [
sh:datatype xsd:string;
sh:path js:index;
sh:minCount 1;
sh:maxCount 1;
sh:name "index";
sh:description "Name of the index collection";
], [
sh:datatype xsd:string;
sh:path js:url;
sh:maxCount 1;
sh:name "url";
sh:description "Collection url used to connect to the mongo database";
].
js:Ingest a js:JsProcess;
dc:title "LDES-server ingestor (mongoDB)";
dc:description "Processor that can ingest a SDS stream to generate a Linked Data Event Stream. Uses sds:Bucket to describe the used fragmentation (see js:Bucketize). If ldes:timestampPath is declared it will automatically create a time-based fragmentation.";
js:file <./lib/index.js>;
js:function "ingest";
js:location <./>;
js:mapping [
a fno:Mapping;
fno:parameterMapping [
a fnom:PositionParameterMapping;
fnom:functionParameter "Data Input Channel";
fnom:implementationParameterPosition "0"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "Metadata Input Channel";
fnom:implementationParameterPosition "1"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "Database config";
fnom:implementationParameterPosition "2"^^xsd:int;
];
].
[ ] a sh:NodeShape;
sh:targetClass js:Ingest;
sh:property [
sh:class :ReaderChannel;
sh:path js:dataInput;
sh:name "Data Input Channel";
sh:minCount 1;
sh:maxCount 1;
], [
sh:class :ReaderChannel;
sh:path js:metadataInput;
sh:name "Metadata Input Channel";
sh:minCount 1;
sh:maxCount 1;
], [
sh:class js:DatabaseConfig;
sh:path js:database;
sh:minCount 1;
sh:maxCount 1;
sh:name "Database config";
].