Skip to content

Class: MediaType

Reference to an IANA media type by its IRI — dcterms:MediaType is dcat:mediaType's declared range. Identifier-only and referenced with inlined:false, so it renders as a plain IRI string in JSON / Pydantic / JSON-Schema but as an @id resource node in JSON-LD. This stub exists because gen-jsonld-context only emits @type:@id for class-ranged slots (a uri/uriorcurie range stays an xsd:anyURI literal); it is the generator-native way to give RDF/DCAT consumers a resource without changing the string every JSON consumer sees. No local metadata — the media type is defined by IANA.

URI: dcterms:MediaType

 classDiagram
    class MediaType
    click MediaType href "../../classes/MediaType/"
      MediaType : id

Class Properties

Property Value
Class URI dcterms:MediaType

Slots

Name Cardinality and Range Description Inheritance
id 1
Uriorcurie
Unique identifier (IRI/URL) for this resource. In JSON-LD, @id represents the globally unique identifier. (Maps to @id; the identifier slot is bound to @id by gen-jsonld-context.) direct

Usages

used by used in type used
DataDownload mediaType range MediaType

Identifier and Mapping Information

Schema Source

  • from schema: https://w3id.org/midas-catalog/schema

Mappings

Mapping Type Mapped Value
self dcterms:MediaType
native midas:MediaType

LinkML Source

Direct

name: MediaType
description: Reference to an IANA media type by its IRI — dcterms:MediaType is dcat:mediaType's
  declared range. Identifier-only and referenced with inlined:false, so it renders
  as a plain IRI string in JSON / Pydantic / JSON-Schema but as an @id resource node
  in JSON-LD. This stub exists because gen-jsonld-context only emits @type:@id for
  class-ranged slots (a uri/uriorcurie range stays an xsd:anyURI literal); it is the
  generator-native way to give RDF/DCAT consumers a resource without changing the
  string every JSON consumer sees. No local metadata — the media type is defined by
  IANA.
from_schema: https://w3id.org/midas-catalog/schema
slots:
- id
slot_usage:
  id:
    name: id
    pattern: ^((https://www\.iana\.org/assignments/media-types/|https://www\.wikidata\.org/wiki/|http://edamontology\.org/|https://www\.loc\.gov/preservation/digital/formats/fdd/|http://justsolve\.archiveteam\.org/wiki/|http://w3id\.org/midas-metadata/).+|http://ndjson\.org/.*|https://jsonlines\.org/.*)$
class_uri: dcterms:MediaType

Induced

name: MediaType
description: Reference to an IANA media type by its IRI — dcterms:MediaType is dcat:mediaType's
  declared range. Identifier-only and referenced with inlined:false, so it renders
  as a plain IRI string in JSON / Pydantic / JSON-Schema but as an @id resource node
  in JSON-LD. This stub exists because gen-jsonld-context only emits @type:@id for
  class-ranged slots (a uri/uriorcurie range stays an xsd:anyURI literal); it is the
  generator-native way to give RDF/DCAT consumers a resource without changing the
  string every JSON consumer sees. No local metadata — the media type is defined by
  IANA.
from_schema: https://w3id.org/midas-catalog/schema
slot_usage:
  id:
    name: id
    pattern: ^((https://www\.iana\.org/assignments/media-types/|https://www\.wikidata\.org/wiki/|http://edamontology\.org/|https://www\.loc\.gov/preservation/digital/formats/fdd/|http://justsolve\.archiveteam\.org/wiki/|http://w3id\.org/midas-metadata/).+|http://ndjson\.org/.*|https://jsonlines\.org/.*)$
attributes:
  id:
    name: id
    description: Unique identifier (IRI/URL) for this resource. In JSON-LD, @id represents
      the globally unique identifier. (Maps to @id; the identifier slot is bound to
      @id by gen-jsonld-context.)
    from_schema: https://w3id.org/midas-catalog/schema
    rank: 1000
    identifier: true
    owner: MediaType
    domain_of:
    - Thing
    - ConformsTo
    - ProvActivity
    - ProvEntity
    - ProvAgent
    - MediaType
    - WebResource
    range: uriorcurie
    required: true
    pattern: ^((https://www\.iana\.org/assignments/media-types/|https://www\.wikidata\.org/wiki/|http://edamontology\.org/|https://www\.loc\.gov/preservation/digital/formats/fdd/|http://justsolve\.archiveteam\.org/wiki/|http://w3id\.org/midas-metadata/).+|http://ndjson\.org/.*|https://jsonlines\.org/.*)$
class_uri: dcterms:MediaType