Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Separate schema for ML and domain tables #1

Open
Zhiweiii opened this issue Apr 19, 2024 · 1 comment
Open

Separate schema for ML and domain tables #1

Zhiweiii opened this issue Apr 19, 2024 · 1 comment

Comments

@Zhiweiii
Copy link
Contributor

Enable three schemas in DerivaML:

  1. domain_schema
  2. ml_schema
  3. vocab_schema

To initiate DerivaML:

class DerivaML:
    def __init__(self, hostname: str, catalog_id: str, domain_schema: str, ml_schema: str, vocab_schema: str, data_dir: str):

In Catalog ML, hard coded the three schemas for the catalog.
E.g. EyeAI project

class EyeAI(DerivaML):
    def __init__(self, hostname: str = 'www.eye-ai.org', data_dir: str = './'):
        super().__init__(hostname, 'eye-ai, 'eye-ai', 'eye-ai', data_dir)

FaceBase ML project

class FaceBaseML(DerivaML):
    def __init__(self, hostname: str = 'ml.facebase.org', data_dir: str = './'):
        super().__init__(hostname, 'isa', 'ml', 'vocab', data_dir)
@Zhiweiii
Copy link
Contributor Author

Changes:
Initiate the Deriva-ML with the ML catalog schema name. For all the rest of the tables, search for the schema it belongs to.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

When branches are created from issues, their pull requests are automatically linked.

1 participant