Ontology Version: 2.2.0

cacontology-usa-federal:MandatoryMinimumBusinessRule leaf node


URI

https://cacontology.projectvic.org/usa-federal-law#MandatoryMinimumBusinessRule

Label

MandatoryMinimumBusinessRule

Shape Properties

Instances of cacontology-usa-federal:ChildPornographyProduction can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-usa-federal:ChildPornographyProduction
cacontology-usa-federal:crimeJurisdiction 1 xsd:string
cacontology-usa-federal:crimeSeverityLevel 1 xsd:integer
cacontology-usa-federal:mandatoryMinimumSentence 1 xsd:integer
1 1 xsd:dateTimeStamp

Implementation

@prefix cacontology-usa-federal: <https://cacontology.projectvic.org/usa-federal-law#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
cacontology-usa-federal:MandatoryMinimumBusinessRule a sh:NodeShape ;
    sh:sparql [ sh:message "Child pornography production with multiple victims requires enhanced sentence"@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/usa-federal-law#"^^xsd:anyURI ;
                            sh:prefix "cacontology-usa-federal" ] ] ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-usa-federal:victimizedBy ?victim1 .
                $this cacontology-usa-federal:victimizedBy ?victim2 .
                FILTER (?victim1 != ?victim2)
                $this cacontology-usa-federal:mandatoryMinimumSentence ?sentence .
                FILTER (?sentence < 25)
            }
        """ ] ;
    sh:targetClass cacontology-usa-federal:ChildPornographyProduction .