-
Notifications
You must be signed in to change notification settings - Fork 0
/
yarrrml.yaml
73 lines (68 loc) · 1.89 KB
/
yarrrml.yaml
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
prefixes:
ex: "http://example.org/"
rdfs: "http://www.w3.org/2000/01/rdf-schema#"
xsd: "http://www.w3.org/2001/XMLSchema#"
mappings:
companies:
sources:
- ['nasdaq_screener.csv~csv']
s: ex:$(Symbol)
po:
- [a, ex:Company]
- [rdfs:symbol, $(Symbol)]
- [rdfs:name, $(Name)]
- [rdfs:lastSale, $(Last Sale), xsd:float]
- [rdfs:netChange, $(Net Change), xsd:float]
- [rdfs:percentChange, $(% Change), xsd:float]
- [rdfs:marketCap, $(Market Cap), xsd:float]
- [rdfs:country, $(Country)]
- [rdfs:ipoYear, $(IPO Year), xsd:integer]
- [rdfs:volume, $(Volume), xsd:integer]
- [rdfs:sector, $(Sector)]
- [rdfs:industry, $(Industry)]
executives:
sources:
- ['Executives.csv~csv']
s: ex:$(Name)
po:
- [a, ex:Person]
- [rdfs:name, $(Name)]
- [rdfs:title, $(Title)]
- p: rdfs:isExecutiveOf
o:
- mapping: companies
condition:
function: equal
parameters:
- [str1, $(Ticker), s]
- [str2, $(Symbol), o]
institutional_holders:
sources:
- ['Top_Institutional_Holders.csv~csv']
s: ex:$(Holder)
po:
- [a, ex:InstitutionalInvestor]
- [rdfs:name, $(Holder)]
investment:
sources:
- ['Top_Institutional_Holders.csv~csv']
s: ex:Investment_$(Ticker)_$(Holder)
po:
- [a, ex:Investment]
- p: rdfs:investor
o:
- mapping: institutional_holders
condition:
function: equal
parameters:
- [str1, $(Holder), s]
- [str2, $(Holder), o]
- p: rdfs:shareholderOf
o:
- mapping: companies
condition:
function: equal
parameters:
- [str1, $(Ticker), s]
- [str2, $(Symbol), o]
- [rdfs:sharePercentage, $(Share), xsd:float]