expandedlicensing:License


URI

https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/License

Label

License

Description

Abstract class for the portion of an AnyLicenseInfo representing a license.

Targets (1)

Node Constraints

value type sh:IRI

Property Constraints (10)

Focus nodes of this shape (expandedlicensing:License) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
expandedlicensing:isDeprecatedLicenseId Specifies whether a license or additional text identifier has been marked as deprecated. 0 1 xsd:boolean
sh:Literal
expandedlicensing:isFsfLibre Specifies whether the License is listed as free by the Free Software Foundation (FSF). 0 1 xsd:boolean
sh:Literal
expandedlicensing:isOsiApproved Specifies whether the License is listed as approved by the Open Source Initiative (OSI). 0 1 xsd:boolean
sh:Literal
expandedlicensing:licenseXml Identifies all the text and metadata associated with a license in the license XML format. 0 1 xsd:string
sh:Literal
expandedlicensing:obsoletedBy Specifies the licenseId that is preferred to be used in place of a deprecated License or LicenseAddition. 0 1 xsd:string
sh:Literal
expandedlicensing:seeAlso Contains a URL where the License or LicenseAddition can be found in use. 0 * xsd:anyURI
sh:Literal
expandedlicensing:standardLicenseHeader Provides a License author's preferred text to indicate that a file is covered by the License. 0 1 xsd:string
sh:Literal
expandedlicensing:standardLicenseTemplate Identifies the full text of a License, in SPDX templating format. 0 1 xsd:string
sh:Literal
rdf:type
sh:message https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/License is an abstract class and should not be instantiated directly. Instantiate a subclass instead.
0 *
sh:not sh:hasValue expandedlicensing:License
simplelicensing:licenseText Identifies the full text of a License or Addition. 1 1 xsd:string
sh:Literal

Implementation

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

expandedlicensing:License a owl:Class,
        sh:NodeShape ;
    rdfs:comment "Abstract class for the portion of an AnyLicenseInfo representing a license."@en ;
    rdfs:subClassOf expandedlicensing:ExtendableLicense ;
    sh:nodeKind sh:IRI ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path expandedlicensing:obsoletedBy ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path expandedlicensing:standardLicenseHeader ],
        [ sh:datatype xsd:anyURI ;
            sh:nodeKind sh:Literal ;
            sh:path expandedlicensing:seeAlso ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path expandedlicensing:isFsfLibre ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path expandedlicensing:isDeprecatedLicenseId ],
        [ sh:datatype xsd:boolean ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path expandedlicensing:isOsiApproved ],
        [ sh:message "https://spdx.org/rdf/3.0.1/terms/ExpandedLicensing/License is an abstract class and should not be instantiated directly. Instantiate a subclass instead."@en ;
            sh:not [ sh:hasValue expandedlicensing:License ] ;
            sh:path rdf:type ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path expandedlicensing:licenseXml ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path simplelicensing:licenseText ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path expandedlicensing:standardLicenseTemplate ] .