Commons:Structured data/Modeling/Meta

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Show your love! Please help! – Work in progress
You can help by working on guidelines and providing examples below. Visit the talk page to discuss this process in general.

How to model various types of file metadata and exif(-like) data in structured data, for files on Wikimedia Commons

[edit]
Type of metadata Wikidata property Status
Type instance of (P31) Working
Exposure time exposure time (P6757) ✓ Done
F-number f-number (P6790) ✓ Done
Focal length focal length (P2151) ✓ Done
ISO speed rating ISO speed (P6789) ✓ Done
MIME type media type (P1163) ✓ Done
Number of pages number of pages (P1104) ✓ Done
Data size data size (P3575) ✓ Done
Duration duration (P2047) ✓ Done
Width width (P2049) ✓ Done
Height height (P2048) ✓ Done
Checksum checksum (P4092) with qualifier determination method or standard (P459) ✓ Done

Data in RDF

[edit]
Field Example Description Related property
schema:caption Otham ways [3] The caption (label in Wikibase)
schema:contentSize 2848686 Size of the file in bytes data size (P3575)
schema:contentUrl <https://upload.wikimedia.org/wikipedia/commons/0/06/Otham_ways_(3)_-_geograph.org.uk_-_7078464.jpg> URL of the file
schema:encodingFormat image/jpeg Mime type media type (P1163)
schema:height 4320 Height of the file in pixels height (P2048)
schema:url commons:Otham ways (3) - geograph.org.uk - 7078464.jpg URL of the file (can be used in image grid)
schema:width 3240 Width of the file in pixels width (P2049)
schema:version 969368863 revisionid of last revision
schema:dateModified 12 December 2024 date of last revision
rdf:type schema:ImageObject / schema:MediaObject /wikibase:Mediainfo Type of file
rdfs:label Otham ways [3] Same as caption

Properties not to use

[edit]

These properties shouldn't be used

Property Replacement Notes
Commons category (P373) location of creation (P1071) or depicts (P180) and others Record the information about the category instead, i.e., use depicts (P180) for what is depicted or use location of creation (P1071) if it's about where to photo was created.
file format (P2701) Should use media type (P1163) instead Duplicate information

Examples

[edit]