@prefix ex: <https://sparql.rhea-db.org/.well-known/sparql-examples/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix schema: <https://schema.org/> .
@prefix sh:<http://www.w3.org/ns/shacl#> .

ex:56_Distribution_of_GenericParticipant a sh:SPARQLExecutable,
        sh:SPARQLSelectExecutable ;
  rdfs:comment """Distribution of GenericParticipant"""@en ;
  sh:select """PREFIX rh: <http://rdf.rhea-db.org/>
PREFIX rdfs:<http://www.w3.org/2000/01/rdf-schema#>

SELECT
  ?genericSubClass
  ?labelGenericSubClass
  (count(?genericParticipant) as ?countGenericParticipant)
WHERE
{
  ?genericSubClass rdfs:subClassOf rh:GenericParticipant .
  ?genericSubClass rdfs:label ?labelGenericSubClass .
  ?genericParticipant rdfs:subClassOf* ?genericSubClass .
}
GROUP BY ?genericSubClass ?labelGenericSubClass
""";
 schema:target <https://sparql.rhea-db.org/sparql> .
