Skip to content

Plan, apply and roll back changes to a production ontology, with a blast radius report and a proof an auditor can re-check.

1.5 KB
Raw Blame
@prefix mf: <http://www.w3.org/2001/sw/DataAccess/tests/test-manifest#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@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 sht: <http://www.w3.org/ns/shacl-test#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .

@prefix ex: <http://example.org/shacl-test/> .

# This test case is under discussion, as there are different interpretations
# on whether the nested sh:property constraint that is reached twice should
# also be reported twice.

<>
  rdf:type mf:Manifest ;
  mf:entries (
      <shared>
    ) ;
.

<shared>
	rdf:type sht:Validate;
	rdfs:label "Test of validation report for shape shared by property constraints" ;
	mf:action [
		sht:dataGraph <shared-data.ttl> ;
		sht:shapesGraph <shared-shapes.ttl> 
	] ;
	mf:result [
		rdf:type sh:ValidationReport ;
		sh:conforms "false"^^xsd:boolean ;
		sh:result [ 
			rdf:type sh:ValidationResult ;
			sh:resultSeverity sh:Violation ;
			sh:focusNode ex:j ;
			sh:value ex:k ;
			sh:resultPath ex:r ;
			sh:sourceShape ex:s4 ;
			sh:sourceConstraintComponent sh:ClassConstraintComponent
		] ;
		sh:result [ 
			rdf:type sh:ValidationResult ;
			sh:resultSeverity sh:Violation ;
			sh:focusNode ex:j ;
			sh:value ex:k ;
			sh:resultPath ex:r ;
			sh:sourceShape ex:s4 ;
			sh:sourceConstraintComponent sh:ClassConstraintComponent
		]
	] ;
	mf:status sht:approved .