core:PositiveIntegerRange leaf node


URI

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

Label

PositiveIntegerRange

Description

A tuple of two positive integers that define a range.

Property Shapes

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

PROPERTY PROPERTY TYPE DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS GLOBAL RANGE
core:PositiveIntegerRange
core:beginIntegerRange owl:DatatypeProperty Defines the beginning of a range. 1 1 xsd:positiveInteger
sh:Literal
xsd:positiveInteger
core:endIntegerRange owl:DatatypeProperty Defines the end of a range. 1 1 xsd:positiveInteger
sh:Literal
xsd:positiveInteger

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

core:PositiveIntegerRange a owl:Class,
        sh:NodeShape ;
    rdfs:comment "A tuple of two positive integers that define a range."@en ;
    sh:nodeKind sh:BlankNodeOrIRI ;
    sh:property [ sh:datatype xsd:positiveInteger ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:endIntegerRange ],
        [ sh:datatype xsd:positiveInteger ;
            sh:maxCount 1 ;
            sh:minCount 1 ;
            sh:nodeKind sh:Literal ;
            sh:path core:beginIntegerRange ] .