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

adding option to provide an attribute column #136

Merged
merged 1 commit into from
Mar 12, 2024

Conversation

djarecka
Copy link
Contributor

closes #135

Adding support for attribute column, so attributes and slots could be used in one schema, e.g.:

class	attribute	slot	range	desc
>class	attribute	slot	range	description
ClassA				class A
ClassA		        slot_a	string	slot a
ClassA		        slot_b	int	slot b
ClassA	attr_a		string	        attribute a
ClassA	attr_b		int	        attribute b

gives:

slots:
  slot_a:
    from_schema: https://identifiers.org/brain-bican/kb-model
  slot_b:
    from_schema: https://identifiers.org/brain-bican/kb-model
classes:
  ClassA:
    description: class A
    from_schema: https://identifiers.org/brain-bican/kb-model
    slots:
    - slot_a
    - slot_b
    slot_usage:
      slot_a:
        description: slot a
        range: string
      slot_b:
        description: slot b
        range: int
    attributes:
      attr_a:
        description: attribute a
        from_schema: https://identifiers.org/brain-bican/kb-model
        range: string
      attr_b:
        description: attribute b
        from_schema: https://identifiers.org/brain-bican/kb-model
        range: int

but not sure if this is the best way to do it...

@cmungall cmungall merged commit 40feaec into linkml:main Mar 12, 2024
2 checks passed
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

Successfully merging this pull request may close these issues.

adding option to support attributes together with slots
2 participants