Project

General

Profile

« Previous | Next » 

Revision fbdb38bb

Added by Andreas Müller about 4 years ago

add inverse labels to pseudoaccepted relationship

View differences:

cdm-pesi/src/main/java/eu/etaxonomy/cdm/io/pesi/erms/ErmsTransformer.java
786 786
                TaxonRelationshipType.uuidSynonymOfTaxonRelationship,
787 787
                "is taxon synonym of",
788 788
                "is synonym of relation used by synonym that are of class Taxon as they can not be handled differently",
789
                null, null);
789
                null,
790
                "has taxon synonym",
791
                "is accepted taxon of synonym relation used by synonym that are of class Taxon as they can not be handled differently",
792
                null,
793
                null);
790 794
        return result;
791 795
    }
792 796

  
793 797
    private TaxonRelationshipType getHomoSynTaxonRelType(DbImportStateBase<?, ?> state) {
794
        String labelHomoRel = "Heterotypic synonym taxon relationship";
798
        String labelHomoRel = "is homotypic taxon synonym relationship";
799
        String inverseLabelHomoRel = "has homotypic taxon synonym relationship";
795 800
        @SuppressWarnings("unchecked")
796 801
        TaxonRelationshipType result = state.getCurrentIO().getTaxonRelationshipType(
797
                state, TaxonRelationshipType.uuidHomotypicSynonymTaxonRelationship, labelHomoRel, labelHomoRel, null, null);
802
                state, TaxonRelationshipType.uuidHomotypicSynonymTaxonRelationship,
803
                labelHomoRel, labelHomoRel, null,
804
                inverseLabelHomoRel, inverseLabelHomoRel, null,
805
                null);
798 806
        return result;
799 807
    }
800 808

  
801 809
    private TaxonRelationshipType getHeteroSynTaxRelType(DbImportStateBase<?, ?> state) {
802
        String labelHeteroRel = "Heterotypic synonym taxon relationship";
810
        String labelHeteroRel = "is heterotypic taxon synonym relationship";
811
        String inverseLabelHeteroRel = "has heterotypic taxon synonym relationship";
803 812
        @SuppressWarnings("unchecked")
804 813
        TaxonRelationshipType result = state.getCurrentIO().getTaxonRelationshipType(
805
                state, TaxonRelationshipType.uuidHeterotypicSynonymTaxonRelationship, labelHeteroRel, labelHeteroRel, null, null);
814
                state, TaxonRelationshipType.uuidHeterotypicSynonymTaxonRelationship,
815
                labelHeteroRel, labelHeteroRel, null,
816
                inverseLabelHeteroRel, inverseLabelHeteroRel, null,
817
                null);
806 818
        return result;
807 819
    }
808 820

  

Also available in: Unified diff