Skip to content

Main content

Type Specimen Reference Depth Tool

Count supplied public specimen-reference components without locating or resolving a specimen.

Loading tool…

Description

Return a type-specimen reference's path depth under a root policy.

Taxonomic names, authorship strings, nomenclatural types and source-defined taxon concepts are related but distinct records. A literal token parser or source-label comparison can preserve a stated convention without resolving accepted taxonomy or establishing compliance with the applicable nomenclatural code.

Return a type-specimen reference's path depth under a root policy.

When to use this tool

Use Type Specimen Reference Depth when checking the stated taxonomic source, name-token, date or concept-support convention.

How to use the tool and how it works

  1. Enter referenceParts, includeRoot. Use the units and conventions below.
  2. Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
  3. Read depth. Use the output convention below.

Return a type-specimen reference's path depth under a root policy. depth = max(0,referenceParts.length-(includeRoot ? 0 : 1)).1

Input fieldMeaning and unitsAccepted input
referencePartsReference PartsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
includeRootInclude RootRequired. Boolean.
Output fieldInterpretationReturned shape
depthDepthRequired. Safe integer.
json
{
  "input": {
    "referenceParts": [
      "repo",
      "collection",
      "item"
    ],
    "includeRoot": false
  },
  "output": {
    "depth": 2
  }
}

Limitations and assumptions

  • Components and root meaning are supplied; no collection hierarchy, specimen identity or type designation is resolved.
  • Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.

Alternative or Complementary methods

Consult the original taxonomic treatment and applicable nomenclatural code, and use source-aware taxonomic resolution for accepted names, priority or type status.

References

  1. Calculation and input contract: biosystematics/type-specimen-reference-depth — tool.io

Similar or alternative tools