W4H ImportHub is designed to integrate offline datasets, like CSV files, into the W4H platform, aligning with the GeoMTS schema and data structures. It aids in the smooth import of data while offering automatic attribute mapping to ensure data consistency and integration with the structure and standards of the W4H platform.
Dive deep into the heart of W4H ImportHub and understand its nuances by visiting the W4H ImportHub Documentation.
-
One-Click W4H Database Instance Creation: Dive into the world of W4H with unparalleled ease. With just a simple click, W4H ImportHub unfurls a complete W4H instance in your database. Give it a name, click, and watch the magic unfold.
-
Drag, Drop, & Integrate CSV Effortlessly: Streamline your data migration journey with our effortless CSV integration. Drag and drop your file, harness our intuitive mapping suggestions, or curate your own โ and swiftly funnel your data into the W4H platform.
-
Intuitive Mapping Dashboard: Our interface doesn't just allow you to define mappings between your data columns and W4H tables; it thinks alongside you, suggesting mappings grounded in intelligent recognition patterns.
-
Configurable DNA: W4H ImportHub is crafted with a flexible DNA. Tailor it, tweak its settings, define what tables to involve, and let it resonate with your specific W4H blueprint. Especially robust for those navigating the waters of time-series data, this feature ensures you wield a tool attuned to your every need.
Before you embark on your journey with W4H ImportHub, please ensure:
- Python 3.x is your trusted companion.
- Essential dependencies are in your toolkit (Check the Installation).
-
Clone the repository:
git clone https://github.com/USC-InfoLab/W4H-ImportHub.git
-
Install the required dependencies:
cd W4H-ImportHub pip install -r requirements.txt
-
Setup Configuration: Before diving into the import process, ensure your environment is set up correctly (see Installation). Copy the
config.yaml.example
toconfig.yaml
. Within this configuration file, input your database connection details. You can either leverage our default recommended platform configuration or customize it to better match your specific requirements. -
Launch the Streamlit app: Run the W4H ImportHub Streamlit dashboard:
streamlit run import_hub_main.py
This will provide an address which you can use to access the UI in your web browser.
-
Database Instance Decision: Once on the UI, you'll have the option to either populate an existing W4H database instance or initiate a new one.
-
CSV Integration: Upload the CSV file you intend to incorporate into the W4H platform.
-
Mapping Configuration: After finishing the upload, the tool will intelligently suggest a default mapping grounded in the similarity between the CSV column names and the W4H table names. At this stage, review and, if needed, adjust the mapping using the intuitive UI dashboard.
-
Populate the W4H Database: With the mapping set, confirm the import process. The tool will then swing into action, meticulously populating the W4H database according to your directives.
By following these steps, you can easily bridge the gap between your offline datasets and the expansive world of the W4H platform.
Contributions are welcome! If you have any suggestions, bug reports, or feature requests, please open an issue or submit a pull request.
This project is licensed under the MIT License. Please keep in mind while the code can be modified and used freely, it's essential to acknowledge or credit the original project if used or referenced in a public domain or another project.