SPARQL Queries

Use the tabs to the right to navigate to a query of your interest

SPARQL queries Data Quality Management report available on Gitbook: https://github.com/bdevloed/op-data-quality

This sparql endpoint is protected and works a little bit differently than other public sparql endpoints (e.g wikidata / dbpedia).

  • Some operations are not allowed (e.g CONSTRUCT queries will always return application/sparql+results+json instead of RDF).

  • You cannot have comments in your query (eg. # a comment)

  • You cannot use graph (FROM <...> or FROM NAMED <...> GRAPH ?g or GRAPH <http://some-graph.com/xxx>) as there are protected based on current logged in user. if you have the proper roles, we will always fetch data from every graphs where you have accesses

  • As we must process each queries to make sure it is allowed, some overhead is expected; complex queries might take too long & could results to a 504 timeout. you can workaround by using things like LIMIT & OFFSET to reduce the amount of data sent back

  • the only Accept type is application/sparql+results+json

Finding triples in OP

See all triples and classes in the SPARQL-endpoint

Select distinct ?klasseNaam WHERE{
   ?URIklasse a ?klasseNaam .
}

Which predicate are available in the classes

Select distinct ?klasseNaam ?predikaat WHERE{
  ?URIklasse a ?klasseNaam .
  ?URIklasse ?predikaat ?onbelangrijkObject
}

All (central) Worship services

Description: This query shows all the (central) worship services in the OP.

Status, KBO number, SharePoint ID, and name

PREFIX  organ: <http://www.univalle.edu.co/ontologies/Organ#>
PREFIX  adms: <http://www.w3.org/ns/adms#>
PREFIX  rdf:  <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX  org:  <http://www.w3.org/ns/org#>
PREFIX  regorg: <http://www.w3.org/ns/regorg#>
PREFIX  skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX  ere:  <http://data.lblod.info/vocabularies/erediensten/>
PREFIX  generiek: <https://data.vlaanderen.be/ns/generiek#>
PREFIX  rdfs: <http://www.w3.org/2000/01/rdf-schema#>
 PREFIX  locn: <http://www.w3.org/ns/locn#>
 PREFIX  organisatie: <https://data.vlaanderen.be/ns/organisatie#>
 SELECT  ?org ?name ?sharepointId ?kboNumber ?statusLabel ?province
 WHERE
   { ?org     rdf:type          ?type ;
              regorg:orgStatus  ?status ;
              skos:prefLabel    ?name .
     ?status  skos:prefLabel    ?statusLabel
     OPTIONAL
       { ?org      adms:identifier       ?identifier1 .
         ?identifier1  skos:notation     ?notation1 ;
                   generiek:gestructureerdeIdentificator  ?id1 .
         ?id1      generiek:lokaleIdentificator  ?sharepointId
         FILTER ( ?notation1 = "SharePoint identificator" )
       }
     OPTIONAL
        { ?org      adms:identifier       ?identifier2 .
          ?identifier2  skos:notation     ?notation2 ;
                    generiek:gestructureerdeIdentificator  ?id2 .
          ?id2      generiek:lokaleIdentificator  ?kboNumber
          FILTER ( ?notation2 = "KBO nummer" )
        }
      OPTIONAL
        { ?org      org:hasPrimarySite    ?site .
          ?site     organisatie:bestaatUit  ?address .
          ?address  locn:adminUnitL2      ?province
        }
      filter(?type = ere:BestuurVanDeEredienst || ?type = <http://data.lblod.info/vocabularies/erediensten/CentraalBestuurVanDeEredienst>)
    }

Central worship services

Description: This query shows all the central worship services in the OP.

Representative bodies

Description: This query shows all the representative bodies in the OP.

Overview - all - contactpoints

Description: Every contactpoint will be listed. One position can have multiple contact points depending on whether they have more than one phone number

This export contains: First and Last name, Position name, Bestuurnaam, Bestuursorgaan, Type helft, Contactinfo and corresponding start and enddates of bestuursorgaan and the position

Link below (due to large length it cannot be visualized differently):

https://organisaties.abb.vlaanderen.be/sparql#query=PREFIX%20org%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Forg%23%3E%0APREFIX%20locn%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Flocn%23%3E%0APREFIX%20schema%3A%20%3Chttp%3A%2F%2Fschema.org%2F%3E%0APREFIX%20regorg%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fregorg%23%3E%0APREFIX%20person%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fperson%23%3E%0APREFIX%20vcard%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2006%2Fvcard%2Fns%23%3E%0APREFIX%20dbpedia%3A%20%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0APREFIX%20adms%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fadms%23%3E%0APREFIX%20euro%3A%20%3Chttp%3A%2F%2Fdata.europa.eu%2Fm8g%2F%3E%0APREFIX%20prov%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fprov%23%3E%0APREFIX%20organisatie%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Forganisatie%23%3E%0APREFIX%20persoon%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fpersoon%23%3E%0APREFIX%20adres%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fadres%23%3E%0APREFIX%20generiek%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fgeneriek%23%3E%0APREFIX%20mandaat%3A%20%3Chttp%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fmandaat%23%3E%0APREFIX%20besluit%3A%20%3Chttp%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fbesluit%23%3E%0APREFIX%20lblodlg%3A%20%3Chttps%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Fleidinggevenden%2F%3E%0APREFIX%20dc_terms%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0APREFIX%20foaf%3A%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0APREFIX%20skos%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E%0APREFIX%20euvoc%3A%20%3Chttp%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23%3E%0APREFIX%20ere%3A%20%3Chttp%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Ferediensten%2F%3E%0APREFIX%20ch%3A%20%3Chttp%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Fcontacthub%2F%3E%0APREFIX%20code%3A%20%3Chttp%3A%2F%2Flblod.data.gift%2Fvocabularies%2Forganisatie%2F%3E%0APREFIX%20ext%3A%20%3Chttp%3A%2F%2Fmu.semte.ch%2Fvocabularies%2Fext%2F%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0A%0ASELECT%20%3FgivenName%20%3FfamilyName%20%3FbestuurNaam%20%3FroleName%20%3FstartMandaat%20%3FmandaatEinde%20%3FgeplandMandaatEinde%20%3FtypeHelftName%20%3Ftelephone%20%3Femail%20%3FfullAddress%20%3Fhuisnr%20%3Fbusnr%20%3Fstreet%20%3FpostCode%20%3Fgemeente%20%3FbestuursOrgaan%20%3Fbo%20%3Fbestuur%20%3FstartBestuursOrgaan%20%3FeindeBestuursOrgaan%20%20%3Fmandaat%20%3Fmandataris%20%3Fperson%20%3FcontactPoint%20%3Faddress%20%3Frole%20%3FcontactType%20%3FtypeHelft%0A%0AWHERE%0A%7B%0A%20%20%7B%0A%20%20%20%20SELECT%20%3FgivenName%20%3FfamilyName%20%3FbestuurNaam%20%3FroleName%20%3FstartMandaat%20%3FmandaatEinde%20%3FgeplandMandaatEinde%20%3FtypeHelftName%20%3Ftelephone%20%3Femail%20%3FfullAddress%20%3Fhuisnr%20%3Fbusnr%20%3Fstreet%20%3FpostCode%20%3Fgemeente%20%3FbestuursOrgaan%20%3Fbo%20%3Fbestuur%20%3FstartBestuursOrgaan%20%3FeindeBestuursOrgaan%20%20%3Fmandaat%20%3Fmandataris%20%3Fperson%20%3FcontactPoint%20%3Faddress%20%3Frole%20%3FcontactType%20%3FtypeHelft%0A%0A%20%20%20%20%7B%0A%20%20%20%20%20%20%3FbestuursOrgaan%0A%20%20%20%20%20%20%20%20a%0A%20%20%20%20%20%20%20%20%20%20besluit%3ABestuursorgaan%3B%0A%20%20%20%20%20%20%20%20generiek%3AisTijdspecialisatieVan%0A%20%20%20%20%20%20%20%20%20%20%3Fbo.%0A%20%20%20%20%20%20%3Fbo%0A%20%20%20%20%20%20%20%20besluit%3Abestuurt%0A%20%20%20%20%20%20%20%20%20%20%3Fbestuur.%0A%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%3FbestuursOrgaan%0A%20%20%20%20%20%20%20%20%20%20mandaat%3AbindingStart%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%3FstartBestuursOrgaan%0A%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%3FbestuursOrgaan%0A%20%20%20%20%20%20%20%20%20%20mandaat%3AbindingEinde%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%3FeindeBestuursOrgaan%0A%20%20%20%20%20%20%7D%0A%0A%20%20%20%20%20%20%3Fbestuur%0A%20%20%20%20%20%20%20%20skos%3AprefLabel%0A%20%20%20%20%20%20%20%20%20%20%3FbestuurNaam.%0A%0A%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%3FbestuursOrgaan%0A%20%20%20%20%20%20%20%20%20%20org%3AhasPost%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Fmandaat%0A%0A%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Fmandataris%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20org%3Aholds%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Fmandaat.%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Fmandataris%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20mandaat%3AisBestuurlijkeAliasVan%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Fperson.%0A%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Fperson%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20foaf%3AgivenName%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FgivenName.%0A%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Fperson%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20foaf%3AfamilyName%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FfamilyName.%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Fmandataris%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mandaat%3Astart%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FstartMandaat%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Fmandataris%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20mandaat%3Aeinde%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FmandaatEinde%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Fmandataris%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ere%3AgeplandeEinddatumAanstelling%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FgeplandMandaatEinde%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Fmandataris%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20ere%3AtypeHelft%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FtypeHelft%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FtypeHelft%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20skos%3AprefLabel%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FtypeHelftName%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Fmandataris%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AcontactPoint%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FcontactPoint.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FcontactPoint%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3AcontactType%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FcontactType.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FcontactPoint%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3Atelephone%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Ftelephone.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FcontactPoint%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20schema%3Aemail%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Femail.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FcontactPoint%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20locn%3Aaddress%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Faddress.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Faddress%20locn%3AfullAddress%20%3FfullAddress.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Faddress%20adres%3AAdresvoorstelling.huisnummer%20%3Fhuisnr.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Faddress%20adres%3AAdresvoorstelling.busnummer%20%3Fbusnr.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Faddress%20locn%3Athoroughfare%20%3Fstreet.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Faddress%20locn%3ApostCode%20%3FpostCode.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Faddress%20adres%3Agemeentenaam%20%3Fgemeente.%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Fmandaat%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20org%3Arole%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Frole.%0A%20%20%20%20%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Frole%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20skos%3AprefLabel%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3FroleName.%0A%20%20%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%20%20%7D%0A%20%20%7D%20ORDER%20BY%20%3FbestuurNaam%0A%20%20%7D%0A%7D%0A%0A&endpoint=%2Fsparql&requestMethod=POST&tabTitle=Query&headers=%7B%7D&contentTypeConstruct=application%2Fn-triples%2C*%2F*%3Bq%3D0.9&contentTypeSelect=application%2Fsparql-results%2Bjson%2C*%2F*%3Bq%3D0.9&outputFormat=tableAc

Total number of worship services per status

Description: Total count for central worship services divided by their status

https://organisaties.abb.vlaanderen.be/sparql#query=PREFIX%20org%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Forg%23%3E%0APREFIX%20locn%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Flocn%23%3E%0APREFIX%20schema%3A%20%3Chttp%3A%2F%2Fschema.org%2F%3E%0APREFIX%20regorg%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fregorg%23%3E%0APREFIX%20person%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fperson%23%3E%0APREFIX%20vcard%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2006%2Fvcard%2Fns%23%3E%0APREFIX%20dbpedia%3A%20%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0APREFIX%20adms%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fadms%23%3E%0APREFIX%20euro%3A%20%3Chttp%3A%2F%2Fdata.europa.eu%2Fm8g%2F%3E%0APREFIX%20prov%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fprov%23%3E%0APREFIX%20organisatie%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Forganisatie%23%3E%0APREFIX%20persoon%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fpersoon%23%3E%0APREFIX%20adres%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fadres%23%3E%0APREFIX%20generiek%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fgeneriek%23%3E%0APREFIX%20mandaat%3A%20%3Chttp%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fmandaat%23%3E%0APREFIX%20besluit%3A%20%3Chttp%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fbesluit%23%3E%0APREFIX%20lblodlg%3A%20%3Chttps%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Fleidinggevenden%2F%3E%0APREFIX%20dc_terms%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0APREFIX%20foaf%3A%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0APREFIX%20skos%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E%0APREFIX%20euvoc%3A%20%3Chttp%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23%3E%0APREFIX%20ere%3A%20%3Chttp%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Ferediensten%2F%3E%0APREFIX%20ch%3A%20%3Chttp%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Fcontacthub%2F%3E%20%20%20%20%0APREFIX%20code%3A%20%3Chttp%3A%2F%2Flblod.data.gift%2Fvocabularies%2Forganisatie%2F%3E%0APREFIX%20ext%3A%20%3Chttp%3A%2F%2Fmu.semte.ch%2Fvocabularies%2Fext%2F%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0A%0ASELECT%20%3FbestuursType%20%3Fstatus%20(COUNT%20(%20DISTINCT%20%3Fbestuur)%20as%20%3Fbestuur)%0AWHERE%20%7B%0A%20%20%3Fbestuur%0A%20%20%20%20a%0A%20%20%20%20%20%20%3FbestuursType.%0A%20%20OPTIONAL%20%7B%20%0A%20%20%20%20%3Fbestuur%20%0A%20%20%20%20%20%20regorg%3AorgStatus%20%0A%20%20%20%20%20%20%20%20%3ForgStatus%0A%20%20%20%20%20%20OPTIONAL%20%7B%20%0A%20%20%20%20%20%20%20%20%3ForgStatus%0A%20%20%20%20%20%20%20%20%20%20skos%3AprefLabel%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Fstatus%0A%20%20%20%20%20%20%7D%0A%20%20%7D%20%0A%20%20FILTER%20(%0A%20%20%20%20%3FbestuursType%20%3D%20%3Chttp%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Ferediensten%2FCentraalBestuurVanDeEredienst%3E%0A%20%20)%20%0A%7D&endpoint=%2Fsparql&requestMethod=POST&tabTitle=Query&headers=%7B%7D&contentTypeConstruct=application%2Fn-triples%2C*%2F*%3Bq%3D0.9&contentTypeSelect=application%2Fsparql-results%2Bjson%2C*%2F*%3Bq%3D0.9&outputFormat=table&outputSettings=%7B%22compact%22%3Afalse%7D

Description: Total count for central worship services divided by their status

https://organisaties.abb.vlaanderen.be/sparql#query=PREFIX%20org%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Forg%23%3E%0APREFIX%20locn%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Flocn%23%3E%0APREFIX%20schema%3A%20%3Chttp%3A%2F%2Fschema.org%2F%3E%0APREFIX%20regorg%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fregorg%23%3E%0APREFIX%20person%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fperson%23%3E%0APREFIX%20vcard%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2006%2Fvcard%2Fns%23%3E%0APREFIX%20dbpedia%3A%20%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0APREFIX%20adms%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fadms%23%3E%0APREFIX%20euro%3A%20%3Chttp%3A%2F%2Fdata.europa.eu%2Fm8g%2F%3E%0APREFIX%20prov%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fprov%23%3E%0APREFIX%20organisatie%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Forganisatie%23%3E%0APREFIX%20persoon%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fpersoon%23%3E%0APREFIX%20adres%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fadres%23%3E%0APREFIX%20generiek%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fgeneriek%23%3E%0APREFIX%20mandaat%3A%20%3Chttp%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fmandaat%23%3E%0APREFIX%20besluit%3A%20%3Chttp%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fbesluit%23%3E%0APREFIX%20lblodlg%3A%20%3Chttps%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Fleidinggevenden%2F%3E%0APREFIX%20dc_terms%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0APREFIX%20foaf%3A%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0APREFIX%20skos%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E%0APREFIX%20euvoc%3A%20%3Chttp%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23%3E%0APREFIX%20ere%3A%20%3Chttp%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Ferediensten%2F%3E%0APREFIX%20ch%3A%20%3Chttp%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Fcontacthub%2F%3E%20%20%20%20%0APREFIX%20code%3A%20%3Chttp%3A%2F%2Flblod.data.gift%2Fvocabularies%2Forganisatie%2F%3E%0APREFIX%20ext%3A%20%3Chttp%3A%2F%2Fmu.semte.ch%2Fvocabularies%2Fext%2F%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0A%0ASELECT%20%3FbestuursType%20%3Fstatus%20(COUNT%20(%20DISTINCT%20%3Fbestuur)%20as%20%3Fbestuur)%0AWHERE%20%7B%0A%20%20%3Fbestuur%0A%20%20%20%20a%0A%20%20%20%20%20%20%3FbestuursType.%0A%20%20OPTIONAL%20%7B%20%0A%20%20%20%20%3Fbestuur%20%0A%20%20%20%20%20%20regorg%3AorgStatus%20%0A%20%20%20%20%20%20%20%20%3ForgStatus%0A%20%20%20%20%20%20OPTIONAL%20%7B%20%0A%20%20%20%20%20%20%20%20%3ForgStatus%0A%20%20%20%20%20%20%20%20%20%20skos%3AprefLabel%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Fstatus%0A%20%20%20%20%20%20%7D%0A%20%20%7D%20%0A%20%20FILTER%20(%0A%20%20%20%20%3FbestuursType%20%3D%20%3Chttp%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Ferediensten%2FBestuurVanDeEredienst%3E%0A%20%20)%20%0A%7D&endpoint=%2Fsparql&requestMethod=POST&tabTitle=Query&headers=%7B%7D&contentTypeConstruct=application%2Fn-triples%2C*%2F*%3Bq%3D0.9&contentTypeSelect=application%2Fsparql-results%2Bjson%2C*%2F*%3Bq%3D0.9&outputFormat=table&outputSettings=%7B%22compact%22%3Afalse%7D

Description: Total count for worship services divided by their status

PREFIX org: <http://www.w3.org/ns/org#>
PREFIX locn: <http://www.w3.org/ns/locn#>
PREFIX schema: <http://schema.org/>
PREFIX regorg: <http://www.w3.org/ns/regorg#>
PREFIX person: <http://www.w3.org/ns/person#>
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
PREFIX dbpedia: <http://dbpedia.org/ontology/>
PREFIX adms: <http://www.w3.org/ns/adms#>
PREFIX euro: <http://data.europa.eu/m8g/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX organisatie: <https://data.vlaanderen.be/ns/organisatie#>
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>
PREFIX adres: <https://data.vlaanderen.be/ns/adres#>
PREFIX generiek: <https://data.vlaanderen.be/ns/generiek#>
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
PREFIX lblodlg: <https://data.lblod.info/vocabularies/leidinggevenden/>
PREFIX dc_terms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX euvoc: <http://publications.europa.eu/ontology/euvoc#>
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>    
PREFIX code: <http://lblod.data.gift/vocabularies/organisatie/>
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?typeEredienst ?provincie (COUNT ( DISTINCT ?bestuur) as ?bestuur)
WHERE {
  ?bestuur
    a
      ?bestuursType.
  OPTIONAL {
    ?bestuur
    ere:typeEredienst
      ?type.
      OPTIONAL {
        ?type
        skos:prefLabel
          ?typeEredienst.
        }
  }
  OPTIONAL { 
    ?bestuur 
      regorg:orgStatus 
        ?orgStatus
      OPTIONAL { 
        ?orgStatus
          skos:prefLabel
            ?status
      }
  } 
  OPTIONAL {
    ?bestuur
      org:hasPrimarySite
        ?primarySite.
     OPTIONAL {
      ?primarySite
        organisatie:bestaatUit
          ?sa.
        OPTIONAL {
          ?sa
            locn:adminUnitL2
              ?provincie.
        }
    }
  }
  FILTER (
    ?bestuursType = <http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst> &&
    ?orgStatus = <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6>
  ) 
}
 

Active besturen per type of worship service per province

Description: A list with the count for types of worship services per province

This query will be used on page: https://lokaalbestuur.vlaanderen.be/erediensten/erkenning/overzicht-erkende-lokale-geloofsgemeenschappen

https://organisaties.abb.vlaanderen.be/sparql#query=PREFIX%20org%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Forg%23%3E%0APREFIX%20locn%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Flocn%23%3E%0APREFIX%20schema%3A%20%3Chttp%3A%2F%2Fschema.org%2F%3E%0APREFIX%20regorg%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fregorg%23%3E%0APREFIX%20person%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fperson%23%3E%0APREFIX%20vcard%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2006%2Fvcard%2Fns%23%3E%0APREFIX%20dbpedia%3A%20%3Chttp%3A%2F%2Fdbpedia.org%2Fontology%2F%3E%0APREFIX%20adms%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fadms%23%3E%0APREFIX%20euro%3A%20%3Chttp%3A%2F%2Fdata.europa.eu%2Fm8g%2F%3E%0APREFIX%20prov%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2Fns%2Fprov%23%3E%0APREFIX%20organisatie%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Forganisatie%23%3E%0APREFIX%20persoon%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fpersoon%23%3E%0APREFIX%20adres%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fadres%23%3E%0APREFIX%20generiek%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fgeneriek%23%3E%0APREFIX%20mandaat%3A%20%3Chttp%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fmandaat%23%3E%0APREFIX%20besluit%3A%20%3Chttp%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fbesluit%23%3E%0APREFIX%20lblodlg%3A%20%3Chttps%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Fleidinggevenden%2F%3E%0APREFIX%20dc_terms%3A%20%3Chttp%3A%2F%2Fpurl.org%2Fdc%2Fterms%2F%3E%0APREFIX%20foaf%3A%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0APREFIX%20skos%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2004%2F02%2Fskos%2Fcore%23%3E%0APREFIX%20euvoc%3A%20%3Chttp%3A%2F%2Fpublications.europa.eu%2Fontology%2Feuvoc%23%3E%0APREFIX%20ere%3A%20%3Chttp%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Ferediensten%2F%3E%0APREFIX%20ch%3A%20%3Chttp%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Fcontacthub%2F%3E%20%20%20%20%0APREFIX%20code%3A%20%3Chttp%3A%2F%2Flblod.data.gift%2Fvocabularies%2Forganisatie%2F%3E%0APREFIX%20ext%3A%20%3Chttp%3A%2F%2Fmu.semte.ch%2Fvocabularies%2Fext%2F%3E%0APREFIX%20rdfs%3A%20%3Chttp%3A%2F%2Fwww.w3.org%2F2000%2F01%2Frdf-schema%23%3E%0A%0ASELECT%20%3FtypeEredienst%20%3Fprovincie%20(COUNT%20(%20DISTINCT%20%3Fbestuur)%20as%20%3Fbestuur)%0AWHERE%20%7B%0A%20%20%3Fbestuur%0A%20%20%20%20a%0A%20%20%20%20%20%20%3FbestuursType.%0A%20%20OPTIONAL%20%7B%0A%20%20%20%20%3Fbestuur%0A%20%20%20%20ere%3AtypeEredienst%0A%20%20%20%20%20%20%3Ftype.%0A%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%3Ftype%0A%20%20%20%20%20%20%20%20skos%3AprefLabel%0A%20%20%20%20%20%20%20%20%20%20%3FtypeEredienst.%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%7D%0A%20%20OPTIONAL%20%7B%20%0A%20%20%20%20%3Fbestuur%20%0A%20%20%20%20%20%20regorg%3AorgStatus%20%0A%20%20%20%20%20%20%20%20%3ForgStatus%0A%20%20%20%20%20%20OPTIONAL%20%7B%20%0A%20%20%20%20%20%20%20%20%3ForgStatus%0A%20%20%20%20%20%20%20%20%20%20skos%3AprefLabel%0A%20%20%20%20%20%20%20%20%20%20%20%20%3Fstatus%0A%20%20%20%20%20%20%7D%0A%20%20%7D%20%0A%20%20OPTIONAL%20%7B%0A%20%20%20%20%3Fbestuur%0A%20%20%20%20%20%20org%3AhasPrimarySite%0A%20%20%20%20%20%20%20%20%3FprimarySite.%0A%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%3FprimarySite%0A%20%20%20%20%20%20%20%20organisatie%3AbestaatUit%0A%20%20%20%20%20%20%20%20%20%20%3Fsa.%0A%20%20%20%20%20%20%20%20OPTIONAL%20%7B%0A%20%20%20%20%20%20%20%20%20%20%3Fsa%0A%20%20%20%20%20%20%20%20%20%20%20%20locn%3AadminUnitL2%0A%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Fprovincie.%0A%20%20%20%20%20%20%20%20%7D%0A%20%20%20%20%7D%0A%20%20%7D%0A%20%20FILTER%20(%0A%20%20%20%20%3FbestuursType%20%3D%20%3Chttp%3A%2F%2Fdata.lblod.info%2Fvocabularies%2Ferediensten%2FBestuurVanDeEredienst%3E%20%26%26%0A%20%20%20%20%3ForgStatus%20%3D%20%3Chttp%3A%2F%2Flblod.data.gift%2Fconcepts%2F63cc561de9188d64ba5840a42ae8f0d6%3E%0A%20%20)%20%0A%7D&endpoint=%2Fsparql&requestMethod=POST&tabTitle=Query&headers=%7B%7D&contentTypeConstruct=application%2Fn-triples%2C*%2F*%3Bq%3D0.9&contentTypeSelect=application%2Fsparql-results%2Bjson%2C*%2F*%3Bq%3D0.9&outputFormat=table&outputSettings=%7B%22compact%22%3Afalse%7D
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX locn: <http://www.w3.org/ns/locn#>
PREFIX schema: <http://schema.org/>
PREFIX regorg: <http://www.w3.org/ns/regorg#>
PREFIX person: <http://www.w3.org/ns/person#>
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
PREFIX dbpedia: <http://dbpedia.org/ontology/>
PREFIX adms: <http://www.w3.org/ns/adms#>
PREFIX euro: <http://data.europa.eu/m8g/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX organisatie: <https://data.vlaanderen.be/ns/organisatie#>
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>
PREFIX adres: <https://data.vlaanderen.be/ns/adres#>
PREFIX generiek: <https://data.vlaanderen.be/ns/generiek#>
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
PREFIX lblodlg: <https://data.lblod.info/vocabularies/leidinggevenden/>
PREFIX dc_terms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX euvoc: <http://publications.europa.eu/ontology/euvoc#>
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>    
PREFIX code: <http://lblod.data.gift/vocabularies/organisatie/>
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?typeEredienst ?provincie (COUNT ( DISTINCT ?bestuur) as ?bestuur)
WHERE {
  ?bestuur
    a
      ?bestuursType.
  OPTIONAL {
    ?bestuur
    ere:typeEredienst
      ?type.
      OPTIONAL {
        ?type
        skos:prefLabel
          ?typeEredienst.
        }
  }
  OPTIONAL { 
    ?bestuur 
      regorg:orgStatus 
        ?orgStatus
      OPTIONAL { 
        ?orgStatus
          skos:prefLabel
            ?status
      }
  } 
  OPTIONAL {
    ?bestuur
      org:hasPrimarySite
        ?primarySite.
     OPTIONAL {
      ?primarySite
        organisatie:bestaatUit
          ?sa.
        OPTIONAL {
          ?sa
            locn:adminUnitL2
              ?provincie.
        }
    }
  }
  FILTER (
    ?bestuursType = <http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst> &&
    ?orgStatus = <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6>
  ) 
}

Leidinggevenden export

```sparql
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
	
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX locn: <http://www.w3.org/ns/locn#>
PREFIX schema: <http://schema.org/>
PREFIX regorg: <http://www.w3.org/ns/regorg#>
PREFIX person: <http://www.w3.org/ns/person#>
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
PREFIX dbpedia: <http://dbpedia.org/ontology/>
PREFIX adms: <http://www.w3.org/ns/adms#>
PREFIX euro: <http://data.europa.eu/m8g/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX organisatie: <https://data.vlaanderen.be/ns/organisatie#>
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>
PREFIX adres: <https://data.vlaanderen.be/ns/adres#>
PREFIX generiek: <https://data.vlaanderen.be/ns/generiek#>
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
PREFIX lblodlg: <http://data.lblod.info/vocabularies/leidinggevenden/>
PREFIX dc_terms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX euvoc: <http://publications.europa.eu/ontology/euvoc#>
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>    
PREFIX code: <http://lblod.data.gift/vocabularies/organisatie/>
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>

SELECT ?author (COUNT(*) as ?count) WHERE {?works dbo:author ?author. }    
Group by ?author
HAVING (COUNT(*) > 3)
ORDER BY DESC (?count)

select distinct 
  ?NaamBestuur
  ?TypeBestuur
  ?Voornaam
  ?Achternaam
  ?Roepnaam
  ?BestuursfunctieOfRol
  ?Status
  ?StartPeriode
  ?EindePeriode
  ?Telefoon
  ?Email
  ?BestuursOrgaan
  ?StartBestuursPeriode
  ?EindeBestuursPeriode
  ?BestuursEenheidURI
  ?cpAddress
  ?cpe
  ?cpt

FROM <http://mu.semte.ch/graphs/administrative-unit>
# FROM <http://mu.semte.ch/graphs/worship-service>
FROM <http://mu.semte.ch/graphs/public>
FROM <http://mu.semte.ch/graphs/shared>
FROM <http://mu.semte.ch/application>

{
  ?BestuursEenheidURI
    ^besluit:bestuurt ?bestuursOrgaanURI .

  OPTIONAL { ?BestuursEenheidURI skos:prefLabel ?NaamBestuur . }
  OPTIONAL { ?BestuursEenheidURI org:classification/skos:prefLabel ?TypeBestuur .  }
  OPTIONAL { ?BestuursEenheidURI besluit:werkingsgebied/rdfs:label ?Werkingsgebied . }
  
  OPTIONAL { ?bestuursOrgaanURI skos:prefLabel ?BestuursOrgaan  . }

  ?bestuursOrgaanInDeTijd
    generiek:isTijdspecialisatieVan ?bestuursOrgaanURI ;
    lblodlg:heeftBestuursfunctie ?position .

  OPTIONAL { ?bestuursOrgaanInDeTijd mandaat:bindingStart ?StartBestuursPeriode . }
  OPTIONAL { ?bestuursOrgaanInDeTijd mandaat:bindingEinde ?EindeBestuursPeriode . }

  OPTIONAL { ?position org:role/skos:prefLabel ?BestuursfunctieOfRol . }

  ?FunctionarisURI
    org:holds ?position;
    mandaat:isBestuurlijkeAliasVan ?persoon .
  
  OPTIONAL { ?FunctionarisURI mandaat:status/skos:prefLabel ?Status . }
  OPTIONAL { ?FunctionarisURI mandaat:start ?StartPeriode . }
  OPTIONAL { ?FunctionarisURI mandaat:einde ?EindePeriode . }


  OPTIONAL { ?persoon foaf:givenName ?Voornaam . }
  OPTIONAL { ?persoon foaf:familyName ?Achternaam . }
  OPTIONAL { ?persoon persoon:gebruikteVoornaam ?Roepnaam . }

  OPTIONAL {
    ?position schema:contactPoint ?cpAddress.
    ?cpAddress locn:address ?address.
    OPTIONAL { ?address locn:thoroughfare ?Straatnaam . }
    OPTIONAL { ?address adres:Adresvoorstelling.huisnummer ?Huisnummer . }
    OPTIONAL { ?address adres:Adresvoorstelling.busnummer ?Busnummer . }
    OPTIONAL { ?address locn:postCode ?Postcode . }
    OPTIONAL { ?address adres:gemeentenaam ?Gemeente . }
    OPTIONAL { ?address adres:land ?Land . }
  }

  OPTIONAL {
    ?position schema:contactPoint ?cpt.
    ?cpt schema:telephone ?Telefoon.
  }

  OPTIONAL {
      ?position schema:contactPoint ?cpe.
      ?cpe schema:email ?Email.
  }
} 
```

Mandatarissen

```sparql
PREFIX adms: <http://www.w3.org/ns/adms#>
PREFIX adres: <https://data.vlaanderen.be/ns/adres#>
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>    
PREFIX code: <http://lblod.data.gift/vocabularies/organisatie/>
PREFIX dbpedia: <http://dbpedia.org/ontology/>
PREFIX dc_terms: <http://purl.org/dc/terms/>
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
PREFIX euro: <http://data.europa.eu/m8g/>
PREFIX euvoc: <http://publications.europa.eu/ontology/euvoc#>
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX generiek: <https://data.vlaanderen.be/ns/generiek#>
PREFIX lblodlg: <https://data.lblod.info/vocabularies/leidinggevenden/>
PREFIX locn: <http://www.w3.org/ns/locn#>
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX organisatie: <https://data.vlaanderen.be/ns/organisatie#>
PREFIX person: <http://www.w3.org/ns/person#>
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX regorg: <http://www.w3.org/ns/regorg#>
PREFIX schema: <http://schema.org/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>

select distinct 
  ?NaamBestuur
  ?TypeBestuur
  ?Voornaam
  ?Achternaam
  ?Roepnaam
  ?BestuursfunctieOfRol
  ?Rangorde
  ?Status
  ?StartPeriode
  ?EindePeriode
  ?BestuursOrgaan
  ?StartBestuursPeriode
  ?EindeBestuursPeriode
  ?Werkingsgebied
  ?Fractie
  ?Beleidsdomein
  ?BestuursEenheidURI
  ?MandatarisURI
FROM <http://mu.semte.ch/graphs/administrative-unit>
# FROM <http://mu.semte.ch/graphs/worship-service>
FROM <http://mu.semte.ch/graphs/public>
FROM <http://mu.semte.ch/graphs/shared>
FROM <http://mu.semte.ch/application>

{
  ?BestuursEenheidURI
    ^besluit:bestuurt ?bestuursOrgaanURI .

  OPTIONAL { ?BestuursEenheidURI skos:prefLabel ?NaamBestuur . }
  OPTIONAL { ?BestuursEenheidURI org:classification/skos:prefLabel ?TypeBestuur .  }
  OPTIONAL { ?BestuursEenheidURI besluit:werkingsgebied/rdfs:label ?Werkingsgebied . }
  
  OPTIONAL { ?bestuursOrgaanURI skos:prefLabel ?BestuursOrgaan  . }

  ?bestuursOrgaanInDeTijd
    generiek:isTijdspecialisatieVan ?bestuursOrgaanURI ;
    org:hasPost ?mandaat .

  OPTIONAL { ?bestuursOrgaanInDeTijd mandaat:bindingStart ?StartBestuursPeriode . }
  OPTIONAL { ?bestuursOrgaanInDeTijd mandaat:bindingEinde ?EindeBestuursPeriode . }

  OPTIONAL { ?mandaat org:role/skos:prefLabel ?BestuursfunctieOfRol . }

  ?MandatarisURI
    org:holds ?mandaat;
    mandaat:isBestuurlijkeAliasVan ?persoon .
  
  OPTIONAL { ?MandatarisURI mandaat:rangorde ?Rangorde . }
  OPTIONAL { ?MandatarisURI mandaat:status/skos:prefLabel ?Status . }
  OPTIONAL { ?MandatarisURI mandaat:start ?StartPeriode . }
  OPTIONAL { ?MandatarisURI mandaat:einde ?EindePeriode . }

  OPTIONAL {
    ?MandatarisURI org:hasMembership/org:organisation ?fractieURI .
    OPTIONAL { ?fractieURI regorg:legalName ?Fractie . }
  }

  OPTIONAL {
    ?MandatarisURI mandaat:beleidsdomein ?beleidsdomeinURI .
    OPTIONAL { ?beleidsdomeinURI skos:prefLabel ?Beleidsdomein . }
  }

  OPTIONAL { ?persoon foaf:givenName ?Voornaam . }
  OPTIONAL { ?persoon foaf:familyName ?Achternaam . }
  OPTIONAL { ?persoon persoon:gebruikteVoornaam ?Roepnaam . }
} ORDER BY  ?NaamBestuur ?TypeBestuur ?StartBestuursPeriode ?StartPeriode ?Achternaam ?Voornaam 
```

Personen

Note that contact info is linked with mandates etc.

```sparql
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX person: <http://www.w3.org/ns/person#>
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>

SELECT DISTINCT ?person ?firstName ?gebruikteVoornaam ?lastName

FROM <http://mu.semte.ch/graphs/administrative-unit>
# FROM <http://mu.semte.ch/graphs/worship-service>

WHERE {
  ?person a person:Person.

  OPTIONAL {
    ?person
      foaf:givenName ?firstName
  }

  OPTIONAL {
    ?person
      foaf:familyName ?lastName
  }

  OPTIONAL {
    ?person
      persoon:gebruikteVoornaam ?gebruikteVoornaam
  }
}
```

Bestuurseenheden

```sparql
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX locn: <http://www.w3.org/ns/locn#>
PREFIX schema: <http://schema.org/>
PREFIX regorg: <http://www.w3.org/ns/regorg#>
PREFIX person: <http://www.w3.org/ns/person#>
PREFIX vcard: <http://www.w3.org/2006/vcard/ns#>
PREFIX dbpedia: <http://dbpedia.org/ontology/>
PREFIX adms: <http://www.w3.org/ns/adms#>
PREFIX euro: <http://data.europa.eu/m8g/>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX organisatie: <https://data.vlaanderen.be/ns/organisatie#>
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>
PREFIX adres: <https://data.vlaanderen.be/ns/adres#>
PREFIX generiek: <https://data.vlaanderen.be/ns/generiek#>
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
PREFIX lblodlg: <https://data.lblod.info/vocabularies/leidinggevenden/>
PREFIX dc_terms: <http://purl.org/dc/terms/>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX euvoc: <http://publications.europa.eu/ontology/euvoc#>
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>    
PREFIX code: <http://lblod.data.gift/vocabularies/organisatie/>
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX geo: <http://www.opengis.net/ont/geosparql#>

SELECT DISTINCT
  ?Bestuurseenheid
  ?Classificatie
  ?Status
  ?KBO_nr
  ?OVO_nr
  ?Sharepoint_id
  ?NIS_code
  ?Regio
  ?Provincie
  ?Straat
  ?Huisnummer
  ?Busnummer
  ?Postcode
  ?Gemeente
  (STR(?GrensoverschrijdendBoolean) AS ?Grensoverschrijdend)
  ?TypeEredienst
  ?BestuurseenheidURI
  
{

  VALUES ?type {
    besluit:Bestuurseenheid
    ere:BestuurVanDeEredienst
    org:Organization
    ere:EredienstBestuurseenheid
    ere:CentraalBestuurVanDeEredienst
  }
  ?BestuurseenheidURI 
    a ?type.
  OPTIONAL { ?BestuurseenheidURI skos:prefLabel ?Bestuurseenheid . }
  OPTIONAL { ?BestuurseenheidURI org:classification/skos:prefLabel ?Classificatie. }
  OPTIONAL {
    ?BestuurseenheidURI besluit:werkingsgebied ?werkingsgebiedURI.
    ?werkingsgebiedURI rdfs:label ?werkingsgebied.
    OPTIONAL {
      ?werkingsgebiedURI geo:sfWithin ?regionURI.
      ?regionURI 
        ext:werkingsgebiedNiveau "Referentieregio"@nl;
        rdfs:label ?Regio.
    }
    OPTIONAL {
      ?werkingsgebiedURI skos:exactMatch ?nisArea.
        ?nisArea skos:inScheme <http://vocab.belgif.be/auth/refnis2019>;
        skos:notation ?NIS_code.
  	}
  }
  OPTIONAL { ?BestuurseenheidURI regorg:orgStatus/skos:prefLabel ?Status. }
  OPTIONAL { ?BestuurseenheidURI ere:typeEredienst ?typeEredienstUri.
    OPTIONAL { ?typeEredienstUri skos:prefLabel ?TypeEredienst. }
  }
  OPTIONAL { ?BestuurseenheidURI ere:grensoverschrijdend ?GrensoverschrijdendBoolean. }
  OPTIONAL { ?BestuurseenheidURI org:hasPrimarySite/organisatie:bestaatUit ?address .
    OPTIONAL { ?address locn:thoroughfare ?Straat }
    OPTIONAL { ?address adres:Adresvoorstelling.huisnummer ?Huisnummer . }
    OPTIONAL { ?address adres:Adresvoorstelling.busnummer ?Busnummer . }
    OPTIONAL { ?address locn:postCode ?Postcode . }
    OPTIONAL { ?address adres:gemeentenaam ?Gemeente . }
    OPTIONAL { ?address locn:adminUnitL2 ?Provincie . }
    OPTIONAL { ?address adres:land ?Land . }
  }
  OPTIONAL {
    ?BestuurseenheidURI adms:identifier ?kbo_identifier .
    ?kbo_identifier
      skos:notation ?kbo_notation;
      generiek:gestructureerdeIdentificator/generiek:lokaleIdentificator ?KBO_nr.
    FILTER (str(?kbo_notation) = "KBO nummer")
  }
  OPTIONAL {
    ?BestuurseenheidURI adms:identifier ?ovo_identifier .
    ?ovo_identifier
      skos:notation ?ovo_notation;
      generiek:gestructureerdeIdentificator/generiek:lokaleIdentificator ?OVO_nr.
    FILTER (str(?ovo_notation) = "OVO-nummer")
  }
  OPTIONAL {
    ?BestuurseenheidURI adms:identifier ?sp_identifier .
    ?sp_identifier
      skos:notation ?sp_notation;
      generiek:gestructureerdeIdentificator/generiek:lokaleIdentificator ?Sharepoint_id.
    FILTER (str(?sp_notation) = "SharePoint identificator")
  }
  OPTIONAL {
    ?changeEvent org:resultingOrganization ?BestuurseenheidURI;
      ch:typeWijziging <http://lblod.data.gift/concepts/e4c3d1ef-a34d-43b0-a18c-f4e60e2c8af3>.
    <http://lblod.data.gift/concepts/e4c3d1ef-a34d-43b0-a18c-f4e60e2c8af3> skos:prefLabel ?stadsTitel
  }
} ORDER BY DESC(?Classificatie) ?Bestuurseenheid
```

Data quality sparql queries

Anomalies in names (first, last and alias/roepnaam)

Finds all persons with:

  • Empty names "" or names which are only one character long

  • Characters which contain characters other than:

    • letters (including accents)

    • dash -

  • Do not start with an uppercase latin character (incl accents)

  • Do not end with a lowercase latin character

  • first name == roepnaam

  • last name == roepnaam

  • first name == last name

Note that in the sparql web interface it's sometime difficult to see that names start or end with a whitespace (common anomaly)

Limitations

  • Not all anomalies are necesarily wrong. e.g. ' in a name is shown as an anomaly, but is correct in some cases. Some last names start with a lowercase letter.

  • Typos in names are not detected

https://organisaties.abb.vlaanderen.be/sparql#query=PREFIX%20foaf%3A%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2F%3E%0APREFIX%20persoon%3A%20%3Chttps%3A%2F%2Fdata.vlaanderen.be%2Fns%2Fpersoon%23%3E%0A%0ASELECT%20DISTINCT%20%3Fperson%20%3Fvoornaam%20%3Froepnaam%20%3Ffamilienaam%20%7B%0A%20%20%3Fperson%0A%20%20%20%20foaf%3AgivenName%20%3Fvoornaam%3B%0A%20%20%20%20foaf%3AfamilyName%20%3Ffamilienaam.%0A%0A%20%20OPTIONAL%20%7B%0A%20%20%20%20%3Fperson%20persoon%3AgebruikteVoornaam%20%3Froepnaam.%0A%20%20%7D%0A%0A%20%20FILTER(%0A%20%20%20%20strlen(%3Fvoornaam)%20%3C%202%20%7C%7C%0A%20%20%20%20regex(%3Fvoornaam%2C%20%22%5B%5Ea-zA-Z%5C%5Cs-%5C%5CxC0-%5C%5CxFF%5D%22)%20%7C%7C%0A%20%20%20%20regex(%3Fvoornaam%2C%20%22%5E%5B%5EA-Z%C3%96%C3%9C%5C%5CxC0-%5C%5CxDE%5D.%22)%20%7C%7C%0A%20%20%20%20regex(%3Fvoornaam%2C%20%22.%5B%5Ea-z%C3%A9%C3%A8%C3%AB%5C%5CxE0-%5C%5CxFF%5D%24%22)%20%7C%7C%20%0A%20%20%20%20strlen(%3Ffamilienaam)%20%3C%202%20%7C%7C%0A%20%20%20%20regex(%3Ffamilienaam%2C%20%22%5B%5Ea-zA-Z%5C%5Cs-%5C%5CxC0-%5C%5CxFF%5D%22)%20%7C%7C%0A%20%20%20%20regex(%3Ffamilienaam%2C%20%22%5E%5B%5EA-Z%C3%96%C3%9C%5C%5CxC0-%5C%5CxDE%5D.%22)%20%7C%7C%0A%20%20%20%20regex(%3Ffamilienaam%2C%20%22.%5B%5Ea-z%C3%A9%C3%A8%C3%AB%5C%5CxE0-%5C%5CxFF%5D%24%22)%20%20%7C%7C%0A%20%20%20%20strlen(%3Froepnaam)%20%3C%202%20%7C%7C%0A%20%20%20%20regex(%3Froepnaam%2C%20%22%5B%5Ea-zA-Z%5C%5Cs-%5C%5CxC0-%5C%5CxFF%5D%22)%20%7C%7C%0A%20%20%20%20regex(%3Froepnaam%2C%20%22%5E%5B%5EA-Z%C3%96%C3%9C%5C%5CxC0-%5C%5CxDE%5D.%22)%20%7C%7C%0A%20%20%20%20regex(%3Froepnaam%2C%20%22.%5B%5Ea-z%C3%A9%C3%A8%C3%AB%5C%5CxE0-%5C%5CxFF%5D%24%22)%20%7C%7C%0A%20%20%20%20lcase(%3Fvoornaam)%20%3D%20lcase(%3Froepnaam)%20%7C%7C%0A%20%20%20%20lcase(%3Fvoornaam)%20%3D%20lcase(%3Ffamilienaam)%20%7C%7C%20%0A%20%20%20%20lcase(%3Froepnaam)%20%3D%20lcase(%3Ffamilienaam)%0A%20%20)%0A%7D&endpoint=%2Fsparql&requestMethod=POST&tabTitle=Query&headers=%7B%7D&contentTypeConstruct=application%2Fn-triples%2C*%2F*%3Bq%3D0.9&contentTypeSelect=application%2Fsparql-results%2Bjson%2C*%2F*%3Bq%3D0.9&outputFormat=table

PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>

SELECT DISTINCT ?person ?voornaam ?roepnaam ?familienaam {
  ?person
    foaf:givenName ?voornaam;
    foaf:familyName ?familienaam.

  OPTIONAL {
    ?person persoon:gebruikteVoornaam ?roepnaam.
  }

  FILTER(
    strlen(?voornaam) < 2 ||
    regex(?voornaam, "[^a-zA-Z\\s-\\xC0-\\xFF]") ||
    regex(?voornaam, "^[^A-ZÖÜ\\xC0-\\xDE].*") ||
    regex(?voornaam, ".*[^a-zéèë\\xE0-\\xFF]$") || 
    strlen(?familienaam) < 2 ||
    regex(?familienaam, "[^a-zA-Z\\s-\\xC0-\\xFF]") ||
    regex(?familienaam, "^[^A-ZÖÜ\\xC0-\\xDE].*") ||
    regex(?familienaam, ".*[^a-zéèë\\xE0-\\xFF]$")  ||
    strlen(?roepnaam) < 2 ||
    regex(?roepnaam, "[^a-zA-Z\\s-\\xC0-\\xFF]") ||
    regex(?roepnaam, "^[^A-ZÖÜ\\xC0-\\xDE].*") ||
    regex(?roepnaam, ".*[^a-zéèë\\xE0-\\xFF]$") ||
    lcase(?voornaam) = lcase(?roepnaam) ||
    lcase(?voornaam) = lcase(?familienaam) || 
    lcase(?roepnaam) = lcase(?familienaam)
  )
}

I (Boris) get an error when trying to add the above url as an url/link

Participants of administrative units

In function of a parlaimentary question for data export (https://binnenland.atlassian.net/browse/OP-3132) 2 queries were made.

1. Get a count of all participants for Municipalities and OCMW's

First question was to get a table that showed a count of all the participants for municipalities and OCMW's of the following types:

  • Projectvereniging

  • dienstverlenende vereniging

  • opdrachthoudende vereniging

  • opdrachthoudende vereniging met private deelname

PREFIX org: <http://www.w3.org/ns/org#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX organisatie: <https://data.vlaanderen.be/ns/organisatie#>
PREFIX regorg: <http://www.w3.org/ns/regorg#>
PREFIX locn: <http://www.w3.org/ns/locn#>

SELECT DISTINCT ?name ?type (COUNT(DISTINCT ?participantIn) AS ?partsCount) ?province
WHERE {
  GRAPH ?g {
    ?bestuur org:classification ?class ;
      skos:prefLabel ?name .
  }
  VALUES ?g {
    <http://mu.semte.ch/graphs/administrative-unit>
    <http://mu.semte.ch/graphs/shared>
  }
  GRAPH <http://mu.semte.ch/graphs/public> {
    ?class skos:prefLabel ?type .
  }
  VALUES ?class {
    <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001> 
    <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000002> 
  }
  GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
    ?bestuur regorg:orgStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> ;
      org:hasPrimarySite ?primarySite .
    ?primarySite organisatie:bestaatUit ?address .
      ?address locn:adminUnitL2 ?province .

     ?bestuur org:memberOf ?participantIn .
      ?participantIn regorg:orgStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> ; 
        org:classification ?classPart .
  }
  VALUES ?classPart {
    <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/b156b67f-c5f4-4584-9b30-4c090be02fdc> 
    <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/d01bb1f6-2439-4e33-9c25-1fc295de2e71> 
    <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/cd93f147-3ece-4308-acab-5c5ada3ec63d> 
    <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/4b8450cf-a326-4c66-9e63-b4ec10acc7f6> 
  }
} ORDER BY ?province ?name ?type

2. Get all the participants details

the second question was to get the participants and their details that were counted in the first question.

PREFIX org: <http://www.w3.org/ns/org#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX adms: <http://www.w3.org/ns/adms#>
PREFIX generiek: <https://data.vlaanderen.be/ns/generiek#>
PREFIX organisatie: <https://data.vlaanderen.be/ns/organisatie#>
PREFIX adres: <https://data.vlaanderen.be/ns/adres#>
PREFIX regorg: <http://www.w3.org/ns/regorg#>

SELECT DISTINCT ?type ?name ?kbo ?municipality ?website ?participantType ?participantName
WHERE {
  GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
    ?unit org:classification ?class ;
      regorg:orgStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> ; 
      skos:prefLabel ?name ;
      adms:identifier ?identifier .

    ?identifier generiek:gestructureerdeIdentificator ?structuredIdentifier ;
      skos:notation ?kboNotation .
    FILTER (?kboNotation IN ("KBO nummer"@nl, "KBO nummer"))
    ?structuredIdentifier generiek:lokaleIdentificator ?kbo .

    ?unit org:hasPrimarySite ?site .
    ?site organisatie:bestaatUit ?address .
    ?address adres:gemeentenaam ?municipality .
    OPTIONAL {
      # Not all relevant units have a website set
      ?site org:siteAddress ?contactPoint .
      ?contactPoint foaf:page ?website .
    }

    ?participant org:memberOf ?unit ;
      regorg:orgStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> . 
  }
  GRAPH ?participantGraphs {
    ?participant skos:prefLabel ?participantName ;
      org:classification ?participantClass .
  }
  GRAPH <http://mu.semte.ch/graphs/public> {
    ?class skos:prefLabel ?type .
    ?participantClass skos:prefLabel ?participantType .
  }
  VALUES ?class {
    <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/b156b67f-c5f4-4584-9b30-4c090be02fdc>
    <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/d01bb1f6-2439-4e33-9c25-1fc295de2e71>
    <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/cd93f147-3ece-4308-acab-5c5ada3ec63d>
    <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/4b8450cf-a326-4c66-9e63-b4ec10acc7f6>
  }
  VALUES ?participantGraphs {
    <http://mu.semte.ch/graphs/administrative-unit>
    <http://mu.semte.ch/graphs/shared>
  }
} ORDER BY ?type ?name ?participantType ?participantName

Last updated