Skip to content
This repository has been archived by the owner on Oct 2, 2021. It is now read-only.

Issue 320 mixin abstract as default #321

Conversation

RichardBruskiewich
Copy link
Collaborator

Tested patch for issue #320 which was inspired by Biolink Model issue biolink/biolink-model#540. All relevant tests pass.

Everywhere the boolean truth value of cls.abstract is tested, the boolean truth value of cls.mixin is now also tested thus drives model behavior accordingly.

The one practical semantic difference remains(?) that abstract classes can only be present once in the schema within a single class hierarchy, whereas references to mixin definitions are defined in their own class hierarchy but may be injected multiple times into the regular class and slot hierarchies, as a values of the mixins property of a target class (or slot). The practical refinement of mixin behavior remains to be refined (in other code revisions hence PR's).

@hsolbrig
Copy link
Member

Got caught with PR 323

@hsolbrig hsolbrig closed this Dec 18, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants