This is the backend application for the Wiki Loves Monuments UK Visualisation tool, hosted on Toolforge at https://toolhub.wikimedia.org/tools/toolforge-wiki-loves-monument-uk. The project aims to support the visualisation of monuments data across the UK in collaboration with Wikimedia.
Wiki Loves Monuments UK is a web-based platform designed to showcase the community's contributions to UK heritage through the Wiki Loves Monuments competition. This project provides the data and API support for an intuitive interface where users can explore a vast dataset of monuments and image submissions, highlighting the importance of cultural heritage preservation.
You can view the frontend visualisation application at https://wiki-loves-monument-uk-visualisation.vercel.app/
Data Accuracy Notice: The dataset currently being served by this backend application is undergoing active corrections and updates. As a result, the data provided may not be entirely accurate at this time. We are working diligently to improve the quality and reliability of the information.
- API Endpoints: Serve data for monuments, images, and contributor information.
- Data Processing: Handle and prepare data from 12 years of the Wiki Loves Monument UK competition.
- Database Management: Store and manage the vast dataset of monuments and submissions.
source venv/bin/activate
pip install -r requirements.txt
python manage.py runserver
Deactivate Virtual Environment
deactivate
python3 manage.py makemigrations
python3 manage.py migrate
The application is currently running at https://wiki-loves-monument-uk.toolforge.org/api/
-
List all monuments
- URL:
/monuments/
- Method: GET
- Example:
GET /monuments/
- URL:
-
Get monument locations
- URL:
/monuments/locations
- Method: GET
- Example:
GET /monuments/locations
- URL:
-
Get heritage destinations
- URL:
/monuments/destinations
- Method: GET
- Example:
GET /monuments/destinations
- URL:
-
Get monument inceptions by year
- URL:
/monuments/inceptions
- Method: GET
- Example:
GET /monuments/inceptions
- URL:
-
Get monument images
- URL:
/monuments/images
- Method: GET
- Example:
GET /monuments/images
- URL:
-
Get monument details
- URL:
/monuments/<str:label>
- Method: GET
- Example:
GET /monuments/eiffel_tower
- URL:
-
List all participants
- URL:
/participants/
- Method: GET
- Example:
GET /participants/
- URL:
-
Get participant submissions
- URL:
/participants/submissions
- Method: GET
- Example:
GET /participants/submissions
- URL:
-
Get participant details
- URL:
/participants/<str:authorname>/
- Method: GET
- Example:
GET /participants/john_doe/
- URL:
-
List all submissions
- URL:
/submissions/
- Method: GET
- Example:
GET /submissions/
- URL:
-
Get daily submissions
- URL:
/submissions/daily
- Method: GET
- Example:
GET /submissions/daily
- URL:
-
Get yearly submissions
- URL:
/submissions/yearly
- Method: GET
- Example:
GET /submissions/yearly
- URL:
-
Get total yearly submissions
- URL:
/submissions/yearly/total
- Method: GET
- Example:
GET /submissions/yearly/total
- URL:
-
Get yearly submissions by author
- URL:
/submissions/yearly/<str:authorname>
- Method: GET
- Example:
GET /submissions/yearly/john_doe
- URL:
-
Get total yearly submissions by author
- URL:
/submissions/yearly/total/<str:authorname>/
- Method: GET
- Example:
GET /submissions/yearly/total/john_doe/
- URL:
-
Get submission images
- URL:
/submissions/images
- Method: GET
- Example:
GET /submissions/images
- URL:
-
Get submission details
- URL:
/submissions/<str:label>
- Method: GET
- Example:
GET /submissions/eiffel_tower_photo
- URL:
- Get competition statistics
- URL:
/competition/statistics/
- Method: GET
- Example:
GET /competition/statistics/
- Working Toolforge URL:
https://wiki-loves-monument-uk.toolforge.org/api/competition/statistics/
- Curl Example:
curl -X GET "https://wiki-loves-monument-uk.toolforge.org/api/competition/statistics/" -H "Accept: application/json"
- URL:
We welcome contributions! Please submit a pull request or open an issue for bug reports, feature requests, or any questions.
For any queries about the project, please contact the project supervisor at ksrh1@st-andrews.ac.uk.
- University of St Andrews, School of Computer Science: For providing academic support and resources.
- Wiki Loves Monuments Community: For their invaluable contributions to cultural heritage.
- Wikimedia Foundatiodasn: For their support and collaboration in this project.
This project is licensed under the MIT License. See the LICENSE file for details.