Modelling/Content uploads: Difference between revisions

From MetaBase
Jump to navigation Jump to search
No edit summary
No edit summary
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Modelling navigation}}
{{Modelling navigation}}
==SPARQL==
==Modeling content uploads==
All content uploads:
'''Content uploads''' are specific activities aimed at enriching the Wikimedia projects with material shared with content partners, such as GLAMs. They take place in a specific time frame, have a certain subject matter and target one or more Wikimedia projects.
 
<SPARQL tryit="1">
PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
 
SELECT ?item ?itemLabel
WHERE
{
?item wbt:P5 wb:Q22186 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,sv,[AUTO_LANGUAGE]". }
}
</SPARQL>
 
 
Content uploads are specific activities aimed at enriching the Wikimedia projects with material shared with content partners, such as GLAMs. They take place in a specific time frame, have a certain subject matter and target one or more Wikimedia projects.
 
Number and type of contributions


===Number and type of contributions===
➡️ [[Modelling/Content uploads/Resource types|Guide to resource types]]
➡️ [[Modelling/Content uploads/Resource types|Guide to resource types]]


Look at the following example, an upload of content from a museum, to see how we model the number and type of contributions:
Look at the following example, an upload of content from a museum, to see how we model the number and type of contributions:


{{Q|**Q22194}}**
'''{{Q|Q22194}}'''


* {{P|P53}} — how many content pages were created or improved. The details are described with qualifiers:
* {{P|P53}} — how many content pages were created or improved. The details are described with qualifiers:
** {{P|P56}} — which namespace was affected…
** {{P|P56}} — which namespace was affected…
** {{P|P13}} — in which Wikimedia project…
** {{P|P13}} — in which Wikimedia project…
** {{P|P57}} — with what [[Modelling/Content uploads/Resource types|type of resources]].
** {{P|P57}} — with what [[Modelling/Content uploads/Resource types|type of resources]].


The reason why we use both {{P|P56}} and {{P|P57}} is that the File namespace on Wikimedia Commons can host different types of files: audio recordings, photos, videos, etc. Sometimes it’s useful to know the breakdown, not only how many files were uploaded, but also what kinds.
The reason why we use both {{P|P56}} and {{P|P57}} is that the ''File ''namespace on Wikimedia Commons can host different types of files: audio recordings, photos, videos, etc. Sometimes it’s useful to know the breakdown, not only how many files were uploaded, but also what kinds.


Multiple Wikimedia platforms affected
===Multiple Wikimedia platforms affected===


It is possible for a content upload to target multiple Wikimedia projects.
It is possible for a content upload to target multiple Wikimedia projects.
Line 43: Line 24:


