4,162
edits
No edit summary |
No edit summary |
||
(18 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
This page describes how a ''' | {{Modelling navigation}} | ||
==Modeling a project== | |||
This page describes how a '''{{Q|Q2}}''' can be modelled on this Wikibase instance. | |||
A ''project'' could be: | A ''project'' could be: | ||
Line 5: | Line 7: | ||
* an informal one implemented by a self-organized group (such as participants in a Wikiproject), or an individual (a volunteer Wikimedian) | * an informal one implemented by a self-organized group (such as participants in a Wikiproject), or an individual (a volunteer Wikimedian) | ||
The modelling described here is based on how {{Q|Q9}} structures their projects. An example of such a project is {{Q|Q14}}. | The modelling described here is based on how {{Q|Q9}} structures their projects. An example of such a project is {{Q|Q14}}. Note the WMSE-specific properties {{P|P9}} and {{P|10}}. | ||
===Projects and their parts=== | |||
Current practice for reasoning around {{Q|Q2}} and their parts, given using {{P|P35}}: | |||
A {{Q|Q2}} is a type of {{Q|Q8}}. Thus, any items that are given as their parts, should also be some type of {{Q|Q8}}. This '''excludes''' other related things like documents published in the scope of the project. | |||
A typical example will be a {{Q|Q48}}, {{Q|Q37}} or {{Q|Q41}} organized within the project. | |||
See for example: | |||
➡️ {{Q|Q21932}} has three events as its parts: {{Q|Q21931}}, {{Q|Q21928}}, {{Q|Q21924}}. | |||
===Properties used=== | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! Required | |||
! Property | ! Property | ||
! Example value | ! Example value | ||
! Notes | ! Notes | ||
|- | |- | ||
|style="text-align: center; background-color: #FDF0FF;" colspan="4" |General project properties | |||
|- | |||
| REQUIRED | |||
| {{P|P5}} | | {{P|P5}} | ||
| {{Q|Q2}} | | {{Q|Q2}} | ||
| | | | ||
|- | |- | ||
| IF EXISTS | |||
| {{P|P1}} | | {{P|P1}} | ||
| [http://www.wikidata.org/entity/Q98809073 Q98809073] | |||
| If the project has a Wikidata item, it can be linked here. | |||
|- | |||
| | | | ||
| | | {{P|P32}} | ||
| {{Q|30}} | |||
| project manager; person responsible for the project | |||
|- | |- | ||
| REQUIRED if no {{P|P1}} | |||
| {{P|P6}} | | {{P|P6}} | ||
| ''2020-02-01'' | | ''2020-02-01'' | ||
| When the project starts – a full date or a year/year-month. | | When the project starts – a full date or a year/year-month. | ||
|- | |- | ||
| | |||
| {{P|P7}} | | {{P|P7}} | ||
| ''2021-09-01'' | | ''2021-09-01'' | ||
| When the project ends – a full date or a year/year-month. | | When the project ends – a full date or a year/year-month. | ||
|- | |- | ||
| REQUIRED if no {{P|P1}} | |||
| {{P|P8}} | | {{P|P8}} | ||
| ''Wikidata för auktoritetskontroll 2020'' (sv) | | ''Wikidata för auktoritetskontroll 2020'' (sv) | ||
| The official name of the project and its language. This is to distinguish the official names from the labels, which can be translated to any language at any point. | | The official name of the project and its language. This is to distinguish the official names from the labels, which can be translated to any language at any point. | ||
|- | |- | ||
| | | REQUIRED | ||
| {{Q|P14}} | |||
| {{Q|Q9}} | |||
| Who organized the project. Could be a formal organization, like a Wikimedia chapter, a self-organized group or an individual. | |||
| {{ | |||
| {{Q| | |||
| | |||
|- | |- | ||
| | |||
| {{P|P15}} | | {{P|P15}} | ||
| {{Q|Q18}} | | {{Q|Q18}} | ||
| Keywords to identify the focus areas of the project. | | Keywords to identify the focus areas of the project. | ||
|- | |- | ||
| | |||
| {{P|P11}} | | {{P|P11}} | ||
| ''wmse:Projekt:Stöd för innehållspartnerskap 2021'' | | ''wmse:Projekt:Stöd för innehållspartnerskap 2021'' | ||
| Link to a Wikimedia page where the project is described, using an interwiki prefix. | | Link to a Wikimedia page where the project is described, using an [https://en.wikipedia.org/wiki/Help:Interwiki_linking interwiki prefix]. | ||
|- | |- | ||
| | |||
| {{P|P12}} | | {{P|P12}} | ||
| | | | ||
| URL of a non-Wikimedia website where the project is described. | | URL of a non-Wikimedia website where the project is described. | ||
|- | |- | ||
| | | | ||
| {{P|P24}} | | {{P|P24}} | ||
| {{Q|Q34}} | | {{Q|Q34}} | ||
| A project can be part of series, e.g. an annual project that a Wikimedia chapter does every year. | | A project can be part of series, e.g. an annual project that a Wikimedia chapter does every year. | ||
|- | |- | ||
| | |||
| {{P|P25}} | | {{P|P25}} | ||
| {{Q|Q33}} | | {{Q|Q33}} | ||
| | | | ||
|- | |- | ||
| .. | | | ||
| | | {{P|54}} | ||
| . | | {{Q|Q22177}} | ||
| The item of the final report of this project. | |||
|- | |||
| | |||
| {{P|35}} | |||
| {{Q|Q21974}} | |||
| '''Only '''items that are {{Q|Q8}} (or subclasses thereof) should be used as values here. | |||
|- | |||
|style="text-align: center; background-color: #FDF0FF;" colspan="4" |Additional properties for '''Wikimedia Sverige''' projects | |||
|- | |||
| REQUIRED | |||
| {{P|P9}} | |||
| ''123456'' | |||
| Internal code used by Wikimedia Sverige to uniquely identify their projects. | |||
|- | |- | ||
| | | REQUIRED | ||
| | | {{P|P10}} | ||
| . | | {{Q|Q7}} | ||
| At Wikimedia Sverige, each project belongs to one of the four thematic areas ({{Q|Q7}}, {{Q|Q4}}, {{Q|Q5}}, {{Q|Q6}}). | |||
|} | |} | ||
== | ==SPARQL== | ||
Query to find all projects and more information about them: | |||
<SPARQL tryit="1"> | |||
PREFIX wd: <https://metabase.wikibase.cloud/entity/> | |||
PREFIX wdt: <https://metabase.wikibase.cloud/prop/direct/> | |||
SELECT ?item ?itemLabel ?start ?end (GROUP_CONCAT(DISTINCT ?mainsubjectLabel; SEPARATOR = ", ") AS ?topics) (GROUP_CONCAT(DISTINCT ?organizerLabel; SEPARATOR = ", ") AS ?organizers) | |||
WHERE | |||
{ | |||
?item wdt:P5 wd:Q2 . | |||
OPTIONAL { ?item wdt:P6 ?start.} | |||
OPTIONAL { ?item wdt:P7 ?end.} | |||
OPTIONAL { ?item wdt:P15 ?mainsubject.} | |||
OPTIONAL { ?item wdt:P14 ?organizer.} | |||
SERVICE wikibase:label { | |||
bd:serviceParam wikibase:language "sv". | |||
?item rdfs:label ?itemLabel. | |||
?mainsubject rdfs:label ?mainsubjectLabel. | |||
?organizer rdfs:label ?organizerLabel | |||
} | |||
} | |||
GROUP BY ?item ?itemLabel ?start ?end | |||
ORDER BY ?itemLabel | |||
</SPARQL> | |||
==See also== | |||
* Generic project [[EntitySchema:E3|entity schema]] and [https://metabase.wikibase.cloud/tools/cradle/?#/shex/E3 Cradle] | |||
* Wikimedia Sverige project [[EntitySchema:E2|entity schema]] and [https://metabase.wikibase.cloud/tools/cradle/?#/shex/E2 Cradle] | |||
__FORCETOC__ | |||
[[Category:Documentation|p]] | [[Category:Documentation|p]] |