csdl 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/csdl/targets.rb +265 -64
- data/lib/csdl/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 86d840515b02e9204cf62b918aa6e66d938ee28c
|
|
4
|
+
data.tar.gz: 13214717542d540b965100afedcd272860b0f6ea
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0ba7deed00875ae83ce82c63f94aef32c44c6c2c3f5159238763ec76f924325a662bcfef4d3bdaf66b3c34911750bbded0ab33540343b988f5f7d2243264e1be
|
|
7
|
+
data.tar.gz: cac413670a0cbe3df8f6504e5f8d0059b3fdcb40ab28bf4241ac95c574e2a8151f51c3d454d783d1131d47eab6bbd4ab8b9496621907646c156a47a8ac85b2a3
|
data/lib/csdl/targets.rb
CHANGED
|
@@ -1,5 +1,206 @@
|
|
|
1
1
|
module CSDL
|
|
2
2
|
|
|
3
|
+
module TargetValues
|
|
4
|
+
|
|
5
|
+
AGES = %w( 18-24 25-34 35-44 45-54 55-64 65+ unknown ).freeze
|
|
6
|
+
|
|
7
|
+
AUTHOR_TYPES = %w( page user ).freeze
|
|
8
|
+
|
|
9
|
+
COUNTRY_CODES_BY_COUNTRY = {
|
|
10
|
+
"Austria" => "AT",
|
|
11
|
+
"Belgium" => "BE",
|
|
12
|
+
"Denmark" => "DK",
|
|
13
|
+
"Finland" => "FI",
|
|
14
|
+
"France" => "FR",
|
|
15
|
+
"Germany" => "DE",
|
|
16
|
+
"Iceland" => "IS",
|
|
17
|
+
"Ireland" => "IE",
|
|
18
|
+
"Italy" => "IT",
|
|
19
|
+
"Luxembourg" => "LU",
|
|
20
|
+
"Netherlands" => "NL",
|
|
21
|
+
"Norway" => "NO",
|
|
22
|
+
"Portugal" => "PT",
|
|
23
|
+
"Spain" => "ES",
|
|
24
|
+
"Sweden" => "SE",
|
|
25
|
+
"Switzerland" => "CH",
|
|
26
|
+
"United Kingdom" => "GB",
|
|
27
|
+
"United States" => "US"
|
|
28
|
+
}.freeze
|
|
29
|
+
|
|
30
|
+
COUNTRIES = COUNTRY_CODES_BY_COUNTRY.keys.freeze
|
|
31
|
+
|
|
32
|
+
COUNTRY_CODES = COUNTRY_CODES_BY_COUNTRY.values.freeze
|
|
33
|
+
|
|
34
|
+
GENDERS = %w( female male unknown ).freeze
|
|
35
|
+
|
|
36
|
+
INTERACTION_TYPES = %w( comment like reshare story ).freeze
|
|
37
|
+
|
|
38
|
+
INTERFACES = %w( desktop mobile ).freeze
|
|
39
|
+
|
|
40
|
+
LANGUAGES_BY_LANGUAGE_CODE = {
|
|
41
|
+
"af" => "Afrikaans" , "ak" => "Akan" , "am" => "Amharic" , "ar" => "Arabic" ,
|
|
42
|
+
"as" => "Assamese" , "ay" => "Aymara" , "az" => "Azerbaijani" , "be" => "Belarusian" ,
|
|
43
|
+
"bg" => "Bulgarian" , "bn" => "Bengali" , "br" => "Breton" , "bs" => "Bosnian" ,
|
|
44
|
+
"ca" => "Catalan" , "cb" => "Sorani Kurdish" , "ck" => "Cherokee" , "co" => "Corsican" ,
|
|
45
|
+
"cs" => "Czech" , "cx" => "Cebuano" , "cy" => "Welsh" , "da" => "Danish" ,
|
|
46
|
+
"de" => "German" , "el" => "Greek" , "en" => "English" , "eo" => "Esperanto" ,
|
|
47
|
+
"es" => "Spanish" , "et" => "Estonian" , "eu" => "Basque" , "fa" => "Persian" ,
|
|
48
|
+
"ff" => "Fulah" , "fi" => "Finnish" , "fo" => "Faroese" , "fr" => "French" ,
|
|
49
|
+
"fy" => "Frisian" , "ga" => "Irish" , "gl" => "Galician" , "gn" => "Guarani" ,
|
|
50
|
+
"gu" => "Gujarati" , "gx" => "Classical Greek" , "ha" => "Hausa" , "he" => "Hebrew" ,
|
|
51
|
+
"hi" => "Hindi" , "hr" => "Croatian" , "hu" => "Hungarian" , "hy" => "Armenian" ,
|
|
52
|
+
"id" => "Indonesian" , "ig" => "Igbo" , "is" => "Icelandic" , "it" => "Italian" ,
|
|
53
|
+
"ja" => "Japanese" , "jv" => "Javanese" , "ka" => "Georgian" , "kk" => "Kazakh" ,
|
|
54
|
+
"km" => "Khmer" , "kn" => "Kannada" , "ko" => "Korean" , "ku" => "Kurdish (Kurmanji)" ,
|
|
55
|
+
"la" => "Latin" , "lg" => "Ganda" , "li" => "Limburgish" , "ln" => "Lingala" ,
|
|
56
|
+
"lo" => "Lao" , "lt" => "Lithuanian" , "lv" => "Latvian" , "mg" => "Malagasy" ,
|
|
57
|
+
"mk" => "Macedonian" , "ml" => "Malayalam" , "mn" => "Mongolian" , "mr" => "Marathi" ,
|
|
58
|
+
"ms" => "Malay" , "mt" => "Maltese" , "my" => "Burmese" , "nb" => "Norwegian (bokmal)" ,
|
|
59
|
+
"nd" => "Ndebele" , "ne" => "Nepali" , "nl" => "Dutch" , "nn" => "Norwegian (nynorsk)" ,
|
|
60
|
+
"ny" => "Chewa" , "or" => "Oriya" , "pa" => "Punjabi" , "pl" => "Polish" ,
|
|
61
|
+
"ps" => "Pashto" , "pt" => "Portuguese" , "qu" => "Quechua" , "rm" => "Romansh" ,
|
|
62
|
+
"ro" => "Romanian" , "ru" => "Russian" , "rw" => "Kinyarwanda" , "sa" => "Sanskrit" ,
|
|
63
|
+
"sc" => "Sardinian" , "se" => "Northern Sámi" , "si" => "Sinhala" , "sk" => "Slovak" ,
|
|
64
|
+
"sl" => "Slovenian" , "sn" => "Shona" , "so" => "Somali" , "sq" => "Albanian" ,
|
|
65
|
+
"sr" => "Serbian" , "sv" => "Swedish" , "sw" => "Swahili" , "sy" => "Syriac" ,
|
|
66
|
+
"sz" => "Silesian" , "ta" => "Tamil" , "te" => "Telugu" , "tg" => "Tajik" ,
|
|
67
|
+
"th" => "Thai" , "tk" => "Turkmen" , "tl" => "Filipino" , "tr" => "Turkish" ,
|
|
68
|
+
"tt" => "Tatar" , "tz" => "Tamazight" , "uk" => "Ukrainian" , "ur" => "Urdu" ,
|
|
69
|
+
"uz" => "Uzbek" , "vi" => "Vietnamese" , "wo" => "Wolof" , "xh" => "Xhosa" ,
|
|
70
|
+
"yi" => "Yiddish" , "yo" => "Yoruba" , "zh" => "Chinese" , "zu" => "Zulu" ,
|
|
71
|
+
"zz" => "Zazaki"
|
|
72
|
+
}.freeze
|
|
73
|
+
|
|
74
|
+
LANGUAGE_CODES = LANGUAGES_BY_LANGUAGE_CODE.keys.freeze
|
|
75
|
+
|
|
76
|
+
LANGUAGES = LANGUAGES_BY_LANGUAGE_CODE.values.freeze
|
|
77
|
+
|
|
78
|
+
MEDIA_TYPES = %w( link note photo post reshare video).freeze
|
|
79
|
+
|
|
80
|
+
REGIONS_BY_COUNTRY = {
|
|
81
|
+
"Austria" => [],
|
|
82
|
+
"Belgium" => [],
|
|
83
|
+
"Denmark" => [],
|
|
84
|
+
"Finland" => [],
|
|
85
|
+
"France" => [],
|
|
86
|
+
"Germany" => [],
|
|
87
|
+
"Iceland" => [],
|
|
88
|
+
"Ireland" => [],
|
|
89
|
+
"Italy" => [],
|
|
90
|
+
"Luxembourg" => [],
|
|
91
|
+
"Netherlands" => [],
|
|
92
|
+
"Norway" => [],
|
|
93
|
+
"Portugal" => [],
|
|
94
|
+
"Spain" => [],
|
|
95
|
+
"Sweden" => [],
|
|
96
|
+
"Switzerland" => [],
|
|
97
|
+
|
|
98
|
+
"United Kingdom" => [
|
|
99
|
+
"England", "Scotland", "Wales", "Northern Ireland"
|
|
100
|
+
].freeze,
|
|
101
|
+
|
|
102
|
+
"United States" => [
|
|
103
|
+
"Alabama" , "Alaska" , "Arizona" , "Arkansas" , "California" ,
|
|
104
|
+
"Colorado" , "Connecticut" , "Delaware" , "Florida" , "Georgia" ,
|
|
105
|
+
"Hawaii" , "Idaho" , "Illinois" , "Indiana" , "Iowa" ,
|
|
106
|
+
"Kansas" , "Kentucky" , "Louisiana" , "Maine" , "Maryland" ,
|
|
107
|
+
"Massachusetts" , "Michigan" , "Minnesota" , "Mississippi" , "Missouri" ,
|
|
108
|
+
"Montana" , "Nebraska" , "Nevada" , "New Hampshire" , "New Jersey" ,
|
|
109
|
+
"New Mexico" , "New York" , "North Carolina" , "North Dakota" , "Ohio" ,
|
|
110
|
+
"Oklahoma" , "Oregon" , "Pennsylvania" , "Rhode Island" , "South Carolina" ,
|
|
111
|
+
"South Dakota" , "Tennessee" , "Texas" , "Utah" , "Vermont" ,
|
|
112
|
+
"Virginia" , "Washington" , "West Virginia" , "Wisconsin" , "Wyoming"
|
|
113
|
+
].freeze
|
|
114
|
+
}.freeze
|
|
115
|
+
|
|
116
|
+
REGIONS = REGIONS_BY_COUNTRY.values.flatten.freeze
|
|
117
|
+
|
|
118
|
+
SENTIMENT = %w( positive negative neutral ).freeze
|
|
119
|
+
|
|
120
|
+
TOPIC_CATEGORIES = [
|
|
121
|
+
"Actor/Director" , "Aerospace/Defense" , "Airport" ,
|
|
122
|
+
"Album" , "Amateur Sports Team" , "Anatomical Structure" ,
|
|
123
|
+
"Animal Breed" , "Animal" , "App" ,
|
|
124
|
+
"Appliances" , "Art" , "Artist" ,
|
|
125
|
+
"Arts/Entertainment/Nightlife" , "Arts/Humanities" , "Athlete" ,
|
|
126
|
+
"Attractions/Things to Do" , "Author" , "Automobiles and Parts" ,
|
|
127
|
+
"Automotive" , "Baby Goods/Kids Goods" , "Bags/Luggage" ,
|
|
128
|
+
"Bank/Financial Institution" , "Bank/Financial Services" , "Bar" ,
|
|
129
|
+
"Biotechnology" , "Blogger" , "Board Game" ,
|
|
130
|
+
"Book Genre" , "Book Series" , "Book Store" ,
|
|
131
|
+
"Book" , "Building Materials" , "Business Person" ,
|
|
132
|
+
"Business Services" , "Business/Economy" , "Camera/Photo" ,
|
|
133
|
+
"Cars" , "Cause" , "Chef" ,
|
|
134
|
+
"Chemicals" , "Church/Religious Organization" , "City" ,
|
|
135
|
+
"Clothing" , "Club" , "Coach" ,
|
|
136
|
+
"Color" , "Comedian" , "Commercial Equipment" ,
|
|
137
|
+
"Community Organization" , "Community" , "Community/Government" ,
|
|
138
|
+
"Company" , "Competition" , "Computers" ,
|
|
139
|
+
"Computers/Internet" , "Computers/Technology" , "Concentration or Major" ,
|
|
140
|
+
"Concert Tour" , "Concert Venue" , "Consulting/Business Services" ,
|
|
141
|
+
"Country" , "Course" , "Cuisine" ,
|
|
142
|
+
"Dancer" , "Degree" , "DESIGNER" ,
|
|
143
|
+
"Disease" , "Doctor" , "Drink" ,
|
|
144
|
+
"Drugs" , "Editor" , "Education" ,
|
|
145
|
+
"Education/Work Status" , "Electronics" , "Elementary School" ,
|
|
146
|
+
"Energy/Utility" , "Engineering/Construction" , "Entertainer" ,
|
|
147
|
+
"Entertainment" , "Entrepreneur" , "Episode" ,
|
|
148
|
+
"Event Planning/Event Services" , "Event" , "Farming/Agriculture" ,
|
|
149
|
+
"Fictional Character" , "Field of Study" , "Food" ,
|
|
150
|
+
"Food/Beverages" , "Food/Grocery" , "Furniture" ,
|
|
151
|
+
"Games/Toys" , "Geography_General" , "Government Official" ,
|
|
152
|
+
"Government Organization" , "Government" , "Health/Beauty" ,
|
|
153
|
+
"Health/Medical/Pharmaceuticals" , "Health/Medical/Pharmacy" , "Health/Wellness" ,
|
|
154
|
+
"High School Status" , "Holiday" , "Home Decor" ,
|
|
155
|
+
"Home Improvement" , "Home/Garden" , "Hospital/Clinic" ,
|
|
156
|
+
"Hotel" , "Household Supplies" , "Industrials" ,
|
|
157
|
+
"Insurance Company" , "Interest" , "Internet/Software" ,
|
|
158
|
+
"Island" , "Jewelry/Watches" , "Journalist" ,
|
|
159
|
+
"Just For Fun" , "Kitchen/Cooking" , "Lake" ,
|
|
160
|
+
"Landmark" , "Language" , "Lawyer" ,
|
|
161
|
+
"Legal/Law" , "Library" , "Local Business" ,
|
|
162
|
+
"Local/Travel" , "Magazine" , "Media/News/Publishing" ,
|
|
163
|
+
"Medical Procedure" , "Middle School" , "Mining/Materials" ,
|
|
164
|
+
"Monarch" , "Mountain" , "Movie character" ,
|
|
165
|
+
"Movie Genre" , "Movie Theater" , "Movie" ,
|
|
166
|
+
"Museum/Art Gallery" , "Music Award" , "Music Chart" ,
|
|
167
|
+
"Music Video" , "Music" , "Musical Genre" ,
|
|
168
|
+
"Musical Instrument" , "Musician/Band" , "Neighborhood" ,
|
|
169
|
+
"News Personality" , "News/Media" , "Newspaper" ,
|
|
170
|
+
"Non-Governmental Organization (NGO)" , "Non-Profit Organization" , "Null" ,
|
|
171
|
+
"Office Supplies" , "One-Time TV Program" , "Organization" ,
|
|
172
|
+
"Other" , "Outdoor Gear/Sporting Goods" , "Patio/Garden" ,
|
|
173
|
+
"Performance Art" , "Personal Blog" , "Personal Website" ,
|
|
174
|
+
"Pet Services" , "Pet Supplies" , "Pet" ,
|
|
175
|
+
"Phone/Tablet" , "Photographer" , "Playlist" ,
|
|
176
|
+
"Podcast" , "Political Ideology" , "Political Organization" ,
|
|
177
|
+
"Political Party" , "Politician" , "Preschool" ,
|
|
178
|
+
"Producer" , "Product/Service" , "Profession" ,
|
|
179
|
+
"Professional Services" , "Professional Sports Team" , "Public Figure" ,
|
|
180
|
+
"Public Places" , "Publisher" , "Radio Station" ,
|
|
181
|
+
"Real Estate" , "Record Label" , "Recreation/Sports" ,
|
|
182
|
+
"Reference" , "Regional" , "Religion" ,
|
|
183
|
+
"Restaurant/Cafe" , "Retail and Consumer Merchandise" , "River" ,
|
|
184
|
+
"School Sports Team" , "School" , "Science" ,
|
|
185
|
+
"Shopping/Retail" , "Small Business" , "Society/Culture" ,
|
|
186
|
+
"Software" , "Song" , "Spas/Beauty/Personal Care" ,
|
|
187
|
+
"Sport" , "Sports Event" , "Sports League" ,
|
|
188
|
+
"Sports Venue" , "Sports/Recreation/Activities" , "State/Province/Region" ,
|
|
189
|
+
"Studio" , "Teacher" , "Teens/Kids" ,
|
|
190
|
+
"Telecommunication" , "Tools/Equipment" , "Topic" ,
|
|
191
|
+
"Tours/Sightseeing" , "Transit Stop" , "Transport/Freight" ,
|
|
192
|
+
"Transportation" , "Travel/Leisure" , "TV Channel" ,
|
|
193
|
+
"TV Genre" , "TV Network" , "TV Season" ,
|
|
194
|
+
"TV Show" , "TV" , "TV/Movie Award" ,
|
|
195
|
+
"University Status" , "University" , "Video Game" ,
|
|
196
|
+
"Vitamins/Supplements" , "Waterfall" , "Website" ,
|
|
197
|
+
"Wine/Spirits" , "Work Position" , "Work Project" ,
|
|
198
|
+
"Work Status" , "Writer" , "Year"
|
|
199
|
+
].freeze
|
|
200
|
+
|
|
201
|
+
UNBOUNDED = ::Float::INFINITY
|
|
202
|
+
end
|
|
203
|
+
|
|
3
204
|
# A CSDL Target definition with indication as to where the target can be used.
|
|
4
205
|
#
|
|
5
206
|
# @attr name [String] The name of the target.
|
|
@@ -9,7 +210,7 @@ module CSDL
|
|
|
9
210
|
#
|
|
10
211
|
# @see TARGETS
|
|
11
212
|
#
|
|
12
|
-
Target = Struct.new(:name, :interaction?, :analysis?, :query
|
|
213
|
+
Target = Struct.new(:name, :interaction?, :analysis?, :query?, :values)
|
|
13
214
|
|
|
14
215
|
# A raw array of targets with their usage flags.
|
|
15
216
|
#
|
|
@@ -17,75 +218,75 @@ module CSDL
|
|
|
17
218
|
#
|
|
18
219
|
RAW_TARGETS = [
|
|
19
220
|
|
|
20
|
-
[ "fb.author.age" , true , true , true ] ,
|
|
21
|
-
[ "fb.author.country" , true , true , true ] ,
|
|
22
|
-
[ "fb.author.country_code" , true , true , true ] ,
|
|
23
|
-
[ "fb.author.gender" , true , true , true ] ,
|
|
24
|
-
[ "fb.author.region" , true , true , true ] ,
|
|
25
|
-
[ "fb.author.type" , true , true , true ] ,
|
|
26
|
-
[ "fb.content" , true , false , true ] ,
|
|
27
|
-
[ "fb.hashtags" , true , true , true ] ,
|
|
28
|
-
[ "fb.language" , true , true , true ] ,
|
|
29
|
-
[ "fb.link" , true , true , true ] ,
|
|
30
|
-
[ "fb.media_type" , true , true , true ] ,
|
|
31
|
-
[ "fb.parent.author.age" , true , true , true ] ,
|
|
32
|
-
[ "fb.parent.author.country" , true , true , true ] ,
|
|
33
|
-
[ "fb.parent.author.country_code" , true , true , true ] ,
|
|
34
|
-
[ "fb.parent.author.gender" , true , true , true ] ,
|
|
35
|
-
[ "fb.parent.author.type" , true , true , true ] ,
|
|
36
|
-
[ "fb.parent.content" , true , false , true ] ,
|
|
37
|
-
[ "fb.parent.hashtags" , true , true , true ] ,
|
|
38
|
-
[ "fb.parent.interface" , true , true , true ] ,
|
|
39
|
-
[ "fb.parent.language" , true , true , true ] ,
|
|
40
|
-
[ "fb.parent.link" , true , true , true ] ,
|
|
41
|
-
[ "fb.parent.media_type" , true , true , true ] ,
|
|
42
|
-
[ "fb.parent.sentiment" , true , true , true ] ,
|
|
43
|
-
[ "fb.parent.topics.about" , true , false , false ] ,
|
|
44
|
-
[ "fb.parent.topics.category" , true , true , true ] ,
|
|
45
|
-
[ "fb.parent.topics.company_overview" , true , false , false ] ,
|
|
46
|
-
[ "fb.parent.topics.location_city" , true , false , false ] ,
|
|
47
|
-
[ "fb.parent.topics.location_street" , true , false , false ] ,
|
|
48
|
-
[ "fb.parent.topics.mission" , true , false , false ] ,
|
|
49
|
-
[ "fb.parent.topics.name" , true , true , true ] ,
|
|
50
|
-
[ "fb.parent.topics.products" , true , false , false ] ,
|
|
51
|
-
[ "fb.parent.topics.release_date" , true , false , false ] ,
|
|
52
|
-
[ "fb.parent.topics.username" , true , false , false ] ,
|
|
53
|
-
[ "fb.parent.topics.website" , true , false , false ] ,
|
|
54
|
-
[ "fb.parent.topic_ids" , true , true , true ] ,
|
|
55
|
-
[ "fb.sentiment" , true , true , true ] ,
|
|
56
|
-
[ "fb.topics.about" , true , false , false ] ,
|
|
57
|
-
[ "fb.topics.category" , true , true , true ] ,
|
|
58
|
-
[ "fb.topics.company_overview" , true , false , false ] ,
|
|
59
|
-
[ "fb.topics.location_city" , true , false , false ] ,
|
|
60
|
-
[ "fb.topics.location_street" , true , false , false ] ,
|
|
61
|
-
[ "fb.topics.mission" , true , false , false ] ,
|
|
62
|
-
[ "fb.topics.name" , true , true , true ] ,
|
|
63
|
-
[ "fb.topics.products" , true , false , false ] ,
|
|
64
|
-
[ "fb.topics.release_date" , true , false , false ] ,
|
|
65
|
-
[ "fb.topics.username" , true , false , false ] ,
|
|
66
|
-
[ "fb.topics.website" , true , false , false ] ,
|
|
67
|
-
[ "fb.topic_ids" , true , true , true ] ,
|
|
68
|
-
[ "fb.type" , true , true , true ] ,
|
|
69
|
-
[ "interaction.content" , true , false , true ] ,
|
|
70
|
-
[ "interaction.hashtags" , true , true , true ] ,
|
|
71
|
-
[ "interaction.media_type" , true , true , true ] ,
|
|
72
|
-
[ "interaction.ml.categories" , false , true , true ] ,
|
|
73
|
-
[ "interaction.raw_content" , true , false , true ] ,
|
|
74
|
-
[ "interaction.subtype" , true , true , true ] ,
|
|
75
|
-
[ "interaction.tags" , false , true , false ] ,
|
|
76
|
-
[ "interaction.tag_tree" , false , true , true ] ,
|
|
77
|
-
[ "links.code" , true , true , true ] ,
|
|
78
|
-
[ "links.domain" , true , true , true ] ,
|
|
79
|
-
[ "links.normalized_url" , true , true , true ] ,
|
|
80
|
-
[ "links.url" , true , true , true ]
|
|
221
|
+
[ "fb.author.age" , true , true , true , :AGES ] ,
|
|
222
|
+
[ "fb.author.country" , true , true , true , :COUNTRIES ] ,
|
|
223
|
+
[ "fb.author.country_code" , true , true , true , :COUNTRY_CODES ] ,
|
|
224
|
+
[ "fb.author.gender" , true , true , true , :GENDERS ] ,
|
|
225
|
+
[ "fb.author.region" , true , true , true , :REGIONS ] ,
|
|
226
|
+
[ "fb.author.type" , true , true , true , :AUTHOR_TYPES ] ,
|
|
227
|
+
[ "fb.content" , true , false , true , :UNBOUNDED ] ,
|
|
228
|
+
[ "fb.hashtags" , true , true , true , :UNBOUNDED ] ,
|
|
229
|
+
[ "fb.language" , true , true , true , :LANGUAGE_CODES ] ,
|
|
230
|
+
[ "fb.link" , true , true , true , :UNBOUNDED ] ,
|
|
231
|
+
[ "fb.media_type" , true , true , true , :MEDIA_TYPES ] ,
|
|
232
|
+
[ "fb.parent.author.age" , true , true , true , :AGES ] ,
|
|
233
|
+
[ "fb.parent.author.country" , true , true , true , :COUNTRIES ] ,
|
|
234
|
+
[ "fb.parent.author.country_code" , true , true , true , :COUNTRY_CODES ] ,
|
|
235
|
+
[ "fb.parent.author.gender" , true , true , true , :GENDERS ] ,
|
|
236
|
+
[ "fb.parent.author.type" , true , true , true , :AUTHOR_TYPES ] ,
|
|
237
|
+
[ "fb.parent.content" , true , false , true , :UNBOUNDED ] ,
|
|
238
|
+
[ "fb.parent.hashtags" , true , true , true , :UNBOUNDED ] ,
|
|
239
|
+
[ "fb.parent.interface" , true , true , true , :INTERFACES ] ,
|
|
240
|
+
[ "fb.parent.language" , true , true , true , :LANGUAGE_CODES ] ,
|
|
241
|
+
[ "fb.parent.link" , true , true , true , :UNBOUNDED ] ,
|
|
242
|
+
[ "fb.parent.media_type" , true , true , true , :MEDIA_TYPES ] ,
|
|
243
|
+
[ "fb.parent.sentiment" , true , true , true , :SENTIMENT ] ,
|
|
244
|
+
[ "fb.parent.topics.about" , true , false , false , :UNBOUNDED ] ,
|
|
245
|
+
[ "fb.parent.topics.category" , true , true , true , :TOPIC_CATEGORIES ] ,
|
|
246
|
+
[ "fb.parent.topics.company_overview" , true , false , false , :UNBOUNDED ] ,
|
|
247
|
+
[ "fb.parent.topics.location_city" , true , false , false , :UNBOUNDED ] ,
|
|
248
|
+
[ "fb.parent.topics.location_street" , true , false , false , :UNBOUNDED ] ,
|
|
249
|
+
[ "fb.parent.topics.mission" , true , false , false , :UNBOUNDED ] ,
|
|
250
|
+
[ "fb.parent.topics.name" , true , true , true , :UNBOUNDED ] ,
|
|
251
|
+
[ "fb.parent.topics.products" , true , false , false , :UNBOUNDED ] ,
|
|
252
|
+
[ "fb.parent.topics.release_date" , true , false , false , :UNBOUNDED ] ,
|
|
253
|
+
[ "fb.parent.topics.username" , true , false , false , :UNBOUNDED ] ,
|
|
254
|
+
[ "fb.parent.topics.website" , true , false , false , :UNBOUNDED ] ,
|
|
255
|
+
[ "fb.parent.topic_ids" , true , true , true , :UNBOUNDED ] ,
|
|
256
|
+
[ "fb.sentiment" , true , true , true , :SENTIMENT ] ,
|
|
257
|
+
[ "fb.topics.about" , true , false , false , :UNBOUNDED ] ,
|
|
258
|
+
[ "fb.topics.category" , true , true , true , :TOPIC_CATEGORIES ] ,
|
|
259
|
+
[ "fb.topics.company_overview" , true , false , false , :UNBOUNDED ] ,
|
|
260
|
+
[ "fb.topics.location_city" , true , false , false , :UNBOUNDED ] ,
|
|
261
|
+
[ "fb.topics.location_street" , true , false , false , :UNBOUNDED ] ,
|
|
262
|
+
[ "fb.topics.mission" , true , false , false , :UNBOUNDED ] ,
|
|
263
|
+
[ "fb.topics.name" , true , true , true , :UNBOUNDED ] ,
|
|
264
|
+
[ "fb.topics.products" , true , false , false , :UNBOUNDED ] ,
|
|
265
|
+
[ "fb.topics.release_date" , true , false , false , :UNBOUNDED ] ,
|
|
266
|
+
[ "fb.topics.username" , true , false , false , :UNBOUNDED ] ,
|
|
267
|
+
[ "fb.topics.website" , true , false , false , :UNBOUNDED ] ,
|
|
268
|
+
[ "fb.topic_ids" , true , true , true , :UNBOUNDED ] ,
|
|
269
|
+
[ "fb.type" , true , true , true , :INTERACTION_TYPES ] ,
|
|
270
|
+
[ "interaction.content" , true , false , true , :UNBOUNDED ] ,
|
|
271
|
+
[ "interaction.hashtags" , true , true , true , :UNBOUNDED ] ,
|
|
272
|
+
[ "interaction.media_type" , true , true , true , :MEDIA_TYPES ] ,
|
|
273
|
+
[ "interaction.ml.categories" , false , true , true , :UNBOUNDED ] ,
|
|
274
|
+
[ "interaction.raw_content" , true , false , true , :UNBOUNDED ] ,
|
|
275
|
+
[ "interaction.subtype" , true , true , true , :INTERACTION_TYPES ] ,
|
|
276
|
+
[ "interaction.tags" , false , true , false , :UNBOUNDED ] ,
|
|
277
|
+
[ "interaction.tag_tree" , false , true , true , :UNBOUNDED ] ,
|
|
278
|
+
[ "links.code" , true , true , true , :UNBOUNDED ] ,
|
|
279
|
+
[ "links.domain" , true , true , true , :UNBOUNDED ] ,
|
|
280
|
+
[ "links.normalized_url" , true , true , true , :UNBOUNDED ] ,
|
|
281
|
+
[ "links.url" , true , true , true , :UNBOUNDED ]
|
|
81
282
|
]
|
|
82
283
|
|
|
83
284
|
# All possible targets.
|
|
84
285
|
#
|
|
85
286
|
# @return [Hash<String, Target>] Hash of {Target} structs, keyed by the string name of the target.
|
|
86
287
|
#
|
|
87
|
-
TARGETS = RAW_TARGETS.reduce({}) do |accumulator, (target_name, interaction, analysis, query)|
|
|
88
|
-
accumulator[target_name] = Target.new(target_name, interaction, analysis, query)
|
|
288
|
+
TARGETS = RAW_TARGETS.reduce({}) do |accumulator, (target_name, interaction, analysis, query, values_constant)|
|
|
289
|
+
accumulator[target_name] = Target.new(target_name, interaction, analysis, query, TargetValues.const_get(values_constant))
|
|
89
290
|
accumulator
|
|
90
291
|
end.freeze
|
|
91
292
|
|
data/lib/csdl/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: csdl
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- BJ Neilsen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-07-
|
|
11
|
+
date: 2015-07-10 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: ast
|