-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcontext.js
46 lines (44 loc) · 1021 Bytes
/
context.js
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
const ns = {
hydra: 'http://www.w3.org/ns/hydra/core#',
rdfs: 'http://www.w3.org/2000/01/rdf-schema#'
}
const context = {
ApiDocumentation: ns.hydra + 'ApiDocumentation',
Container: ns.hydra + 'Container',
Operation: ns.hydra + 'Operation',
SupportedProperty: ns.hydra + 'SupportedProperty',
expects: {
'@id': ns.hydra + 'expects',
'@type': '@id'
},
label: ns.rdfs + 'label',
member: {
'@id': ns.hydra + 'member',
'@container': '@set'
},
method: ns.hydra + 'method',
property: {
'@id': ns.hydra + 'property',
'@type': '@id'
},
returns: {
'@id': ns.hydra + 'returns',
'@type': '@id'
},
supportedClass: {
'@id': ns.hydra + 'supportedClass',
'@type': '@id',
'@container': '@set'
},
supportedOperation: {
'@id': ns.hydra + 'supportedOperation',
'@type': '@id',
'@container': '@set'
},
supportedProperty: {
'@id': ns.hydra + 'supportedProperty',
'@type': '@id',
'@container': '@set'
}
}
module.exports = context