Skip to content

Main content

SKOS Preferred Label Language Budget Tool

Count distinct supplied preferred-label literals per case-insensitive language tag, collapsing duplicate RDF literal rows.

Loading tool…

Description

Group labels by lowercase language string and count distinct literal labels within each group.

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

Group labels by lowercase language string and count distinct literal labels within each group.

When to use this tool

Use SKOS Preferred Label Language Budget when you need a scoped vocabulary-label or ancestry diagnostic.

How to use the tool and how it works

  1. Enter labels, languages. 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 duplicateLanguages, maximumPerLanguage. Use the output convention below.

Group labels by lowercase language string and count distinct literal labels within each group. Return languages with more than one distinct label and the maximum group count.1

SKOS constrains a resource to one preferred-label value for each language tag. Repeating an identical literal does not create a second distinct value; different labels under the same normalized language need review.2

Input fieldMeaning and unitsAccepted input
labelsLabelsRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
languagesLanguagesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
Output fieldInterpretationReturned shape
duplicateLanguagesDuplicate LanguagesRequired. Array of text; maximum UTF-16 length 8192; maximum items 256.
maximumPerLanguageMaximum Per LanguageRequired. Safe integer.
json
{
  "input": {
    "labels": [
      "one",
      "two",
      "trois"
    ],
    "languages": [
      "en",
      "EN",
      "fr"
    ]
  },
  "output": {
    "duplicateLanguages": [
      "en"
    ],
    "maximumPerLanguage": 2
  }
}

Limitations and assumptions

  • This is a narrow preferred-label check without language-tag validation, concept grouping, or complete SKOS validation.
  • 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/skos-preferred-label-language-budget — tool.io

  2. SKOS Simple Knowledge Organization System Reference: Lexical Labels — W3C

Similar or alternative tools