🗺️ Demo: https://maptrix.derhagen.eu/map.html 🗺️
Get the code on codeberg: https://codeberg.org/derhagen/maptrix
Maptrix is a proof of concept to map academic matrix servers based on matrixrooms.info and WikiData. Inspired by TU Dresden’s map.
fetch_wikidata.py
pulls geolocation and websites of any
data points that are instances of sub-(sub-sub-)types of Q31855, Q38723, Q16519632, or Q133873821.
merge_servers.py
then joins their websites with a list
of matrix servers that the admins behind matrixrooms.info threw over the
fence to me. Thanks!
./html/
contains simplistic html that plots all the
results to a basic Leaflet 2.0.0-alpha
-based map. I know
it’s ugly, feel free to send patches, as long as I don’t need to use
npm
or anything like that to build them.
Run python -m http.server 8000 --directory html/
to see
the result.
Check the following questions, first: - Is your institution present on WikiData? - Does the datapoint specify a website? - Is it an instance of a sub-*type of Q31855, Q38723, Q16519632, or Q133873821? - Have you followed https://matrixrooms.info/indexing to get your server listed? - Are matrix server URL and the website subdomains of the same domain?
If the answer to all of these questions is yes, but your institution’s matrix server is still missing, please open an issue!
You can run the python scripts to fetch new WikiData-data and to join
the result with the list of matrix server. merge_servers.py
will output an updated html/matrix_servers.json
. The
matrixrooms server list is behind a protected API and I promised the
admins to not use it all too often, but a copy can be found in
./data
. I’ll update it on request.
To get the web view, run:
curl -L -O https://github.com/Leaflet/Leaflet/releases/download/v2.0.0-alpha/leaflet.zip
mkdir html/leaflet && unzip leaflet.zip -d html/leaflet
pandoc --standalone --template template.html README.md -o html/index.html
python -m http.server 8000 --directory html/
There are a lot of points in a quadratic pattern close to the African coast. Is it a glitch? Is it a US Navy maneuver? Probably not. Most of them are WikiData-datapoints with associated matrix servers but without a geolocation. I just didn’t want to throw them over board (haha!). Feel free to add coordinates to their WikiData entries and update the map data.
Additionally, a lot of servers show up multiple times. Zoom in on Oxford and you’ll know what I mean. If any of you WikiData-professionals might help me out with smarter SPARQL-queries (or queries that don’t time out all the time, in general), please get in touch.
Hagen Echzell - hagene@uio.no - @ec-hagene:educloud.no
Hosted on NREC