Comics SQL Database from WikiData
The current code filters the Comics Characters for the ones that are in the Marvel Universe.
Other universes are registered as well, such as DC Universe and Marvel Cinematic Universe. You can change the SQL commands to filter by other Universe.
The Database uses the Alasql library; the code uses Babel for ES6 and mocha for testing.
npm install npm test
- Each attribute is described by a single table
- In each table, there is the Character ID named
- You can join tables using
table1.char = table2.char
charis also a URL to the Wikidata entry
- Attributes such as
abilityis also a URL to the Wikidata entry
abilitythe English value is defined in the
abilityLabel, the same for other columns/tables
varLabelis just a standard way to query from the Wikidata
let query = marvelDB.exec('SELECT DISTINCT genderLabel FROM gender'); console.table(query);
let query = marvelDB.exec( 'SELECT gender.genderLabel as gender, COUNT(DISTINCT abilities.abilityLabel) as abilities\ FROM gender LEFT JOIN abilities ON abilities.char = gender.char\ GROUP BY gender.genderLabel' ); console.table(query);
Feel free to contact me and improve this data set.