@prefix af-s: <http://purl.allotrope.org/shape/> .
@prefix dct: <http://purl.org/dc/terms/> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix sh: <http://www.w3.org/ns/shacl#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

af-s:AFS_0000001 a sh:NodeShape ;
    dct:description "The debug shape has the function of a trigger. All Allotrope shapes MUST reference the debug shape and if activated the debug shape causes triggering of all shapes for debugging purposes. Why is this useful? Shapes require target nodes in order to get triggered. If there is no target node for some reason (e.g. due to a typo) then the shape will not trigger at all and validation is positive (even though there actually may be a violation). The debug shape adds a constraint to all Allotrope shapes that always causes a violation. So, if the debug shape is active all shapes must trigger. If a shape does not get triggered with active debug shape then there must be an issue related to the targeting of the shape." ;
    rdfs:isDefinedBy <http://purl.allotrope.org/shapes/adm/core/CR/2021/09/common.shapes> ;
    skos:prefLabel "Allotrope debug node shape" ;
    sh:deactivated true ;
    sh:name "debug shape" ;
    sh:sparql [ sh:message "Shape {$this} was triggered by debug shape." ;
            sh:select """\r
			SELECT $this WHERE {\r
				$this ?p ?o .\r
			}\r
		""" ] ;
    sh:targetClass sh:NodeShape .

<http://purl.allotrope.org/shapes/adm/core/CR/2021/09/common.shapes> a owl:Ontology ;
    dct:license <http://purl.allotrope.org/voc/creative-commons-attribution-license> ;
    dct:publisher <http://www.allotrope.org> ;
    dct:rights <http://purl.allotrope.org/voc/attribution>,
        <http://purl.allotrope.org/voc/copyright> ;
    dct:title "Allotrope Core Shape Library - Common Shapes (CR/2021/09)" ;
    owl:versionIRI <http://purl.allotrope.org/shapes/adm/core/CR/2021/09/common.shapes> ;
    owl:versionInfo "CR/2021/09" ;
    skos:prefLabel "common shapes (adm::core)" .

