How pablocizq/tfg-pablo-calvo works
This Django application supports creating and managing datasets with metadata, inferring properties from uploaded files, generating metadata with AI, and publishing datasets to CKAN. The principal workflow runs from browser-based file and metadata interaction through Django views, which coordinate parsing, persistence, and optional CKAN operations. Account and dataset management are additional branches. Source excerpts establish the main routes and several calls; unsampled view logic limits detail about some domain stages.
Main entry points: views.py Request handlers · ckan_service.py CKAN client · inferir.js Browser interactions · ckan_integration.js CKAN publishing UI
Components 15
Web experience
- Web routes
tfg/web/urls.py - Request handlers
tfg/web/views.py - Browser interactions
tfg/web/static/web/js/inferir.js - CKAN publishing UI
tfg/web/static/web/js/ckan_integration.js
Metadata workflow
- Dataset management
tfg/web/views.py - Property extraction
tfg/web/parsers/property_extraction_strategy.py - Metadata inference
tfg/web/views.py - Turtle export
tfg/web/views.py - Account management
tfg/web/views.py
External integration
- CKAN proxy
tfg/web/views.py - CKAN client
tfg/web/services/ckan_service.py - CKAN service
Persistence
- Dataset and user models
tfg/web/models.py - PostgreSQL database
Other components
- Dataset user
Connections 13
- Dataset user → Web routes: uses
- Web routes → Request handlers: routes requests
tfg/web/urls.py - Browser interactions → Request handlers: requests inference
tfg/web/static/web/js/inferir.js - Request handlers → Property extraction: extracts properties
tfg/web/views.py - Request handlers → Dataset and user models: queries records
tfg/web/views.py - Request handlers → PostgreSQL database: reads and writes
- CKAN publishing UI → CKAN proxy: requests organizations
tfg/web/static/web/js/ckan_integration.js - CKAN publishing UI → Request handlers: submits publication
tfg/web/static/web/js/ckan_integration.js - Request handlers → CKAN client: publishes datasets
tfg/web/views.py - CKAN proxy → CKAN client: dispatches actions
tfg/web/views.py - CKAN client → PostgreSQL database: reads API token
tfg/web/services/ckan_service.py - CKAN client → CKAN service: calls API
tfg/web/services/ckan_service.py - Browser interactions → Request handlers: generates metadata
tfg/web/static/web/js/inferir.js