Add Database Normalization Tools for Indonesian Administrative Data (dibantu ai)#58
Open
sukmaajidigital wants to merge 5 commits intocahyadsn:masterfrom
Open
Add Database Normalization Tools for Indonesian Administrative Data (dibantu ai)#58sukmaajidigital wants to merge 5 commits intocahyadsn:masterfrom
sukmaajidigital wants to merge 5 commits intocahyadsn:masterfrom
Conversation
Introduce a Python-based tool for normalizing Indonesian wilayah data from a single SQL table into four normalized tables: provinsi, kabupaten_kota, kecamatan, and desa_kelurahan. Includes main normalization script, advanced query examples, database testing script, documentation, project summary, requirements, and output structure in CSV, SQL, and SQLite formats.
Moved normalization scripts from 'wilayah_sql' to 'wilayah' and deleted redundant documentation, test, and query files from the old folder. Updated .gitignore to exclude normalized data, database, cache, and log files. This streamlines the project structure and removes obsolete files.
Added Python scripts to normalize wilayah_level_1_2, wilayah_luas, and wilayah_penduduk data into normalized tables and output CSV, SQL, and SQLite files. These scripts parse SQL dumps, categorize hierarchical data, and generate summary reports for each dataset.
Expanded the README with detailed documentation, usage instructions, data sources, and integration examples for the Wilayah Database Normalization Tools. Added requirements.txt indicating no external dependencies and Python 3.6+ requirement.
Expanded and restructured README.md for better clarity, added detailed usage instructions, output formats, and integration examples.
Author
|
ijin kak jika diperlukan @cahyadsn |
|
up gan bantu review @cahyadsn |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Wilayah Indonesia - Database Normalization with Python
📁 Struktur Direktori
Deskripsi
1. wilayah - Data Wilayah Utama
../db/wilayah.sqlprovinsikabupaten_kotakecamatandesa_kelurahan2. wilayah_level_1_2 - Data Geografis & Boundaries 🗺️
../db/wilayah_level_1_2.sqlprovinsi_geokabupaten_kota_geo3. wilayah_luas - Data Luas Wilayah BIG 📏
../db/wilayah_luas.sqlprovinsi_luaskabupaten_kota_luas4. wilayah_penduduk - Data Demografi 👥
../db/wilayah_penduduk.sqlprovinsi_pendudukkabupaten_kota_penduduk5. wilayah_pulau - Koordinat Pulau Indonesia 🏝️
../db/wilayah_pulau.sqlprovinsi_pulaukabupaten_kota_pulaupulau_locations🚀 Quick Start
Menjalankan Semua Tools (Batch Processing)
Menjalankan Tool Spesifik
Parameter Command Line
Semua tools mendukung parameter berikut:
Detail Output Files
Setiap tool menghasilkan struktur output yang konsisten:
Struktur Output Folder
Format File Yang Dihasilkan
1. CSV Files
2. SQL Files
3. SQLite Database
4. Normalization Report
System Requirements
Python Dependencies
Tested Environments
Dokumentasi
Source Data Information
Database Schema Design
Primary Keys & Relationships
Indexing Strategy
🔗 Contoh Integrasi Database
1. Analisis Lengkap Per Provinsi
2. Query Geographic Proximity
3. Analisis Demografi Multi-Level
4. Export Data untuk GIS Applications
📈 View Test Statistik & Performance
Dataset Overview
*Performance pada Intel i5, 8GB RAM, SSD storage
Total Coverage
Quality Metrics
Detail Kontributor
Author & Maintainer
Kontribusi
Resources & Links