Commons:Structured data/Modeling/Date: Difference between revisions
Schlurcher (talk | contribs) |
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
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"
).
- earliest date (P1319) and/or latest date (P1326) - earliest and latest possible time that some event could have occurred.
- start time (P580) and/or end time (P582) - beginning and end of some period of time.
- sourcing circumstances (P1480) qualification of the accuracy of a statement. Allowed values: circa (Q5727902), near (Q21818619), presumably (Q18122778), disputed (Q18912752), etc.
- refine date (P4241) qualifier to narrow down the precision of a date. Allowed values:
- parts, like beginning of (Q40719727), middle of (Q40719748) and end of (Q40719766)
- halves, usually of a year, decade or century first half (Q40719687) and second half (Q40719707)
- quarters, usually of a century: first quarter (Q40690303), second quarter (Q40719649), third quarter (Q40719662) and fourth quarter (Q40719674)
- seasons, observed in northern and southern hemisphere
- winter (northern hemisphere) (Q40720553), spring (northern hemisphere) (Q40720559), summer (northern hemisphere) (Q40720564), autumn (northern hemisphere) (Q40720568)
- winter (southern hemisphere) (Q40720946), spring (southern hemisphere) (Q40720950), summer (southern hemisphere) (Q40720953), autumn (southern hemisphere) (Q40720956)
- Example dates and how to save them
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)
Modeling various dates and times related to Wikimedia Commons files
Type of metadata | Notes | Wikidata property | Status |
---|---|---|---|
Creation date |
|
inception (P571) | Done |
Publication date | First time shared with a wider audience (affects copyright status) | publication date (P577) |
|
Date depicted | Map or other representation of a specific date | date depicted (P2913) | |
Example | Example | Example |
|
General notes and remarks
- Date properties should be direct, in order to be able to add qualifiers
Examples
(list files below that provide best practices on how to model various situations)
-
Example.jpg Example 1 of good data modelling of situation a
-
Example.jpg Example 2 of good data modelling of situation b