Commons:Structured data/Modeling

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Show your love! Work in progress
You can help! Data modeling is a community effort. Improve the guidelines, provide (additional) examples, or propose other data models for community discussion. Visit the talk page to discuss this process in general.

This page contains an overview of how to model information (metadata) about files on Wikimedia Commons in Structured Data.

The basics: structured data for every Commons file[edit]

The following structured data is relevant for every file on Wikimedia Commons. This structured data roughly corresponds with the information stored in the Information template, a general usage infobox template to describe files in wikitext.

Structured data to add Brief instructions In-depth instructions info about the data model in structured data
File caption(s) (multilingual) A (short) textual description of the file, in at least one language. Plain text; no Wiki markup or hyperlinks. Data modeling guidelines: File captions
Date Usually the date when the file was created; typically using a inception (P571) statement. Data modeling guidelines: Date
Source of the file Information about where the file was taken from. Is it the uploader's own work, was it uploaded from an external website,...? Typically using a source of file (P7482) statement. Data modeling guidelines: Source of the file
Creator Who created the file? Typically described with a creator (P170) statement. Data modeling guidelines: Creator of the file
Copyright status and license ('Permission' in the Information template) Is the file still under copyright, or is it public domain? If still under copyright, which license(s) applies/apply? Using copyright status (P6216) and copyright license (P275). Data modeling guidelines: Copyright and licenses

If the above structured data is added to a file, the file's wikitext description can be simplified as follows:

File (click to explore how it is described) Wikitext Main structured data
Energica Ego Fully Charged Europe 2022 01.JPG
== {{int:filedesc}} ==
{{Information}}

== {{int:license-header}} ==
{{self|cc-by-sa-4.0}}

[[Category:Energica Ego]]
  1. File caption: Energica Ego at Fully Charged Europe 2022. (English)
  2. Date: inception (P571) 7 July 2022
  3. Source of the file: source of file (P7482) original creation by uploader (Q66458942)
  4. Creator of the file: creator (P170) Jan Ainali (Q23899609) / object has role (P3831) photographer (Q33231)
  5. Copyright and licenses: copyright status (P6216) copyrighted (Q50423863) and copyright license (P275) Creative Commons Attribution-ShareAlike 4.0 International (Q18199165)

Own work upload directly to Commons[edit]

To describe a simple {{Own}} work upload directly uploaded by the author or {{Self}}-licensed by the uploader:

  1. File caption: one or more short description(s) of the file + language
  2. Date: inception (P571), see Commons:Structured data/Modeling/Date
  3. Source of the file: source of file (P7482)original creation by uploader (Q66458942)
  4. Creator of the file: creator (P170) → "some value" to indicate the creator doesn't have a Wikidata item. Qualified with:
  5. Copyright and licenses: copyright license (P275) and copyright status (P6216), see Commons:Structured data/Modeling/Copyright

Upload from a platform like Panoramio, Geograph or Flickr[edit]

To describe an upload directly uploaded from a platform: (Preferably all uploads were done by a tool or bot, for consistency)

  1. File caption: one or more short description(s) of the file + language
  2. Date: inception (P571), see Commons:Structured data/Modeling/Date
  3. Source of the file: source of file (P7482)file available on the internet (Q74228490) to indicate the source
  4. Creator of the file: creator (P170) → "some value" to indicate the creator doesn't have a Wikidata item. Qualified with:
  5. Copyright and licenses: copyright license (P275) and copyright status (P6216), see Commons:Structured data/Modeling/Copyright

How to model more specific types of files[edit]

  • Maps Crystal128-configure.svg Work in progress


How to model specific types of metadata[edit]

Here, we look at specific types of metadata for a file:

  • Date Crystal128-configure.svg Work in progress


Large-scale uploads with own data modeling[edit]

In some cases, large-scale content contributions / file uploads on Wikimedia Commons use more specific data models. Feel free to list these below!

It is highly recommended that all file metadata also complies with the general, basic data modeling recommendations listed above. This will make sure that all data on Wikimedia Commons can be uniformly searched and queried across the entire platform.

Uploads from Digital Public Library of America[edit]

Please see: Commons:Digital Public Library of America/Modeling

Bots[edit]

Some bots automatically populate SDC data based on metadata in Commons templates.

General remarks[edit]