@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#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/>.

ex:PersonShape
	a sh:NodeShape  ;
	sh:targetClass ex:Class8 ;
	sh:property ex:PersonShapeProperty  .


ex:PersonShapeProperty
        sh:path foaf:knows ;
        sh:qualifiedValueShape [
                sh:class ex:Class10
        ];
        sh:qualifiedMinCount 1  .


foaf:Person rdfs:subClassOf ex:Class1 .
ex:Class1 rdfs:subClassOf ex:Class2 .
ex:Class2 rdfs:subClassOf ex:Class3 .
ex:Class3 rdfs:subClassOf ex:Class4 .
ex:Class4 rdfs:subClassOf ex:Class5 .
ex:Class5 rdfs:subClassOf ex:Class6 .
ex:Class6 rdfs:subClassOf ex:Class7 .
ex:Class7 rdfs:subClassOf ex:Class8 .
ex:Class8 rdfs:subClassOf ex:Class9 .
ex:Class9 rdfs:subClassOf ex:Class10 .
