This project contains the data model for the long-term preservation of the research data of Stadt.Geschichte.Basel (SGB) on the DaSCH Service Platform (DSP) and the necessary scripts to transfer the research data from omeka to the DSP.
The script transfers the metadata and the associated media files from the SGB Omeka instance to the DSP. If a data object with the same id already exists on the DSP, the metadata is updated according to the omeka instance if it has changed.
Use the package manager npm to install all dependencies.
npm installYou need an already created project with the provided data model on a DSP instance. If this needs to be created, this can be done using the DSP-Tools like this:
dsp-tools create -s 0.0.0.0:3333 -u [email protected] -p test data/data_model_dasch.json
(note: this requires system administrator rights on the DSP instance)
The following environment variables must be set:
| Environment variable | Description |
|---|---|
| OMEKA_API_URL | URL of the Omeka API |
| KEY_IDENTITY | Your Omeka API identity |
| KEY_CREDENTIAL | Your Omeka API credential |
| ITEM_SET_ID | The itemset id of your Omeka collection |
| PROJECT_SHORT_CODE | Shortcode of your DSP project |
| API_HOST | URL of the DSP API |
| INGEST_HOST | URL of the DaSCH ingest host |
| DSP_USER | Your DSP username |
| DSP_PWD | Your DSP password |
| PREFIX | Prefix of your ontology (Default: StadtGeschichteBasel_v1) |
python scripts/data_2_dasch.py [-m]
-
-m all_dataprocess all data of the omeka instance (same as without -m) -
-m sample_dataprocess a random selection of data from omeka -
-m test_dataprocess only selected data of the omeka instance
You can configure the number of random data and specify the test data by adjusting the following variables in the script:
NUMBER_RANDOM_OBJECTS = 2
TEST_DATA = {'abb13025', 'abb14375', 'abb41033', 'abb11536', 'abb28998'}This project is maintained by @koilebeit. Please understand that we won't be able to provide individual support via email. We also believe that help is much more valuable if it's shared publicly, so that more people can benefit from it.
| Type | Platforms |
|---|---|
| 🚨 Bug Reports | GitHub Issue Tracker |
| 📚 Docs Issue | GitHub Issue Tracker |
| 🎁 Feature Requests | GitHub Issue Tracker |
| 🛡 Report a security vulnerability | See SECURITY.md |
| 💬 General Questions | GitHub Discussions |
No changes are currently planned.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
- Nico Görlich - Initial work - koilebeit
See also the list of contributors who participated in this project.
This project is licensed under the GNU Affero General Public License v3.0 - see the LICENSE.md file for details.