Skip to content

Main content

Thesaurus Preferred Alt Label Conflict Tool

Audit SKOS preferred/alternative label disjointness using lexical text plus case-insensitive language tags, and distinct preferred labels per language. Identical repeated preferred literals are deduplicated; no language registry lookup or concept equivalence is inferred.

Loading tool…

Description

Validate aligned label/language pairs and simple language-tag grammar.

A controlled vocabulary separates concept identifiers, labels, languages, and hierarchy edges. Distinct literal labels and repeated identical records need different consistency checks.

Validate aligned label/language pairs and simple language-tag grammar.

When to use this tool

Use Thesaurus Preferred Alt Label Conflict when you need a scoped vocabulary-label or ancestry diagnostic.

How to use the tool and how it works

  1. Enter preferred, alternative, languages, alternativeLanguages. Keep parallel arrays aligned. 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 conflicts, duplicatePreferredLanguages. Use the output convention below.

Validate aligned label/language pairs and simple language-tag grammar. Lowercase language tags, find exact labels occurring as preferred and alternative in the same language, and flag languages with multiple distinct preferred labels.1

Input fieldMeaning and unitsAccepted input
preferredPreferredRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
alternativeAlternativeRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
languagesLanguagesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
alternativeLanguagesAlternative LanguagesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
Output fieldInterpretationReturned shape
conflictsConflictsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
duplicatePreferredLanguagesDuplicate Preferred LanguagesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
json
{
  "input": {
    "preferred": [
      "cat",
      "chat"
    ],
    "alternative": [
      "cat",
      "feline"
    ],
    "languages": [
      "en",
      "fr"
    ],
    "alternativeLanguages": [
      "en",
      "en"
    ]
  },
  "output": {
    "conflicts": [
      "cat"
    ],
    "duplicatePreferredLanguages": []
  }
}

Limitations and assumptions

  • Identical repeated preferred labels do not trigger the distinct-label conflict; full BCP 47 validation, RDF semantics, and Unicode normalization are not performed.
  • 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

Validate the complete vocabulary model and source identifiers, including language and hierarchy policies.

References

  1. Calculation and input contract: information-science/thesaurus-preferred-alt-label-conflict — tool.io

Similar or alternative tools