This is a simple repository to test a possible process to register BioCypher components
- Clone this repository:
git clone https://github.com/ecarrenolozano/biocypher-components-registry.git- Open the file
adapters.yamland add the following:
adapters:
- name: <adapter_name_in_snake_case>
metadata_url: <raw GitHub URL pointing to the Croissant JSON-LD metadata file in your adapter's repository>name: Use the adapter’s name in snake_case format (e.g., my_adapter).
metadata_url: Provide the direct raw URL to the Croissant metadata file (croissant.jsonld) hosted in your adapter’s GitHub repository. This URL should point to the raw file content (e.g., https://raw.githubusercontent.com/username/repo/branch/croissant.jsonld).
- That is all!
- Fetch all the registered adapters.
python scripts/fetch_adapters.py- Generate a unified Croissant file containing all the adapters (registed).
python scripts/generate_registry.py- Validate unified Croissant file
mlcroissant validate --jsonld unified_adapters_metadata.jsonld