Work in Progress: This project is in its early stages and is not yet ready for production use.
The objective of this toolset is to prepare data about mathematical models from mathematical-models.org for reuse.
Endpoints for fetching data:
Since fetching all items of a collection at once is not possible, the script initially fetches the collection information to extract the item IDs. Subsequently, the items are fetched individually.
Endpoints of the data source and the specific collection to be fetched and mapped are configured in /config/project.js
.
The mapping schema is specified in the /config/mapping.js
file. This schema defines how each field type should be processed and transformed.
To use this toolset, follow these steps:
Clone the repository and install dependencies:
git clone https://github.com/bua-dns/DAMM-data-connector .
cd DAMM-data-connector
npm install
Fetch and analyze the data:
node fetch-models.js
Output:
/output/models
directory./output/mapped-models
directory. The mapped-models.json
file contains an array of all mapped items./output/reports/fetch-report.json
.This toolset has been tested with Node.js version 20.9.0 or higher.