linkml / linkml-runtime

Runtime support for linkml generated models
https://linkml.io/linkml/
Creative Commons Zero v1.0 Universal
24 stars 23 forks source link

1126 slot modifying classes #245

Closed amc-corey-cox closed 1 year ago

amc-corey-cox commented 1 year ago

runtime portion to implement showing classes that modify a slot on the slot page for docgen.

https://github.com/linkml/linkml/issues/1126

amc-corey-cox commented 1 year ago

Along with the other PR I think this should add the functionality we need.

amc-corey-cox commented 1 year ago

As I mentioned in Slack. I had some issues with push this PR. As you can see with the last commit, I needed to fix an issue with the test_schemaview that was failing. We should verify this is an appropriate fix.

Separately, I was not able to rebase because doing so caused pytest to fail on gather tests from tests/test_processing/test_referencevalidator.py. These test failures appear to be due to failed imports in these lines.

from examples import PermissibleValue from linkml_runtime.utils.schema_builder import SchemaBuilder

The first line can just be commented out but the second import issue is due to this file being missing from main:

linkml_runtime/utils/schema_builder

I wasn't sure how to reconcile that so I just created this PR without rebasing on main.