core:Annotation leaf node


URI

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

Label

Annotation

Description

An assertion made in relation to one or more elements.

Superclasses (1)

Targets (1)

Node Constraints

value type sh:IRI

Property Constraints (4)

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

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
core:annotationType Describes the type of annotation. 1 1 core:AnnotationType
sh:IRI
sh:in core:AnnotationType/other, core:AnnotationType/review
core:contentType Provides information about the content type of an Element or a Property. 0 1 xsd:string
sh:Literal
sh:pattern ^[^\/]+\/[^\/]+$
core:statement Commentary on an assertion that an annotator has made. 0 1 xsd:string
sh:Literal
core:subject An Element an annotator has made an assertion about. 1 1 core:Element
sh:IRI

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:Annotation a owl:Class,
        sh:NodeShape ;
    rdfs:comment "An assertion made in relation to one or more elements."@en ;
    rdfs:subClassOf core:Element ;
    sh:nodeKind sh:IRI ;
    sh:property [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:contentType ;
            sh:pattern "^[^\\/]+\\/[^\\/]+$" ],
        [ sh:datatype xsd:string ;
            sh:maxCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:statement ],
        [ sh:class core:Element ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:path core:subject ],
        [ sh:class core:AnnotationType ;
            sh:in ( <https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType/other> <https://spdx.org/rdf/3.0.1/terms/Core/AnnotationType/review> ) ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:IRI ;
            sh:path core:annotationType ] .