https://cacontology.projectvic.org/production#TextOverlayShape
Validation shape for text overlay instances.
Focus nodes of this shape (cacontology-production:TextOverlay) can have the following properties:
| PROPERTY | DESCRIPTION | MIN | MAX | VALUE TYPE | OTHER CONSTRAINTS |
|---|---|---|---|---|---|
cacontology-production:textPlacement |
sh:message Text overlay must specify placement from the allowed list. |
1 | 1 | xsd:string |
sh:in
overlay_on_image, caption_below, watermark, corner_placement, center_placement
|
cacontology-production:textType |
sh:message Text overlay must specify text type from the allowed list. |
1 | 1 | xsd:string |
sh:in
victim_name, victim_name_and_slang, explicit_text, identifying_text, threatening_text, instructional_text
|
@prefix cacontology-production: <https://cacontology.projectvic.org/production#> .
@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-production:TextOverlayShape a sh:NodeShape ;
rdfs:label "Text Overlay Shape"@en ;
rdfs:comment "Validation shape for text overlay instances."@en ;
sh:property [ sh:datatype xsd:string ;
sh:in ( "victim_name" "victim_name_and_slang" "explicit_text" "identifying_text" "threatening_text" "instructional_text" ) ;
sh:maxCount 1 ;
sh:message "Text overlay must specify text type from the allowed list."@en ;
sh:minCount 1 ;
sh:path cacontology-production:textType ],
[ sh:datatype xsd:string ;
sh:in ( "overlay_on_image" "caption_below" "watermark" "corner_placement" "center_placement" ) ;
sh:maxCount 1 ;
sh:message "Text overlay must specify placement from the allowed list."@en ;
sh:minCount 1 ;
sh:path cacontology-production:textPlacement ] ;
sh:targetClass cacontology-production:TextOverlay .