Wikidata:Property proposal/opening hours (v.3)

opening hours edit

opening time edit

Originally proposed at Wikidata:Property proposal/Generic

   Done: opening time (P8626) (Talk and documentation)
Descriptiontime when an establishment or attraction opens, qualifier for P3025
Data typeItem
Example 1See below
Example 2.
Example 3.

closing time edit

Originally proposed at Wikidata:Property proposal/Generic

   Done: closing time (P8627) (Talk and documentation)
Descriptiontime when an establishment or attraction closes, qualifier for P3025
Data typeItem
Example 1See below
Example 2.
Example 3.

Motivation edit

Taking into account the previous proposals (here and here), I've adapted Thryduulf's suggestion to create a new attempt at getting this much-needed information on Wikidata.

Here are some theoretical examples:

WikiCafé, strangely only open twice a week edit
open days (P3025)
  Monday (Q105)
opening time 08:00 (Q55811455)
closing time 17:00 (Q55811883)
0 references
add reference
  Wednesday (Q128)
opening time 08:00 (Q55811455)
closing time 22:00 (Q55813122)
0 references
add reference


add value
Museum of Dead Wikidata Proposals edit
Eccentric Bazaar of Most Ancient and Mystical WikiFauna Artifacts edit
open days (P3025)
  first weekend of June (Q34321176)
opening time sunrise (Q193294)
closing time sunset (Q166564)
0 references
add reference
  sixth Monday in February (Q16324523)
opening time 00:00 (Q55812411)
closing time 11:30 (Q55811133) (lunch break)
0 references
add reference
  sixth Monday in February (Q16324523)
opening time 15:15 (Q55811726) (returning from lunch)
closing time 23:59 (Q55812369)
0 references
add reference


add value
ski resort Gaissau-Hintersee (Q2292227) edit
open days (P3025)
  Monday (Q105)
opening time 9 AM (Q41618181)
closing time 16:00 (Q55812393)
opening period from December 15 (Q2383)
open period to March 15 (Q2403)
0 references
add reference


add value

The advantage of using item-datatypes is that you can use non-numeric concepts like sunrise and sunset. Overall I think this proposal is very good, and Wikivoyage in particular should benefit from it.

Pinging those involved in previous discussions: @T.seppelt, K7L, Thryduulf, ArthurPSmith, Jura1, Pigsonthewing, @Srittau, Izno, Syced, Lymantria. NMaia (talk) 02:40, 27 August 2020 (UTC)[reply]

Discussion edit

SOJO (Q28804296)
open days (P3025)
  Wednesday (Q128)
opening time 05:00 (Q55810695)
closing time 21:00 (Q55812716)
0 references
add reference
  Thursday (Q129)
opening time 05:00 (Q55810695)
closing time 21:00 (Q55812716)
0 references
add reference
  Friday (Q130)
opening time 05:00 (Q55810695)
closing time 21:00 (Q55812716)
0 references
add reference
  Saturday (Q131)
opening time 05:00 (Q55810695)
closing time 21:00 (Q55812716)
0 references
add reference
  Sunday (Q132)
opening time 05:00 (Q55810695)
closing time 21:00 (Q55812716)
0 references
add reference


add value

I've also addressed Röst's concern above. NMaia (talk) 10:30, 4 September 2020 (UTC)[reply]

 
When in a single day there are several different interval at which the place is open, how about using time interval (Q186081) for each of these intervals? Jura, you have a lot of experience, do you think that would work? It would make SPARQL queries easy to write, I believe. When there is only one interval, I would suggest skipping the time interval (Q186081), though. Screenshot of my sandbox experiment on the right (using dates instead of hours but the idea is the same). Syced (talk) 15:30, 4 September 2020 (UTC)[reply]
Probably the lunch break example should be done like this to be machine parseable:
open days (P3025)
  first weekend of June (Q34321176)
opening time sunrise (Q193294)
closing time sunset (Q166564)
0 references
add reference
  sixth Monday in February (Q16324523)
opening time 00:00 (Q55812411)
closing time 11:30 (Q55811133) (lunch break)
0 references
add reference
  sixth Monday in February (Q16324523)
opening time 15:15 (Q55811726) (returning from lunch)
closing time 23:59 (Q55812369)
0 references
add reference


add value
what do you think? --Hannes Röst (talk) 21:59, 4 September 2020 (UTC)[reply]
Ah yes great idea, better than introducing time interval (Q186081), thanks a lot! It is also easier to query in SPARQL. NMaia, would you mind replacing in the proposal? Syced (talk) 00:48, 5 September 2020 (UTC)[reply]
@Hannes Röst, Syced: Done. NMaia (talk) 01:19, 5 September 2020 (UTC)[reply]

@NMaia, Syced, Airon90, Moebeus, Hannes Röst: @Pigsonthewing, ArthurPSmith, CamelCaseNick, Jura1, Sturm: @Robin van der Vliet, Haansn08:   Done opening time (P8626) and closing time (P8627) Pamputt (talk) 05:36, 21 September 2020 (UTC)[reply]