User:YULdigitalpreservation/Mime Type Proposal
Drafting a proposal.
New property edit
We want to propose a new property for mediatype. Currently we have a property with a string datatype to represent this data.
We would like to have a property with the datatype of item to represent this data.
We would like to have this new property so that we can create relationships between the set of new items for these mediatypes themselves.
Advantages edit
Advantages include :
- easier to provide more information about a MIME type
- allows setting the MIME type as main subject (P921) of literature
- allows sitelinks, see e.g. multipart/form-data (Q4044641)
- allows these items to be linked to other data sets such as: http://www.sparontologies.net/mediatype
- ...
Disadvantages edit
Disadvantages include:
- more complex data structure
- there will be duplicated data (we won't delete the old property)
The examples provided below are interesting because the mediatype information is already on these items. The difference that this proposal would create would be the data type. Items will be created for all mediatypes. This way we can also create statements about these mediatypes.
Many of the links to IANA are deadlinks.
Migration of existing data consist of:
- make Wikidata entries for all used MIME types (906 uses, so limited number of new entries)
Properties edit
- Description: Identifier for file formats and format contents transmitted on the Internet.
- Represents: file format
- Associated item: media type (Q1667978)
- Data Type: Item
- Template parameter:
- Domain:
- Allowed values:
- Example: Matroska Video (Q27967512) -> mediatype -> Matroska Video (Q56062694)
- Source: https://www.iana.org/assignments/media-types/media-types.xhtml
- Formatter URL:
Some of this can be retained, obviously not the Data Type (but is above already changed).
Constraints edit
Model of items edit
Action: These need to be converted into a ShEX.
A MIME type edit
$mime-type ...
- instance of (P31) media type (Q1667978)
- media type (P1163) "text/..."
- (recommended) described by source (P1343) ${RFC-item} (?)
- (optional) File Format Wiki page ID (P3381) ...
- (optional) Stack Exchange tag (P1482) ...
Do you have a use in mind for the media type (P1163) statement? Would it be redundant?
A RFC document edit
$rfc-item ...
- instance of (P31) Request for Comments (Q212971)
- title (P1476) "Title..."
- publication date (P577) "date"
- RfC ID (P892) "..."
- DOI (P356) "10.17487/RFC..."
+ All field used by https://www.wikidata.org/wiki/Q47469323: title, RfC ID, DOI, author, etc, etc...
Background Information edit
At WikiCite 2017 (Q54856362) Silvio Peroni shared this link http://www.sparontologies.net/mediatype to his work publishing linked data.
The current property used for mimetypes is media type (P1163). Here is a link to talk page for P1163.