Ontology Version: 2.2.0

cacontology-infrastructure:AnalysisSubjectCrossReferenceShape leaf node


URI

https://cacontology.projectvic.org/infrastructure#AnalysisSubjectCrossReferenceShape

Label

Analysis Subject Cross Reference Shape

Description

Validates that infrastructure analysis has subject infrastructure.

Shape Properties

Instances of cacontology-infrastructure:InfrastructureAnalysis can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-infrastructure:InfrastructureAnalysis
cacontology-infrastructure:hasAnalysisAccuracy 1 xsd:double
cacontology-infrastructure:hasAnalysisDepth 1 xsd:string
cacontology-infrastructure:hasAnalysisTimeliness 1 xsd:string

Implementation

@prefix cacontology-infrastructure: <https://cacontology.projectvic.org/infrastructure#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-infrastructure:AnalysisSubjectCrossReferenceShape a sh:NodeShape ;
    rdfs:label "Analysis Subject Cross Reference Shape"@en ;
    rdfs:comment "Validates that infrastructure analysis has subject infrastructure."@en ;
    sh:sparql [ sh:message "Infrastructure analysis should analyze specific infrastructure."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a cacontology-infrastructure:InfrastructureAnalysis .
                FILTER NOT EXISTS {
                    $this cacontology-infrastructure:analysesInfrastructure ?infrastructure .
                    ?infrastructure a cacontology-infrastructure:PlatformInfrastructure .
                }
            }
        """ ] ;
    sh:targetClass cacontology-infrastructure:InfrastructureAnalysis .