Project

General

Profile

Actions

task #7407

open

[E+M] Remove synonym autonyms

Added by Andreas Müller almost 6 years ago. Updated almost 6 years ago.

Status:
In Progress
Priority:
Priority11
Category:
data
Start date:
Due date:
% Done:

0%

Estimated time:
2:00 h
Severity:
normal
Tags:

Description

Mail ERS 20.4.2018:

Autonyme sollten eigentlich immer akzeptiert sein. Als Synonyme machen sie wenig Sinn, besonders, wenn der zugehörige Artname ebenfalls schon in der Synonymliste auftaucht. Könnte man die nicht zentral herausfiltern? Aber nicht ohne Kontrolle, da wäre eine entsprechende Liste für mich hilfreich.

Actions #1

Updated by Andreas Müller almost 6 years ago

  • Target version changed from Euro+Med Portal Release to Euro+Med post migration
Actions #2

Updated by Andreas Müller almost 6 years ago

A strict SQL:

SELECT n.FullNameCache, pt.StatusFk, pt.PTRefFk, pt.*, n.*
FROM PTaxon pt INNER JOIN Name n ON pt.PTNameFk = n.NameId
INNER JOIN RelPTaxon relAcc ON relAcc.PTNameFk1 = pt.PTNameFk AND relAcc.PTRefFk1 = pt.PTRefFk
INNER JOIN PTaxon acc ON relAcc.PTNameFk2 = acc.PTNameFk AND relAcc.PTRefFk2 = acc.PTRefFk
INNER JOIN RelPTaxon relSyn ON relSyn.PTNameFk2 = acc.PTNameFk AND relSyn.PTRefFk2 = acc.PTRefFk
INNER JOIN PTaxon spec ON relSyn.PTNameFk1 = spec.PTNameFk AND relSyn.PTRefFk1 = spec.PTRefFk
INNER JOIN Name specName ON specName.NameId = spec.PTNameFk

WHERE pt.StatusFk NOT IN (1,6)
AND n.SpeciesEpi = n.InfraSpeciesEpi
AND specName.Genus = n.Genus AND specName.SpeciesEpi = n.SpeciesEpi AND specName.InfraSpeciesEpi IS NULL
AND pt.PTRefFk >= 7000000
ORDER BY pt.PTRefFk
Actions #3

Updated by Andreas Müller almost 6 years ago

AM: Im Anhang findest du die entsprechende Liste. Sie ist recht strikt, sollte also nur solche Fälle beinhalten, in denen die zugehörige Spezies auch in der Synonymie auftaucht.
Den Fall, dass letzteres nicht zutrifft könnte ich auch recherchieren. Vermutlich sind es nochmal doppelt so viel.

Actions #4

Updated by Andreas Müller almost 6 years ago

  • Status changed from New to In Progress
Actions

Also available in: Atom PDF