Ontology Version: 2.7.0

cacontology-usa-leg-shapes:FundingNeedShape leaf node


URI

https://cacontology.projectvic.org/usa-legislative/shapes#FundingNeedShape

Label

Funding Need Shape

Description

Validates funding need instances.

Target Classes (1)

Shape Properties

Instances of cacontology-usa-leg:FundingNeed can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-usa-leg:FundingNeed
cacontology-usa-leg:needDescription 1 xsd:string
cacontology-usa-leg:priorityLevel 1 xsd:string
cacontology-usa-leg:requestedAmount 1 xsd:decimal

Implementation

@prefix cacontology-usa-leg: <https://cacontology.projectvic.org/usa-legislative#> .
@prefix cacontology-usa-leg-shapes: <https://cacontology.projectvic.org/usa-legislative/shapes#> .
@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#> .
cacontology-usa-leg-shapes:FundingNeedShape a sh:NodeShape ;
    rdfs:label "Funding Need Shape"@en ;
    rdfs:comment "Validates funding need instances."@en ;
    sh:property [ sh:datatype xsd:string ;
            sh:message "Funding need should have a description (at least 10 characters)"@en ;
            sh:minCount 1 ;
            sh:minLength 10 ;
            sh:path cacontology-usa-leg:needDescription ;
            sh:severity sh:Warning ],
        [ sh:datatype xsd:decimal ;
            sh:message "Funding need should have a positive requested amount"@en ;
            sh:minCount 1 ;
            sh:minExclusive 0 ;
            sh:path cacontology-usa-leg:requestedAmount ;
            sh:severity sh:Warning ],
        [ sh:datatype xsd:string ;
            sh:in ( "low" "medium" "high" "urgent" "critical" ) ;
            sh:maxCount 1 ;
            sh:message "Priority level should be one of: low, medium, high, urgent, critical"@en ;
            sh:path cacontology-usa-leg:priorityLevel ;
            sh:severity sh:Info ] ;
    sh:targetClass cacontology-usa-leg:FundingNeed .