Modelling/Humans: Difference between revisions

No edit summary
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
We only create items about people when these are needed to describe authorship/speaker/event or project responsibility. And only when this information is already publicly available, any affiliation would also need to have been publicly communicated. Since the main affiliation might not always apply, it can be superseded by a qualifier on an item-by-item basis.
{{Modelling navigation}}
==Modeling humans==
The focus on Metabase is not on individuals, but rather on what they produce. For this reason, we limit the information about people to what's needed to link them to their products.


We only create items about {{Q|Q23}} when these are needed to describe authorship/speaker/event or project responsibility. And only when this information is already publicly available, any affiliation would also need to have been publicly communicated. Since the main affiliation might not always apply, it can be superseded by a qualifier on an item-by-item basis.
;Examples
*{{Q|Q64}} – with Wikidata equivalent
*{{Q|Q21985}} – no Wikidata equivalent, several relevant affiliations
=== Names ===
Some Wikimedians participate in the movement's activities and are widely known under their usernames only. '''Do''' respect that and '''do not''' publish their real name if you happen to know it but they have not made a public connection between it and their username
Others maintain separate user accounts for their participation as affiliate staff and volunteers. It can for example happen that one person has two presentations at a conference, one as affiliate staff and another in their volunteer capacity. If the source material makes the distinction clear – e.g. the conference program says one presentation is given by ''Sven Svensson (WMSE)'' and the other by ''Sven123456'', '''do''' create two person items, even if you happen to know whom the volunteer account belongs to.
===Modeling human roles===
The following properties are used to add humans to items:
* '''{{P|P19}}''' – creator of a written work
** '''Example:''' {{Q|Q28}} : {{P|P19}} : {{Q|Q30}}
* '''{{P|P33}}''' – person who holds a presentation or a speech
** '''Example:''' {{Q|Q68}} : {{P|P33}} : {{Q|Q46}}
* '''{{P|P32}}''' – person who leads or coordinates an activity, such as a project or a workshop
** '''Example:''' {{Q|Q1}} : {{P|P32}} : {{Q|Q63}}
** '''Example:''' {{Q|Q23073}} : {{P|P32}} : {{Q|Q22698}}
==Properties used==
'''ONLY''' the following properties are ever allowed on a human. This is to minimize the personal data that is stored.


'''ONLY''' the following properties are ever allowed on a human. This is to minimise the personal data that is stored.
{| class="wikitable"  
{| class="wikitable"  
|-
|-
Line 9: Line 32:
! Example value
! Example value
! Notes
! Notes
|-
|style="text-align: center; background-color: #FDF0FF;" colspan="4" |General project properties
|-
|-
| REQUIRED
| REQUIRED
Line 22: Line 43:
|  
|  
|-
|-
| ONLY if no P1
| ONLY if no {{P|P1}}
| {{P|P34}}
| {{P|P34}}
| {{Q|Q9}}
| {{Q|Q9}}
| Should be the main affiliation of the person. Can be overridden on a case-by-case basis with a qualifier if needed.
| Should be the main affiliation of the person. Can be overridden on a case-by-case basis with a qualifier if needed. Can also have {{P|P6}}, {{P|P7}} qualifiers <u>if</u> later affiliations are relevant for the linked data.
|-
|-
|}
|}
[[Category:Documentation]]
 
==SPARQL==
===All humans===
<SPARQL tryit="1">
PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
 
SELECT ?item ?itemLabelEN ?itemLabelSV ?wikidata_iri
WHERE
{
?item wbt:P5 wb:Q23 .
OPTIONAL {?item wbt:P1 ?wikidataQ}
OPTIONAL {?item rdfs:label ?itemLabelEN filter (lang(?itemLabelEN) = "en")}.
OPTIONAL {?item rdfs:label ?itemLabelSV filter (lang(?itemLabelSV) = "sv")}.
BIND(URI(concat("http://www.wikidata.org/entity/", ?wikidataQ)) AS ?wikidata_iri)
}
ORDER BY ?itemLabelEN
</SPARQL>
===Count of all humans===
<SPARQL tryit="1">
PREFIX wb: <https://metabase.wikibase.cloud/entity/>
PREFIX wbt: <https://metabase.wikibase.cloud/prop/direct/>
 
SELECT (COUNT(*) AS ?count_index_terms)
WHERE
{
?item wbt:P5 wb:Q23 .
}
</SPARQL>
[[Category:Documentation|H]]