core:CreationInfo leaf node


URI

https://spdx.org/rdf/3.0.1/terms/Core/CreationInfo

Label

CreationInfo

Description

Provides information about the creation of the Element.

Targets (1)

Node Constraints

value type sh:BlankNodeOrIRI

Property Constraints (5)

Focus nodes of this shape (core:CreationInfo) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
core:comment Provide consumers with comments by the creator of the Element about the Element. 0 1 xsd:string
sh:Literal
core:created Identifies when the Element was originally created. 1 1 xsd:dateTimeStamp
sh:Literal
sh:pattern ^\d\d\d\d-\d\d-\d\dT\d\d:\d\d:\d\dZ$
core:createdBy Identifies who or what created the Element. 1 * core:Agent
sh:IRI
core:createdUsing Identifies the tooling that was used during the creation of the Element. 0 * core:Tool
sh:IRI
core:specVersion Provides a reference number that can be used to understand how to parse and interpret an Element. 1 1 xsd:string
sh:Literal
sh:pattern ^(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:-((?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\.(?:0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\+([0-9a-zA-Z-]+(?:\.[0-9a-zA-Z-]+)*))?$

Implementation

@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#> .

core:CreationInfo a owl:Class,
        sh:NodeShape ;
    rdfs:comment "Provides information about the creation of the Element."@en ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:property [ sh:class core:Agent ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:path core:createdBy ],
        [ sh:class core:Tool ;
            sh:nodeKind sh:IRI ;
            sh:path core:createdUsing ],
        [ sh:datatype xsd:dateTimeStamp ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:created ;
            sh:pattern "^\\d\\d\\d\\d-\\d\\d-\\d\\dT\\d\\d:\\d\\d:\\d\\dZ$" ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:specVersion ;
            sh:pattern "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:-((?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\.(?:0|[1-9]\\d*|\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\+([0-9a-zA-Z-]+(?:\\.[0-9a-zA-Z-]+)*))?$" ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:comment ] .