Skip to content
Alpha: see what works today →
Menu

cascade:valueAbsentForReason value absent for a reason

https://ns.cascadeprotocol.org/cascade#valueAbsentForReason

Of a version, the node saying why it holds no value for one property, one for each such property.

Type
owl:ObjectProperty
Domain
[ a owl:Class; owl:unionOf ( cascade:PatientProfile cascade:AllergyOrIntolerance cascade:ProblemOrDiagnosis cascade:Vaccination cascade:MedicalProcedure cascade:PrescribedOrReportedMedication cascade:StructuredDosage cascade:MedicationDispense cascade:LaboratoryTestResult cascade:DiagnosticReport cascade:ClinicalNoteOrDocument ) ]
Range
cascade:ValueAbsentForReason
Shapes
  • cascade:VersionWithValueAbsentForReasonShape: nodeKind sh:IRI A version's value absent for a reason is a node of the version.

cascade:VersionWithValueAbsentForReasonShape checks the subject of any cascade:valueAbsentForReason.

On the whole node: sparql [ a sh:SPARQLConstraint; message "A value absent for a reason is the node <version>#absent- and its property's local name, or, of a node whose IRI has a fragment already, such as a structured dosage, <node>-absent- and the local name; and stands only where its subject holds no value for that property: {?node} is not."; severity sh:Violation; select

SELECT $this ?node WHERE {
  $this <https://ns.cascadeprotocol.org/cascade#valueAbsentForReason> ?node .
  OPTIONAL { ?node <https://ns.cascadeprotocol.org/cascade#absentValueProperty> ?property }
  FILTER (!BOUND(?property)
          || STR(?node) != CONCAT(STR($this), IF(CONTAINS(STR($this), "#"), "-absent-", "#absent-"), REPLACE(STR(?property), "^.*[#/]", ""))
          || EXISTS { $this ?property ?value })
}
]