hochschule-darmstadt-UAS / ddk-artbrowser

Exploring the world of arts using open data
http://openartbrowser.org/
MIT License
1 stars 1 forks source link

Fix the artwork and entity ranking #94

Closed mauamy closed 3 years ago

mauamy commented 3 years ago

Fixes #40

Since the currently implemented ranking of artworks and entities is wrong, I implemented the correct ranking like it is described in this wiki excerpt:

_Rank: This the normalization of the absolute rank as a floating point number between 0 and 1. For this, all entities of one type (i.e., artwork, person, location, motif, movement, genre, and material) are sorted ascending according to their absolute ranks. The relative ranks are distributed evenly according to the sort result and stored in the attribute relativerank.

Example: consider 100 genres with absolute ranks 1, 2, 2, 5, 9, .... , 464, 10.243 . Then the relative ranks of the entities in this order are: 0.01, 0.02, 0.03, 0.04, 0.05, ...., 0.99, 1.00 .

Now the distributions look like this: artworks_rank

(The distributions of the other entities' ranks look similar)