• Finds and retrieves the first KOS data model of a specific type based on a predicate.

    Type Parameters

    • T extends IKosDataModel

    Parameters

    • modelType: string

      The type of the KOS data models to search for.

    • predicate: {
          [k: string]: any;
      }

      An object representing filter conditions.

      • [k: string]: any

    Returns T

    The first matching KOS data model, or undefined if none is found.

    Throws

    An error if the model type is not provided.