In this case, the property {{P|P53}} will have two statements, one for Wikidata and one for Wikimedia Commons.
In this case, the property {{P|P53}} will have two statements, one for Wikidata and one for Wikimedia Commons.
'''Example:''' {{Q|Q22300}}
===Properties used===
{| class="wikitable"
|-
! Required !! Property !! Example value !! Notes
|-
| REQUIRED || {{P|P5}} || {{Q|Q22186}}|| Define that this is a batch upload.
|-
| REQUIRED || <!-- affected platforms --> {{P|P13}} || {{Q|Q84}} || The Wikimedia projects that were edited.
|-
| REQUIRED || <!-- number of pages --> {{P|P53}} ||543|| How many content pages were edited totally. See the section '''Number and type of contributions''' for details.
|-
| REQUIRED || <!-- res type --> {{P|P57}} || {{Q|Q22190}} || ➡️ [[Modelling/Content_uploads/Resource_types|Type of resources]] uploaded or edited.
|-
| REQUIRED ||<!-- start time --> {{P|P6}} ||  ''2020-06''|| When the upload started. You can be more or less precise depending on the data you have.
|-
| REQUIRED ||<!-- end time --> {{P|P7}} || ''2020-08''|| When the upload ended.
|-
| REQUIRED if no specific start/end dates || <!-- point in time --> {{P|P23}} || ''2018'' || If no specific start and end dates can be defined, try to at least specify a general time period
|-
| REQUIRED ||<!-- file source --> {{P|P58}} || {{Q|Q21929}}|| Where the files or other data come from, like a particular museum, university, public agency...
|-
| || <!-- described att wikimedia page --> {{P|P11}} || ''wmse:Projekt:Fri musik på Wikipedia 2019/Global Metrics#Statens musikverk''|| Link to a Wikimedia page where the project is described, using an [https://en.wikipedia.org/wiki/Help:Interwiki_linking interwiki prefix].
|-
| || <!-- part of --> {{P|P17}} || {{Q|Q38}} || Typically, the project to which this upload belongs.
|-
| ||<!-- commonscat --> {{P|P37}} || ''Media contributed by the Museum of Gothenburg: 2021-10''|| The category containing the files that are in the focus of the upload.
|-
| ||<!-- phabricator --> {{P|P47}} || ''T2212112'' || ID of corresponding task in [https://phabricator.wikimedia.org/ Wikimedia's Phabricator]
|-
| ||<!--main subject -->{{P|P15}} ||  {{Q|Q22119}} || Relevant [[Modelling/Index_term|Index terms]] describing the theme of the upload.
|}
==SPARQL==
All content uploads:
<SPARQL tryit="1">
PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
SELECT ?item ?itemLabel
WHERE
{
?item wbt:P5 wb:Q22186 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,sv,[AUTO_LANGUAGE]". }
}
</SPARQL>
[[Category:Documentation|C]]
[[Category:Documentation|C]]

Latest revision as of 11:27, 23 January 2024


Modeling content uploads

Content uploads are specific activities aimed at enriching the Wikimedia projects with material shared with content partners, such as GLAMs. They take place in a specific time frame, have a certain subject matter and target one or more Wikimedia projects.

Number and type of contributions

➡️ Guide to resource types

Look at the following example, an upload of content from a museum, to see how we model the number and type of contributions:

2021 images in 2021 ‒ upload from the Röhsska Museum (Q22194)

The reason why we use both namespace (P56) and resource type (P57) is that the File namespace on Wikimedia Commons can host different types of files: audio recordings, photos, videos, etc. Sometimes it’s useful to know the breakdown, not only how many files were uploaded, but also what kinds.

Multiple Wikimedia platforms affected

It is possible for a content upload to target multiple Wikimedia projects.

For example: You create Wikidata items for a set of museum objects and upload their photos to Wikimedia Commons.

In this case, the property number of affected content pages (P53) will have two statements, one for Wikidata and one for Wikimedia Commons.

Example: WiR upload, Swedish Performing Arts Agency (Q22300)

Properties used

Required Property Example value Notes
REQUIRED instance of (P5) batch upload (Q22186) Define that this is a batch upload.
REQUIRED Wikimedia platform(s) affected (P13) Wikimedia Commons (Q84) The Wikimedia projects that were edited.
REQUIRED number of affected content pages (P53) 543 How many content pages were edited totally. See the section Number and type of contributions for details.
REQUIRED resource type (P57) image (Q22190) ➡️ Type of resources uploaded or edited.
REQUIRED start time (P6) 2020-06 When the upload started. You can be more or less precise depending on the data you have.
REQUIRED end time (P7) 2020-08 When the upload ended.
REQUIRED if no specific start/end dates point in time (P23) 2018 If no specific start and end dates can be defined, try to at least specify a general time period
REQUIRED source of uploaded material (P58) Röhsska Museum (Q21929) Where the files or other data come from, like a particular museum, university, public agency...
described at Wikimedia-page (P11) wmse:Projekt:Fri musik på Wikipedia 2019/Global Metrics#Statens musikverk Link to a Wikimedia page where the project is described, using an interwiki prefix.
part of (P17) GLAM 2022 (Q38) Typically, the project to which this upload belongs.
Commons category (P37) Media contributed by the Museum of Gothenburg: 2021-10 The category containing the files that are in the focus of the upload.
Phabricator task (P47) T2212112 ID of corresponding task in Wikimedia's Phabricator
main subject (P15) archaeology (Q22119) Relevant Index terms describing the theme of the upload.

SPARQL

All content uploads:

PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>

SELECT ?item ?itemLabel
WHERE
{
?item wbt:P5 wb:Q22186 .
SERVICE wikibase:label { bd:serviceParam wikibase:language "en,sv,[AUTO_LANGUAGE]". }
}

Try it!