User:PAC2/Départements

From Wikidata
Jump to navigation Jump to search

Liste des personnes nées dans le Vaucluse[edit]

La requête suivante retourne des résultats situés hors du département, notamment les personnes nées à Aix en Provence.

The following query uses these:

  • Properties: located in the administrative territorial entity (P131)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, date of birth (P569)  View with Reasonator View with SQID, INSEE department code (P2586)  View with Reasonator View with SQID
    SELECT ?item ?itemLabel ?sitelink ?birthplace ?birthplaceLabel ?year WHERE {
      ?departement ((^wdt:P131*)/^wdt:P19) ?item.
      ?item wdt:P19 ?birthplace;
        wdt:P569 ?birthdate;
        rdfs:label ?itemLabel.
      FILTER((LANG(?itemLabel)) = "fr")
      BIND(YEAR(?birthdate) AS ?year)
      FILTER(?year >= 1975 )
      ?departement wdt:P2586 "84";
        rdfs:label ?departementLabel.
      FILTER((LANG(?departementLabel)) = "fr")
      ?birthplace rdfs:label ?birthplaceLabel.
      FILTER((LANG(?birthplaceLabel)) = "fr")
      ?sitelink schema:about ?item;
        schema:isPartOf <https://fr.wikipedia.org/>.
    }
    ORDER BY (?year)
    

Même problème ici :

The following query uses these:

  • Properties: located in the administrative territorial entity (P131)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, date of birth (P569)  View with Reasonator View with SQID, INSEE department code (P2586)  View with Reasonator View with SQID
    SELECT ?birthplace ?birthplaceLabel ?departement ?departementLabel (COUNT(*) as ?count) WHERE {
      ?departement ((^wdt:P131*)/^wdt:P19) ?item.
      ?item wdt:P19 ?birthplace;
        wdt:P569 ?birthdate;
        rdfs:label ?itemLabel.
      FILTER((LANG(?itemLabel)) = "fr")
      ?departement wdt:P2586 "84";
        rdfs:label ?departementLabel.
      FILTER((LANG(?departementLabel)) = "fr")
      ?birthplace rdfs:label ?birthplaceLabel.
      FILTER((LANG(?birthplaceLabel)) = "fr")
      ?sitelink schema:about ?item;
        schema:isPartOf <https://fr.wikipedia.org/>.
    }
    GROUP BY ?birthplace ?birthplaceLabel ?departement ?departementLabel
    ORDER BY DESC(?count)
    

Requête en utilisant P150[edit]

The following query uses these:

  • Properties: INSEE department code (P2586)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, date of birth (P569)  View with Reasonator View with SQID, contains the administrative territorial entity (P150)  View with Reasonator View with SQID
    SELECT ?birthplace ?birthplaceLabel ?departement ?departementLabel (COUNT(*) as ?count) WHERE {
      ?departement wdt:P2586 "84";
        rdfs:label ?departementLabel.
      FILTER((LANG(?departementLabel)) = "fr")
      ?item wdt:P19 ?birthplace;
        wdt:P569 ?birthdate;
        rdfs:label ?itemLabel.
      FILTER((LANG(?itemLabel)) = "fr")
      ?departement wdt:P150* ?birthplace.
      ?birthplace rdfs:label ?birthplaceLabel.
      FILTER((LANG(?birthplaceLabel)) = "fr")
      ?sitelink schema:about ?item;
        schema:isPartOf <https://fr.wikipedia.org/>.
    }
    GROUP BY ?birthplace ?birthplaceLabel ?departement ?departementLabel
    ORDER BY DESC(?count)
    

Liste des personnes nées dans le Vaucluse depuis 1975

The following query uses these:

  • Properties: INSEE department code (P2586)  View with Reasonator View with SQID, place of birth (P19)  View with Reasonator View with SQID, date of birth (P569)  View with Reasonator View with SQID, contains the administrative territorial entity (P150)  View with Reasonator View with SQID
    SELECT ?item ?itemLabel ?sitelink ?birthplace ?birthplaceLabel ?departement ?departementLabel ?year WHERE {
      ?departement wdt:P2586 "84";
        rdfs:label ?departementLabel.
      FILTER((LANG(?departementLabel)) = "fr")
      ?item wdt:P19 ?birthplace;
        wdt:P569 ?birthdate;
        rdfs:label ?itemLabel.
      FILTER((LANG(?itemLabel)) = "fr")
      BIND(YEAR(?birthdate) AS ?year)
      FILTER(?year >= 1975 )
      ?departement wdt:P150* ?birthplace.
      ?birthplace rdfs:label ?birthplaceLabel.
      FILTER((LANG(?birthplaceLabel)) = "fr")
      ?sitelink schema:about ?item;
        schema:isPartOf <https://fr.wikipedia.org/>.
    }
    ORDER BY ?year