Revision 84046c2e
ref #7336, ref #7334 add pro parte synonym, partial synonym and partial misapplied name as taxon relationship types
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/Taxon.java | ||
---|---|---|
690 | 690 |
* The taxon relationship will also be added to the set of taxon |
691 | 691 |
* relationships to the other (pro parte misapplied name) taxon involved in the created relationship. |
692 | 692 |
* |
693 |
* @param proPartemisappliedNameTaxon the taxon which plays the source role in the new taxon relationship
|
|
693 |
* @param proParteMisappliedNameTaxon the taxon which plays the source role in the new taxon relationship
|
|
694 | 694 |
* @param citation the reference source for the new taxon relationship |
695 | 695 |
* @param microcitation the string with the details describing the exact localisation within the reference |
696 | 696 |
* @return |
... | ... | |
702 | 702 |
* @see #getRelationsFromThisTaxon() |
703 | 703 |
* @see #getRelationsToThisTaxon() |
704 | 704 |
*/ |
705 |
public TaxonRelationship addProParteMisappliedName(Taxon proPartemisappliedNameTaxon, Reference citation, String microcitation) { |
|
706 |
return proPartemisappliedNameTaxon.addTaxonRelation(this, TaxonRelationshipType.PRO_PARTE_MISAPPLIED_NAME_FOR(), citation, microcitation); |
|
705 |
public TaxonRelationship addProParteMisappliedName(Taxon proParteMisappliedNameTaxon, Reference citation, String microcitation) { |
|
706 |
return proParteMisappliedNameTaxon.addTaxonRelation(this, TaxonRelationshipType.PRO_PARTE_MISAPPLIED_NAME_FOR(), citation, microcitation); |
|
707 |
} |
|
708 |
|
|
709 |
/** |
|
710 |
* Creates a new {@link TaxonRelationship taxon relationship} (with {@link TaxonRelationshipType taxon relationship type} |
|
711 |
* "partial misapplied name for") instance where <i>this</i> taxon plays the target role |
|
712 |
* and adds it to the set of {@link #getRelationsToThisTaxon() taxon relationships to <i>this</i> taxon}. |
|
713 |
* The taxon relationship will also be added to the set of taxon |
|
714 |
* relationships to the other (pro parte misapplied name) taxon involved in the created relationship. |
|
715 |
* |
|
716 |
* @param partialMisappliedNameTaxon the taxon which plays the source role in the new taxon relationship |
|
717 |
* @param citation the reference source for the new taxon relationship |
|
718 |
* @param microcitation the string with the details describing the exact localization within the reference |
|
719 |
* @return |
|
720 |
* @see #addMisappliedName(Taxon, Reference, String) |
|
721 |
* @see #addProParteMisappliedName(Taxon, Reference, String) |
|
722 |
* @see #getMisappliedNames() |
|
723 |
* @see #addTaxonRelation(Taxon, TaxonRelationshipType, Reference, String) |
|
724 |
* @see #addTaxonRelation(TaxonRelationship) |
|
725 |
* @see #getTaxonRelations() |
|
726 |
* @see #getRelationsFromThisTaxon() |
|
727 |
* @see #getRelationsToThisTaxon() |
|
728 |
*/ |
|
729 |
public TaxonRelationship addPartialMisappliedName(Taxon partialMisappliedNameTaxon, Reference citation, String microcitation) { |
|
730 |
return partialMisappliedNameTaxon.addTaxonRelation(this, TaxonRelationshipType.PARTIAL_MISAPPLIED_NAME_FOR(), citation, microcitation); |
|
731 |
} |
|
732 |
|
|
733 |
/** |
|
734 |
* Creates a new {@link TaxonRelationship taxon relationship} (with {@link TaxonRelationshipType taxon relationship type} |
|
735 |
* "pro parte synonym for") instance where <i>this</i> taxon plays the target role |
|
736 |
* and adds it to the set of {@link #getRelationsToThisTaxon() taxon relationships to <i>this</i> taxon}. |
|
737 |
* The taxon relationship will also be added to the set of taxon |
|
738 |
* relationships to the other (pro parte synonym) taxon involved in the created relationship. |
|
739 |
* |
|
740 |
* @param proParteTaxon the taxon which plays the source role in the new taxon relationship |
|
741 |
* @param citation the reference source for the new taxon relationship |
|
742 |
* @param microcitation the string with the details describing the exact localisation within the reference |
|
743 |
* @return |
|
744 |
* @see #getMisappliedNames() |
|
745 |
* @see #addProParteMisappliedName(Taxon, Reference, String) |
|
746 |
* @see #addTaxonRelation(Taxon, TaxonRelationshipType, Reference, String) |
|
747 |
* @see #addTaxonRelation(TaxonRelationship) |
|
748 |
* @see #getTaxonRelations() |
|
749 |
* @see #getRelationsFromThisTaxon() |
|
750 |
* @see #getRelationsToThisTaxon() |
|
751 |
*/ |
|
752 |
public TaxonRelationship addProparteSynonym(Taxon proParteTaxon, Reference citation, String microcitation) { |
|
753 |
return proParteTaxon.addTaxonRelation(this, TaxonRelationshipType.PRO_PARTE_SYNONYM_FOR(), citation, microcitation); |
|
754 |
} |
|
755 |
|
|
756 |
/** |
|
757 |
* Creates a new {@link TaxonRelationship taxon relationship} instance with |
|
758 |
* {@link TaxonRelationshipType taxon relationship type} {@link TaxonRelationshipType#PARTIAL_SYNONYM_FOR() |
|
759 |
* partial synonym for} where <i>this</i> taxon plays the target role |
|
760 |
* and adds it to the set of {@link #getRelationsToThisTaxon() taxon relationships to <i>this</i> taxon}. |
|
761 |
* The taxon relationship will also be added to the set of taxon |
|
762 |
* relationships to the other (partial synonym) taxon involved in the created relationship. |
|
763 |
* |
|
764 |
* @param partialTaxon the taxon which plays the source role in the new taxon relationship |
|
765 |
* @param citation the reference source for the new taxon relationship |
|
766 |
* @param microcitation the string with the details describing the exact localisation within the reference |
|
767 |
* @return |
|
768 |
* @see #addProparteSynonym(Taxon, Reference, String) |
|
769 |
* @see #addTaxonRelation(Taxon, TaxonRelationshipType, Reference, String) |
|
770 |
* @see #addTaxonRelation(TaxonRelationship) |
|
771 |
* @see #getTaxonRelations() |
|
772 |
* @see #getRelationsFromThisTaxon() |
|
773 |
* @see #getRelationsToThisTaxon() |
|
774 |
*/ |
|
775 |
public TaxonRelationship addPartialSynonym(Taxon partialTaxon, Reference citation, String microcitation) { |
|
776 |
return partialTaxon.addTaxonRelation(this, TaxonRelationshipType.PARTIAL_SYNONYM_FOR(), citation, microcitation); |
|
707 | 777 |
} |
708 | 778 |
|
709 | 779 |
/** |
cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/taxon/TaxonRelationshipType.java | ||
---|---|---|
67 | 67 |
|
68 | 68 |
private static final UUID uuidMisappliedNameFor = UUID.fromString("1ed87175-59dd-437e-959e-0d71583d8417"); |
69 | 69 |
private static final UUID uuidProParteMisappliedNameFor = UUID.fromString("b59b4bd2-11ff-45d1-bae2-146efdeee206"); |
70 |
private static final UUID uuidPartialMisappliedNameFor = UUID.fromString("859fb615-b0e8-440b-866e-8a19f493cd36"); |
|
71 |
private static final UUID uuidProParteSynonymFor = UUID.fromString("8a896603-0fa3-44c6-9cd7-df2d8792e577"); |
|
72 |
private static final UUID uuidPartialSynonymFor = UUID.fromString("9d7a5e56-973c-474c-b6c3-a1cb00833a3c"); |
|
70 | 73 |
private static final UUID uuidInvalidDesignationFor = UUID.fromString("605b1d01-f2b1-4544-b2e0-6f08def3d6ed"); |
71 | 74 |
|
72 | 75 |
private static final UUID uuidContradiction = UUID.fromString("a8f03491-2ad6-4fae-a04c-2a4c117a2e9b"); |
... | ... | |
256 | 259 |
* This type is neither symmetric nor transitive. |
257 | 260 |
* |
258 | 261 |
* @see #MISAPPLIED_NAME_FOR() |
262 |
* @see #PRO_PARTE_SYNONYM_FOR() |
|
259 | 263 |
*/ |
260 | 264 |
public static final TaxonRelationshipType PRO_PARTE_MISAPPLIED_NAME_FOR(){ |
261 | 265 |
return getTermByUuid(uuidProParteMisappliedNameFor); |
262 | 266 |
} |
267 |
/** |
|
268 |
* Returns the taxon relationship type "is partial misapplied name for". This |
|
269 |
* indicates that the {@link eu.etaxonomy.cdm.model.name.TaxonName taxon name} of the |
|
270 |
* {@link TaxonRelationship#getFromTaxon() source taxon} |
|
271 |
* in such a {@link TaxonRelationship taxon relationship} has been erroneously used by |
|
272 |
* the {@link TaxonBase#getSec() concept reference} to (partly) denominate the same real taxon |
|
273 |
* as the one meant by the target {@link Taxon taxon}. In contrary to a |
|
274 |
* {@link #PRO_PARTE_MISAPPLIED_NAME_FOR() pro parte misapplied name} no other real taxon |
|
275 |
* is (partly) demoninated by the given name in the concept reference. Therefore it is called |
|
276 |
* partial.<BR> |
|
277 |
* This type is neither symmetric nor transitive. |
|
278 |
* |
|
279 |
* @see #MISAPPLIED_NAME_FOR() |
|
280 |
* @see #PRO_PARTE_MISAPPLIED_NAME_FOR() |
|
281 |
* @see #PARTIAL_SYNONYM_FOR() |
|
282 |
* @see #INCLUDES() |
|
283 |
*/ |
|
284 |
public static final TaxonRelationshipType PARTIAL_MISAPPLIED_NAME_FOR(){ |
|
285 |
return getTermByUuid(uuidPartialMisappliedNameFor); |
|
286 |
} |
|
287 |
/** |
|
288 |
* Returns the taxon relationship type "is pro parte synonym for". This |
|
289 |
* indicates that the {@link eu.etaxonomy.cdm.model.name.TaxonName taxon name} of the |
|
290 |
* {@link TaxonRelationship#getFromTaxon() source taxon} |
|
291 |
* in such a {@link TaxonRelationship taxon relationship} has been used as a |
|
292 |
* pro parte synonym.<BR> |
|
293 |
* This type is neither symmetric nor transitive. |
|
294 |
* |
|
295 |
* @see #PRO_PARTE_MISAPPLIED_NAME_FOR() |
|
296 |
*/ |
|
297 |
public static final TaxonRelationshipType PRO_PARTE_SYNONYM_FOR(){ |
|
298 |
return getTermByUuid(uuidProParteSynonymFor); |
|
299 |
} |
|
300 |
/** |
|
301 |
* Returns the taxon relationship type "is partial synonym for". This |
|
302 |
* indicates that the {@link eu.etaxonomy.cdm.model.name.TaxonName taxon name} of the |
|
303 |
* {@link TaxonRelationship#getFromTaxon() source taxon} |
|
304 |
* in such a {@link TaxonRelationship taxon relationship} has been used as a |
|
305 |
* partial synonym.<BR> |
|
306 |
* This type is neither symmetric nor transitive. |
|
307 |
* |
|
308 |
* @see #PRO_PARTE_SYNONYM_FOR() |
|
309 |
* @see #PARTIAL_MISAPPLIED_NAME_FOR() |
|
310 |
*/ |
|
311 |
public static final TaxonRelationshipType PARTIAL_SYNONYM_FOR(){ |
|
312 |
return getTermByUuid(uuidPartialSynonymFor); |
|
313 |
} |
|
263 | 314 |
|
264 | 315 |
/** |
265 | 316 |
* Returns the taxon relationship type "is invalid designation for". This |
cdmlib-model/src/main/resources/terms/TaxonRelationshipType.csv | ||
---|---|---|
2 | 2 |
"d13fecdf-eb44-4dd7-9244-26679c05df1c",,"Taxonomically Included in","Taxonomically Included in","⊂","Taxonomically Includes","Taxonomically Includes","⊃",FALSE,TRUE |
3 | 3 |
"1ed87175-59dd-437e-959e-0d71583d8417",,"Misapplied Name for","Misapplied Name for","–","Has Misapplied Name","Has Misapplied Name",,FALSE,FALSE |
4 | 4 |
"b59b4bd2-11ff-45d1-bae2-146efdeee206",,"Pro parte Misapplied Name for","Pro parte Misapplied Name for","p.p.MAN","Has pro parte misapplied name","Has pro parte misapplied name",,FALSE,FALSE |
5 |
"859fb615-b0e8-440b-866e-8a19f493cd36",,"Partial Misapplied Name for","Partial Misapplied Name for","partial MAN","Has partial misapplied name","Has partial misapplied name",,FALSE,FALSE |
|
5 | 6 |
"605b1d01-f2b1-4544-b2e0-6f08def3d6ed",,"Invalid Designation for","Invalid Designation for","–","Has Invalid Designation","Has Invalid Designation",,FALSE,FALSE |
6 |
"8a896603-0fa3-44c6-9cd7-df2d8792e577",,"Pro parte synonym for","Pro parte synonym for","p.p.","Has pro parte synonym","Has pro parte synonym","partim",FALSE,TRUE |
|
7 |
"8a896603-0fa3-44c6-9cd7-df2d8792e577",,"Pro parte synonym for","Pro parte synonym for","p.p.","Has pro parte synonym","Has pro parte synonym","⊃p.p.",FALSE,FALSE |
|
8 |
"9d7a5e56-973c-474c-b6c3-a1cb00833a3c",,"Partial synonym for","Partial synonym for","partim","Has partial synonym","Has partial synonym","⊃partim",FALSE,FALSE |
|
7 | 9 |
"a8f03491-2ad6-4fae-a04c-2a4c117a2e9b",,"Contradiction","Contradiction","∅","Contradiction","Contradiction","∅",TRUE,FALSE |
8 | 10 |
"60974c98-64ab-4574-bb5c-c110f6db634d",,"Congruent to","Congruent to","≜","Congruent to","Congruent to","≜",TRUE,FALSE |
9 | 11 |
"0501c385-cab1-4fbe-b945-fc747419bb13",,"Includes","Includes","⊃","Included in","Included in","⊂",FALSE,TRUE |
Also available in: Unified diff