@metreeca/blue - v0.9.1
    Preparing search index...

    Function property

    Creates property shapes.

    • Creates a property shape from a value range.

      Type Parameters

      • V extends Range<unknown, number | undefined, number | undefined>

        The range type

      Parameters

      • range: V

        The value range for this property

      Returns Property<V>

      A Property with the specified range

    • Creates a property shape with constraints from a value range.

      Type Parameters

      • V extends Range<unknown, number | undefined, number | undefined>

        The range type

      Parameters

      • constraints: PropertyConstraints

        Property constraints including IRI mappings and labels

      • range: V

        The value range for this property

      Returns Property<V>

      A Property with the specified range

      The forward and reverse fields accept plain strings for convenience; they are converted to IRI values internally.