-
Notifications
You must be signed in to change notification settings - Fork 0
/
mapping_old.ttl
314 lines (234 loc) · 8.21 KB
/
mapping_old.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
@prefix rr: <http://www.w3.org/ns/r2rml#> .
@prefix rml: <http://semweb.mmlab.be/ns/rml#> .
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix ql: <http://semweb.mmlab.be/ns/ql#> .
@prefix map: <http://mapping.example.com/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix sd: <http://www.w3.org/ns/sparql-service-description#> .
@prefix ns: <http://example.org/> .
map:map_companies_000 rml:logicalSource map:source_000 ;
rdf:type rr:TriplesMap ;
rdfs:label "companies" ;
rr:predicateObjectMap map:pom_000, map:pom_001, map:pom_002, map:pom_003, map:pom_004, map:pom_005, map:pom_006, map:pom_007, map:pom_008, map:pom_009, map:pom_010, map:pom_011 ;
rr:subjectMap map:s_000 .
map:map_executives_000 rml:logicalSource map:source_001 ;
rdf:type rr:TriplesMap ;
rdfs:label "executives" ;
rr:predicateObjectMap map:pom_012, map:pom_013, map:pom_014, map:pom_015 ;
rr:subjectMap map:s_001 .
map:map_institutional_holders_000 rml:logicalSource map:source_002 ;
rdf:type rr:TriplesMap ;
rdfs:label "institutional_holders" ;
rr:predicateObjectMap map:pom_016, map:pom_017 ;
rr:subjectMap map:s_002 .
map:map_investment_000 rml:logicalSource map:source_003 ;
rdf:type rr:TriplesMap ;
rdfs:label "investment" ;
rr:predicateObjectMap map:pom_018, map:pom_019, map:pom_020, map:pom_021 ;
rr:subjectMap map:s_003 .
map:om_000 rdf:type rr:ObjectMap ;
rr:constant "http://example.org/Company" ;
rr:termType rr:IRI .
map:om_001 rml:reference "Symbol" ;
rdf:type rr:ObjectMap ;
rr:termType rr:Literal .
map:om_002 rml:reference "Name" ;
rdf:type rr:ObjectMap ;
rr:termType rr:Literal .
map:om_003 rml:reference "Last Sale" ;
rdf:type rr:ObjectMap ;
rr:datatype xsd:float ;
rr:termType rr:Literal .
map:om_004 rml:reference "Net Change" ;
rdf:type rr:ObjectMap ;
rr:datatype xsd:float ;
rr:termType rr:Literal .
map:om_005 rml:reference "% Change" ;
rdf:type rr:ObjectMap ;
rr:datatype xsd:float ;
rr:termType rr:Literal .
map:om_006 rml:reference "Market Cap" ;
rdf:type rr:ObjectMap ;
rr:datatype xsd:float ;
rr:termType rr:Literal .
map:om_007 rml:reference "Country" ;
rdf:type rr:ObjectMap ;
rr:termType rr:Literal .
map:om_008 rml:reference "IPO Year" ;
rdf:type rr:ObjectMap ;
rr:datatype xsd:integer ;
rr:termType rr:Literal .
map:om_009 rml:reference "Volume" ;
rdf:type rr:ObjectMap ;
rr:datatype xsd:integer ;
rr:termType rr:Literal .
map:om_010 rml:reference "Sector" ;
rdf:type rr:ObjectMap ;
rr:termType rr:Literal .
map:om_011 rml:reference "Industry" ;
rdf:type rr:ObjectMap ;
rr:termType rr:Literal .
map:om_012 rdf:type rr:ObjectMap ;
rr:constant "http://example.org/Person" ;
rr:termType rr:IRI .
map:om_013 rml:reference "Name" ;
rdf:type rr:ObjectMap ;
rr:termType rr:Literal .
map:om_014 rml:reference "Title" ;
rdf:type rr:ObjectMap ;
rr:termType rr:Literal .
map:om_015 rdf:type rr:ObjectMap ;
rr:template "http://example.org/{Ticker}" ;
rr:termType rr:Literal .
map:om_016 rdf:type rr:ObjectMap ;
rr:constant "http://example.org/InstitutionalInvestor" ;
rr:termType rr:IRI .
map:om_017 rml:reference "Holder" ;
rdf:type rr:ObjectMap ;
rr:termType rr:Literal .
map:om_018 rdf:type rr:ObjectMap ;
rr:constant "http://example.org/Investment" ;
rr:termType rr:IRI .
map:om_019 rdf:type rr:ObjectMap ;
rr:template "http://example.org/{Holder}" ;
rr:termType rr:Literal .
map:om_020 rdf:type rr:ObjectMap ;
rr:template "http://example.org/{Ticker}" ;
rr:termType rr:Literal .
map:om_021 rml:reference "Share" ;
rdf:type rr:ObjectMap ;
rr:datatype xsd:float ;
rr:termType rr:Literal .
map:pm_000 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
map:pm_001 rdf:type rr:PredicateMap ;
rr:constant ns:symbol .
map:pm_002 rdf:type rr:PredicateMap ;
rr:constant ns:name .
map:pm_003 rdf:type rr:PredicateMap ;
rr:constant ns:lastSale .
map:pm_004 rdf:type rr:PredicateMap ;
rr:constant ns:netChange .
map:pm_005 rdf:type rr:PredicateMap ;
rr:constant ns:percentChange .
map:pm_006 rdf:type rr:PredicateMap ;
rr:constant ns:marketCap .
map:pm_007 rdf:type rr:PredicateMap ;
rr:constant ns:country .
map:pm_008 rdf:type rr:PredicateMap ;
rr:constant ns:ipoYear .
map:pm_009 rdf:type rr:PredicateMap ;
rr:constant ns:volume .
map:pm_010 rdf:type rr:PredicateMap ;
rr:constant ns:sector .
map:pm_011 rdf:type rr:PredicateMap ;
rr:constant ns:industry .
map:pm_012 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
map:pm_013 rdf:type rr:PredicateMap ;
rr:constant ns:name .
map:pm_014 rdf:type rr:PredicateMap ;
rr:constant ns:title .
map:pm_015 rdf:type rr:PredicateMap ;
rr:constant ns:isExecutiveOf .
map:pm_016 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
map:pm_017 rdf:type rr:PredicateMap ;
rr:constant ns:name .
map:pm_018 rdf:type rr:PredicateMap ;
rr:constant rdf:type .
map:pm_019 rdf:type rr:PredicateMap ;
rr:constant ns:investor .
map:pm_020 rdf:type rr:PredicateMap ;
rr:constant ns:shareholderOf .
map:pm_021 rdf:type rr:PredicateMap ;
rr:constant ns:sharePercentage .
map:pom_000 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_000 ;
rr:predicateMap map:pm_000 .
map:pom_001 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_001 ;
rr:predicateMap map:pm_001 .
map:pom_002 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_002 ;
rr:predicateMap map:pm_002 .
map:pom_003 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_003 ;
rr:predicateMap map:pm_003 .
map:pom_004 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_004 ;
rr:predicateMap map:pm_004 .
map:pom_005 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_005 ;
rr:predicateMap map:pm_005 .
map:pom_006 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_006 ;
rr:predicateMap map:pm_006 .
map:pom_007 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_007 ;
rr:predicateMap map:pm_007 .
map:pom_008 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_008 ;
rr:predicateMap map:pm_008 .
map:pom_009 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_009 ;
rr:predicateMap map:pm_009 .
map:pom_010 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_010 ;
rr:predicateMap map:pm_010 .
map:pom_011 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_011 ;
rr:predicateMap map:pm_011 .
map:pom_012 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_012 ;
rr:predicateMap map:pm_012 .
map:pom_013 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_013 ;
rr:predicateMap map:pm_013 .
map:pom_014 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_014 ;
rr:predicateMap map:pm_014 .
map:pom_015 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_015 ;
rr:predicateMap map:pm_015 .
map:pom_016 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_016 ;
rr:predicateMap map:pm_016 .
map:pom_017 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_017 ;
rr:predicateMap map:pm_017 .
map:pom_018 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_018 ;
rr:predicateMap map:pm_018 .
map:pom_019 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_019 ;
rr:predicateMap map:pm_019 .
map:pom_020 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_020 ;
rr:predicateMap map:pm_020 .
map:pom_021 rdf:type rr:PredicateObjectMap ;
rr:objectMap map:om_021 ;
rr:predicateMap map:pm_021 .
map:rules_000 <http://rdfs.org/ns/void#exampleResource> map:map_companies_000, map:map_executives_000, map:map_institutional_holders_000, map:map_investment_000 ;
rdf:type <http://rdfs.org/ns/void#Dataset> .
map:s_000 rdf:type rr:SubjectMap ;
rr:template "http://example.org/{Symbol}" .
map:s_001 rdf:type rr:SubjectMap ;
rr:template "http://example.org/{Name}" .
map:s_002 rdf:type rr:SubjectMap ;
rr:template "http://example.org/{Holder}" .
map:s_003 rdf:type rr:SubjectMap ;
rr:template "http://example.org/Investment_{Ticker}_{Holder}" .
map:source_000 rml:referenceFormulation ql:CSV ;
rml:source "nasdaq_screener.csv" ;
rdf:type rml:LogicalSource .
map:source_001 rml:referenceFormulation ql:CSV ;
rml:source "Executives.csv" ;
rdf:type rml:LogicalSource .
map:source_002 rml:referenceFormulation ql:CSV ;
rml:source "Top_Institutional_Holders.csv" ;
rdf:type rml:LogicalSource .
map:source_003 rml:referenceFormulation ql:CSV ;
rml:source "Top_Institutional_Holders.csv" ;
rdf:type rml:LogicalSource .