Commons:Structured data/Modeling/Date: Difference between revisions

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
Content deleted Content added
No edit summary
Line 2: Line 2:


How to [[Commons:Structured data/Modeling|'''model''']] various types of '''times and dates''' in [[Commons:Structured data|'''structured data''']], for files on Wikimedia Commons
How to [[Commons:Structured data/Modeling|'''model''']] various types of '''times and dates''' in [[Commons:Structured data|'''structured data''']], for files on Wikimedia Commons
Wikidata has many properties related to time, all listed in [[d:Wikidata:List of properties/time]], and many might be relevant to Commons. The most relevant property is {{P|P571}} to be used for storing the time
*photograph was taken,
*document created,
*painting or other artwork completed.

== Storing of imprecise dates ==
Sometimes dates like date of creation of some artwork are not precisely known. On Commons we traditionally used {{tl|Other date}} and {{tl|Complex date}} templates for that. On SDC we will use qualifiers developed on Wikidata and described in [[Help:Dates]]. Below is a copy of most relevant section.

Qualifiers can be used to explain or customize dates that cannot be fully represented in YYYY-MM-DD, YYY-MM or YYYY formats. The precision of the date being qualified should have a precision that encompasses the range described by the qualifiers, or be set to "unknown value" (<code>["snaktype"] = "somevalue"</code>).

<!--T:43-->
* {{P|1319}} and/or {{P|1326}} - earliest and latest possible time that some event could have occurred.
* {{P|P580}} and/or {{P|P582}} - beginning and end of some period of time.
* {{P|1480}} qualification of the accuracy of a statement. Allowed values: {{Q|5727902}}, {{Q|21818619}}, {{Q|18122778}}, {{Q|18912752}}, etc.

<!--T:44-->
* {{P|4241}} qualifier to narrow down the precision of a date. Allowed values:
:*parts, like {{Q|40719727}}, {{Q|40719748}} and {{Q|40719766}}
:*halves, usually of a year, decade or century {{Q|40719687}} and {{Q|40719707}}
:*quarters, usually of a century: {{Q|40690303}}, {{Q|40719649}}, {{Q|40719662}} and {{Q|40719674}}
:*seasons, observed in northern and southern hemisphere
::*{{Q|40720553}}, {{Q|40720559}}, {{Q|40720564}}, {{Q|40720568}}
::*{{Q|40720946}}, {{Q|40720950}}, {{Q|40720953}}, {{Q|40720956}}

<!--T:45-->
;Example dates and how to save them:

{| class="wikitable"
|-
! <!--T:46--> statement
! <!--T:47--> code
! <!--T:48--> Example from
|-
| <!--T:49--> circa 500 BCE
| {{statement|||500 BCE|P1480|Q5727902}}
| {{statement|Q10261|P570|}}
|-
| <!--T:50--> after 741
| {{statement||||P1319|year 741}}
| {{statement|Q291747|P570|}}
|-
| <!--T:51--> before 140s
| {{statement||||1326|140s}}
| {{statement|Q83198|P569|}}
|-
| <!--T:52--> between 586 and 569 BCE
| {{statement||||P1319|586 BCE}}<br/> {{statement||||P1326|569 BCE}}
| {{statement|Q10261|P569|}}
|-
| <!--T:53--> between circa 1600 and circa 1615
| {{statement||||P1319|1600.}}<br/> {{statement||||P1326|1615.}}<br/>{{statement||||P1480|Q5727902}}
| {{statement|Q217640|P569|}}
|-
| <!--T:54--> from 1384
| {{statement||||P580|1384.}}
| {{statement|Q11780990|P1317|}}
|-
| <!--T:55--> until 1515
| {{statement||||P582|1515.}}
|
|-
| <!--T:56--> from 1405 until 1420
| {{statement||||P580|1405.}}<br/> {{statement||||P582|1420.}}
| {{statement|Q29609|P1317|}}
|-
| <!--T:57--> beginning of 11. century
| {{statement|||11. century|P4241|Q40719727}}
| {{statement|Q6967370|P569|}}
|-
| <!--T:58--> middle of 18. century
| {{statement|||18. century|P4241|Q40719748}}
| {{statement|Q2512266|P569|}}
|-
| <!--T:59--> end of April 2011
| {{statement|||April 2011|P4241|Q40719766}}
| {{statement|Q2198961|P571|}}
|-
| <!--T:60--> first half of 1900s
| {{statement|||1900s|P4241|Q40719687}}
| {{statement|Q40912154|P1317|}}
|-
| <!--T:61--> summer of 1693
| {{statement|||1693.|P4241|Q40720564}}
| {{statement|Q3135313|P570|}}
|-
| <!--T:62--> autumn of 1653
| {{statement|||1653.|P4241|Q40720568}}
| {{statement|Q367970|P570|}}
|}



