Ontology Version: 3.1.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.

Targets (1)

Property Constraints (3)

Focus nodes of this shape (cacontology-usa-leg:FundingNeed) can have the following properties:

PROPERTY DESCRIPTION MIN MAX VALUE TYPE OTHER CONSTRAINTS
cacontology-usa-leg:needDescription
sh:message Funding need should have a description (at least 10 characters)
1 * xsd:string
sh:minLength 10
sh:severity sh:Warning
cacontology-usa-leg:priorityLevel
sh:message Priority level should be one of: low, medium, high, urgent, critical
0 1 xsd:string
sh:in low, medium, high, urgent, critical
sh:severity sh:Info
cacontology-usa-leg:requestedAmount
sh:message Funding need should have a positive requested amount
1 * xsd:decimal
sh:minExclusive 0
sh:severity sh:Warning

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 .