https://cacontology.projectvic.org/asset-forfeiture#ResidentialPropertyShape
Enhanced validation shape for residential property with gUFO Object validation and property assessment.
Instances of cacontology-asset-forfeiture:ResidentialProperty can have the following properties:
PROPERTY |
MIN COUNT |
MAX COUNT |
TYPE |
|
|---|---|---|---|---|
| cacontology-asset-forfeiture:ResidentialProperty | ||||
| cacontology-asset-forfeiture:marketValue | 0 | 1 |
xsd:decimal
|
|
| 1 |
uco-identity:Person
|
|||
@prefix cacontology-asset-forfeiture: <https://cacontology.projectvic.org/asset-forfeiture#> .
@prefix gufo: <http://purl.org/nemo/gufo#> .
@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 uco-identity: <https://ontology.unifiedcyberontology.org/uco/identity/> .
@prefix uco-observable: <https://ontology.unifiedcyberontology.org/uco/observable/> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-asset-forfeiture:ResidentialPropertyShape a sh:NodeShape ;
rdfs:label "Residential Property Shape"@en ;
rdfs:comment "Enhanced validation shape for residential property with gUFO Object validation and property assessment."@en ;
sh:property [ sh:hasValue gufo:Object ;
sh:message "Residential property must be instance of gUFO Object"@en ;
sh:path rdf:type ],
[ sh:datatype xsd:decimal ;
sh:maxCount 1 ;
sh:message "Market value must be positive"@en ;
sh:minCount 0 ;
sh:minExclusive 0.0 ;
sh:path cacontology-asset-forfeiture:marketValue ],
[ sh:class uco-identity:Person ;
sh:message "Residential property must have at least one owner"@en ;
sh:minCount 1 ;
sh:path uco-observable:propertyOwner ] ;
sh:rule [ a sh:SPARQLRule ;
sh:construct """
INSERT { $this a cacontology-asset-forfeiture:AssessmentRecommendation . }
WHERE {
$this cacontology-asset-forfeiture:marketValue ?value .
FILTER(?value > 500000)
FILTER NOT EXISTS {
$this cacontology-asset-forfeiture:hasAssessment ?assessment .
?assessment cacontology-asset-forfeiture:assessmentType "professional" .
}
}
""" ;
sh:message "High-value residential property should have professional assessment"@en ;
sh:prefixes cacontology-asset-forfeiture: ;
sh:severity sh:Warning ] ;
sh:targetClass cacontology-asset-forfeiture:ResidentialProperty .