Skip to content
This repository was archived by the owner on Jun 13, 2025. It is now read-only.

Issues with adding mediaType to ids:representation (v4.2.5) #13

@juliapampus

Description

@juliapampus

Using Infomodel library v4.2.5.

According to the Infomodel, it should be possible to add official IANAMediaTyoes and custom media types to the representation:

ids:MediaType. Removed instances for ids:IANAMediaType.

Media types via ids:mediaType with range ids:IANAMediaType should be used with the corresponding IANA URLs, as these have complete coverage. E.g., for JSON-LD:
"ids:mediaType": {
  "@id":   "https://www.iana.org/assignments/media-types/application/ld+json",
  "@type": "ids:IANAMediaType"
}
For custom media types (ids:CustomMediaType), it is advised to use a recognizable unique identifier.

With the newest library version, the IANAMediaTypeBuilder has been removed. Since the MediaType and CustomMediaType do not inherit from each other and both classes are enums, it is not possible to add other types than the provided json or other. Can you give a hint on how to implement? Perhaps I have missed something.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions