@base <http://example.com/ns> .
@prefix ex: <http://example.com/ns#> .
@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 xsd: <http://www.w3.org/2001/XMLSchema#> .

ex:PersonShape
	a sh:NodeShape ;
	sh:targetClass ex:Person ;
	sh:property [
		sh:path ex:parent ;
		sh:qualifiedValueShape [
			sh:path ex:sex ;
			sh:hasValue ex:female ;
		] ;
		sh:qualifiedMinCount 1 ;
	]
	.


ex:PersonShape2
	a sh:NodeShape ;
	sh:targetClass ex:Person2 ;

	sh:property [
        	sh:path ex:temp ;
        	sh:qualifiedValueShape [
        		sh:path ex:val ;
        		sh:datatype xsd:string ;
        	] ;
        	sh:qualifiedMinCount 2 ;
        ]
	.
