-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.ttl
97 lines (92 loc) · 2.33 KB
/
server.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
@prefix owl: <http://www.w3.org/2002/07/owl#>.
@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#>.
js:SolidServer a js:JsProcess;
js:file <./server.js>;
js:function "start";
js:location <./>;
js:mapping [
a fno:Mapping;
fno:parameterMapping [
a fnom:PositionParameterMapping;
fnom:functionParameter "dbConfig";
fnom:implementationParameterPosition "0"^^xsd:int;
], [
a fnom:PositionParameterMapping;
fnom:functionParameter "views";
fnom:implementationParameterPosition "1"^^xsd:int;
];
].
[ ] a sh:NodeShape;
sh:targetClass js:DatabaseConfig;
sh:property [
sh:datatype xsd:string;
sh:path js:metadata;
sh:minCount 1;
sh:maxCount 1;
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";
].
[ ] a sh:NodeShape;
sh:targetClass js:ViewConfig;
sh:property [
sh:datatype xsd:string;
sh:path js:description;
sh:minCount 1;
sh:maxCount 1;
sh:name "description";
sh:description "Description identifier";
], [
sh:datatype xsd:string;
sh:path js:prefix;
sh:minCount 1;
sh:maxCount 1;
sh:name "prefix";
sh:description "HTTP prefix";
], [
sh:datatype xsd:string;
sh:path js:stream;
sh:minCount 1;
sh:maxCount 1;
sh:name "stream";
sh:description "SDS stream identifier";
].
[ ] a sh:NodeShape;
sh:targetClass js:SolidServer;
sh:property [
sh:class js:DatabaseConfig;
sh:path js:database;
sh:name "dbConfig";
sh:maxCount 1;
sh:minCount 1;
];
sh:property [
sh:class js:ViewConfig;
sh:path js:view;
sh:name "views";
sh:minCount 1;
].