Let op: dit is een oudere versie van deze publicatie. Ga naar de laatste versie

Uitwisselprofiel Zorgkantoren Inkoopondersteuning en beleidsontwikkeling

15.2. Aantal bezette wooneenheden.

Concepten

Relaties

Eigenschappen

SPARQL query

Code gekopieerd

...

Kopieer naar klembord

1# Indicator: Zorgkantoren 15.2
2# Parameters: -
3# Ontologie: versie 2.2.0 of nieuwer
4
5PREFIX onz-org: <http://purl.org/ozo/onz-org#>
6PREFIX onz-g: <http://purl.org/ozo/onz-g#>
7PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
8
9SELECT ?vestiging (count(distinct ?wooneenheid) as ?bezette_wooneenheden)
10WHERE {
11	?wooneenheid a onz-org:WoonEenheid ;
12             onz-g:partOf ?locatie .
13	filter exists {
14        ?wooneenheid onz-g:hasQuality ?OccQual .
15        ?OccQual a onz-g:OccupancyQuality .
16        ?OccQual onz-g:hasQualityValue ?occQualV . }
17    {
18        ?locatie 
19            a onz-org:Vestiging ;
20            onz-g:identifiedBy ?vest_nr.
21        ?vest_nr a onz-org:Vestigingsnummer ;
22                 onz-g:hasDataValue ?vestiging .
23    } UNION {
24        #Includeer ook de organisatie als geheel en label deze als vestiging
25        ?locatie onz-org:vestigingVan ?organisatie_uri .
26        ?organisatie_uri 
27            a onz-g:Business ;
28            rdfs:label ?organisatie .
29        BIND(CONCAT('Totaal ',?organisatie) AS ?vestiging)
30    }
31} 
32GROUP BY ?vestiging
33ORDER BY ?vestiging
34

Heb je feedback?

Loopt u tegen een issue of vraag aan bij het KIK-V product? Neem dan contact met ons op!