SLSA
Theme
Text size
GitHub Menu

Class in Supply-chain Levels for Software Artifacts (SLSA)

InTotoAnnotation

One vendor-specific annotation on a resource descriptor: a key and its values.

URI: slsa:class/InTotoAnnotation

 classDiagram
    class InTotoAnnotation
    click InTotoAnnotation href "../../classes/InTotoAnnotation/"
      InTotoAnnotation : annotation_key
        
      InTotoAnnotation : annotation_values
        
      

Slots#

NameCardinality and RangeDescriptionInheritance
annotation_key1
String
The annotation’s keydirect
annotation_values*
String
The annotation’s valuesdirect

Usages#

used byused intypeused
SlsaVerificationSummaryPolicyannotationsrangeInTotoAnnotation
SlsaVerificationSummaryInputAttestationannotationsrangeInTotoAnnotation
InTotoResourceDescriptorannotationsrangeInTotoAnnotation
InTotoStatementSubjectannotationsrangeInTotoAnnotation

Comments#

  • The attestation’s JSON allows any JSON value. A string becomes one value and an array one value per item; any other value or item is written as its JSON text, so one value cannot tell a string from a one-item array.
  • Each key appears once in a list, since the attestation’s JSON uses it as a key; the validator does not check this.

Identifier and Mapping Information#

Schema Source#

Mappings#

Mapping TypeMapped Value
selfslsa:InTotoAnnotation
nativeslsa:InTotoAnnotation
closespdx_core:DictionaryEntry

LinkML Source#

Direct#

YAML
name: InTotoAnnotation
description: 'One vendor-specific annotation on a resource descriptor: a key and its
  values.'
comments:
- The attestation's JSON allows any JSON value. A string becomes one value and an
  array one value per item; any other value or item is written as its JSON text, so
  one value cannot tell a string from a one-item array.
- Each key appears once in a list, since the attestation's JSON uses it as a key;
  the validator does not check this.
from_schema: https://w3id.org/lmodel/slsa
close_mappings:
- spdx_core:DictionaryEntry
attributes:
  annotation_key:
    name: annotation_key
    description: The annotation's key.
    from_schema: https://w3id.org/lmodel/in-toto/in_toto_core
    close_mappings:
    - spdx_core:key
    rank: 1000
    slot_uri: in_toto_linkml:annotation_key
    domain_of:
    - InTotoAnnotation
    required: true
  annotation_values:
    name: annotation_values
    description: The annotation's values.
    from_schema: https://w3id.org/lmodel/in-toto/in_toto_core
    close_mappings:
    - spdx_core:value
    rank: 1000
    slot_uri: in_toto_linkml:annotation_values
    domain_of:
    - InTotoAnnotation
    multivalued: true

Induced#

YAML
name: InTotoAnnotation
description: 'One vendor-specific annotation on a resource descriptor: a key and its
  values.'
comments:
- The attestation's JSON allows any JSON value. A string becomes one value and an
  array one value per item; any other value or item is written as its JSON text, so
  one value cannot tell a string from a one-item array.
- Each key appears once in a list, since the attestation's JSON uses it as a key;
  the validator does not check this.
from_schema: https://w3id.org/lmodel/slsa
close_mappings:
- spdx_core:DictionaryEntry
attributes:
  annotation_key:
    name: annotation_key
    description: The annotation's key.
    from_schema: https://w3id.org/lmodel/in-toto/in_toto_core
    close_mappings:
    - spdx_core:key
    rank: 1000
    slot_uri: in_toto_linkml:annotation_key
    owner: InTotoAnnotation
    domain_of:
    - InTotoAnnotation
    range: string
    required: true
  annotation_values:
    name: annotation_values
    description: The annotation's values.
    from_schema: https://w3id.org/lmodel/in-toto/in_toto_core
    close_mappings:
    - spdx_core:value
    rank: 1000
    slot_uri: in_toto_linkml:annotation_values
    owner: InTotoAnnotation
    domain_of:
    - InTotoAnnotation
    range: string
    multivalued: true