User:PAC2/Query/Gender and labels for properties whose values are instances or subclasses of human in French

From Wikidata
Jump to navigation Jump to search
This page is a documented query. All documented queries can be found in Category:Documented query.

Gender and labels for properties whose values are instances or subclasses of human in French is a query which looks at labels of properties from the perspective of gender.

Scope[edit]

This query looks at all properties whose values can be instances of human (Q5) or any subclass of human (Q5). It shows the French label, the full list of alias in French, the value of female form of label (P2521) in French and the value of male form of label (P3321) in French.

Context[edit]

The goal of this query is to detect labels which are not gender neutral and give the preferences to the male form. It has been used in the request for comments Wikidata:Requests for comment/How to avoid to use male form as a generic form in property labels in French ?. First it has shown that before the request for comments many labels were not gender neutral. After the final decision, the query has been used to change the labels and choose gender neutral forms.

Query[edit]

The query select all entities with property property constraint (P2302), value value-type constraint (Q21510865) with qualifier class (P2308) with value human (Q5) and qualifier relation (P2309) with any value.

In addition, the query displays the full list of aliases concatenated in a cell, the value of female form of label (P2521) in French if it exists and the value of male form of label (P3321) in French if it exists.

#title: List of properties which have instances or subclass of humans as possible value with male and female form in French
SELECT ?property ?propertyLabel ?maleform ?femaleform (GROUP_CONCAT(?alias; SEPARATOR = ", ") AS ?aliases) WHERE {
  ?property p:P2302 ?statement.
  ?statement ps:P2302 wd:Q21510865;
    pq:P2308 wd:Q5;
    pq:P2309 ?relation.
  ?property rdfs:label ?propertyLabel FILTER((LANG(?propertyLabel)) = "fr").
  OPTIONAL {
    ?property skos:altLabel ?alias
    FILTER((LANG(?alias)) = "fr"). 
  }
  OPTIONAL {
    ?property wdt:P2521 ?femaleform
    FILTER((LANG(?femaleform)) = "fr"). 
  }
  OPTIONAL {
    ?property wdt:P3321 ?maleform
    FILTER((LANG(?maleform)) = "fr"). 
  }
}
GROUP BY ?property ?propertyLabel ?maleform ?femaleform
List of properties which have instances or subclass of humans as possible value with male and female form in French

Tests and checks[edit]

See also[edit]