Snippet
Summary
Describes a certain part of a file.
Description
A Snippet describes a certain part of a file and can be used when the file is known to have some content that has been included from another original source.
Snippets are useful for denoting when part of a file may have been originally created under another license or copied from a place with a known vulnerability.
Metadata
https://spdx.org/rdf/3.0.1/terms/Software/Snippet
| Name | Snippet |
| Instantiability | Concrete |
| SubclassOf | /Software/SoftwareArtifact |
Class hierarchy
/Core/Element
/Core/Artifact
/Software/SoftwareArtifact
/Software/Snippet
Properties
| Property | Type | minCount | maxCount |
|---|---|---|---|
| byteRange | /Core/PositiveIntegerRange | 0 | 1 |
| lineRange | /Core/PositiveIntegerRange | 0 | 1 |
| snippetFromFile | File | 1 | 1 |
All properties
| Property | Type | minCount | maxCount |
|---|---|---|---|
| additionalPurpose | SoftwarePurpose | 0 | * |
| attributionText | xsd:string | 0 | * |
| builtTime | DateTime | 0 | 1 |
| byteRange | PositiveIntegerRange | 0 | 1 |
| comment | xsd:string | 0 | 1 |
| contentIdentifier | ContentIdentifier | 0 | * |
| copyrightText | xsd:string | 0 | 1 |
| creationInfo | CreationInfo | 1 | 1 |
| description | xsd:string | 0 | 1 |
| extension | Extension | 0 | * |
| externalIdentifier | ExternalIdentifier | 0 | * |
| externalRef | ExternalRef | 0 | * |
| lineRange | PositiveIntegerRange | 0 | 1 |
| name | xsd:string | 0 | 1 |
| originatedBy | Agent | 0 | * |
| primaryPurpose | SoftwarePurpose | 0 | 1 |
| releaseTime | DateTime | 0 | 1 |
| snippetFromFile | File | 1 | 1 |
| spdxId | xsd:anyURI | 1 | 1 |
| standardName | xsd:string | 0 | * |
| summary | xsd:string | 0 | 1 |
| suppliedBy | Agent | 0 | 1 |
| supportLevel | SupportType | 0 | * |
| validUntilTime | DateTime | 0 | 1 |
| verifiedUsing | IntegrityMethod | 0 | * |