Skip to content

Comments

fix(hydra): unique class @id with subClassOf for semantic types#7771

Merged
soyuka merged 2 commits intoapi-platform:mainfrom
soyuka:hydra-sub
Feb 17, 2026
Merged

fix(hydra): unique class @id with subClassOf for semantic types#7771
soyuka merged 2 commits intoapi-platform:mainfrom
soyuka:hydra-sub

Conversation

@soyuka
Copy link
Member

@soyuka soyuka commented Feb 17, 2026

Q A
Branch? main
Tickets
License MIT
Doc PR
  • Always use #ShortName as Hydra class @id instead of schema.org type URIs
  • Expose semantic types via rdfs:subClassOf to prevent api-doc-parser conflation
  • Property ranges now consistently reference #ShortName instead of type URIs

| Q             | A
| ------------- | ---
| Branch?       | main
| Tickets       | ∅
| License       | MIT
| Doc PR        | ∅

* Always use #ShortName as Hydra class @id instead of schema.org type URIs
* Expose semantic types via rdfs:subClassOf to prevent api-doc-parser conflation
* Property ranges now consistently reference #ShortName instead of type URIs
| Q             | A
| ------------- | ---
| Branch?       | fix/multiple-mercure
| Tickets       | ∅
| License       | MIT
| Doc PR        | ∅

* Verify two resources sharing the same schema.org type get unique @id
  values (#AdminBook, #Book) with subClassOf preserving the type
* Verify multiple types produce an array in subClassOf

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@soyuka soyuka merged commit e0ba006 into api-platform:main Feb 17, 2026
148 of 149 checks passed
@soyuka soyuka deleted the hydra-sub branch February 17, 2026 13: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