Modelling/Projects: Difference between revisions

no edit summary
No edit summary
No edit summary
 
(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Modelling navigation}}
{{Modelling navigation}}
==Modeling a project==
This page describes how a '''{{Q|Q2}}''' can be modelled on this Wikibase instance.
This page describes how a '''{{Q|Q2}}''' can be modelled on this Wikibase instance.


Line 8: Line 9:
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}}.
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}}.


;See also
===Projects and their parts===
* 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]
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"  
|-
|-
Line 35: Line 45:
| project manager; person responsible for the project
| project manager; person responsible for the project
|-
|-
| REQUIRED if no P1
| REQUIRED if no {{P|P1}}
| {{P|P6}}
| {{P|P6}}
| ''2020-02-01''
| ''2020-02-01''
Line 45: Line 55:
| 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 P1
| 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.
|-
|-
|  
|  
Line 64: Line 79:
|  
|  
| URL of a non-Wikimedia website where the project is described.
| URL of a non-Wikimedia website where the project is described.
|-
| 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.
|-
|-
|  
|  
Line 80: Line 90:
|  
|  
|-
|-
|style="text-align: center; background-color: #FDF0FF;" colspan="4" |Additional properties for Wikimedia Sverige projects
|
| {{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
| REQUIRED
Line 93: Line 113:
|}
|}


==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]]