https://cacontology.projectvic.org/synthesis/shapes#DistributionObservationShape
Instances of cacontology-synthesis:DistributionObservation can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-synthesis:DistributionObservation | ||||
| cacontology-synthesis:category | 1 | |||
| cacontology-synthesis:count | 1 |
xsd:integer
|
||
| cacontology-synthesis:rank | 1 |
xsd:integer
|
||
| cacontology-synthesis:Claim | ||||
| cacontology-synthesis:about | ||||
| cacontology-synthesis:inReport | 1 | 1 |
cacontology-synthesis:Report
|
|
| cacontology-synthesis:supportedByEvidencePointer | 1 |
cacontology-synthesis:TextEvidencePointer
|
||
@prefix cacontology-synthesis: <https://cacontology.projectvic.org/synthesis#> .
@prefix cacontology-synthesis-shapes: <https://cacontology.projectvic.org/synthesis/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-synthesis-shapes:DistributionObservationShape a sh:NodeShape ;
rdfs:label "Distribution Observation Shape"@en ;
sh:or ( [ sh:property [ sh:datatype xsd:integer ;
sh:message "If using count, count must be an integer >= 0."@en ;
sh:minCount 1 ;
sh:minInclusive 0 ;
sh:path cacontology-synthesis:count ;
sh:severity sh:Violation ] ] [ sh:property [ sh:datatype xsd:integer ;
sh:message "If using rank, rank must be an integer >= 1."@en ;
sh:minCount 1 ;
sh:minInclusive 1 ;
sh:path cacontology-synthesis:rank ;
sh:severity sh:Violation ] ] ) ;
sh:property [ sh:message "DistributionObservation must have a category (IRI)."@en ;
sh:minCount 1 ;
sh:nodeKind sh:IRI ;
sh:path cacontology-synthesis:category ;
sh:severity sh:Violation ] ;
sh:sparql [ sh:message "denominator should only be present when count is present."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-synthesis:denominator ?d .
FILTER NOT EXISTS { $this cacontology-synthesis:count ?c . }
}
""" ;
sh:severity sh:Warning ],
[ sh:message "When denominator is present, it must be >= count."@en ;
sh:select """
SELECT $this
WHERE {
$this cacontology-synthesis:count ?c ;
cacontology-synthesis:denominator ?d .
FILTER (?d < ?c)
}
""" ;
sh:severity sh:Warning ] ;
sh:targetClass cacontology-synthesis:DistributionObservation .