Commons:Structured data/Modeling/Meta

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

Type of metadataWikidata propertyStatus
Typeinstance of (P31) Working
Exposure timeexposure time (P6757)✓ Done
F-numberf-number (P6790)✓ Done
Focal lengthfocal length (P2151)✓ Done
ISO speed ratingISO speed (P6789)✓ Done
MIME typemedia type (P1163)✓ Done
Number of pagesnumber of pages (P1104)✓ Done
Data sizedata size (P3575)✓ Done
Durationduration (P2047)✓ Done
Widthwidth (P2049)✓ Done
Heightheight (P2048)✓ Done
Checksumchecksum (P4092) with qualifier determination method or standard (P459)✓ Done
International Standard Content CodeISCC code (P13150) with qualifier Wikimedia page-version URL (P7569)✓ Done

Data in RDF

Predicate Value type Example Description Related property
rdfs:label String with language tag "Otham ways [3]"@en The captions (label in Wikibase). Same as schema:caption.
rdf:type Fixed set of values wikibase:Mediainfo, schema:MediaObject, schema:ImageObject All files have wikibase:Mediainfo and schema:MediaObject.

In addition, there can be one of the following describing the type of file:

  • schema:ImageObject (bitmap and vector images)
  • schema:AudioObject (audio files)
  • schema:VideoObject (video files)

Office files (PDF, DjVu) and 3D models do not have one of these additional types.

schema:caption String with language tag "Otham ways [3]"@en The captions (label in Wikibase). Same as rdfs:label.
schema:contentSize xsd:integer 2848686 Size of the file in bytes data size (P3575)
schema:contentUrl URI <https://upload.wikimedia.org/wikipedia/commons/0/06/Otham_ways_%283%29_-_geograph.org.uk_-_7078464.jpg> Direct link to the file
schema:dateModified xsd:dateTime 2024-12-12T17:08:06Z Date of the last revision
schema:duration xsd:duration PT0.88816326530612S Duration of an audio or video file in seconds. duration (P2047)
schema:encodingFormat String "image/jpeg" Mime type media type (P1163)
schema:height xsd:integer 4320 Height of an image or video file in pixels. Not present on TIFFs. height (P2048)
schema:numberOfPages xsd:integer 100 Number of pages in a multi-page file (PDF, DjVu, TIFF). number of pages (P1104)
schema:url URI <http://commons.wikimedia.org/wiki/Special:FilePath/Otham%20ways%20%283%29%20-%20geograph.org.uk%20-%207078464.jpg> Direct link to the file via Special:FilePath (can be used in image grid)
schema:version xsd:integer 969368863 ID of the last revision
schema:width xsd:integer 3240 Width of an image or video file in pixels. Not present on TIFFs. width (P2049)

Properties not to use

These properties shouldn't be used

PropertyReplacementNotes
Commons category (P373)location of creation (P1071) or depicts (P180) and othersRecord 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) insteadDuplicate information

Examples

Category:Structured Data on Commons
Category:Structured Data on Commons