-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.qmd
49 lines (39 loc) · 2.04 KB
/
README.qmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
---
title: "Metadata schema manager"
format:
# html:
# embed-resources: true
# theme: default
# pdf:
# language: en-GB
# date-format: iso
gfm: default
rst: default
number-sections: true
---
This repository contains Javascript code and a CSS file to render the metadata schema manager for the ManGO portal, a web-based client for iRODS.
In this context, a metadata schema is a template aimed towards the systematic application of metadata to iRODS data objects and collections.
The scope of this code is twofold: to support the design and lifecycle management of metadata schemas and to generate a form through which an user can assign metadata based on said schema.
On the one hand, the metadata schema manager allows to design a form, choosing among different kinds of fields (simple input fields, multiple-choice and even nested schemas, _aka_ composite fields). The templates for these forms, here called **schemas**, can go through different stages, from drafts to published to archived versions. The different fields, the lifecycle and the specifications of the JSON format in which schemas are stored are described in [the documentation files](docs/).
On the other hand, some of the code meant for the manager can also be used for the rendering of the form itself.
# Demo
If you want to run the demo, clone the repository, (create and activate a virtual environment with **at least Python 3.10**), install the required Python modules and run the Flask App:
```sh
git clone [email protected]:kuleuven/mango-metadata-schemas.git
cd mdschema-editor
python -m venv venv
. venv/bin/activate
pip install -r requirements.txt
cd demo
flask run
```
The demo will be available in <http://127.0.0.1:5000>.
Once you have done this once, the following times you only need to activate the virtual environment and run flask:
```sh
# from mdschema-editor
. venv/bin/activate
cd demo
flask run
```
# Other resources
- A [Python package](https://github.com/kuleuven/mango-schema-validator) to validate metadata based on a ManGO metadata schema.