Skip to content

feat(hydra): emit rdfs:label per supportedClass from extraProperties#4

Merged
schmunk42 merged 1 commit into
masterfrom
feature/resource-labels
Jul 15, 2026
Merged

feat(hydra): emit rdfs:label per supportedClass from extraProperties#4
schmunk42 merged 1 commit into
masterfrom
feature/resource-labels

Conversation

@schmunk42

@schmunk42 schmunk42 commented Jul 15, 2026

Copy link
Copy Markdown
Member

What

The HydraDocumentationSubscriber reads each resource's extraProperties['label'] and emits it as rdfs:label on the matching hydra:supportedClass in /api/docs.jsonld. Existing rdfs:label values are never overwritten.

How it fits together

🤖 Generated with Claude Code

Resources may declare extraProperties: ['label' => '…']; the
HydraDocumentationSubscriber now surfaces that value as rdfs:label on
the matching hydra:supportedClass in /api/docs.jsonld. UIs
(hrzg/vue-za7-admin-ui) use it as the human-readable, later
translatable menu/heading text while hydra:title (= shortName) stays
the technical key. Existing rdfs:label values are never overwritten.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@schmunk42 schmunk42 merged commit 9aba5df into master Jul 15, 2026
2 checks passed
@schmunk42 schmunk42 deleted the feature/resource-labels branch July 15, 2026 09:35
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.

1 participant