Jump to content
Wikimedia Commons

Commons:Structured data/Modeling/Meta

From Wikimedia Commons, the free media repository
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 ]
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月12日T17: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

[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 ]
Features
Tools
Adding data
Querying data
Displaying data
About
GLAM
Discussion
Technical aspects
Historical
Related

AltStyle によって変換されたページ (->オリジナル) /