Project

General

Profile

Revision d2a6f45e

IDd2a6f45eb915e55d85cd021029dcb384b751cf54
Parent 6257c2ab
Child c44cf1e0

Added by Andreas Müller over 8 years ago

add isonym relationship (#2901) and original spelling (#2874)

View differences:

cdmlib-model/src/main/java/eu/etaxonomy/cdm/model/name/NameRelationshipType.java
26 26
import org.hibernate.envers.Audited;
27 27
import org.hibernate.search.annotations.Indexed;
28 28

  
29
import eu.etaxonomy.cdm.common.CdmUtils;
30 29
import eu.etaxonomy.cdm.model.common.DefinedTermBase;
31 30
import eu.etaxonomy.cdm.model.common.RelationshipTermBase;
32 31
import eu.etaxonomy.cdm.model.common.TermType;
......
78 77
	private static final UUID uuidValidatedByName = UUID.fromString("a176c9ad-b4c2-4c57-addd-90373f8270eb");
79 78
	private static final UUID uuidLaterValidatedByName = UUID.fromString("a25ee4c1-863a-4dab-9499-290bf9b89639");
80 79
	private static final UUID uuidBlockingNameFor = UUID.fromString("1dab357f-2e12-4511-97a4-e5153589e6a6");
80
	private static final UUID uuidLaterIsonym = UUID.fromString("29ab238d-598d-45b9-addd-003cf39ccc3e");
81
	private static final UUID uuidOriginalSpellingFor = UUID.fromString("264d2be4-e378-4168-9760-a9512ffbddc4");
82
	
81 83
	
82 84
	protected static Map<UUID, NameRelationshipType> termMap = null;		
83 85
	
......
236 238
	 * <i>Angelica sylvestris</i> L.<BR>
237 239
	 * This type is symmetric and transitive but usually orthographic variant relationships should be organized
238 240
	 * in a star schema with the correct variant in the middle and other variants pointing to it.
241
	 * @see #ORIGINAL_SPELLING()()
239 242
	 */
240 243
	public static final NameRelationshipType ORTHOGRAPHIC_VARIANT(){
241 244
		  return findTermByUuid(uuidOrthographicVariant);
242 245
	}
246
	
247
	/**
248
	 * Returns the {@link TaxonNameBase taxon name} as it is spelled in the original 
249
	 * publication of the given name. The first (left) name in the relationship takes the role 
250
	 * of the original spelling whereas the second (right) name takes the role of the 
251
	 * current/correct spelling.<BR>
252
	 * Original spelling is a specification of {@link #ORTHOGRAPHIC_VARIANT()}.
253
	 * <BR>
254
	 * @see #ORTHOGRAPHIC_VARIANT()
255
	 * @see #MISSPELLING()
256
	 */
257
	public static final NameRelationshipType ORIGINAL_SPELLING(){
258
		return findTermByUuid(uuidOriginalSpellingFor);
259
	}
260
	
243 261
	/**
244 262
	 * Returns the "misspelling" name relationship type. The first
245 263
	 * {@link TaxonNameBase taxon name} involved in such a relationship is a 
......
254 272
	 * emendations. A misspelling is always an {@link #ORTHOGRAPHIC_VARIANT orthographic variant}, too.
255 273
	 * This type is symmetric and transitive but usually the misspelling relationships should be organized
256 274
	 * in a star schema with the correct variant in the middle and the misspellings pointing to it.
275
	 * @see #ORTHOGRAPHIC_VARIANT()
276
	 * @see #ORIGINAL_SPELLING()
257 277
	 */
258 278
	public static final NameRelationshipType MISSPELLING(){
259 279
		  return findTermByUuid(uuidMisspelling);
......
298 318
	public static final NameRelationshipType LATER_HOMONYM(){
299 319
	  return findTermByUuid(uuidLaterHomonym);
300 320
	}
321

  
322
	
301 323
	/**
302 324
	 * Returns the "treated as later homonym" name relationship type. The first
303 325
	 * {@link TaxonNameBase taxon name} involved in such a relationship is
......
317 339
	public static final NameRelationshipType TREATED_AS_LATER_HOMONYM(){
318 340
	  return findTermByUuid(uuidTreatedAsLaterHomonym);
319 341
	}
342
	
343
	/**
344
	 * Returns the "later isonym" name relationship type where the first
345
	 * {@link TaxonNameBase taxon name} involved has been published after the second taxon name.<BR>
346
	 * In contrast to the {@link #LATER_HOMONYM() later homonym} relationship the two 
347
	 * {@link TaxonNameBase taxon names} involved have the type(s) so they belong to the
348
	 * same {@link HomotypicalGroup homotypical groups}. As later homonyms they have in general
349
	 * different {@link NonViralName#getAuthorshipCache() authorship} and their name parts
350
	 * must be (almost) identical, so one could be mistaken for the other one.<BR>
351
	 * Later isonyms are validly published names but with a wrong citation. So there are rather errors
352
	 * then independent names.<BR>
353
	 * Isonyms are handled in Article 6, Note 2 of the ICNAFP (Melbourne Code): 
354
	 * <code>When the same name, based on the same type, has been published independently at different
355
	 *  times perhaps by different authors, then only the earliest of these ?isonyms? has 
356
	 *  nomenclatural status. The name is always to be cited from its original 
357
	 *  place of valid publication, and later isonyms may be disregarded (but see Art. 14.15).</code>
358
	 * <BR><BR>
359
	 * See discussion at: <a href=http://dev.e-taxonomy.eu/trac/ticket/2901>#2901</a>
360
	 * 
361
	 */
362
	public static final NameRelationshipType LATER_ISONYM(){
363
		return findTermByUuid(uuidLaterIsonym);
364
	}
365
	
320 366
	/**
321 367
	 * Returns the "alternative name" name relationship type. Both {@link TaxonNameBase taxon names}
322 368
	 * involved in such a relationship are family names. The first one is a
cdmlib-model/src/main/resources/terms/NameRelationshipType.csv
12 12
"e6439f95-bcac-4ebb-a8b5-69fa5ce79e6a",,"conserved against","conserved against","","is rejected in favour of","is rejected in favour of","",FALSE,FALSE
13 13
"a176c9ad-b4c2-4c57-addd-90373f8270eb",,"validated by","validated by","","is validating","is validating","",FALSE,FALSE
14 14
"a25ee4c1-863a-4dab-9499-290bf9b89639",,"later validated by","later validated by","","is later validating","is later validating","",FALSE,FALSE
15
"1dab357f-2e12-4511-97a4-e5153589e6a6",,"blocking name for","blocking name for","","is new combination blocked by","is new combination blocked by","",FALSE,FALSE
15
"1dab357f-2e12-4511-97a4-e5153589e6a6",,"blocking name for","blocking name for","","is new combination blocked by","is new combination blocked by","",FALSE,FALSE

Also available in: Unified diff

Add picture from clipboard (Maximum size: 40 MB)