software:ContentIdentifier leaf node


URI

https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifier

Label

ContentIdentifier

Description

A canonical, unique, immutable identifier

Superclasses (1)

Property Shapes

By the associated SHACL property shapes, instances of software:ContentIdentifier can have the following properties:

PROPERTY PROPERTY TYPE DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS GLOBAL RANGE
software:ContentIdentifier
software:contentIdentifierType owl:ObjectProperty Specifies the type of the content identifier. 1 1 software:ContentIdentifierType
sh:IRI
sh:in software:ContentIdentifierType/gitoid, software:ContentIdentifierType/swhid
software:ContentIdentifierType
software:contentIdentifierValue owl:DatatypeProperty Specifies the value of the content identifier. 1 1 xsd:anyURI
sh:Literal
xsd:anyURI
core:IntegrityMethod
core:comment owl:DatatypeProperty Provide consumers with comments by the creator of the Element about the Element. 0 1 xsd:string
sh:Literal
xsd:string
rdf:type --
sh:message https://spdx.org/rdf/3.0.1/terms/Core/IntegrityMethod is an abstract class and should not be instantiated directly. Instantiate a subclass instead.
0 *
sh:not sh:hasValue core:IntegrityMethod
--

Implementation

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

software:ContentIdentifier a owl:Class,
        sh:NodeShape ;
    rdfs:comment "A canonical, unique, immutable identifier"@en ;
    rdfs:subClassOf core:IntegrityMethod ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:property [ sh:datatype xsd:anyURI ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path software:contentIdentifierValue ],
        [ sh:class software:ContentIdentifierType ;
            sh:in ( <https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType/gitoid> <https://spdx.org/rdf/3.0.1/terms/Software/ContentIdentifierType/swhid> ) ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:path software:contentIdentifierType ] .