Ontology Version: 2.2.0

cacontology-prevention:EducationPortalResourceValidationShape leaf node


URI

https://cacontology.projectvic.org/prevention#EducationPortalResourceValidationShape

Label

Education Portal Resource Validation Shape

Description

Validates that education portals provide educational resources.

Shape Properties

Instances of cacontology-prevention:EducationPortal can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-prevention:EducationPortal
cacontology-prevention:educationPortalReach 0 1 xsd:nonNegativeInteger
1 1 xsd:string

Implementation

@prefix cacontology-prevention: <https://cacontology.projectvic.org/prevention#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-prevention:EducationPortalResourceValidationShape a sh:NodeShape ;
    rdfs:label "Education Portal Resource Validation Shape"@en ;
    rdfs:comment "Validates that education portals provide educational resources."@en ;
    sh:sparql [ sh:message "Education portal should provide educational resources."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a cacontology-prevention:EducationPortal .
                FILTER NOT EXISTS {
                    $this cacontology-prevention:providesResource ?resource .
                    ?resource a cacontology-prevention:EducationalResource .
                }
            }
        """ ] ;
    sh:targetClass cacontology-prevention:EducationPortal .