Commit 1802968
Refactor external_resources from class attributes to shared slot
Convert external_resources from duplicated class attribute definitions
to a shared LinkML slot following best practices.
Changes:
- Add external_resources slot to D4D_Base_import.yaml with dcterms:references URI
- Update ExternalResource class to use slots + slot_usage (range: string)
- Update Dataset class to use slots + slot_usage (range: ExternalResource)
- Remove duplicate attribute definition from Dataset
Benefits:
- Single source of truth for external_resources semantics
- Follows LinkML best practices for slot reuse
- Easier maintenance with centralized slot_uri and properties
- No functional changes - maintains backward compatibility
The recursive structure still works correctly:
- Dataset.external_resources → list of ExternalResource objects
- ExternalResource.external_resources → list of URL strings
All tests pass and existing D4D YAML files validate successfully.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <[email protected]>1 parent 38de7ce commit 1802968
File tree
152 files changed
+982
-1064
lines changed- examples/output
- project
- jsonld
- jsonschema
- owl
- src/data_sheets_schema
- datamodel
- schema
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
152 files changed
+982
-1064
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | 3 | | |
5 | 4 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
0 commit comments