There are pydantic schemas for all of the Schema.org Linked Data RDFS vocabulary; that could also work in Rust:
https://github.com/lexiq-legal/pydantic_schemaorg
A PR to add support for pydantic v2: https://github.com/lexiq-legal/pydantic_schemaorg/pull/14/fi...