Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Revoir les taxa en Wikidata qui n'ont pas le rang d'une espèce #11

Open
itly314 opened this issue Oct 16, 2019 · 1 comment
Open

Revoir les taxa en Wikidata qui n'ont pas le rang d'une espèce #11

itly314 opened this issue Oct 16, 2019 · 1 comment

Comments

@itly314
Copy link
Collaborator

itly314 commented Oct 16, 2019

En complilant la liste des espèces qui n'ont pas d'illustration, on a trouvé 42 taxa qui n'ont pas le rang d'une espèce. Revoir cette liste pour resoudre des éventuelles anomalies.

Par exemple, trois d'entre eux n'ont pas de nom scientifique ...

SELECT ?idCITES ?wdItem ?scientificName ?IUCNtaxonID ?IUCNconservationstatusLabel_en 
(GROUP_CONCAT(?taxonCommonName ; separator=" ; ") AS ?taxonCommonNames)
WHERE
{
  ?wdItem wdt:P2040 ?idCITES.
  OPTIONAL{ ?wdItem wdt:P225 ?scientificName . }
  FILTER NOT EXISTS{ ?wdItem wdt:P18 ?image. } # without images
  FILTER NOT EXISTS{ ?wdItem wdt:P105 wd:Q7432 . }


  OPTIONAL { ?wdItem wdt:P627 ?IUCNtaxonID . }
  OPTIONAL { ?wdItem wdt:P141 ?IUCNconservationstatus . }
  OPTIONAL {
    ?wdItem wdt:P1843 ?taxonCommonName .
    FILTER( LANG(?taxonCommonName) = "en" || LANG(?taxonCommonName) = "fr" ) .
  }

  SERVICE wikibase:label {
    bd:serviceParam wikibase:language "en".
    ?IUCNconservationstatus rdfs:label ?IUCNconservationstatusLabel_en
  }

}
GROUP BY ?idCITES ?wdItem ?scientificName ?IUCNtaxonID ?IUCNconservationstatusLabel_en
ORDER BY ASC (?idCITES)
@cecilaki
Copy link
Contributor

Excellent, merci pour ce travail @itly314 !
C'est typiquement un cas à soumettre à nos partenaires experts du Museum d'Histoire Naturelle.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants