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

Add namespace to Concept #141

Open
mariuszlipinski opened this issue Jul 11, 2024 · 0 comments
Open

Add namespace to Concept #141

mariuszlipinski opened this issue Jul 11, 2024 · 0 comments

Comments

@mariuszlipinski
Copy link

I would like to suggest to add a namespace property to Concept class:

Changes to Concept class:

    self.name: str = name
    self.namespace: str or None = None -- add this line
    self.substitution_group: str or None = None

Then in instance.py file add those lines:

        concept: Concept = tax.concepts[tax.name_id_map[concept_name]]
        concept.namespace = taxonomy_ns -- add this in line 395

    concept: Concept = tax.concepts[tax.name_id_map[concept_name]]
    concept.namespace = ns_map[taxonomy_prefix] -- add this in line 503

            dimension_concept: Concept = dimension_tax.concepts[dimension_tax.name_id_map[dimension_concept_name]]
            dimension_concept.namespace = ns_map[dimension_prefix] -- add this in line 657
            member_concept: Concept = member_tax.concepts[member_tax.name_id_map[member_concept_name]]
            member_concept.namespace = ns_map[member_prefix] -- add this
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

No branches or pull requests

1 participant