iwf
    Preparing search index...

    Class MusicalNotationSnak

    Class for the MusicalNotationSnak.

    Most used property of this type is P6883 (LilyPond notation).

    Hierarchy (View Summary)

    • Snak
      • MusicalNotationSnak
    Index
    • Parameters

      • snak: {
            datatype?: "musical-notation";
            datavalue?: { type: "string"; value: string };
            hash?: string;
            property: string;
            snaktype: "value" | "somevalue" | "novalue";
        }

        The snak for this class in JSON format.

      Returns MusicalNotationSnak

      If the input does not match this datatype's Wikidata schema.

      const snak = new MusicalNotationSnak(json);
      
    datatype: string = dataType
    hash: string | undefined
    property: `P${number}`
    snaktype: "value" | "somevalue" | "novalue"
    value: string | undefined
    • get hasValue(): boolean

      Checks if the snak has a value.

      Returns boolean

      True if the snak has a value.

    • get internalID(): string

      Creates a unique ID for the Snak.

      Returns string

      The ID.

    • Returns {
          datatype?: "musical-notation";
          datavalue?: { type: "string"; value: string };
          hash?: string;
          property: string;
          snaktype: "value" | "somevalue" | "novalue";
      }

      The snak as JSON.

      const json = musicalNotationSnak.toJSON();