Wikidata:Events/Belgium/CEMPER/Person without Wikipedia page

From Wikidata
Jump to navigation Jump to search

This is a list of useful queries related to persons.

No Wikipedia page

[edit]
  • Person should have a occupation (P106)
  • Person should already have a Wikipedia page in another language

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, sex or gender (P21)  View with Reasonator View with SQID, country of citizenship (P27)  View with Reasonator View with SQID, occupation (P106)  View with Reasonator View with SQID, field of work (P101)  View with Reasonator View with SQID, date of birth (P569)  View with Reasonator View with SQID, date of death (P570)  View with Reasonator View with SQID, family name (P734)  View with Reasonator View with SQID, given name (P735)  View with Reasonator View with SQID
    SELECT ?item ?itemLabel ?firstnameLabel ?lastnameLabel ?itemDescription ?nationalityLabel ?occupationLabel ?birthdate ?deathdate ?domainLabel ?linkcount WHERE {
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,fr,de,en,es,it". }
      ?item wdt:P31 wd:Q5, ?instance;
        wdt:P21 wd:Q6581072, ?gender;
        wdt:P27 wd:Q31, ?nationality;
        wikibase:sitelinks ?linkcount;
        wdt:P106 ?occupation.
      MINUS {
        ?article schema:about ?item;
          schema:inLanguage "nl";
          schema:isPartOf <https://nl.wikipedia.org/>.
      }
      OPTIONAL { ?item wdt:P101 ?domain. }
      OPTIONAL { ?item wdt:P569 ?birthdate. }
      OPTIONAL { ?item wdt:P570 ?deathdate. }
      OPTIONAL { ?item wdt:P734 ?lastname. }
      OPTIONAL { ?item wdt:P735 ?firstname. }
    }
    ORDER BY (?itemLabel)
    

Person having an occupation having a Wikipedia page

[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, sex or gender (P21)  View with Reasonator View with SQID, country of citizenship (P27)  View with Reasonator View with SQID, occupation (P106)  View with Reasonator View with SQID, field of work (P101)  View with Reasonator View with SQID, date of birth (P569)  View with Reasonator View with SQID, date of death (P570)  View with Reasonator View with SQID, family name (P734)  View with Reasonator View with SQID, given name (P735)  View with Reasonator View with SQID
    SELECT ?item ?itemLabel ?firstnameLabel ?lastnameLabel ?itemDescription ?nationalityLabel ?occupationLabel ?birthdate ?deathdate ?domainLabel ?linkcount WHERE {
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,fr,de,en,es,it". }
      ?item wdt:P31 wd:Q5, ?instance;
        wdt:P21 wd:Q6581072, ?gender;
        wdt:P27 wd:Q31, ?nationality;
        wdt:P106 ?occupation;
        wikibase:sitelinks ?linkcount.
      {
        ?article schema:about ?item;
          schema:inLanguage "nl";
          schema:isPartOf <https://nl.wikipedia.org/>.
      }
      FILTER(?occupation IN (wd:Q33999, wd:Q4070300, wd:Q805221, wd:Q2490358, wd:Q5716684, wd:Q10800557, wd:Q1954956, wd:Q2865819, wd:Q2259451, wd:Q3387717, wd:Q713200, wd:Q15214752,
    wd:Q3391743, wd:Q158852, wd:Q487596, wd:Q7042855, wd:Q1414443, wd:Q3282637, wd:Q2526255, wd:Q12902372, wd:Q3024424, wd:Q245068, wd:Q1323191, wd:Q8178443, wd:Q1823479, wd:Q2500638, wd:Q4610556, wd:Q639669, wd:Q183945, wd:Q2865819, wd:Q486748, wd:Q2217284, wd:Q2629392, wd:Q26209195, wd:Q28389, wd:Q2707485, wd:Q488205, wd:Q2405480, wd:Q11481802, wd:Q10798782, wd:Q1075651, wd:Q3766177, wd:Q177220))
      OPTIONAL { ?item wdt:P101 ?domain. }
      OPTIONAL { ?item wdt:P569 ?birthdate. }
      OPTIONAL { ?item wdt:P570 ?deathdate. }
      OPTIONAL { ?item wdt:P734 ?lastname. }
      OPTIONAL { ?item wdt:P735 ?firstname. }
    }
    ORDER BY (?itemLabel)
    

Count of persons by Occupation

[edit]

We try to identify women in Belgium that do something in performing arts (Q184485).

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, sex or gender (P21)  View with Reasonator View with SQID, country of citizenship (P27)  View with Reasonator View with SQID, occupation (P106)  View with Reasonator View with SQID
    SELECT ?occupation ?occupationLabel (COUNT(?item) AS ?count) WHERE {
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,fr,de,en". }
      ?item wdt:P31 wd:Q5, ?instance;
        wdt:P21 wd:Q6581072, ?gender;
        wdt:P27 wd:Q31, ?nationality;
        wdt:P106 ?occupation.
      FILTER(?occupation IN(wd:Q33999, wd:Q4070300, wd:Q805221, wd:Q15214752, wd:Q2490358, wd:Q5716684, wd:Q10800557, wd:Q1954956, wd:Q2865819, wd:Q2259451, wd:Q3387717, wd:Q713200,
    wd:Q3391743, wd:Q158852, wd:Q487596, wd:Q7042855, wd:Q1414443, wd:Q3282637, wd:Q2526255, wd:Q12902372, wd:Q3024424, wd:Q245068, wd:Q1323191, wd:Q8178443, wd:Q1823479, wd:Q2500638, wd:Q4610556, wd:Q639669, wd:Q183945, wd:Q2865819, wd:Q486748, wd:Q2217284, wd:Q2629392, wd:Q26209195, wd:Q28389, wd:Q2707485, wd:Q488205, wd:Q2405480, wd:Q11481802, wd:Q10798782, wd:Q1075651, wd:Q3766177, wd:Q177220))
    }
    GROUP BY ?occupation ?occupationLabel
    ORDER BY (?occupationLabel)
    

List of Occupations for Performing arts

[edit]

The following query uses these:

  • Properties: instance of (P31)  View with Reasonator View with SQID, sex or gender (P21)  View with Reasonator View with SQID, country of citizenship (P27)  View with Reasonator View with SQID, field of work (P101)  View with Reasonator View with SQID, occupation (P106)  View with Reasonator View with SQID
    SELECT ?occupation ?occupationLabel (COUNT(?item) AS ?count) WHERE {
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,fr,de,en". }
      ?item wdt:P31 wd:Q5, ?instance;
        wdt:P21 wd:Q6581072, ?gender;
        wdt:P27 wd:Q31, ?nationality;
        wdt:P101 wd:Q184485, ?domain;
        wdt:P106 ?occupation.
    }
    GROUP BY ?occupation ?occupationLabel
    ORDER BY (?occupationLabel)
    

Searching persons with a missing Domain

[edit]

The following query uses these:

Run in WDFIST to assign matching pictures in Wikidata

[edit]

The following query uses these:

Get the label of a list of Qnumbers

[edit]

The following query uses these:

  • Items: actor (Q33999)  View with Reasonator View with SQID
    SELECT ?item ?itemLabel WHERE {
      SERVICE wikibase:label { bd:serviceParam wikibase:language "[AUTO_LANGUAGE],nl,fr,de,en,es,it". }
      VALUES ?item {
        wd:Q33999
        # list with whitespace separator
      }
    }
    

Result: acteur, etc.

Ideas

[edit]
Schrijven voor Wikipedia project Vrouw en Dans (2020)

See also

[edit]