Modelling/Events and activities: Difference between revisions

From MetaBase
Jump to navigation Jump to search
No edit summary
 
(48 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Modelling navigation}}
==Modelling an event==
Examples of types of activities and events: {{Q|Q37}}, {{Q|Q65}}, {{Q|Q42}}.
===Some particular event considerations===
====Conferences====
'''EXAMPLE: ''' {{Q|Q22660}}
{{Q|Q42}}, consisting of many different kinds of sessions and participants, are a special type of event. See a separate [[Modelling/Events_and_activities/Conferences|modeling page for them]].
====Campaigns====
{{Q|Q22217}} is a common type of activity organized by Wikimedians. For example {{Q|Q22430}} or {{Q|Q22600}}. A campaign takes place within a particular, often longer, time frame, and can include parts such as {{Q|Q41}}, {{Q|Q61}} or {{Q|Q22295}}. Those parts are linked using {{P|P35}}, and in reverse, {{P|P17}}.
Sometimes a campaign will have several such parts, such as {{Q|Q22508}}, where several edit-a-thons are included under {{P|P35}}; sometimes only one.
For example {{Q|Q22623}}, which has one part under it, {{Q|Q22384}}. So realistically, we can think of them as one and the same.
But it is possible to imagine a national Wiki Loves Monuments campaign that also encompasses edit-a-thons, seminars, etc.
For this reason it is preferable to always model campaigns and their constituent parts this way, even when there's only one constituent part. This makes it easier to query the data and remember one data model to use.
====Online/offline events====
It is valuable to indicate whether an event took place physically or was online (or hybrid). That's why the item should have two {{P|P5}}, one for the type of the event ({{Q|Q42}}, {{Q|Q41}}...) and one for how it was conducted (see list of possibilities in table below).
===Properties used===
{| class="wikitable"
{| class="wikitable"
|-
|-
Line 5: Line 28:
| IF EXISTS || {{P|P1}}|| Q123 ||  
| IF EXISTS || {{P|P1}}|| Q123 ||  
|-
|-
| REQUIRED || {{P|P5}} (describing the type of event)|| {{Q|Q37}} || Should be a subclass of {{Q|Q40}}
| REQUIRED || {{P|P5}} (describing the type of event)|| {{Q|Q37}} || Should be a subclass of {{Q|Q40}}. [https://metabase.wikibase.cloud/query/#%23All%20types%20of%20activities%20and%20events%20and%20their%20Wikidata%20equivalents%0APREFIX%20wb%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fentity%2F%3E%0APREFIX%20wbt%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0ASELECT%20%3Fitem%20%3FitemLabel%20%3Fwikidata_iri%0AWHERE%0A%7B%0A%3Fitem%20wbt%3AP4%2a%20wb%3AQ8.%0AOPTIONAL%20%7B%3Fitem%20wbt%3AP1%20%3FwikidataQ%7D%0ABIND%28URI%28concat%28%22http%3A%2F%2Fwww.wikidata.org%2Fentity%2F%22%2C%20%3FwikidataQ%29%29%20AS%20%3Fwikidata_iri%29%0ASERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22sv%2Cen%22.%20%7D%0A%7D See all available].
|-
|-
| REQUIRED || {{P|P5}} (describing how the event is held)|| {{Q|Q79}} || Should be one of:
| REQUIRED || {{P|P5}} (describing how the event is held)|| {{Q|Q79}} || Should be one of:
Line 16: Line 39:
| REQUIRED || {{P|P14}} || {{Q|Q9}} || Organization or person responsible for organizing the event
| REQUIRED || {{P|P14}} || {{Q|Q9}} || Organization or person responsible for organizing the event
|-
|-
| || {{P|P31}}|| ''[https://commons.wikimedia.org/wiki/File:Wikimedia_Sveriges_%C3%A5rsm%C3%B6te_2022.webm Wikimedia Sveriges årsmöte 2022.webm]'' || Example
| REQUIRED FOR '''PHYSICAL''' EVENTS if no {{P|P1}} || {{P|P27}}|| {{Q|Q78}}|| Should not be more granular than town level
|-
|-
| REQUIRED if no P1 || {{P|P27}}|| {{Q|Q78}}|| Should not be more granular than town level
| REQUIRED || {{P|P52}} || {{Q|Q32}} || The language in which the event was held
|-
|-
| || {{P|P11}}|| Example || Example
| REQUIRED for {{Q|Q48}} and [https://metabase.wikibase.cloud/query/#PREFIX%20wb%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fentity%2F%3E%0APREFIX%20wbt%3A%20%3Chttps%3A%2F%2Fmetabase.wikibase.cloud%2Fprop%2Fdirect%2F%3E%0A%0ASELECT%20%3Fitem%20%3FitemLabel%0AWHERE%0A%7B%3Fitem%20wbt%3AP4%2a%20wb%3AQ48.%0ASERVICE%20wikibase%3Alabel%20%7B%20bd%3AserviceParam%20wikibase%3Alanguage%20%22%5BAUTO%20LANGUAGE%5D%2Csv%2Cen%22.%20%7D%0A%7D its subclasses] || {{P|P33}} || {{Q|Q85}}|| Applicable to {{Q|Q65}} and similar; the person (passively) delivering the content.
|-
| REQUIRED for {{Q|Q37}} || {{P|P32}}|| {{Q|Q85}} || Applicable to {{Q|Q37}} and similar; the person (actively) leading / facilitating the activity.
|-
| || {{P|P15}} || {{Q|39}}||
|-
| || {{P|P17}} || {{Q|Q22660}} || If the event is part of a larger one, eg. a conference.
|-
| || {{P|P35}} || {{Q|Q22697}} || If the event includes sub-events with their own items.
|-
| || {{P|P26}} || ''[https://commons.wikimedia.org/wiki/File:Wikimedia_Sveriges_%C3%A5rsm%C3%B6te,_2022-04-23,_05.jpg Wikimedia Sveriges årsmöte, 2022-04-23, 05.jpg]'' || Filename of a relevant illustration on Wikimedia Commons
|-
| || {{P|P31}}|| ''[https://commons.wikimedia.org/wiki/File:Wikimedia_Sveriges_%C3%A5rsm%C3%B6te_2022.webm Wikimedia Sveriges årsmöte 2022.webm]'' || Filename of the video recording of the event on Wikimedia Commons
|-
| || {{P|P59}} || ''[https://www.youtube.com/watch?v=oPib9P3f4b0 oPib9P3f4b0]'' || ID of the video recording on Youtube
|-
| || {{P|P11}}|| ''sv:Wikipedia:Skrivstuga/Kvinnor,_arkitektur_och_design''|| Link to a Wikimedia page where the project is described, using an [https://en.wikipedia.org/wiki/Help:Interwiki_linking interwiki prefix].
|-
| || {{P|P12}}|| ''https://www.kbr.be/en/agenda/linked-data-and-international-standards-for-cultural-heritage/''|| URL of website (not a Wikimedia wiki) with a description of the event
|-
| || {{P|P37}}|| ''Wikimedia Sverige - årsmöte 2023''|| Name of category containing media files showing the event itself
|-
| || {{P|P43}} || {{Q|Q21967}} || Something that the event uses, e.g. a slide deck
|-
| || {{P|P47}} || ''T12345'' || ID of corresponding task in [https://phabricator.wikimedia.org/ Wikimedia's Phabricator]
|-
| || {{P|P51}} || ''https://se.wikimedia.org/wiki/M%C3%B6tesprotokoll/%C3%85rsm%C3%B6tesprotokoll_2023-04-22'' || URL of notes relevant to the event, such as minutes from a board meeting. The qualifier {{P|P50}} can be used to specify the nature of the notes, eg. {{Q|Q57}}
|-
| || {{P|P61}} || 45 min. || How long the event took
<!-- |-
| || {{P|.......}} || {{Q|.......}} || ........ -->
|-
|-
|style="text-align: center; background-color: #FDF0FF;" colspan="4" |Event outcomes
|style="text-align: center; background-color: #FDF0FF;" colspan="4" |Event outcomes
Line 26: Line 79:
| || {{P|P28}}|| 13||  
| || {{P|P28}}|| 13||  
|-
|-
| || {{P|P13}}|| {{Q|Q26}}||  
| || {{P|P13}}|| {{Q|Q26}}|| Applicable to {{Q|Q41}} and other types of events where editing on the Wikimedia platforms takes place. Different from {{P|P15}} when the platform is not the focus of the event (like in the case of a lecture about Wikipedia itself) but rather a tool to run the activity.
|-
|-
| || Example || Example || Example
| || {{P|P48}} || ''WikiProject_Sweden/Kopplingssprint_21_augusti_2022'' || ID of the relevant entry on the Wikimedia [https://outreachdashboard.wmflabs.org/ Outreach Dashboard]
|}
|}
[[Category:Documentation]]
 
==SPARQL==
All events, their dates and locations:
<SPARQL tryit="1">
PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT DISTINCT ?item ?itemLabel ?where ?whereLabel ?when
WHERE
{
?item wbt:P5/wbt:P4* wb:Q40 .
OPTIONAL {?item wbt:P23 ?when}
OPTIONAL {?item wbt:P27 ?where}
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en". }
}
</SPARQL>
 
==See also==
* Event '''[[EntitySchema:E5|Entity schema]]''' and '''[https://metabase.wikibase.cloud/tools/cradle/?#/shex/E5 Cradle]'''
[[Category:Documentation|E]]

Latest revision as of 13:21, 26 November 2024


Modelling an event

Examples of types of activities and events: workshop (Q37), lecture (Q65), conference (Q42).

Some particular event considerations

Conferences

EXAMPLE: GLAM Wiki 2023 (Q22660)

conference (Q42), consisting of many different kinds of sessions and participants, are a special type of event. See a separate modeling page for them.

Campaigns

campaign (Q22217) is a common type of activity organized by Wikimedians. For example WikiGap 2021 (Q22430) or Wiki Loves Monuments 2023 in Italy (Q22600). A campaign takes place within a particular, often longer, time frame, and can include parts such as edit-a-thon (Q41), seminar (Q61) or competition (Q22295). Those parts are linked using has part(s) (P35), and in reverse, part of (P17).

Sometimes a campaign will have several such parts, such as WikiGap 2021 in Sweden (Q22508), where several edit-a-thons are included under has part(s) (P35); sometimes only one.

For example Wiki Loves Monuments 2019 in Sweden (Q22623), which has one part under it, Wiki Loves Monuments 2019 in Sweden ‒ contest (Q22384). So realistically, we can think of them as one and the same.

But it is possible to imagine a national Wiki Loves Monuments campaign that also encompasses edit-a-thons, seminars, etc.

For this reason it is preferable to always model campaigns and their constituent parts this way, even when there's only one constituent part. This makes it easier to query the data and remember one data model to use.

Online/offline events

It is valuable to indicate whether an event took place physically or was online (or hybrid). That's why the item should have two instance of (P5), one for the type of the event (conference (Q42), edit-a-thon (Q41)...) and one for how it was conducted (see list of possibilities in table below).

Properties used

Required Property Example value Notes
IF EXISTS same as on Wikidata (P1) Q123
REQUIRED instance of (P5) (describing the type of event) workshop (Q37) Should be a subclass of event (Q40). See all available.
REQUIRED instance of (P5) (describing how the event is held) hybrid event (Q79) Should be one of:
REQUIRED point in time (P23) 2022-04-31 When the event took place
REQUIRED organizer (P14) Wikimedia Sverige (Q9) Organization or person responsible for organizing the event
REQUIRED FOR PHYSICAL EVENTS if no same as on Wikidata (P1) location (P27) Stockholm (Q78) Should not be more granular than town level
REQUIRED language used (P52) English (Q32) The language in which the event was held
REQUIRED for presentation (Q48) and its subclasses speaker (P33) Josefine Hellroth Larsson (Q85) Applicable to lecture (Q65) and similar; the person (passively) delivering the content.
REQUIRED for workshop (Q37) manager / leader (P32) Josefine Hellroth Larsson (Q85) Applicable to workshop (Q37) and similar; the person (actively) leading / facilitating the activity.
main subject (P15) public art (Q39)
part of (P17) GLAM Wiki 2023 (Q22660) If the event is part of a larger one, eg. a conference.
has part(s) (P35) Open Refine Wikimedia Commons training session (Q22697) If the event includes sub-events with their own items.
image (P26) Wikimedia Sveriges årsmöte, 2022-04-23, 05.jpg Filename of a relevant illustration on Wikimedia Commons
video (P31) Wikimedia Sveriges årsmöte 2022.webm Filename of the video recording of the event on Wikimedia Commons
YouTube video ID (P59) oPib9P3f4b0 ID of the video recording on Youtube
described at Wikimedia-page (P11) sv:Wikipedia:Skrivstuga/Kvinnor,_arkitektur_och_design Link to a Wikimedia page where the project is described, using an interwiki prefix.
described at URL (P12) https://www.kbr.be/en/agenda/linked-data-and-international-standards-for-cultural-heritage/ URL of website (not a Wikimedia wiki) with a description of the event
Commons category (P37) Wikimedia Sverige - årsmöte 2023 Name of category containing media files showing the event itself
uses (P43) Q21967 Something that the event uses, e.g. a slide deck
Phabricator task (P47) T12345 ID of corresponding task in Wikimedia's Phabricator
relevant notes at URL (P51) https://se.wikimedia.org/wiki/M%C3%B6tesprotokoll/%C3%85rsm%C3%B6tesprotokoll_2023-04-22 URL of notes relevant to the event, such as minutes from a board meeting. The qualifier applies to part (P50) can be used to specify the nature of the notes, eg. minutes (Q57)
duration (P61) 45 min. How long the event took
Event outcomes
number of participants (P28) 13
Wikimedia platform(s) affected (P13) Swedish Wikipedia (Q26) Applicable to edit-a-thon (Q41) and other types of events where editing on the Wikimedia platforms takes place. Different from main subject (P15) when the platform is not the focus of the event (like in the case of a lecture about Wikipedia itself) but rather a tool to run the activity.
Outreach Dashboard (P48) WikiProject_Sweden/Kopplingssprint_21_augusti_2022 ID of the relevant entry on the Wikimedia Outreach Dashboard

SPARQL

All events, their dates and locations:

PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT DISTINCT ?item ?itemLabel ?where ?whereLabel ?when 
WHERE
{
?item wbt:P5/wbt:P4* wb:Q40 .
OPTIONAL {?item wbt:P23 ?when}
OPTIONAL {?item wbt:P27 ?where}
SERVICE wikibase:label { bd:serviceParam wikibase:language "sv,en". }
}

Try it!


See also