# -*- coding: utf-8 -*-
"""Align the BioPortal with the Bioregistry."""
from bioregistry.align.utils import Aligner
from bioregistry.external.bioportal import get_agroportal, get_bioportal, get_ecoportal
__all__ = [
# Base class
"OntoPortalAligner",
# Concrete classes
"BioPortalAligner",
"AgroPortalAligner",
"EcoPortalAligner",
]
class OntoPortalAligner(Aligner):
"""Aligner for OntoPortal."""
curation_header = ("name", "homepage", "description")
[docs]class BioPortalAligner(OntoPortalAligner):
"""Aligner for BioPortal."""
key = "bioportal"
getter = get_bioportal
[docs]class EcoPortalAligner(OntoPortalAligner):
"""Aligner for EcoPortal."""
key = "ecoportal"
getter = get_ecoportal
[docs]class AgroPortalAligner(OntoPortalAligner):
"""Aligner for AgroPortal."""
key = "agroportal"
getter = get_agroportal
if __name__ == "__main__":
EcoPortalAligner.align()
AgroPortalAligner.align()
BioPortalAligner.align()