core:SpdxDocument leaf node


URI

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

Label

SpdxDocument

Description

A collection of SPDX Elements that could potentially be serialized.

Targets (1)

Node Constraints

value type sh:IRI

Property Constraints (3)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
core:dataLicense Provides the license under which the SPDX documentation of the Element can be used. 0 1 simplelicensing:AnyLicenseInfo
sh:IRI
core:import Provides an ExternalMap of Element identifiers. 0 * core:ExternalMap
sh:BlankNodeOrIRI
core:namespaceMap Provides a NamespaceMap of prefixes and associated namespace partial URIs applicable to an SpdxDocument and independent of any specific serialization format or instance. 0 * core:NamespaceMap
sh:BlankNodeOrIRI

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 simplelicensing: <https://spdx.org/rdf/3.0.1/terms/SimpleLicensing/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

core:SpdxDocument a owl:Class,
        sh:NodeShape ;
    rdfs:comment "A collection of SPDX Elements that could potentially be serialized."@en ;
    rdfs:subClassOf core:ElementCollection ;
    sh:nodeKind sh:IRI ;
    sh:property [ sh:class core:NamespaceMap ;
            sh:nodeKind sh:BlankNodeOrIRI ;
            sh:path core:namespaceMap ],
        [ sh:class simplelicensing:AnyLicenseInfo ;
            sh:maxCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:path core:dataLicense ],
        [ sh:class core:ExternalMap ;
            sh:nodeKind sh:BlankNodeOrIRI ;
            sh:path core:import ] .