== Caution: distinction between a digital file, and a creative work shown/depicted in a file ==
== Caution: distinction between a digital file, and a creative work shown/depicted in a file ==

Revision as of 14:24, 24 January 2020

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 times and dates in structured data, for files on Wikimedia Commons Wikidata has many properties related to time, all listed in d:Wikidata:List of properties/time, and many might be relevant to Commons. The most relevant property is inception (P571) to be used for storing the time

  • photograph was taken,
  • document created,
  • painting or other artwork completed.

Storing of imprecise dates

Sometimes dates like date of creation of some artwork are not precisely known. On Commons we traditionally used {{Other date}} and {{Complex date}} templates for that. On SDC we will use qualifiers developed on Wikidata and described in Help:Dates. Below is a copy of most relevant section.

Qualifiers can be used to explain or customize dates that cannot be fully represented in YYYY-MM-DD, YYY-MM or YYYY formats. The precision of the date being qualified should have a precision that encompasses the range described by the qualifiers, or be set to "unknown value" (["snaktype"] = "somevalue").

Example dates and how to save them
statement code Example from
circa 500 BCE 500 BCE / sourcing circumstances (P1480) circa (Q5727902) Pythagoras (Q10261) date of death (P570)
after 741 / earliest date (P1319) year 741 Swanachild (Q291747) date of death (P570)
before 140s / latest date (P1326) 140s Pius I (Q83198) date of birth (P569)
between 586 and 569 BCE / earliest date (P1319) 586 BCE
/ latest date (P1326) 569 BCE
Pythagoras (Q10261) date of birth (P569)
between circa 1600 and circa 1615 / earliest date (P1319) 1600.
/ latest date (P1326) 1615.
/ sourcing circumstances (P1480) circa (Q5727902)
Pieter Mulier the Elder (Q217640) date of birth (P569)
from 1384 / start time (P580) 1384. Mikołaj of Ściborz (Q11780990) floruit (P1317)
until 1515 / end time (P582) 1515.
from 1405 until 1420 / start time (P580) 1405.
/ end time (P582) 1420.
Master of Egerton (Q29609) floruit (P1317)
beginning of 11. century 11. century / refine date (P4241) beginning of (Q40719727) Paraskeva of the Balkans (Q6967370) date of birth (P569)
middle of 18. century 18. century / refine date (P4241) middle of (Q40719748) Zlata of Meglen (Q2512266) date of birth (P569)
end of April 2011 April 2011 / refine date (P4241) end of (Q40719766) Hoegaarden 0,0 (Q2198961) inception (P571)
first half of 1900s 1900s / refine date (P4241) first half (Q40719687) Monogrammist E. D. (Q40912154) floruit (P1317)
summer of 1693 1693. / refine date (P4241) summer (northern hemisphere) (Q40720564) Hieronymus Janssens (Q3135313) date of death (P570)
autumn of 1653 1653. / refine date (P4241) autumn (northern hemisphere) (Q40720568) Adriaen van Utrecht (Q367970) date of death (P570)


Caution: distinction between a digital file, and a creative work shown/depicted in a file

When a file on Wikimedia Commons shows/depicts a creative work, date information about the file and about the depicted work are usually very different.

In some cases (when? criteria?) it is best to describe the creative work as an item on Wikidata to keep this distinction clear.

(example)

Type of metadata Notes Wikidata property Status
Creation date
  • In case of a photograph: the date the photo was taken
  • In case of a painting or other artwork: the date the painting was completed
  • etc.
inception (P571) ✓ Done
Publication date First time shared with a wider audience (affects copyright status) publication date (P577)

Work in progress


Date depicted Map or other representation of a specific date date depicted (P2913)
Example Example Example

Work in progress


General notes and remarks

Examples

(list files below that provide best practices on how to model various situations)