core:ExternalIdentifier leaf node


URI

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

Label

ExternalIdentifier

Description

A reference to a resource identifier defined outside the scope of SPDX-3.0 content that uniquely identifies an Element.

Property Shapes

By the associated SHACL property shapes, instances of core:ExternalIdentifier can have the following properties:

PROPERTY PROPERTY TYPE DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS GLOBAL RANGE
core:ExternalIdentifier
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
core:externalIdentifierType owl:ObjectProperty Specifies the type of the external identifier. 1 1 core:ExternalIdentifierType
sh:IRI
sh:in core:ExternalIdentifierType/cpe22, core:ExternalIdentifierType/cpe23, core:ExternalIdentifierType/cve, core:ExternalIdentifierType/email, core:ExternalIdentifierType/gitoid, core:ExternalIdentifierType/other, core:ExternalIdentifierType/packageUrl, core:ExternalIdentifierType/securityOther, core:ExternalIdentifierType/swhid, core:ExternalIdentifierType/swid, core:ExternalIdentifierType/urlScheme
core:ExternalIdentifierType
core:identifier owl:DatatypeProperty Uniquely identifies an external element. 1 1 xsd:string
sh:Literal
xsd:string
core:identifierLocator owl:DatatypeProperty Provides the location for more information regarding an external identifier. 0 * xsd:anyURI
sh:Literal
xsd:anyURI
core:issuingAuthority owl:DatatypeProperty An entity that is authorized to issue identification credentials. 0 1 xsd:string
sh:Literal
xsd:string

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 xsd: <http://www.w3.org/2001/XMLSchema#> .

core:ExternalIdentifier a owl:Class,
        sh:NodeShape ;
    rdfs:comment "A reference to a resource identifier defined outside the scope of SPDX-3.0 content that uniquely identifies an Element."@en ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:property [ sh:datatype xsd:anyURI ;
            sh:nodeKind sh:Literal ;
            sh:path core:identifierLocator ],
        [ sh:class core:ExternalIdentifierType ;
            sh:in ( <https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cpe22> <https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cpe23> <https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/cve> <https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/email> <https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/gitoid> <https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/other> <https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/packageUrl> <https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/securityOther> <https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/swhid> <https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/swid> <https://spdx.org/rdf/3.0.1/terms/Core/ExternalIdentifierType/urlScheme> ) ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:path core:externalIdentifierType ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:issuingAuthority ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:identifier ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:comment ] .