Skip to content

Resolve ambiguity on how to handle attributes#259

Open
Silvanoc wants to merge 1 commit into
mainfrom
resolve-attribute-ambiguity
Open

Resolve ambiguity on how to handle attributes#259
Silvanoc wants to merge 1 commit into
mainfrom
resolve-attribute-ambiguity

Conversation

@Silvanoc

Copy link
Copy Markdown

This patch fixes the attributes specification for more clarity on how to handle attributes converting to other formats.

Before this patch the attributes specification had a comment that gave the impression that attributes are only syntactic sugar for class-scoped slots (slots that are only available to be used by a class and its descendants) and specifying the conversion of attributes into slots renaming them to <class-name>__<attribute-name>.

This patch modifies that comment so that attributes are kept as 1st-class-citizens even on conversions.

Fixes: linkml/linkml#3669

This patch fixes the `attributes` specification for more clarity on how
to handle `attributes` converting to other formats.

Before this patch the `attributes` specification had a comment that gave
the impression that `attributes` are only syntactic sugar for
class-scoped slots (slots that are only available to be used by a class
and its descendants) and specifying the conversion of `attributes` into
`slots` renaming them to `<class-name>__<attribute-name>`.

This patch modifies that comment so that `attributes` are kept as
1st-class-citizens even on conversions.

Signed-off-by: Silvano Cirujano Cuesta <silvano.cirujano-cuesta@siemens.com>
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.

gen-jsonld - class attribute gets duplicated into attribute and class-specific-slot

2 participants