Skip to content

Commit 1802968

Browse files
realmarcinclaude
andcommitted
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

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
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"id": "data_sheets_schema:123",
3-
"description": "[]",
43
"@type": "CleaningStrategy"
54
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
id: data_sheets_schema:123
2-
description: '[]'
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"id": "data_sheets_schema:123",
3-
"description": "[]",
43
"@type": "CleaningStrategy"
54
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
id: data_sheets_schema:123
2-
description: '[]'
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"id": "data_sheets_schema:123",
3-
"description": "[]",
43
"@type": "CollectionConsent"
54
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
id: data_sheets_schema:123
2-
description: '[]'
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"id": "data_sheets_schema:123",
3-
"description": "[]",
43
"@type": "CollectionConsent"
54
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
id: data_sheets_schema:123
2-
description: '[]'
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
22
"id": "data_sheets_schema:123",
3-
"description": "[]",
43
"@type": "CollectionMechanism"
54
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
11
id: data_sheets_schema:123
2-
description: '[]'

0 commit comments

Comments
 (0)