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

    Function property

    Creates property shapes.

    • Creates a property shape from a value range.

      Wraps a SetShape into a Property with no additional constraints. The property's forward IRI is generated by the enclosing resource factory by resolving the property name against the effective namespace.

      Type Parameters

      Parameters

      • range: R

        The value range for this property

      Returns PropertyConstraints<R> & { range: R }

      An immutable Property wrapping the supplied range

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

      Wraps a SetShape into a Property carrying the supplied PropertyConstraints. Use this overload when explicit IRI mappings, labels, or visibility flags are required; otherwise prefer the bare-range overload or pass the range directly to resource.

      Type Parameters

      Parameters

      • constraints: PropertyConstraints

        Property constraints including IRI mappings and labels

      • range: R

        The value range for this property

      Returns PropertyConstraints<R> & { range: R }

      An immutable Property wrapping the supplied range and constraints

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