Ontology Version: 2.2.0

cacontology-partnerships-shapes:CrowdsourcingEffectivenessShape leaf node


URI

https://cacontology.projectvic.org/partnerships/shapes#CrowdsourcingEffectivenessShape

Label

Crowdsourcing Effectiveness Shape

Description

Validates crowdsourcing effectiveness metrics.

Shape Properties

Instances of cacontology-partnerships:ObjectIdentificationRequest can have the following properties:

PROPERTY

MIN COUNT

MAX COUNT

TYPE

Implementation

@prefix cacontology-partnerships: <https://cacontology.projectvic.org/partnerships#> .
@prefix cacontology-partnerships-shapes: <https://cacontology.projectvic.org/partnerships/shapes#> .
@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-partnerships-shapes:CrowdsourcingEffectivenessShape a sh:NodeShape ;
    rdfs:label "Crowdsourcing Effectiveness Shape"@en ;
    rdfs:comment "Validates crowdsourcing effectiveness metrics."@en ;
    sh:sparql [ sh:message "Object identification requests with high success rates should have received public tips."@en ;
            sh:prefixes [ sh:declare [ sh:namespace "https://cacontology.projectvic.org/partnerships#"^^xsd:anyURI ;
                            sh:prefix "cacontology-partnerships" ] ] ;
            sh:select """
            SELECT $this
            WHERE {
                $this cacontology-partnerships:identificationSuccessRate ?rate .
                FILTER (?rate > 0.5)
                FILTER NOT EXISTS {
                    ?investigation cacontology-partnerships:generatesRequests $this ;
                                   cacontology-partnerships:publicTipsReceived ?tips .
                    FILTER (?tips > 0)
                }
            }
        """ ] ;
    sh:targetClass cacontology-partnerships:ObjectIdentificationRequest .