# Multilingual MigrationsKB (MGKB): migration-related geotagged tweets from 32 European countries in 11 languages, as an RDF knowledge base Multilingual MigrationsKB (MGKB) is a knowledge base of migration-related tweets. It extends the English MGKB to several languages. It holds tweets geotagged in 32 European countries (the EU member states plus Iceland, Liechtenstein, Norway, Switzerland and the United Kingdom), filtered by 11 languages: English, French, Finnish, German, Greek, Dutch, Hungarian, Italian, Polish, Spanish and Swedish. The knowledge base is RDF in Turtle, with a schema that extends TweetsKB and uses CIDOC-CRM to represent the languages. It records the tweets' geo metadata (place name, coordinates, country code) and annotations for sentiment, offensive and hate speech, topics, hashtags and user mentions. It also links each tweet, by place and time, to Eurostat economic indicators: GDP growth rate, total, youth and long-term unemployment rates, and income per household. FIBO concepts are used to represent these indicators. It is delivered as one gzipped Turtle file per year (2013 to 2021), with a JSON file per language that lists the words of each extracted topic. Yiyi Chen (FIZ Karlsruhe, KIT) created it in the EU ITFLOWS project (grant 882986). The Turtle files hold 1,784,972 distinct tweets (counted by ECHO's reader); they carry no tweet text. ## At a glance - **Platform:** Twitter (X) - **Tables:** posts (1,784,972 rows), x_hashtags (1,282,880 rows), x_mentions (1,727,019 rows) - **Structure:** Temporal (timestamped) - **Version:** 1.0.0 - **Licence:** CC BY 4.0; SPDX `CC-BY-4.0` - **Original DOI:** 10.5281/zenodo.5918507 ## Contents | Path | What it is | |---|---| | `data/posts.parquet` | The posts table (canonical, Parquet) | | `csv/posts.csv.gz` | The same table as gzip CSV | | `jsonl/posts.jsonl.gz` | The same table as gzip JSON Lines | | `data/x_hashtags.parquet` | The x_hashtags table (canonical, Parquet) | | `csv/x_hashtags.csv.gz` | The same table as gzip CSV | | `data/x_mentions.parquet` | The x_mentions table (canonical, Parquet) | | `csv/x_mentions.csv.gz` | The same table as gzip CSV | | `original/` | The 20 upstream file(s), byte for byte | | `datapackage.json`, `croissant.json` | Machine-readable descriptions of this package | | `CITATION.cff`, `CITATION.bib` | How to cite | | `LICENSE.md` | Licence and terms | | `manifest-sha256.txt` | SHA-256 checksum of every file | ## Tables and columns ### posts (1,784,972 rows) Pieces of content people wrote: posts, comments, replies, tweets, messages, reviews. | Column | Type | Meaning | |---|---|---| | `post_id` | string | The tweet's Twitter status ID (sioc:id). The text is not included; it can be retrieved (hydrated) through the X API while the tweet exists. | | `author_id` | string | The numeric Twitter user ID of the author, as the knowledge base gives it (sioc:has_creator/sioc:id). The MGKB schema calls it an encrypted user ID, but the values have the form of Twitter user IDs. | | `created_at` | datetime | When the tweet was posted (UTC), from dc:created. | | `lang` | string | The tweet's language as the knowledge base records it (CIDOC-CRM language individuals, e.g. cidoc-crm:es, written here as the BCP 47 code es). | | `x_topics` | object | The topic number(s) of the tweet from the creators' topic model (dc:subject), as a JSON list of the values as written (e.g. ["4.8e+01"] for topic 48). About 1% of tweets have more than one topic. The topic words per language are in original/download/topic_words_.json. | | `x_place` | string | The tweet's place name (schema:location / sioc:name), e.g. 'Rom, Latium'. | | `x_country` | string | The two-letter country code the knowledge base gives the tweet's place (schema:addressCountry). It can differ from the place name, e.g. place 'Chile' with country ES; it is left as the source has it. | | `x_latitude` | number | Latitude of the tweet's coordinates where the tweet had them (schema:latitude), as given. | | `x_longitude` | number | Longitude of the tweet's coordinates where the tweet had them (schema:longitude), as given. | | `x_likes` | integer | Number of likes recorded for the tweet (schema:InteractionCounter of type LikeAction). | | `x_replies` | integer | Number of replies recorded for the tweet (InteractionCounter of type ReplyAction). | | `x_shares` | integer | Number of shares (retweets) recorded for the tweet (InteractionCounter of type ShareAction). | | `x_sentiment` | string | Sentiment label from the creators' classifier (onyx emotion category wna:negative/neutral/positive-emotion). | | `x_hate_speech` | string | Hate-speech label from the creators' classifier: normal, offensive or hate (onyx emotion category mgkb:normal, mgkb:offensive, wna:hate). | | `x_conflicting_values` | object | For the about 1% of tweets that the knowledge base records more than once (their statements are merged under one tweet IRI), the values that disagree, as a JSON object {field: [all values]} with the reader's field names (place, country, latitude, longitude, likes, replies, shares, sentiment, hate, creator, created, language). Those fields are empty in that row; no value was chosen. Null for all other tweets. | ### x_hashtags (1,282,880 rows) | Column | Type | Meaning | |---|---|---| | `post_id` | string | The tweet (posts.post_id). | | `x_hashtag` | string | One hashtag of the tweet (sioc_t:Tag rdfs:label), one row per distinct hashtag per tweet. | ### x_mentions (1,727,019 rows) | Column | Type | Meaning | |---|---|---| | `post_id` | string | The tweet (posts.post_id). | | `x_mention` | string | One user the tweet mentions, as the pseudonym the creators gave it (a UUID, sioc:name of the mentioned sioc:UserAccount); one row per distinct mention per tweet. Pseudonyms are the creators', so they cannot be joined to author_id. | ## Quick start Python (pandas): ```python import pandas as pd df = pd.read_parquet("https://echo.directory/download/twitter-multilingual-migration-knowledge-base/v1.0.0/data/posts.parquet") ``` DuckDB (reads over HTTP without downloading the file first): ```sql SELECT * FROM 'https://echo.directory/download/twitter-multilingual-migration-knowledge-base/v1.0.0/data/posts.parquet' LIMIT 10; ``` R (arrow): ```r df <- arrow::read_parquet("https://echo.directory/download/twitter-multilingual-migration-knowledge-base/v1.0.0/data/posts.parquet") ``` ## How this package was made ECHO converted the upstream file(s) listed under `original/` into the tables above, following the [ECHO Data Package 1.0.0](https://echo.directory/docs/edp/1.0/) standard. Every value was checked against the source during conversion: no row was dropped and no value was changed except as described here. - The yearly files are cumulative within two series: each file from 2014 to 2018 repeats all tweets of the earlier years (2018 holds 1,093,382 tweets, all of 2013-2018), and 2020 and 2021 repeat 2019 (2021 holds 691,590, all of 2019-2021). ECHO checked that every repeated tweet is identical in the later file (0 differences over 912,474 compared tweets) and reads only migrationsKB_2018.ttl.gz and migrationsKB_2021.ttl.gz, which hold every tweet once (1,784,972 together, no overlap). All nine files ship as originals. - The tables come from the gzipped RDF Turtle files (download/migrationsKB_2013.ttl.gz to migrationsKB_2021.ttl.gz), read with ECHO's Turtle reader (2026-12-01). Each tweet is a sioc:Post; its place, interaction counters, emotion set, hashtags and mentions are linked nodes in the same file. The files ship unchanged as originals. - About 1% of tweets appear more than once in the knowledge base (e.g. under two places or countries); in RDF their statements merge under one tweet. ECHO does not pick one: the disagreeing fields are empty and all their values are in posts.x_conflicting_values. Their hashtags and mentions are the union. - The files use the prefix rdf: without declaring it; the recipe states it (http://www.w3.org/1999/02/22-rdf-syntax-ns#) for the reader. - Tweet times run from 2013-01-01 to 2021. The sources do not state how tweets were selected beyond geotagging in 32 European countries and 11 languages. - There is no tweet text. Tweets can be hydrated from post_id through the X API while they still exist. - The Eurostat indicators each tweet is linked to (fibo-fnd-rel-rel:isCharacterizedBy: GDP growth, total, youth and long-term unemployment, disposable income, per country and year) are not tables here; they are public Eurostat figures and stay in the Turtle originals. - Each topic_words_.json file maps a topic number to its top words; they ship as originals. - The Zenodo page also shows DOI 10.5281/zenodo.5918508, which is probably the concept DOI covering all versions. This copy is version v1 (record 5918507). - Pretrained models for sentiment, hate speech and topics (ETM) are not part of the data. The record says to contact the author for them. ## Credit - **Yiyi Chen**, creator: FIZ Karlsruhe and Karlsruhe Institute of Technology (KIT), Germany - **Zenodo record 5918507**, publisher (https://zenodo.org/record/5918507) - **ECHO, Syracuse University**, packager (https://echo.directory) ## Licence and terms CC BY 4.0; SPDX `CC-BY-4.0`, https://creativecommons.org/licenses/by/4.0/. See `LICENSE.md` for the upstream terms. ## Citation ```bibtex @misc{echo2026, title = {ECHO: Exploratory Compendium of Humanity Online}, author = {Switzer, Braden and Zafarani, Reza}, year = {2026}, url = {https://echo.directory}, note = {Syracuse University} } @dataset{chen2022multilingualmgkb, title = {Multilingual MigrationsKB: A Mulitlingual Knowledge Base of Migration related annotated Tweets}, author = {Chen, Yiyi}, publisher = {Zenodo}, year = {2022}, version = {v1}, doi = {10.5281/zenodo.5918507}, url = {https://zenodo.org/record/5918507} } ``` ## Versions This is version 1.0.0. Every version is kept unchanged at its own address (`https://echo.directory/download/twitter-multilingual-migration-knowledge-base/v1.0.0/`); `CHANGELOG.md` lists what changed between versions.