kev007 / artful Goto Github PK
View Code? Open in Web Editor NEWAn Interactive Country Reference Frequency Choropleth Mapper
An Interactive Country Reference Frequency Choropleth Mapper
See: https://github.com/kev007/ARTFUL/blob/frontend/server/src/main/webapp/resources/js/app.js#L240-L270
Structure:
mergedData.features[1].properties.name
mergedData.features[1].properties.frequency
Add mapping from multiple languages to one country, see: #42 (comment)
e.g. newscrawl, web, wikipedia
Normalize frequency entries based on the corpus size
W_ID, Country references, (for all languages)
Create a database structure concept and create an empty implementation.
Add Columns:
Run the script countryReferences.py to update them.
If a country is clicked a table should be shown listing the countries which reference the clicked country. The task is to write a script that makes this table in the database
Steps to reproduce this bug:
After this the selected country has two visual layers (the green one and the one depending on its frequency)
words - readd corpus column
rename word table to freq
relative paths for linux
working directory
Beautify the Ingoing/Outgoing References Radio Buttons with a toggle switch or something else. Here are some examples: http://demos.jquerymobile.com/1.4.1/flipswitch/ Something else than jquery is also possible.
Serverside:
Soon we will be implementing multiple translation categories (Athletes, Politicians, ...) and the parser must be able to distinguish between the categories and then save it in the database.
Save the database path as java opts variable so it can be changed without redeploying the server.
(Already partially implemented)
Reevaluate if the linear scale is appropriate for the coloring.
Treffen: Donnerstag 11:00 Uhr
Add the corpus size to the answer from the /freqs
interface
See: http://corpora2.informatik.uni-leipzig.de/ for all languages and the hyperlinked corpora
Find out why only these 2 languages get transferred from csv to db
When selecting a country do not use the references from this country on itself for the legend, just colorize it in an other color.
One possible (but maybe not very good) way to solve this issue is to iterate with a python script or whatever over every country and every year we have in the database and create the sql statement like this:
CREATE VIEW top_ten_words AS
SELECT *
FROM
(SELECT
sum(f.freq) total_freq,
t.w_id,
t.word,
t.located_in,
f.year
FROM freq f, translation t
WHERE f.translation_id = t.id AND t.located_in = 'Germany' AND year = 2014
GROUP BY t.w_id, t.located_in, f.year
ORDER BY total_freq
DESC
LIMIT 10)
UNION
SELECT *
FROM
(SELECT
sum(f.freq) total_freq,
t.w_id,
t.word,
t.located_in,
f.year
FROM freq f, translation t
WHERE f.translation_id = t.id AND t.located_in = 'United States' AND year = 2014
GROUP BY t.w_id, t.located_in, f.year
ORDER BY total_freq
DESC
LIMIT 10);
If the generation of this view takes too long, we can just create a table instead.
Calculate and display quotient for each category (see project description)
Map colors are different to the legend colors. See Germany and 5,700,000
Most probably due to style fillOpacity: 0.7
ARTFUL/server/src/main/webapp/resources/js/app.js
Lines 565 to 574 in dfa71c1
At the moment, we create a layer for every country we have data for. Because of this many countries don't have layers, as you can see here:
But instead we should create a layer for EVERY country and just leave the one white which don't have data.
This has to be done here: https://github.com/kev007/ARTFUL/blob/master/server/src/main/webapp/resources/js/app.js#L179-L201
We only have four translations for Russian cities/regions:
22213 614429 Nordwestrussland deu-ch Russia
22326 614414 Zentralrussland deu-ch Russia
28336 614414 Zentralrussland deu-at Russia
28474 301324 Südrussland deu-at Russia
Aren't there more in dbpedia?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.