build:Build leaf node


URI

https://spdx.org/rdf/3.0.1/terms/Build/Build

Label

Build

Description

Class that describes a build instance of software/artifacts.

Superclasses (1)

Targets (1)

Node Constraints

value type sh:IRI

Property Constraints (9)

Focus nodes of this shape (build:Build) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
build:buildEndTime Property that describes the time at which a build stops. 0 1 xsd:dateTimeStamp
sh:Literal
sh:pattern ^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$
build:buildId A buildId is a locally unique identifier used by a builder to identify a unique instance of a build produced by it. 0 1 xsd:string
sh:Literal
build:buildStartTime Property describing the start time of a build. 0 1 xsd:dateTimeStamp
sh:Literal
sh:pattern ^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$
build:buildType A buildType is a hint that is used to indicate the toolchain, platform, or infrastructure that the build was invoked on. 1 1 xsd:anyURI
sh:Literal
build:configSourceDigest Property that describes the digest of the build configuration file used to invoke a build. 0 * core:Hash
sh:BlankNodeOrIRI
build:configSourceEntrypoint Property describes the invocation entrypoint of a build. 0 * xsd:string
sh:Literal
build:configSourceUri Property that describes the URI of the build configuration source file. 0 * xsd:anyURI
sh:Literal
build:environment Property describing the session in which a build is invoked. 0 * core:DictionaryEntry
sh:BlankNodeOrIRI
build:parameter Property describing a parameter used in an instance of a build. 0 * core:DictionaryEntry
sh:BlankNodeOrIRI

Implementation

@prefix build: <https://spdx.org/rdf/3.0.1/terms/Build/> .
@prefix core: <https://spdx.org/rdf/3.0.1/terms/Core/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

build:Build a owl:Class,
        sh:NodeShape ;
    rdfs:comment "Class that describes a build instance of software/artifacts."@en ;
    rdfs:subClassOf core:Element ;
    sh:nodeKind sh:IRI ;
    sh:property [ sh:datatype xsd:anyURI ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path build:buildType ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path build:buildEndTime ;
            sh:pattern "^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\dZ$" ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path build:buildId ],
        [ sh:class core:Hash ;
            sh:nodeKind sh:BlankNodeOrIRI ;
            sh:path build:configSourceDigest ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path build:buildStartTime ;
            sh:pattern "^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\dZ$" ],
        [ sh:datatype xsd:anyURI ;
            sh:nodeKind sh:Literal ;
            sh:path build:configSourceUri ],
        [ sh:class core:DictionaryEntry ;
            sh:nodeKind sh:BlankNodeOrIRI ;
            sh:path build:parameter ],
        [ sh:datatype xsd:string ;
            sh:nodeKind sh:Literal ;
            sh:path build:configSourceEntrypoint ],
        [ sh:class core:DictionaryEntry ;
            sh:nodeKind sh:BlankNodeOrIRI ;
            sh:path build:environment ] .