forked from tl-its-umich-edu/ahanca
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapping.json
119 lines (119 loc) · 2.54 KB
/
mapping.json
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
[
{
"term": "ahanca:envelope",
"domain": [
"ahanca:root"
],
"domain-comment": "which term may contain this one. 'ahanca:root' predefined",
"jq-filter-comment": "$_root predefined immutable. if root is array, it's an envelope",
"mapping": [
{
"spec": "caliper-1p0",
"jq-filter": "$_root[isArray()]",
"name": "$envelope"
},
{
"spec": "caliper-1p1",
"jq-filter": "$_root[isArray()]",
"name": "$envelope"
}
]
},
{
"term": "ahanca:event",
"domain": [
"ahanca:root",
"ahanca:envelope"
],
"jq-filter-comment": "objects in current envelope (root if none?) whose 'type' property value matches regex",
"name-comment": "assign matching object(s) to $event",
"mapping": [
{
"spec": "caliper-1p0",
"jq-filter": "$envelope['type'~='*Event$']",
"name": "$event"
},
{
"spec": "caliper-1p1",
"jq-filter": "$envelope['type'~='*Event$']",
"name": "$event"
}
]
},
{
"term": "ahanca:entity",
"domain": [
"ahanca:root",
"ahanca:envelope",
"ahanca:event",
"ahanca:entity"
],
"domain-comment": "entity may be bare or in envelope (i.e. describe), event, or other entity",
"mapping": [
{
"spec": "caliper-1p0",
"jq-filter": "$envelope['type'~='*/entity/$']",
"name": "$event"
},
{
"spec": "caliper-1p1",
"jq-filter": "$envelope['type'~='*/entity/$']",
"name": "$event"
}
]
},
{
"term": "ahanca:eventId",
"domain": [
"ahanca:event"
],
"jq-filter-comment": "null or missing means not supported",
"mapping": [
{
"spec": "caliper-1p0",
"jq-filter": null
},
{
"spec": "caliper-1p1",
"jq-filter": "$event.id"
},
{
"spec": "xapi",
"jq-filter": "$_root.id"
}
]
},
{
"term": "ahanca:actor",
"domain": [
"ahanca:event"
],
"mapping": [
{
"spec": "caliper-1p0",
"jq-filter": "$event.actor"
},
{
"spec": "caliper-1p1",
"jq-filter": "$event.actor"
}
]
},
{
"term": "ahanca:entityIds",
"domain": [
"ahanca:entity"
],
"jq-filter-comment": "$object means any object",
"mapping": [
{
"spec": "caliper-1p0",
"jq-filter": "$object['@id']"
},
{
"spec": "caliper-1p1",
"jq-filter": "$object.id"
}
]
}
]