Ontology Version: 2.2.0

cacontology-production:ProductionCrossReferenceShape leaf node


URI

https://cacontology.projectvic.org/production#ProductionCrossReferenceShape

Label

Production Cross Reference Shape

Description

Validates cross-references between production and related entities.

Shape Properties

Instances of cacontology-production:ProductionOffense can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

cacontology-production:ProductionOffense
0 1 xsd:decimal
cacontology-production:productionMethod 1 1 xsd:string
cacontology-production:sessionCount 0 1 xsd:nonNegativeInteger
cacontology-production:victimCount 1 1 xsd:nonNegativeInteger
0 1 xsd:dateTime
0 1 xsd:dateTime

Implementation

@prefix cacontology-production: <https://cacontology.projectvic.org/production#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
cacontology-production:ProductionCrossReferenceShape a sh:NodeShape ;
    rdfs:label "Production Cross Reference Shape"@en ;
    rdfs:comment "Validates cross-references between production and related entities."@en ;
    sh:sparql [ sh:message "Production offense should have at least one producer or facilitator."@en ;
            sh:select """
            SELECT $this
            WHERE {
                $this a cacontology-production:ProductionOffense .
                FILTER NOT EXISTS {
                    { ?producer cacontology-production:producesContent $this } UNION
                    { ?facilitator cacontology-production:facilitatesProduction $this }
                }
            }
        """ ] ;
    sh:targetClass cacontology-production:ProductionOffense .