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

    Function id

    • Creates a marker for the resource identifier property.

      Tags the enclosing property as mapping to JSON-LD @id. At most one id marker is allowed per resource shape, counted after inheritance merging: markers sharing a property name collapse into a single entry, so a marker reaching the shape through several parents or redeclared by the shape counts once, while two id markers under distinct property names are rejected. The resulting property has implicit 0..1 cardinality and accepts a single absolute IRI value.

      Parameters

      • constraints: { hidden?: boolean } = {}

        The identifier property constraints

        • Optional Readonlyhidden?: boolean

          Excludes the property from default serialisation

      Returns Id

      An immutable Id marker for the resource identifier property