Endpoint
Supported language
Title
Copenhagen namespace
Text
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX owl: <http://www.w3.org/2002/07/owl#>

SELECT ?typeLabel (COUNT(?facility) AS ?count)
WHERE {
    # relative to the <ns> endpoint this query runs on, so the app installs under any base URI:
    # the endpoint resolves <ns#> to the namespace and <sparql> to the dataspace's own data
    ?type a owl:Class ;
        rdfs:label ?typeLabel ;
        rdfs:isDefinedBy <ns#>

    SERVICE <sparql>
    {
        SELECT DISTINCT ?facility ?type WHERE {
            GRAPH ?graph {
                ?facility a ?type .
            }
        }
    }
}
GROUP BY ?type ?typeLabel
ORDER BY DESC(?count)
Title
Facilities by type
Category variable name
typeLabel
Chart type
Series variable name
count
Title
Facilities by type