Compare commits

...

123 Commits

Author SHA1 Message Date
mirdono
5b3b68b3c7 Added migration to combine merger change events 2024-02-08 16:24:09 +01:00
Nordine Bittich
a093ecb309 fix missing resulting org & betrokke (#369) (#376) 2024-02-08 16:07:40 +01:00
Claire Lovisa
518db8fb3f Bump frontend 2023-12-19 17:00:30 +01:00
mirdono
9c322a2fab Bump frontend version 2023-12-14 14:24:15 +01:00
Claire Lovisa
76a0715df3 Add purpose and expected end date to producer (#361) 2023-12-14 11:04:00 +01:00
Claire Lovisa
17f7c04065 Import contact data from sharepoint (#360) 2023-12-12 16:31:26 +01:00
Claire Lovisa
6429ae4ab8 Fix file graph for organizations public info dumps 2023-12-12 11:15:25 +01:00
Alexander van den Berghe
c93bfa6a2e Merge pull request #359 from lblod/fix/delete-change-event
Fix: delete unnecessary change event
2023-12-11 12:57:03 +00:00
mirdono
6d790078a3 Also delete the decision related to the change event 2023-12-11 12:10:30 +01:00
mirdono
cdf17e128b Fix: delete unnecessary change event 2023-12-08 20:09:42 +01:00
Dachamelemon
51c2476562 Merge pull request #358 from lblod/fix/reasoner-phone-number-rule
Fix/reasoner phone number rule
2023-12-07 16:23:09 +01:00
Elias Papanikitas
fbde10887b cleaned up code 2023-12-07 13:35:47 +01:00
Elias Papanikitas
b9263514b2 updated to handle more number correctly 2023-12-07 13:09:31 +01:00
Alexander van den Berghe
7bcc9f09ee Merge pull request #357 from lblod/chore/bump-construct-administrative-unit-relationships-service
Bump construct-administrative-unit-relationships-service
2023-12-07 09:49:52 +00:00
mirdono
8c2cd9c959 Chore: bumped construct-administrative-unit-relationships-service to v0.1.6 2023-12-07 10:43:00 +01:00
Claire Lovisa
ddb13e210d Fix relative file path of producer 2023-12-06 14:50:57 +01:00
Claire Lovisa
79d2dda77a Add publication triplestore and organizations public info producer (#356) 2023-12-06 14:09:38 +01:00
Dachamelemon
2a66359ebd Merge pull request #354 from lblod/fix/migratin-name-typo-fix
fixed typo
2023-12-04 17:33:00 +01:00
Elias Papanikitas
7cbf418fcc fixed typo 2023-12-04 16:36:36 +01:00
Dachamelemon
7eb7a50e41 Merge pull request #349 from lblod/feat/phone-number-format-migration
Feat/phone number format migration
2023-12-04 14:49:14 +01:00
Claire Lovisa
562f463af3 Add missing rule for contact point of leidinggevenden 2023-12-04 11:51:52 +01:00
Claire Lovisa
771ac03c13 Merge branch 'development' into feat/phone-number-format-migration 2023-12-04 10:40:12 +01:00
Claire Lovisa
bf425b7dbb Bump reasoner service 2023-12-04 10:24:35 +01:00
Claire Lovisa
4dfe1953a7 Bump reasoner service 2023-12-04 09:34:07 +01:00
Elias Papanikitas
d5c6a3f666 added rules to maininfo 2023-11-30 18:36:54 +01:00
Elias Papanikitas
a944075616 updated prefixes 2023-11-30 18:30:48 +01:00
Elias Papanikitas
78baadce4f changed :s to ?s 2023-11-30 13:42:39 +01:00
Claire Lovisa
d34e28ec0e Add report generation service + orgs report (#331)
* Add report generation service + orgs report

* Adapt configuration

* Add download-exports service to the stack

* Update gitignore

* Bump report generation service

* Remove unnecessary import

* Add dispatcher rule for download exports
2023-11-30 13:18:50 +01:00
Elias Papanikitas
4e8af93f23 reasoner changes 2023-11-30 11:43:07 +01:00
Elias Papanikitas
122b51ad0e migration check 2023-11-30 11:12:02 +01:00
Elias Papanikitas
672b4bce6a reasoner buf fixed 2023-11-30 10:49:47 +01:00
Elias Papanikitas
674f27bff8 saving progress for pr review 2023-11-29 09:57:47 +01:00
Claire Lovisa
a462b53d06 Bump op-sync-with-sharepoint-service 2023-11-28 19:22:55 +01:00
Claire Lovisa
2fd9ce3774 Sync with Sharepoint list Organisaties (#304)
* Set up deltas for sync with sharepoint

* add service

* add dev environment variables

* Extract config to the stack

* Adjust the config and mappings

* Filter out worship services

* Add contacten sp list service

* Add configuration for contact list

* Add config files for contacten sync

* Wire sharepoint sync on main graph instead of producer

* Add env variables

* Add op sync initiator

* Minor updates

* Improve config, add job controller rules and more

* Adjust rules

* Remove unused producer changes

* Don't restart initiator on dev setup

* Sync OP status to a dedicated column

* Add ABB_ID and split bus and house numbers

* Remove config file we will not use

* Add NIS and secondary phone number, rename columns

* Remove isInitialMatchingMapping, not used anymore

* Match on URI instead of UUID

* Adapt field names to new lists

* Specify matching field in config

* Set version of op-sync-with-sharepoint

---------

Co-authored-by: Nordine Bittich <nordine@bittich.be>
2023-11-28 16:49:58 +01:00
Alexander van den Berghe
1324cd4e58 Merge pull request #350 from lblod/refactor/model-agent-person-organization
Refactor: Introduce generic Agent resource
2023-11-27 15:52:15 +00:00
Claire Lovisa
a114380a6b Update main-info config so that added types can flow over 2023-11-27 15:40:35 +01:00
Claire Lovisa
00ca7aded0 Add missing prefix 2023-11-27 15:40:10 +01:00
mirdono
cc1aa08b36 Put general rule below specific ones 2023-11-27 10:59:36 +01:00
mirdono
90012767a2 Added agent-in-position and agent rules to main-info 2023-11-27 10:59:04 +01:00
mirdono
3259a80083 Added rule to add AgentInPositie and Agent types for mandatories 2023-11-27 10:19:29 +01:00
Claire Lovisa
51c1889a7f Fix dev mandatarissen without persons (#353)
* Fix dev mandatarissen without persons

* Extend migration to mandatarissen without type

Fortunately they all seemed to have a start date, so I used this
predicate to get all the mandatarissen without a type and delete them.
2023-11-27 07:31:49 +01:00
Claire Lovisa
67bedc108c Remove mandataris without person (#352) 2023-11-25 20:50:45 +01:00
Claire Lovisa
b1d5a374f2 Fix typo in migration name 2023-11-24 23:03:19 +01:00
mirdono
f295f10d00 Added rules to add Agent and AgentInPosition types 2023-11-24 14:01:58 +01:00
mirdono
90f8e4b5d1 Added migration to ensure mandatories are also agents-in-position and agents 2023-11-23 16:34:35 +01:00
mirdono
9a3c0b3dbc Added migration to make functionaries agents-in-position and agent 2023-11-23 16:09:18 +01:00
Dachamelemon
7d93978327 Merge pull request #351 from lblod/fix/typo-bedienaarsfinancieringcode-migration
fixed typo
2023-11-23 10:57:09 +01:00
Elias Papanikitas
89f6c5dc7b limited graphs, corrected migration name 2023-11-23 10:36:02 +01:00
Elias Papanikitas
45b145847a fixed typo 2023-11-22 11:37:24 +01:00
Elias Papanikitas
866cff52cc fixed weird + issue 2023-11-21 11:09:07 +01:00
mirdono
a23c817256 Fix: added missing relation 2023-11-20 14:49:47 +01:00
Elias Papanikitas
30f4341e01 fixnig remarks 2023-11-20 11:03:31 +01:00
mirdono
118c78ce97 Added migrations to introduce Agent type for people, organisations, and agents-in-position 2023-11-20 10:24:47 +01:00
mirdono
de9f2f19c1 Added new Agent resource 2023-11-20 10:20:28 +01:00
mirdono
375865e548 Renamed Agent/Agents to Functionary/Functionaries 2023-11-20 08:59:08 +01:00
Elias Papanikitas
57e09e9b47 migration OK 2023-11-17 11:41:06 +01:00
Elias Papanikitas
f120638741 phone number migration OP-1464 2023-11-17 09:54:53 +01:00
Claire Lovisa
7c96be523c Bump frontend 2023-11-14 16:50:28 +01:00
Claire Lovisa
848d3b893d Propagate contact info to pz secondary sites (#348) 2023-11-10 10:03:01 +01:00
Claire Lovisa
4443e7de5f Bump frontend 2023-11-08 16:07:07 +01:00
Claire Lovisa
7128591a49 Add contact info PZ & HVZ (#347) 2023-11-08 15:35:53 +01:00
Claire Lovisa
d19464ce36 Fix vast bureau concept data (#346) 2023-11-08 11:02:17 +01:00
Claire Lovisa
42cb016c47 Bump frontend 2023-10-31 14:04:33 +01:00
Claire Lovisa
bd9058d186 Merge branch 'development' 2023-10-31 14:04:07 +01:00
Claire Lovisa
fcbe6c60be Add hoofdcommissariaat addresses to PZ (#345) 2023-10-31 10:03:35 +01:00
Claire Lovisa
d0238045bd Primary sites and related organizations of Politiezones and Hulpverleningszones (#344)
* Add primary sites of PZ and HVZ

* Add related organizations of PZ and HVZ
2023-10-30 16:04:25 +01:00
Nordine Bittich
3f37d7ebbc Feature/non admin units (#342) 2023-10-30 09:05:06 +01:00
Claire Lovisa
ada7193f73 Add new site type hoofdcommissariaat (#343) 2023-10-26 11:02:21 +02:00
Claire Lovisa
ad20c5efb2 Remove empty administrative units (#341) 2023-10-20 15:17:15 +02:00
Claire Lovisa
36e638c262 Reorganize migrations 2023-10-10 13:30:32 +02:00
Alexander van den Berghe
1902b4b9e4 Merge pull request #340 from lblod/fix/identifier-index
Fix: add an alphanumeric only index field for identifiers
2023-10-09 11:07:32 +00:00
Alexander van den Berghe
81963cb4c8 Fix: add an alphanumeric only index field for identifiers 2023-10-06 19:27:21 +02:00
Claire Lovisa
60b9459854 Set up auto sync of OVO numbers (#333)
* Add delta rules

* Remove delta rules

We need to use a direct endpoint to trigger the update instead of the
deltas to be able to see in the frontend the direct result of our change

* Add dispatching rule to sync ovo service

* Add released sync-ovo-number service
2023-10-06 11:31:40 +02:00
Claire Lovisa
c35b3c6c3a Import PZ & HVZ basic data (#339) 2023-10-06 10:51:08 +02:00
Claire Lovisa
ef50e761f8 Bump privacy service 2023-10-05 19:03:29 +02:00
Alexander van den Berghe
b4804f1ef3 Merge pull request #338 from lblod/bump-mu-search
Bumped mu-search version to 0.9.1
2023-10-05 11:53:48 +00:00
Alexander van den Berghe
f6cc456483 Bumped mu-search version to 0.9.1 2023-10-05 12:32:24 +02:00
Alexander van den Berghe
8494a22621 Merge pull request #337 from lblod/feature/index-unit-identifiers
Feature: index identifiers for administrative units
2023-10-05 07:59:57 +00:00
Alexander van den Berghe
0265b73a27 Index identifiers for administrative units 2023-10-04 10:32:06 +02:00
Dachamelemon
281e7fcfe0 Merge pull request #335 from lblod/feature/abp-ovo-number-migration
Insert missing ovo numbers of APBs
2023-10-02 09:46:31 +02:00
Elias Papanikitas
76bbfb9300 feature: insert missing ovo numbers for every item found in wegwijs #REF: OP-2633 2023-09-26 09:25:04 +02:00
Aad Versteden
4b3ee6ef58 chore: bump mu-identifier (#334)
Bumps runtime and more aggressive header clearing for requests.
2023-09-25 10:02:44 +02:00
Claire Lovisa
c5699d6bf5 Merge branch 'master' into development 2023-09-19 18:19:22 +02:00
Claire Lovisa
ad8f2620da Bump frontend 2023-09-19 18:14:12 +02:00
Claire Lovisa
7e37be687b Onboarding PZ/HPZ - frontend compatibility changes (#330)
* Bump construct-administrative-unit-relationships

* Add change event
2023-09-18 16:51:31 +02:00
Claire Lovisa
2644c38743 Bump frontend 2023-09-14 13:43:19 +02:00
Claire Lovisa
cd2f4192d0 Fix related orgs igs migration (#329) 2023-09-14 10:15:08 +02:00
Claire Lovisa
aac58980d8 Add related municipalities of IGS (#328) 2023-09-13 15:35:45 +02:00
Claire Lovisa
b89fcc548c Add AGBs and APBs related organizations (#319) 2023-09-13 11:25:30 +02:00
Oscar Rodriguez Villalobos
190374cdcf Import igs contact data (#327) 2023-09-13 11:16:48 +02:00
Claire Lovisa
6b02956eb2 Remove wrong classification from IGS IW (#326) 2023-09-13 11:16:21 +02:00
Claire Lovisa
501973c4cf Merge pull request #320 from lblod/feature/add-related-orgs-igs
Add IGS related organizations
2023-09-13 11:16:06 +02:00
Claire Lovisa
075bde44af Merge pull request #325 from lblod/chore/missing-restart-always
Add missing restart statements
2023-09-12 12:38:47 +02:00
Claire Lovisa
328fcc5511 Add missing restart statements 2023-09-12 11:14:22 +02:00
Claire Lovisa
537274c6c0 Merge branch 'master' into development 2023-09-11 11:42:23 +02:00
Boris De Vloed
db769f80a6 cleanup leidinggevenden 2023-09-11 11:40:48 +02:00
Claire Lovisa
a732d788b7 Merge pull request #318 from lblod/fix/clear-leidinggevenden-outdated-data
cleanup leidinggevenden
2023-09-11 11:39:29 +02:00
Claire Lovisa
f9ebd17d17 Merge branch 'master' into development 2023-09-08 11:17:39 +02:00
Claire Lovisa
29bd4c9d56 Merge pull request #324 from lblod/hotfix/duplicated-primary-sites
Fix duplicated primary sites
2023-09-08 11:15:53 +02:00
Claire Lovisa
2587ba6daf Fix double sites in the data 2023-09-07 13:42:57 +02:00
Claire Lovisa
4070bde4ab Bump frontend 2023-09-07 13:41:55 +02:00
Oscar Rodriguez Villalobos
ffceadc491 Merge pull request #323 from lblod/feat/import-igs-addresses
Add migration to import igs address
2023-09-07 13:36:50 +02:00
Oscar Rodriguez Villalobos
be7625a31e Add migration to import igs address 2023-09-07 11:53:57 +02:00
Claire Lovisa
6b7672df9f Add IGS related organizations 2023-08-29 17:42:54 +02:00
Claire Lovisa
b1c2f12c71 Generate functies for new agbs and apbs (#317) 2023-08-28 12:47:33 +02:00
Oscar Rodriguez Villalobos
6895f75b2b Merge pull request #316 from lblod/feature/import-igs
add migration to import igs from csv
2023-08-28 12:21:56 +02:00
Oscar
7ccdbad0f1 fixed migrations 2023-08-28 11:25:08 +02:00
Boris De Vloed
a5a94769a7 cleanup leidinggevenden 2023-08-25 16:27:14 +02:00
Oscar
bed834e9b9 fixed migration and add bestuursorgaan 2023-08-24 10:48:56 +02:00
Oscar
5ebb1d3f03 add migration to import igs from csv 2023-08-16 15:40:48 +02:00
Nordine Bittich
20c240d481 bump frontend 2023-08-14 19:39:17 +02:00
Claire Lovisa
913fd54da3 Import contact info of AGBs and APBs (#315) 2023-08-04 11:01:15 +02:00
Claire Lovisa
89572728bc Merge branch 'master' into development 2023-08-02 10:05:23 +02:00
Claire Lovisa
b015497d93 Merge pull request #313 from lblod/feature/onboarding-igs
Onboarding igs
2023-08-01 14:47:59 +02:00
Claire Lovisa
4416d35de1 Merge pull request #300 from lblod/feature/import-igs-leidinggevenden
Add IGS positions to the sync
2023-07-18 10:58:54 +02:00
Claire Lovisa
337e3fec87 Add IGS positions to the sync 2023-07-12 15:47:24 +02:00
Claire Lovisa
ea03febb98 Merge branch 'development' into feature/onboarding-igs 2023-07-07 16:37:12 +02:00
Boris De Vloed
a340f1c175 Merge pull request #298 from lblod/feature/onboarding-igs-domain
added domain.json
2023-07-07 08:59:43 +02:00
Boris De Vloed
4ac08f9bb3 fixed typo 2023-07-07 06:56:41 +00:00
Boris De Vloed
346c1d129b added domain.json 2023-07-06 13:18:25 +00:00
Oscar Rodriguez Villalobos
88e54265b0 Merge pull request #295 from lblod/feature/add-new-classification-code
Add new classification code for "Opdrachthoudende vereniging met private deelname"
2023-07-06 13:46:52 +02:00
Claire Lovisa
f14debcc45 Add migration importing existing IGS data from Loket (#296) 2023-07-06 13:37:35 +02:00
Oscar
2c29edb363 Add new classification code for "Opdrachthoudende vereniging met private deelname" 2023-07-04 11:32:52 +02:00
82 changed files with 75442 additions and 129 deletions

1
.gitignore vendored
View File

@@ -5,6 +5,7 @@
!/data/db/toLoad
!/data/db/toLoad/*
/data/files/*
!/data/files/exports/.gitkeep
/data/temp/*
docker-compose.override.yml
.idea

View File

@@ -43,7 +43,7 @@ defmodule Acl.UserGroups.Config do
"http://lblod.data.gift/vocabularies/organisatie/BestuurseenheidClassificatieCode",
"http://lblod.data.gift/vocabularies/organisatie/TypeEredienst",
"http://www.w3.org/2004/02/skos/core#ConceptScheme",
"http://lblod.data.gift/vocabularies/organisatie/BedienaarFinanceringCode",
"http://lblod.data.gift/vocabularies/organisatie/BedienaarFinancieringCode",
"http://www.w3.org/2004/02/skos/core#Concept",
"http://publications.europa.eu/ontology/euvoc#Country",
"http://lblod.data.gift/vocabularies/organisatie/TypeVestiging",
@@ -57,6 +57,7 @@ defmodule Acl.UserGroups.Config do
]
@org_type [
"http://purl.org/dc/terms/Agent",
"http://www.w3.org/ns/org#Organization",
"http://data.vlaanderen.be/ns/besluit#Besluit",
"https://data.vlaanderen.be/ns/besluitvorming#Beslissingsactiviteit",

View File

@@ -3,6 +3,7 @@
"dcatDataSetSubject": "http://data.lblod.info/datasets/delta-producer/dumps/OrganizationsCacheGraphDump",
"targetGraph": "http://redpencil.data.gift/id/deltas/producer/organizations",
"fileBaseName": "dump-organizations",
"publicationGraphEndpoint": "http://triplestore:8890/sparql",
"targetDcatGraph": "http://redpencil.data.gift/id/deltas/producer/organizations-deltas",
"targetFilesGraph": "http://redpencil.data.gift/id/deltas/producer/organizations-deltas",
"cleanupOldDumps": true
@@ -11,14 +12,34 @@
"dcatDataSetSubject": "http://data.lblod.info/datasets/delta-producer/dumps/OrganizationsCacheGraphDump",
"targetGraph": "http://redpencil.data.gift/id/deltas/producer/organizations",
"fileBaseName": "dump-organizations",
"publicationGraphEndpoint": "http://triplestore:8890/sparql",
"targetDcatGraph": "http://redpencil.data.gift/id/deltas/producer/organizations-deltas",
"targetFilesGraph": "http://redpencil.data.gift/id/deltas/producer/organizations-deltas",
"cleanupOldDumps": true
},
"http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/deltaDumpFileCreation/organizations-public-info": {
"dcatDataSetSubject": "http://data.lblod.info/datasets/delta-producer/dumps/OrganizationsPublicInfoCacheGraphDump",
"targetGraph": "http://redpencil.data.gift/id/deltas/producer/organizations-public-info",
"fileBaseName": "dump-organizations-public-info",
"publicationGraphEndpoint": "http://publication-triplestore:8890/sparql",
"targetDcatGraph": "http://mu.semte.ch/graphs/public",
"targetFilesGraph": "http://mu.semte.ch/graphs/public",
"cleanupOldDumps": true
},
"http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/initialPublicationGraphSyncing/organizations-public-info": {
"dcatDataSetSubject": "http://data.lblod.info/datasets/delta-producer/dumps/OrganizationsPublicInfoCacheGraphDump",
"targetGraph": "http://redpencil.data.gift/id/deltas/producer/organizations-public-info",
"fileBaseName": "dump-organizations-public-info",
"publicationGraphEndpoint": "http://publication-triplestore:8890/sparql",
"targetDcatGraph": "http://mu.semte.ch/graphs/public",
"targetFilesGraph": "http://mu.semte.ch/graphs/public",
"cleanupOldDumps": true
},
"http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/deltaDumpFileCreation/public": {
"dcatDataSetSubject": "http://data.lblod.info/datasets/delta-producer/dumps/PublicCacheGraphDump",
"targetGraph": "http://redpencil.data.gift/id/deltas/producer/public",
"fileBaseName": "dump-public",
"publicationGraphEndpoint": "http://triplestore:8890/sparql",
"targetDcatGraph": "http://mu.semte.ch/graphs/public",
"targetFilesGraph": "http://mu.semte.ch/graphs/public",
"cleanupOldDumps": true
@@ -27,6 +48,7 @@
"dcatDataSetSubject": "http://data.lblod.info/datasets/delta-producer/dumps/PublicCacheGraphDump",
"targetGraph": "http://redpencil.data.gift/id/deltas/producer/public",
"fileBaseName": "dump-public",
"publicationGraphEndpoint": "http://triplestore:8890/sparql",
"targetDcatGraph": "http://mu.semte.ch/graphs/public",
"targetFilesGraph": "http://mu.semte.ch/graphs/public",
"cleanupOldDumps": true
@@ -35,6 +57,7 @@
"dcatDataSetSubject": "http://data.lblod.info/datasets/delta-producer/dumps/WorshipPostsCacheGraphDump",
"targetGraph": "http://redpencil.data.gift/id/deltas/producer/worship-posts",
"fileBaseName": "dump-worship-posts",
"publicationGraphEndpoint": "http://triplestore:8890/sparql",
"targetDcatGraph": "http://mu.semte.ch/graphs/public",
"targetFilesGraph": "http://mu.semte.ch/graphs/public",
"cleanupOldDumps": true
@@ -43,6 +66,7 @@
"dcatDataSetSubject": "http://data.lblod.info/datasets/delta-producer/dumps/WorshipPostsCacheGraphDump",
"targetGraph": "http://redpencil.data.gift/id/deltas/producer/worship-posts",
"fileBaseName": "dump-worship-posts",
"publicationGraphEndpoint": "http://triplestore:8890/sparql",
"targetDcatGraph": "http://mu.semte.ch/graphs/public",
"targetFilesGraph": "http://mu.semte.ch/graphs/public",
"cleanupOldDumps": true

View File

@@ -0,0 +1,351 @@
{
"export": [
{
"type": "http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst",
"strictTypeExport": "true",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/worship-service"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/2004/02/skos/core#prefLabel",
"http://www.w3.org/2004/02/skos/core#altLabel",
"http://www.w3.org/ns/adms#identifier",
"http://www.w3.org/ns/regorg#orgStatus",
"http://www.w3.org/ns/org#hasPrimarySite",
"http://www.w3.org/ns/org#hasSite",
"http://www.w3.org/ns/org#changedBy",
"http://www.w3.org/ns/org#resultedFrom",
"http://www.w3.org/ns/org#hasPost",
"http://www.w3.org/ns/org#linkedTo",
"http://www.w3.org/ns/org#hasSubOrganization",
"http://www.w3.org/ns/org#classification",
"http://data.lblod.info/vocabularies/erediensten/denominatie",
"http://data.lblod.info/vocabularies/erediensten/grensoverschrijdend",
"http://data.lblod.info/vocabularies/erediensten/wordtBediendDoor",
"http://data.lblod.info/vocabularies/erediensten/typeEredienst"
]
},
{
"type": "http://data.lblod.info/vocabularies/erediensten/CentraalBestuurVanDeEredienst",
"strictTypeExport": "true",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/worship-service"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/2004/02/skos/core#prefLabel",
"http://www.w3.org/2004/02/skos/core#altLabel",
"http://www.w3.org/ns/adms#identifier",
"http://www.w3.org/ns/regorg#orgStatus",
"http://www.w3.org/ns/org#hasPrimarySite",
"http://www.w3.org/ns/org#hasSite",
"http://www.w3.org/ns/org#changedBy",
"http://www.w3.org/ns/org#resultedFrom",
"http://www.w3.org/ns/org#hasPost",
"http://www.w3.org/ns/org#linkedTo",
"http://www.w3.org/ns/org#hasSubOrganization",
"http://www.w3.org/ns/org#classification",
"http://data.lblod.info/vocabularies/erediensten/typeEredienst"
]
},
{
"type": "http://data.vlaanderen.be/ns/besluit#Bestuurseenheid",
"strictTypeExport": "true",
"graphsFilter": [
"http://mu.semte.ch/graphs/worship-service",
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/administrative-unit"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://data.lblod.info/vocabularies/erediensten/betrokkenBestuur",
"http://data.lblod.info/vocabularies/erediensten/denominatie",
"http://data.lblod.info/vocabularies/erediensten/grensoverschrijdend",
"http://data.lblod.info/vocabularies/erediensten/typeEredienst",
"http://data.lblod.info/vocabularies/erediensten/wordtBediendDoor",
"http://data.vlaanderen.be/ns/besluit#werkingsgebied",
"http://www.opengis.net/ont/geosparql#sfWithin",
"http://www.w3.org/2002/07/owl#sameAs",
"http://www.w3.org/2004/02/skos/core#altLabel",
"http://www.w3.org/2004/02/skos/core#prefLabel",
"http://www.w3.org/ns/adms#identifier",
"http://www.w3.org/ns/org#changedBy",
"http://www.w3.org/ns/org#classification",
"http://www.w3.org/ns/org#hasPost",
"http://www.w3.org/ns/org#hasPrimarySite",
"http://www.w3.org/ns/org#hasSite",
"http://www.w3.org/ns/org#hasSubOrganization",
"http://www.w3.org/ns/org#linkedTo",
"http://www.w3.org/ns/org#resultedFrom",
"http://www.w3.org/ns/regorg#orgStatus",
"https://data.lblod.info/vocabularies/generiek/geplandeEindDatum",
"http://www.w3.org/ns/org#purpose"
]
},
{
"type": "http://data.lblod.info/vocabularies/erediensten/RepresentatiefOrgaan",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/worship-service"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/2004/02/skos/core#prefLabel",
"http://www.w3.org/ns/org#linkedTo",
"http://data.lblod.info/vocabularies/erediensten/typeEredienst",
"http://www.w3.org/ns/adms#identifier"
]
},
{
"type": "http://data.lblod.info/vocabularies/erediensten/BetrokkenLokaleBesturen",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/worship-service"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://data.lblod.info/vocabularies/erediensten/typebetrokkenheid",
"http://www.w3.org/ns/org#organization",
"http://data.lblod.info/vocabularies/erediensten/financieringspercentage"
]
},
{
"type": "http://data.lblod.info/vocabularies/erediensten/PositieBedienaar",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/worship-service"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/ns/org#role",
"http://data.lblod.info/vocabularies/erediensten/functie"
]
},
{
"type": "http://www.w3.org/ns/org#Site",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/worship-service",
"http://mu.semte.ch/graphs/administrative-unit"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/ns/org#siteAddress",
"https://data.vlaanderen.be/ns/organisatie#bestaatUit",
"http://data.lblod.info/vocabularies/erediensten/vestigingstype"
]
},
{
"type": "http://www.w3.org/ns/locn#Address",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/worship-service",
"http://mu.semte.ch/graphs/administrative-unit"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"https://data.vlaanderen.be/ns/adres#Adresvoorstelling.huisnummer",
"https://data.vlaanderen.be/ns/adres#Adresvoorstelling.busnummer",
"http://www.w3.org/ns/locn#thoroughfare",
"http://www.w3.org/ns/locn#postCode",
"https://data.vlaanderen.be/ns/adres#gemeentenaam",
"http://www.w3.org/ns/locn#adminUnitL2",
"https://data.vlaanderen.be/ns/adres#land",
"http://www.w3.org/ns/locn#fullAddress",
"https://data.vlaanderen.be/ns/adres#verwijstNaar",
"http://purl.org/dc/terms/source"
]
},
{
"type": "http://schema.org/ContactPoint",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/worship-service",
"http://mu.semte.ch/graphs/administrative-unit"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/ns/locn#address",
"http://xmlns.com/foaf/0.1/page",
"http://schema.org/faxNumber",
"http://schema.org/contactType",
"http://xmlns.com/foaf/0.1/page",
"http://schema.org/email",
"http://schema.org/telephone"
]
},
{
"type": "http://www.w3.org/ns/adms#Identifier",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/worship-service",
"http://mu.semte.ch/graphs/administrative-unit"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/2004/02/skos/core#notation",
"https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator"
]
},
{
"type": "http://www.w3.org/ns/adms#Identifier",
"graphsFilter": [
"http://mu.semte.ch/graphs/worship-service"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/2004/02/skos/core#notation",
"https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator"
],
"additionalFilter": "?ro <http://www.w3.org/ns/adms#identifier> ?subject ; a <http://data.lblod.info/vocabularies/erediensten/RepresentatiefOrgaan> ."
},
{
"type": "https://data.vlaanderen.be/ns/generiek#GestructureerdeIdentificator",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/worship-service",
"http://mu.semte.ch/graphs/administrative-unit"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"https://data.vlaanderen.be/ns/generiek#lokaleIdentificator"
]
},
{
"type": "https://data.vlaanderen.be/ns/generiek#GestructureerdeIdentificator",
"graphsFilter": [
"http://mu.semte.ch/graphs/worship-service"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"https://data.vlaanderen.be/ns/generiek#lokaleIdentificator"
],
"additionalFilter": "?ro <http://www.w3.org/ns/adms#identifier>/<https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator> ?subject ; a <http://data.lblod.info/vocabularies/erediensten/RepresentatiefOrgaan> ."
},
{
"type": "http://lblod.data.gift/vocabularies/organisatie/BestuurseenheidClassificatieCode",
"graphsFilter": [
"http://mu.semte.ch/graphs/public"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/2004/02/skos/core#prefLabel"
]
},
{
"type": "http://data.vlaanderen.be/ns/besluit#Bestuursorgaan",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/administrative-unit",
"http://mu.semte.ch/graphs/worship-service"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://www.w3.org/ns/org#classification",
"http://data.vlaanderen.be/ns/mandaat#bindingEinde",
"http://data.vlaanderen.be/ns/mandaat#bindingStart",
"https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan",
"http://www.w3.org/ns/org#hasPost"
]
},
{
"type": "http://lblod.data.gift/vocabularies/organisatie/TypeEredienst",
"graphsFilter": [
"http://mu.semte.ch/graphs/public"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/2004/02/skos/core#prefLabel"
]
},
{
"type": "http://lblod.data.gift/vocabularies/organisatie/BestuursorgaanClassificatieCode",
"graphsFilter": [
"http://mu.semte.ch/graphs/public"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/2004/02/skos/core#prefLabel"
]
},
{
"type": "http://www.w3.org/ns/org#ChangeEvent",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/worship-service",
"http://mu.semte.ch/graphs/administrative-unit"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://purl.org/dc/terms/date",
"http://purl.org/dc/terms/description",
"http://data.lblod.info/vocabularies/contacthub/typeWijziging",
"http://www.w3.org/ns/org#resultedFrom",
"http://www.w3.org/ns/org#changedBy",
"http://lblod.data.gift/vocabularies/organisatie/veranderingsgebeurtenisResultaat",
"http://www.w3.org/ns/org#originalOrganization",
"http://www.w3.org/ns/org#resultingOrganization",
"http://data.europa.eu/m8g/hasFormalFramework"
]
},
{
"type": "http://lblod.data.gift/vocabularies/organisatie/Veranderingsgebeurtenis",
"graphsFilter": [
"http://mu.semte.ch/graphs/public"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/2004/02/skos/core#prefLabel"
]
},
{
"type": "http://lblod.data.gift/vocabularies/organisatie/OrganisatieStatusCode",
"graphsFilter": [
"http://mu.semte.ch/graphs/public"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/2004/02/skos/core#prefLabel"
]
},
{
"type": "http://lblod.data.gift/vocabularies/organisatie/TypeVestiging",
"graphsFilter": [
"http://mu.semte.ch/graphs/public"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/2004/02/skos/core#prefLabel"
]
},
{
"type": "http://data.vlaanderen.be/ns/mandaat#Mandaat",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/worship-service",
"http://mu.semte.ch/graphs/administrative-unit"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/ns/org#role"
]
},
{
"type": "http://data.lblod.info/vocabularies/leidinggevenden/Bestuursfunctie",
"graphsFilter": [
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/worship-service",
"http://mu.semte.ch/graphs/administrative-unit"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/ns/org#role",
"http://www.w3.org/2004/02/skos/core#prefLabel"
]
}
]
}

View File

@@ -396,7 +396,7 @@
]
},
{
"type": "http://lblod.data.gift/vocabularies/organisatie/BedienaarFinanceringCode",
"type": "http://lblod.data.gift/vocabularies/organisatie/BedienaarFinancieringCode",
"graphsFilter": [
"http://mu.semte.ch/graphs/public"
],

View File

@@ -105,6 +105,23 @@ export default [
]
}
},
{
match: {
},
callback: {
url: 'http://delta-producer-pub-graph-maintainer-organizations-public-info/delta',
method: 'POST'
},
options: {
resourceFormat: 'v0.0.1',
gracePeriod: 1000,
ignoreFromSelf: true,
optOutMuScopeIds: [
"http://redpencil.data.gift/id/concept/muScope/deltas/initialSync",
"http://redpencil.data.gift/id/concept/muScope/deltas/publicationGraphMaintenance"
]
}
},
{
match: {
},
@@ -162,6 +179,61 @@ export default [
optOutMuScopeIds: ["http://redpencil.data.gift/id/concept/muScope/deltas/initialSync"]
}
},
// organizations-sync-with-sharepoint/delta : jobs come from the jobs graph, data from the two main graphs
{
match: {
graph: {
type: 'uri',
value: 'http://mu.semte.ch/graphs/jobs'
}
},
callback: {
url: 'http://organizations-sync-with-sharepoint/delta',
method: 'POST'
},
options: {
resourceFormat: 'v0.0.1',
gracePeriod: 1000,
ignoreFromSelf: true,
optOutMuScopeIds: [ "http://redpencil.data.gift/id/concept/muScope/deltas/initialSync" ]
}
},
{
match: {
graph: {
type: 'uri',
value: 'http://mu.semte.ch/graphs/shared'
}
},
callback: {
url: 'http://organizations-sync-with-sharepoint/delta',
method: 'POST'
},
options: {
resourceFormat: 'v0.0.1',
gracePeriod: 1000,
ignoreFromSelf: true,
optOutMuScopeIds: [ "http://redpencil.data.gift/id/concept/muScope/deltas/initialSync" ]
}
},
{
match: {
graph: {
type: 'uri',
value: 'http://mu.semte.ch/graphs/administrative-unit'
}
},
callback: {
url: 'http://organizations-sync-with-sharepoint/delta',
method: 'POST'
},
options: {
resourceFormat: 'v0.0.1',
gracePeriod: 1000,
ignoreFromSelf: true,
optOutMuScopeIds: [ "http://redpencil.data.gift/id/concept/muScope/deltas/initialSync" ]
}
}
/*
Commenting ldes rules until ready to go to qa/prod. In the meantime, we override the configuration on dev.
{

View File

@@ -0,0 +1,38 @@
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX org: <http://www.w3.org/ns/org#>
DELETE {
GRAPH ?g {
?mandaat ?pmandaat ?omandaat .
}
} WHERE {
VALUES ?g {
<http://mu.semte.ch/graphs/worship-service>
<http://mu.semte.ch/graphs/administrative-unit>
}
GRAPH ?g {
?mandaat mandaat:isBestuurlijkeAliasVan ?person ;
?pmandaat ?omandaat .
}
FILTER NOT EXISTS { ?person ?pperson ?operson . }
}
;
DELETE {
GRAPH ?g {
?mandaat ?pmandaat ?omandaat .
}
} WHERE {
VALUES ?g {
<http://mu.semte.ch/graphs/worship-service>
<http://mu.semte.ch/graphs/administrative-unit>
}
GRAPH ?g {
?mandaat mandaat:start ?start ;
?pmandaat ?omandaat .
}
FILTER NOT EXISTS { ?mandaat a ?type . }
}

View File

@@ -60,8 +60,8 @@ defmodule Dispatcher do
Proxy.forward conn, path, "http://cache/board-position-codes/"
end
match "/agents/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://cache/agents/"
match "/functionaries/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://cache/functionaries/"
end
match "/agent-status-codes/*path", %{ accept: [:json], layer: :api} do
@@ -84,6 +84,10 @@ defmodule Dispatcher do
Proxy.forward conn, path, "http://cache/administrative-unit-classification-codes/"
end
match "/organization-classification-codes/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://cache/organization-classification-codes/"
end
match "/worship-administrative-units/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://resource/worship-administrative-units/"
end
@@ -305,6 +309,10 @@ defmodule Dispatcher do
forward conn, path, "http://construct-administrative-unit-relationships/create-relationships/"
end
post "/sync-ovo-number/*path", %{ layer: :api_services, accept: %{ json: true } } do
forward conn, path, "http://sync-ovo-numbers/sync-from-kbo/"
end
get "/ldes/*path", %{ layer: :api_services } do
forward conn, path, "http://ldes-backend/"
end
@@ -349,6 +357,14 @@ defmodule Dispatcher do
Proxy.forward conn, path, "http://delta-producer-pub-graph-maintainer-organizations/files/"
end
#################################################################
# DELTA: organizations-public-info
#################################################################
get "/sync/organizations-public-info/files/*path" do
Proxy.forward conn, path, "http://delta-producer-pub-graph-maintainer-organizations-public-info/files/"
end
#################################################################
# DELTA: public
#################################################################
@@ -365,6 +381,14 @@ defmodule Dispatcher do
Proxy.forward conn, path, "http://delta-producer-pub-graph-maintainer-worship-posts/files/"
end
#################################################################
# Exports
#################################################################
get "/download-exports/*path" do
Proxy.forward conn, path, "http://download-exports/"
end
###############################################################
# frontend layer
###############################################################

View File

@@ -63,6 +63,38 @@
}
]
},
"http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/initialPublicationGraphSyncing/organizations-public-info": {
"tasksConfiguration": [
{
"currentOperation": null,
"nextOperation": "http://redpencil.data.gift/id/jobs/concept/TaskOperation/deltas/initialPublicationGraphSyncing",
"nextIndex": "0"
},
{
"currentOperation": "http://redpencil.data.gift/id/jobs/concept/TaskOperation/deltas/initialPublicationGraphSyncing",
"nextOperation": "http://redpencil.data.gift/id/jobs/concept/TaskOperation/deltas/deltaDumpFileCreation",
"nextIndex": "1"
}
]
},
"http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/healingOperation/organizations-public-info": {
"tasksConfiguration": [
{
"currentOperation": null,
"nextOperation": "http://redpencil.data.gift/id/jobs/concept/TaskOperation/deltas/healing/patchPublicationGraph",
"nextIndex": "0"
}
]
},
"http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/deltaDumpFileCreation/organizations-public-info": {
"tasksConfiguration": [
{
"currentOperation": null,
"nextOperation": "http://redpencil.data.gift/id/jobs/concept/TaskOperation/deltas/deltaDumpFileCreation",
"nextIndex": "0"
}
]
},
"http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/initialPublicationGraphSyncing/public": {
"tasksConfiguration": [
{
@@ -126,5 +158,23 @@
"nextIndex": "0"
}
]
},
"http://redpencil.data.gift/id/jobs/concept/JobOperation/sp-sync/initialSyncing/organizations": {
"tasksConfiguration": [
{
"currentOperation": null,
"nextOperation": "http://redpencil.data.gift/id/jobs/concept/TaskOperation/sp-sync/initialSyncing",
"nextIndex": "0"
}
]
},
"http://redpencil.data.gift/id/jobs/concept/JobOperation/sp-sync/healingOperation/organizations": {
"tasksConfiguration": [
{
"currentOperation": null,
"nextOperation": "http://redpencil.data.gift/id/jobs/concept/TaskOperation/sp-sync/healing",
"nextIndex": "0"
}
]
}
}

View File

@@ -0,0 +1,64 @@
# Classification Leidend Ambtenaar
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?orgaanInTime <http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie> ?functie .
?functie a <http://data.lblod.info/vocabularies/leidinggevenden/Bestuursfunctie> ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuidFunctie ;
<http://www.w3.org/2004/02/skos/core#prefLabel> ?functieLabel ;
<http://www.w3.org/ns/org#role> <http://data.vlaanderen.be/id/concept/BestuursfunctieCode/855489b9-b584-4f34-90b2-39aea808cd9f> .
}
} WHERE {
VALUES ?bestuurseenheid {
<http://data.lblod.info/id/bestuurseenheden/e0d71bad-4684-4796-9f76-c3babb972a0f>
<http://data.lblod.info/id/bestuurseenheden/cec30867-e378-4e86-9568-1efebb6ccd7d>
<http://data.lblod.info/id/bestuurseenheden/b206763c-d8d2-45bd-ba1b-b5462bdd823c>
<http://data.lblod.info/id/bestuurseenheden/70285c2d-2045-414e-bd49-56155a736e56>
<http://data.lblod.info/id/bestuurseenheden/2908c8ed-0f67-44c0-b69e-5a8b07238d15>
<http://data.lblod.info/id/bestuurseenheden/f4228a39-de89-4a50-925f-d5d8d5109e79>
<http://data.lblod.info/id/bestuurseenheden/8d6609b4-1a20-46b8-97ed-150c6d53acd6>
<http://data.lblod.info/id/bestuurseenheden/b25f4408-0b7c-46d0-a234-0936cac4eb7c>
<http://data.lblod.info/id/bestuurseenheden/b81fdc5f-d1ba-49f2-831f-ed549ad94394>
<http://data.lblod.info/id/bestuurseenheden/3deaa042-58f3-474f-abc2-9cb3e15f4221>
<http://data.lblod.info/id/bestuurseenheden/863673c6-7bc9-4bbd-a42a-9ef1d2dc4c05>
<http://data.lblod.info/id/bestuurseenheden/e0920e46-85b9-4736-a906-b254cc7f1855>
<http://data.lblod.info/id/bestuurseenheden/99509194-025b-4292-9add-aa98b4867350>
<http://data.lblod.info/id/bestuurseenheden/6479BE11E20833AEA681F731>
<http://data.lblod.info/id/bestuurseenheden/648C3D65190444E254CA3901>
<http://data.lblod.info/id/bestuurseenheden/648C4C67190444E254CA390E>
<http://data.lblod.info/id/bestuurseenheden/6479B935E20833AEA681F719>
<http://data.lblod.info/id/bestuurseenheden/5c6ab343-3405-475d-a184-d44bbe7e787a>
<http://data.lblod.info/id/bestuurseenheden/646DCAC8E20833AEA681F608>
<http://data.lblod.info/id/bestuurseenheden/648C3BB7190444E254CA38F4>
<http://data.lblod.info/id/bestuurseenheden/646F2BB5E20833AEA681F62C>
<http://data.lblod.info/id/bestuurseenheden/8e448f7f-5a1d-44b0-a99d-274b2cc66f58>
<http://data.lblod.info/id/bestuurseenheden/5202c9ba-40fb-44e2-8116-6eceadc1e60a>
<http://data.lblod.info/id/bestuurseenheden/6478831EE20833AEA681F690>
<http://data.lblod.info/id/bestuurseenheden/646F25AEE20833AEA681F61A>
<http://data.lblod.info/id/bestuurseenheden/646F2609E20833AEA681F623>
<http://data.lblod.info/id/bestuurseenheden/6488403F190444E254CA3891>
<http://data.lblod.info/id/bestuurseenheden/648C3B22190444E254CA38EB>
<http://data.lblod.info/id/bestuurseenheden/646F2295E20833AEA681F611>
<http://data.lblod.info/id/bestuurseenheden/6479B670E20833AEA681F702>
<http://data.lblod.info/id/bestuurseenheden/6488488C190444E254CA38A5>
<http://data.lblod.info/id/bestuurseenheden/648841E2190444E254CA389A>
}
VALUES ?classificationOrgaan {
<http://data.vlaanderen.be/id/concept/BestuursorgaanClassificatieCode/41caf7e6-b040-4720-9cc2-a96cfffed5b4>
}
?bestuurseenheid a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
skos:prefLabel ?bestuurseenheidLabel .
?orgaan <http://www.w3.org/ns/org#classification> ?classificationOrgaan ;
<http://data.vlaanderen.be/ns/besluit#bestuurt> ?bestuurseenheid .
?orgaanInTime <https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan> ?orgaan .
BIND(CONCAT(?bestuurseenheidLabel, " Leidend ambtenaar") as ?functieLabel)
BIND(MD5(CONCAT(?bestuurseenheid, ?classificationOrgaan, "functieLabel")) as ?uuidFunctie)
BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursfuncties/", ?uuidFunctie)) AS ?functie)
}

View File

@@ -0,0 +1,48 @@
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?municipality <http://mu.semte.ch/vocabularies/ext/isFounderOfOrganization> ?bestuur .
?municipality <http://www.w3.org/ns/org#hasSubOrganization> ?bestuur .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?bestuur a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
<http://www.w3.org/ns/org#classification> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36a82ba0-7ff1-4697-a9dd-2e94df73b721> ; # AGB
<http://www.w3.org/ns/org#hasPrimarySite>/<https://data.vlaanderen.be/ns/organisatie#bestaatUit> ?address .
?address <https://data.vlaanderen.be/ns/adres#gemeentenaam> ?municipalityLabel .
}
GRAPH <http://mu.semte.ch/graphs/shared> {
?municipality a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
skos:prefLabel ?municipalityLabel ;
<http://www.w3.org/ns/org#classification> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001> .
}
}
;
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?province <http://mu.semte.ch/vocabularies/ext/isFounderOfOrganization> ?bestuur .
?province <http://www.w3.org/ns/org#hasSubOrganization> ?bestuur .
?municipality <http://www.w3.org/ns/org#linkedTo> ?bestuur .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?bestuur a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
<http://www.w3.org/ns/org#classification> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/80310756-ce0a-4a1b-9b8e-7c01b6cc7a2d> ; # APB
<http://www.w3.org/ns/org#hasPrimarySite>/<https://data.vlaanderen.be/ns/organisatie#bestaatUit> ?address .
?address <http://www.w3.org/ns/locn#adminUnitL2> ?provinceLabel .
}
GRAPH <http://mu.semte.ch/graphs/shared> {
?municipality a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
skos:prefLabel ?municipalityLabel ;
<http://www.w3.org/ns/org#classification> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001> .
?province a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
skos:prefLabel ?provinceLabel ;
<http://www.w3.org/ns/org#classification> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000000> .
}
}

View File

@@ -0,0 +1 @@
http://mu.semte.ch/graphs/public

View File

@@ -0,0 +1,14 @@
@prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#> .
@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
@prefix ns2: <http://mu.semte.ch/vocabularies/core/> .
@prefix ns3: <http://data.vlaanderen.be/id/conceptscheme/> .
@prefix ns4: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/> .
@prefix ns5: <http://lblod.data.gift/vocabularies/organisatie/> .
ns4:4b8450cf-a326-4c66-9e63-b4ec10acc7f6
mu:uuid "4b8450cf-a326-4c66-9e63-b4ec10acc7f6";
rdf:type ns5:BestuurseenheidClassificatieCode ;
skos:prefLabel "Opdrachthoudende vereniging met private deelname" ;
skos:topConceptOf ns3:BestuurseenheidClassificatieCode ;
skos:inScheme ns3:BestuurseenheidClassificatieCode .

View File

@@ -0,0 +1 @@
http://mu.semte.ch/graphs/administrative-unit

View File

@@ -0,0 +1 @@
http://mu.semte.ch/graphs/administrative-unit

View File

@@ -0,0 +1,327 @@
# Classification Directiecomité
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?orgaanInTime a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuidOrgaanInTime ;
<https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan> ?orgaan ;
<http://data.vlaanderen.be/ns/mandaat#bindingStart> "2019-01-01T00:00:00"^^xsd:dateTime .
?orgaan a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuidOrgaan ;
<http://www.w3.org/2004/02/skos/core#prefLabel> ?orgaanLabel ;
<http://www.w3.org/ns/org#classification> ?classificationOrgaan ;
<http://data.vlaanderen.be/ns/besluit#bestuurt> ?bestuurseenheid .
}
} WHERE {
VALUES ?classificationBestuurseenheid {
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36a82ba0-7ff1-4697-a9dd-2e94df73b721>
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/80310756-ce0a-4a1b-9b8e-7c01b6cc7a2d>
}
VALUES ?classificationOrgaan {
<http://data.vlaanderen.be/id/concept/BestuursorgaanClassificatieCode/5733254e-73ff-4844-8d43-7afb7ec726e8>
}
VALUES ?bestuurseenheid {
<http://data.lblod.info/id/bestuurseenheden/c7c5afb0-33b6-4c12-9a91-0313c5e99e09>
<http://data.lblod.info/id/bestuurseenheden/0f3d264a-dc1e-4a67-b2dc-b16b8aa1320d>
<http://data.lblod.info/id/bestuurseenheden/cc175465-0aa7-4f86-b6c1-fb9e4968def9>
<http://data.lblod.info/id/bestuurseenheden/ab64b799-fc73-417a-9fde-ad15da02944e>
<http://data.lblod.info/id/bestuurseenheden/923b203c-b8e0-4f20-9076-c2381e0f4294>
<http://data.lblod.info/id/bestuurseenheden/8c8fb770-1b84-4d18-8bcc-3ed9440476d5>
<http://data.lblod.info/id/bestuurseenheden/2d7e83eb-ce57-4739-917c-66564653ad63>
<http://data.lblod.info/id/bestuurseenheden/dc0bae7b-c4b3-4318-a6d5-63da2026a19f>
<http://data.lblod.info/id/bestuurseenheden/47fe127d-40c9-4598-a651-fca0311d3546>
<http://data.lblod.info/id/bestuurseenheden/d0125202-c4b1-4372-ba12-d6de58b12660>
<http://data.lblod.info/id/bestuurseenheden/68691928-eb23-4cc4-a66a-9deb0a7228ac>
<http://data.lblod.info/id/bestuurseenheden/344ff196-00d6-4d31-8abf-bda1a3c06b23>
<http://data.lblod.info/id/bestuurseenheden/26009b3c-256e-4a6c-aa3f-48e37b5d5c64>
<http://data.lblod.info/id/bestuurseenheden/682c21df-fe6a-4266-8f97-109e5b5b4ae4>
<http://data.lblod.info/id/bestuurseenheden/989ffd59-fdc4-4faf-959b-929aadc42f00>
<http://data.lblod.info/id/bestuurseenheden/b8228e3a-13ab-40ff-9299-a547b408b296>
<http://data.lblod.info/id/bestuurseenheden/85594b7a-4637-417e-a8ae-6b77c1988dcd>
<http://data.lblod.info/id/bestuurseenheden/fcbcb79b-20d1-4ed0-8ef1-744ca783ab14>
<http://data.lblod.info/id/bestuurseenheden/42fe138a-47b0-426e-a319-66bbf7927168>
<http://data.lblod.info/id/bestuurseenheden/173816cd-8ab6-45b8-9e98-1b8a71ad7ba0>
}
?bestuurseenheid a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
skos:prefLabel ?bestuurseenheidLabel .
?classificationOrgaan skos:prefLabel ?classificationOrgaanLabel .
BIND(CONCAT(?bestuurseenheidLabel, " Leidend ambtenaar") as ?functieLabel)
BIND(CONCAT(?classificationOrgaanLabel, " ", ?bestuurseenheidLabel) as ?orgaanLabel)
BIND(MD5(CONCAT(?bestuurseenheid, ?classificationOrgaan, "orgaanInTime")) as ?uuidOrgaanInTime)
BIND(MD5(CONCAT(?bestuurseenheid, ?classificationOrgaan, "orgaan")) as ?uuidOrgaan)
BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursorganen/", ?uuidOrgaanInTime)) AS ?orgaanInTime)
BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursorganen/", ?uuidOrgaan)) AS ?orgaan)
}
;
# Classification Raad van bestuur
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?orgaanInTime a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuidOrgaanInTime ;
<https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan> ?orgaan ;
<http://data.vlaanderen.be/ns/mandaat#bindingStart> "2019-01-01T00:00:00"^^xsd:dateTime .
?orgaan a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuidOrgaan ;
<http://www.w3.org/2004/02/skos/core#prefLabel> ?orgaanLabel ;
<http://www.w3.org/ns/org#classification> ?classificationOrgaan ;
<http://data.vlaanderen.be/ns/besluit#bestuurt> ?bestuurseenheid .
}
} WHERE {
VALUES ?classificationBestuurseenheid {
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36a82ba0-7ff1-4697-a9dd-2e94df73b721>
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/80310756-ce0a-4a1b-9b8e-7c01b6cc7a2d>
}
VALUES ?classificationOrgaan {
<http://data.vlaanderen.be/id/concept/BestuursorgaanClassificatieCode/013cc838-173a-4657-b1ae-b00c048df943>
}
VALUES ?bestuurseenheid {
<http://data.lblod.info/id/bestuurseenheden/c7c5afb0-33b6-4c12-9a91-0313c5e99e09>
<http://data.lblod.info/id/bestuurseenheden/0f3d264a-dc1e-4a67-b2dc-b16b8aa1320d>
<http://data.lblod.info/id/bestuurseenheden/cc175465-0aa7-4f86-b6c1-fb9e4968def9>
<http://data.lblod.info/id/bestuurseenheden/ab64b799-fc73-417a-9fde-ad15da02944e>
<http://data.lblod.info/id/bestuurseenheden/923b203c-b8e0-4f20-9076-c2381e0f4294>
<http://data.lblod.info/id/bestuurseenheden/8c8fb770-1b84-4d18-8bcc-3ed9440476d5>
<http://data.lblod.info/id/bestuurseenheden/2d7e83eb-ce57-4739-917c-66564653ad63>
<http://data.lblod.info/id/bestuurseenheden/dc0bae7b-c4b3-4318-a6d5-63da2026a19f>
<http://data.lblod.info/id/bestuurseenheden/47fe127d-40c9-4598-a651-fca0311d3546>
<http://data.lblod.info/id/bestuurseenheden/d0125202-c4b1-4372-ba12-d6de58b12660>
<http://data.lblod.info/id/bestuurseenheden/68691928-eb23-4cc4-a66a-9deb0a7228ac>
<http://data.lblod.info/id/bestuurseenheden/344ff196-00d6-4d31-8abf-bda1a3c06b23>
<http://data.lblod.info/id/bestuurseenheden/26009b3c-256e-4a6c-aa3f-48e37b5d5c64>
<http://data.lblod.info/id/bestuurseenheden/682c21df-fe6a-4266-8f97-109e5b5b4ae4>
<http://data.lblod.info/id/bestuurseenheden/989ffd59-fdc4-4faf-959b-929aadc42f00>
<http://data.lblod.info/id/bestuurseenheden/b8228e3a-13ab-40ff-9299-a547b408b296>
<http://data.lblod.info/id/bestuurseenheden/85594b7a-4637-417e-a8ae-6b77c1988dcd>
<http://data.lblod.info/id/bestuurseenheden/fcbcb79b-20d1-4ed0-8ef1-744ca783ab14>
<http://data.lblod.info/id/bestuurseenheden/42fe138a-47b0-426e-a319-66bbf7927168>
<http://data.lblod.info/id/bestuurseenheden/173816cd-8ab6-45b8-9e98-1b8a71ad7ba0>
}
?bestuurseenheid a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
skos:prefLabel ?bestuurseenheidLabel .
?classificationOrgaan skos:prefLabel ?classificationOrgaanLabel .
BIND(CONCAT(?bestuurseenheidLabel, " Leidend ambtenaar") as ?functieLabel)
BIND(CONCAT(?classificationOrgaanLabel, " ", ?bestuurseenheidLabel) as ?orgaanLabel)
BIND(MD5(CONCAT(?bestuurseenheid, ?classificationOrgaan, "orgaanInTime")) as ?uuidOrgaanInTime)
BIND(MD5(CONCAT(?bestuurseenheid, ?classificationOrgaan, "orgaan")) as ?uuidOrgaan)
BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursorganen/", ?uuidOrgaanInTime)) AS ?orgaanInTime)
BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursorganen/", ?uuidOrgaan)) AS ?orgaan)
}
;
# Classification Bevoegd beslissingsorgaan
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?orgaanInTime a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuidOrgaanInTime ;
<https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan> ?orgaan ;
<http://data.vlaanderen.be/ns/mandaat#bindingStart> "2019-01-01T00:00:00"^^xsd:dateTime .
?orgaan a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuidOrgaan ;
<http://www.w3.org/2004/02/skos/core#prefLabel> ?orgaanLabel ;
<http://www.w3.org/ns/org#classification> ?classificationOrgaan ;
<http://data.vlaanderen.be/ns/besluit#bestuurt> ?bestuurseenheid .
}
} WHERE {
VALUES ?classificationBestuurseenheid {
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36a82ba0-7ff1-4697-a9dd-2e94df73b721>
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/80310756-ce0a-4a1b-9b8e-7c01b6cc7a2d>
}
VALUES ?classificationOrgaan {
<http://data.vlaanderen.be/id/concept/BestuursorgaanClassificatieCode/0dbc70ec-6be9-4997-b8e1-11b6c0542382>
}
VALUES ?bestuurseenheid {
<http://data.lblod.info/id/bestuurseenheden/c7c5afb0-33b6-4c12-9a91-0313c5e99e09>
<http://data.lblod.info/id/bestuurseenheden/0f3d264a-dc1e-4a67-b2dc-b16b8aa1320d>
<http://data.lblod.info/id/bestuurseenheden/cc175465-0aa7-4f86-b6c1-fb9e4968def9>
<http://data.lblod.info/id/bestuurseenheden/ab64b799-fc73-417a-9fde-ad15da02944e>
<http://data.lblod.info/id/bestuurseenheden/923b203c-b8e0-4f20-9076-c2381e0f4294>
<http://data.lblod.info/id/bestuurseenheden/8c8fb770-1b84-4d18-8bcc-3ed9440476d5>
<http://data.lblod.info/id/bestuurseenheden/2d7e83eb-ce57-4739-917c-66564653ad63>
<http://data.lblod.info/id/bestuurseenheden/dc0bae7b-c4b3-4318-a6d5-63da2026a19f>
<http://data.lblod.info/id/bestuurseenheden/47fe127d-40c9-4598-a651-fca0311d3546>
<http://data.lblod.info/id/bestuurseenheden/d0125202-c4b1-4372-ba12-d6de58b12660>
<http://data.lblod.info/id/bestuurseenheden/68691928-eb23-4cc4-a66a-9deb0a7228ac>
<http://data.lblod.info/id/bestuurseenheden/344ff196-00d6-4d31-8abf-bda1a3c06b23>
<http://data.lblod.info/id/bestuurseenheden/26009b3c-256e-4a6c-aa3f-48e37b5d5c64>
<http://data.lblod.info/id/bestuurseenheden/682c21df-fe6a-4266-8f97-109e5b5b4ae4>
<http://data.lblod.info/id/bestuurseenheden/989ffd59-fdc4-4faf-959b-929aadc42f00>
<http://data.lblod.info/id/bestuurseenheden/b8228e3a-13ab-40ff-9299-a547b408b296>
<http://data.lblod.info/id/bestuurseenheden/85594b7a-4637-417e-a8ae-6b77c1988dcd>
<http://data.lblod.info/id/bestuurseenheden/fcbcb79b-20d1-4ed0-8ef1-744ca783ab14>
<http://data.lblod.info/id/bestuurseenheden/42fe138a-47b0-426e-a319-66bbf7927168>
<http://data.lblod.info/id/bestuurseenheden/173816cd-8ab6-45b8-9e98-1b8a71ad7ba0>
}
?bestuurseenheid a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
skos:prefLabel ?bestuurseenheidLabel .
?classificationOrgaan skos:prefLabel ?classificationOrgaanLabel .
BIND(CONCAT(?bestuurseenheidLabel, " Leidend ambtenaar") as ?functieLabel)
BIND(CONCAT(?classificationOrgaanLabel, " ", ?bestuurseenheidLabel) as ?orgaanLabel)
BIND(MD5(CONCAT(?bestuurseenheid, ?classificationOrgaan, "orgaanInTime")) as ?uuidOrgaanInTime)
BIND(MD5(CONCAT(?bestuurseenheid, ?classificationOrgaan, "orgaan")) as ?uuidOrgaan)
BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursorganen/", ?uuidOrgaanInTime)) AS ?orgaanInTime)
BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursorganen/", ?uuidOrgaan)) AS ?orgaan)
}
;
# Classification Algemene vergadering
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?orgaanInTime a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuidOrgaanInTime ;
<https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan> ?orgaan ;
<http://data.vlaanderen.be/ns/mandaat#bindingStart> "2019-01-01T00:00:00"^^xsd:dateTime .
?orgaan a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuidOrgaan ;
<http://www.w3.org/2004/02/skos/core#prefLabel> ?orgaanLabel ;
<http://www.w3.org/ns/org#classification> ?classificationOrgaan ;
<http://data.vlaanderen.be/ns/besluit#bestuurt> ?bestuurseenheid .
}
} WHERE {
VALUES ?classificationBestuurseenheid {
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36a82ba0-7ff1-4697-a9dd-2e94df73b721>
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/80310756-ce0a-4a1b-9b8e-7c01b6cc7a2d>
}
VALUES ?classificationOrgaan {
<http://data.vlaanderen.be/id/concept/BestuursorgaanClassificatieCode/b52094ff-21a2-4da8-8dbe-f513365d1528>
}
VALUES ?bestuurseenheid {
<http://data.lblod.info/id/bestuurseenheden/c7c5afb0-33b6-4c12-9a91-0313c5e99e09>
<http://data.lblod.info/id/bestuurseenheden/0f3d264a-dc1e-4a67-b2dc-b16b8aa1320d>
<http://data.lblod.info/id/bestuurseenheden/cc175465-0aa7-4f86-b6c1-fb9e4968def9>
<http://data.lblod.info/id/bestuurseenheden/ab64b799-fc73-417a-9fde-ad15da02944e>
<http://data.lblod.info/id/bestuurseenheden/923b203c-b8e0-4f20-9076-c2381e0f4294>
<http://data.lblod.info/id/bestuurseenheden/8c8fb770-1b84-4d18-8bcc-3ed9440476d5>
<http://data.lblod.info/id/bestuurseenheden/2d7e83eb-ce57-4739-917c-66564653ad63>
<http://data.lblod.info/id/bestuurseenheden/dc0bae7b-c4b3-4318-a6d5-63da2026a19f>
<http://data.lblod.info/id/bestuurseenheden/47fe127d-40c9-4598-a651-fca0311d3546>
<http://data.lblod.info/id/bestuurseenheden/d0125202-c4b1-4372-ba12-d6de58b12660>
<http://data.lblod.info/id/bestuurseenheden/68691928-eb23-4cc4-a66a-9deb0a7228ac>
<http://data.lblod.info/id/bestuurseenheden/344ff196-00d6-4d31-8abf-bda1a3c06b23>
<http://data.lblod.info/id/bestuurseenheden/26009b3c-256e-4a6c-aa3f-48e37b5d5c64>
<http://data.lblod.info/id/bestuurseenheden/682c21df-fe6a-4266-8f97-109e5b5b4ae4>
<http://data.lblod.info/id/bestuurseenheden/989ffd59-fdc4-4faf-959b-929aadc42f00>
<http://data.lblod.info/id/bestuurseenheden/b8228e3a-13ab-40ff-9299-a547b408b296>
<http://data.lblod.info/id/bestuurseenheden/85594b7a-4637-417e-a8ae-6b77c1988dcd>
<http://data.lblod.info/id/bestuurseenheden/fcbcb79b-20d1-4ed0-8ef1-744ca783ab14>
<http://data.lblod.info/id/bestuurseenheden/42fe138a-47b0-426e-a319-66bbf7927168>
<http://data.lblod.info/id/bestuurseenheden/173816cd-8ab6-45b8-9e98-1b8a71ad7ba0>
}
?bestuurseenheid a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
skos:prefLabel ?bestuurseenheidLabel .
?classificationOrgaan skos:prefLabel ?classificationOrgaanLabel .
BIND(CONCAT(?bestuurseenheidLabel, " Leidend ambtenaar") as ?functieLabel)
BIND(CONCAT(?classificationOrgaanLabel, " ", ?bestuurseenheidLabel) as ?orgaanLabel)
BIND(MD5(CONCAT(?bestuurseenheid, ?classificationOrgaan, "orgaanInTime")) as ?uuidOrgaanInTime)
BIND(MD5(CONCAT(?bestuurseenheid, ?classificationOrgaan, "orgaan")) as ?uuidOrgaan)
BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursorganen/", ?uuidOrgaanInTime)) AS ?orgaanInTime)
BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursorganen/", ?uuidOrgaan)) AS ?orgaan)
}
;
# Classification Leidend Ambtenaar
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?orgaanInTime a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuidOrgaanInTime ;
<https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan> ?orgaan ;
<http://data.vlaanderen.be/ns/mandaat#bindingStart> "2019-01-01T00:00:00"^^xsd:dateTime ;
<http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie> ?functie .
?orgaan a <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuidOrgaan ;
<http://www.w3.org/2004/02/skos/core#prefLabel> ?orgaanLabel ;
<http://www.w3.org/ns/org#classification> ?classificationOrgaan ;
<http://data.vlaanderen.be/ns/besluit#bestuurt> ?bestuurseenheid .
?functie a <http://data.lblod.info/vocabularies/leidinggevenden/Bestuursfunctie> ;
<http://mu.semte.ch/vocabularies/core/uuid> ?uuidFunctie ;
<http://www.w3.org/2004/02/skos/core#prefLabel> ?functieLabel ;
<http://www.w3.org/ns/org#role> <http://data.vlaanderen.be/id/concept/BestuursfunctieCode/855489b9-b584-4f34-90b2-39aea808cd9f> .
}
} WHERE {
VALUES ?classificationBestuurseenheid {
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36a82ba0-7ff1-4697-a9dd-2e94df73b721>
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/80310756-ce0a-4a1b-9b8e-7c01b6cc7a2d>
}
VALUES ?classificationOrgaan {
<http://data.vlaanderen.be/id/concept/BestuursorgaanClassificatieCode/41caf7e6-b040-4720-9cc2-a96cfffed5b4>
}
VALUES ?bestuurseenheid {
<http://data.lblod.info/id/bestuurseenheden/c7c5afb0-33b6-4c12-9a91-0313c5e99e09>
<http://data.lblod.info/id/bestuurseenheden/0f3d264a-dc1e-4a67-b2dc-b16b8aa1320d>
<http://data.lblod.info/id/bestuurseenheden/cc175465-0aa7-4f86-b6c1-fb9e4968def9>
<http://data.lblod.info/id/bestuurseenheden/ab64b799-fc73-417a-9fde-ad15da02944e>
<http://data.lblod.info/id/bestuurseenheden/923b203c-b8e0-4f20-9076-c2381e0f4294>
<http://data.lblod.info/id/bestuurseenheden/8c8fb770-1b84-4d18-8bcc-3ed9440476d5>
<http://data.lblod.info/id/bestuurseenheden/2d7e83eb-ce57-4739-917c-66564653ad63>
<http://data.lblod.info/id/bestuurseenheden/dc0bae7b-c4b3-4318-a6d5-63da2026a19f>
<http://data.lblod.info/id/bestuurseenheden/47fe127d-40c9-4598-a651-fca0311d3546>
<http://data.lblod.info/id/bestuurseenheden/d0125202-c4b1-4372-ba12-d6de58b12660>
<http://data.lblod.info/id/bestuurseenheden/68691928-eb23-4cc4-a66a-9deb0a7228ac>
<http://data.lblod.info/id/bestuurseenheden/344ff196-00d6-4d31-8abf-bda1a3c06b23>
<http://data.lblod.info/id/bestuurseenheden/26009b3c-256e-4a6c-aa3f-48e37b5d5c64>
<http://data.lblod.info/id/bestuurseenheden/682c21df-fe6a-4266-8f97-109e5b5b4ae4>
<http://data.lblod.info/id/bestuurseenheden/989ffd59-fdc4-4faf-959b-929aadc42f00>
<http://data.lblod.info/id/bestuurseenheden/b8228e3a-13ab-40ff-9299-a547b408b296>
<http://data.lblod.info/id/bestuurseenheden/85594b7a-4637-417e-a8ae-6b77c1988dcd>
<http://data.lblod.info/id/bestuurseenheden/fcbcb79b-20d1-4ed0-8ef1-744ca783ab14>
<http://data.lblod.info/id/bestuurseenheden/42fe138a-47b0-426e-a319-66bbf7927168>
<http://data.lblod.info/id/bestuurseenheden/173816cd-8ab6-45b8-9e98-1b8a71ad7ba0>
}
?bestuurseenheid a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
skos:prefLabel ?bestuurseenheidLabel .
?classificationOrgaan skos:prefLabel ?classificationOrgaanLabel .
BIND(CONCAT(?bestuurseenheidLabel, " Leidend ambtenaar") as ?functieLabel)
BIND(CONCAT(?classificationOrgaanLabel, " ", ?bestuurseenheidLabel) as ?orgaanLabel)
BIND(MD5(CONCAT(?bestuurseenheid, ?classificationOrgaan, "orgaanInTime")) as ?uuidOrgaanInTime)
BIND(MD5(CONCAT(?bestuurseenheid, ?classificationOrgaan, "orgaan")) as ?uuidOrgaan)
BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursorganen/", ?uuidOrgaanInTime)) AS ?orgaanInTime)
BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursorganen/", ?uuidOrgaan)) AS ?orgaan)
BIND(MD5(CONCAT(?bestuurseenheid, ?classificationOrgaan, "functieLabel")) as ?uuidFunctie)
BIND(IRI(CONCAT("http://data.lblod.info/id/bestuursfuncties/", ?uuidFunctie)) AS ?functie)
}

View File

@@ -0,0 +1,6 @@
DELETE DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/ade6a3d0e031660258649f141b8f17015da01557581f74122147c738af83b0c4>
<http://www.w3.org/ns/org#classification> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/d01bb1f6-2439-4e33-9c25-1fc295de2e71> .
}
}

View File

@@ -0,0 +1,25 @@
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?municipality <http://www.w3.org/ns/org#hasSubOrganization> ?bestuur .
}
} WHERE {
VALUES ?classificationIgs {
<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>
}
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?bestuur a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
<http://www.w3.org/ns/org#classification> ?classificationIgs ;
<http://www.w3.org/ns/org#hasPrimarySite>/<https://data.vlaanderen.be/ns/organisatie#bestaatUit> ?address .
?address <https://data.vlaanderen.be/ns/adres#gemeentenaam> ?municipalityLabel .
}
GRAPH <http://mu.semte.ch/graphs/shared> {
?municipality a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
skos:prefLabel ?municipalityLabel ;
<http://www.w3.org/ns/org#classification> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001> .
}
}

View File

@@ -0,0 +1,12 @@
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/public> {
<http://data.vlaanderen.be/id/concept/BestuursorgaanClassificatieCode/41caf7e6-b040-4720-9cc2-a96cfffed5b4>
ext:appliesWithin
<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> .
}
}

View File

@@ -0,0 +1,117 @@
# Every value that is in the admin unit graph but NOT in the landing graph means that it has not been
# ingested via the consumer, and has to be cleared out
DELETE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?contactPoint ?predicate ?value .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
<http://www.w3.org/ns/org#holds>/<http://schema.org/contactPoint> ?contactPoint.
?contactPoint ?predicate ?value .
}
FILTER NOT EXISTS {
GRAPH <http://mu.semte.ch/graphs/landing-zone/leidinggevenden> {
?contactPoint ?predicate ?value .
}
}
}
;
DELETE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?bestuursfunctie ?predicate ?value .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
<http://www.w3.org/ns/org#holds> ?bestuursfunctie.
?bestuursfunctie ?predicate ?value .
}
FILTER NOT EXISTS {
GRAPH <http://mu.semte.ch/graphs/landing-zone/leidinggevenden> {
?bestuursfunctie ?predicate ?value .
}
}
}
;
DELETE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s ?predicate ?value .
}
} WHERE {
VALUES ?predicate {
<http://www.w3.org/ns/org#holds>
<http://data.vlaanderen.be/ns/mandaat#status>
<http://data.vlaanderen.be/ns/mandaat#isBestuurlijkeAliasVan>
<http://data.vlaanderen.be/ns/mandaat#beleidsdomein>
<http://data.vlaanderen.be/ns/mandaat#rangorde>
}
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
?predicate ?value .
}
FILTER NOT EXISTS {
GRAPH <http://mu.semte.ch/graphs/landing-zone/leidinggevenden> {
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
?predicate ?value .
}
}
}
;
# Now, handling dates is more complex as dates in OP are datetimes in Loket
DELETE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s ?predicate ?date .
}
} WHERE {
VALUES ?predicate {
<http://data.vlaanderen.be/ns/mandaat#start>
<http://data.vlaanderen.be/ns/mandaat#einde>
}
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
?predicate ?date .
}
FILTER NOT EXISTS {
GRAPH <http://mu.semte.ch/graphs/landing-zone/leidinggevenden> {
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
?predicate ?datetime .
}
BIND(?datetime + xsd:duration('PT2H') as ?dateInOurTimezone)
# convert to strings
BIND(STR(year(?dateInOurTimezone)) AS ?year)
BIND(STR(month(?dateInOurTimezone)) AS ?month)
BIND(STR(day(?dateInOurTimezone)) AS ?day)
# pad with zeros
BIND(CONCAT("00", ?year) AS ?paddedYear)
BIND(CONCAT("0000", ?month) AS ?paddedMonth)
BIND(CONCAT("00", ?day) AS ?paddedDay)
# extract the right number of digits from the padded strings
BIND(SUBSTR(?paddedYear, STRLEN(?paddedYear)-3) AS ?fourDigitYear)
BIND(SUBSTR(?paddedDay, STRLEN(?paddedDay)-1) AS ?twoDigitDay)
BIND(SUBSTR(?paddedMonth, STRLEN(?paddedMonth)-1) AS ?twoDigitMonth)
# put it all back together
BIND(xsd:date(CONCAT(?fourDigitYear, "-", ?twoDigitMonth, "-", ?twoDigitDay)) as ?datetimeToDate)
FILTER (?datetimeToDate = ?date)
}
}

View File

@@ -0,0 +1,16 @@
DELETE {
GRAPH ?g {
?bestuur <http://www.w3.org/ns/org#hasSite> ?site .
}
} WHERE {
VALUES ?g {
<http://mu.semte.ch/graphs/administrative-unit>
<http://mu.semte.ch/graphs/worship-service>
}
GRAPH ?g {
?site a <http://www.w3.org/ns/org#Site> .
?bestuur <http://www.w3.org/ns/org#hasPrimarySite> ?site ;
<http://www.w3.org/ns/org#hasSite> ?site .
}
}

View File

@@ -0,0 +1,265 @@
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/02c2bc6e15785114f5526b1ab5d29c6049e664bc6a5fab8bb27ae75ac4ad25c2> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO003709> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/b5dc37cf-011e-4e44-a797-9fd59bc8bf61> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO003709".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/b5dc37cf-011e-4e44-a797-9fd59bc8bf61> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/03c466beb217e884d90f62a2d78674cf6403c2671f9b4517e1aa8b93ed8aa41b> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO003310> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/79e89e4f-c4b2-44b8-9c40-761220f05345> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO003310".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/79e89e4f-c4b2-44b8-9c40-761220f05345> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/0f316807-839b-4554-a4d8-8656e9f83201> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO025850> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/565745e8-f2dd-4545-9d0e-18ff0be8bec4> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO025850".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/565745e8-f2dd-4545-9d0e-18ff0be8bec4> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/bb58563c6b5d4ca1ebb32e72c137b9b9500369c6cd8a37d177ed6365bfd31484> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO052255> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/aeef546d-bf5f-431f-aad3-a917bc04b56d> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO052255".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/aeef546d-bf5f-431f-aad3-a917bc04b56d> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/24904455b8208a966475e0f6eeb1af64e688779f30edf2e56f582fdc5907f082> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO003311> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/4501c6f2-b50d-4486-b495-14d4a2483dc6> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO003311".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/4501c6f2-b50d-4486-b495-14d4a2483dc6> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/ebc8589470b92ac994448573f072f7a0408e4ab893364ed118fd65537c3b9ed0> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO003301> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/ce6dd74d-f5ca-49d5-9aa8-9cbe41bab4d4> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO003301".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/ce6dd74d-f5ca-49d5-9aa8-9cbe41bab4d4> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/469298eac85cce8381c45c07c150cfaf104e55e465a2100155f802d105ee284b> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO003309> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/2c40e905-aa52-43ed-9023-a22d91eb94e1> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO003309".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/2c40e905-aa52-43ed-9023-a22d91eb94e1> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/b27a3032161dde49a0014809982dc41f12b32d93195611b4fcbe6bc21c36162f> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO025332> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/cb47a5a6-d947-4908-ba91-d8a887711c7e> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO025332".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/cb47a5a6-d947-4908-ba91-d8a887711c7e> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/5202c9ba-40fb-44e2-8116-6eceadc1e60a> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO052351> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/a57287d4-f37b-4936-824b-7cc80fe73192> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO052351".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/a57287d4-f37b-4936-824b-7cc80fe73192> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/ca68202ecd1d5ce242c56444eadc6662844394e568180dfb011fac1d72078b1b> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO003380> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/f37eb949-ef75-4a6f-9889-4998d27d49ee> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO003380".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/f37eb949-ef75-4a6f-9889-4998d27d49ee> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/686e3c12c1be2a8ead91fca38652b40f11e3f62752631d6bbc6746d686f4f661> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO025333> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/05ee9f7d-525e-4e4b-acf8-17a78e90a8d7> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO025333".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/05ee9f7d-525e-4e4b-acf8-17a78e90a8d7> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/abd55b65c3192a96451b1ed25e1f2b694ea193ed28e0380ad4d7bdcf183226e5> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO002964> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/4b492245-dccc-4454-82eb-bc021c43a195> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO002964".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/4b492245-dccc-4454-82eb-bc021c43a195> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/4c6a1597c80c61844bafbb4577a83a05babe77b6ac90811a5784c5e689f9d8ae> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO025331> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/6c338d33-52e8-431c-a094-439dd38cc8be> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO025331".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/6c338d33-52e8-431c-a094-439dd38cc8be> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/3ebc33e54a7b6908651014c5a90594c311d76ca29b00c03bc6a4cbf07a5f5796> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO003305> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/a9996594-b5de-490c-8e22-8c88290f3f9f> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO003305".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/a9996594-b5de-490c-8e22-8c88290f3f9f> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/1aabd6b049a964c3d11df43e787bf9b278500df3c3e55302997748359b9b7081> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO025385> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/46ccab89-ff20-4f52-a277-50c8a0e6c027> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO025385".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/46ccab89-ff20-4f52-a277-50c8a0e6c027> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/93da82a640436139987d3bbf2cccf7468ce357e6bd93f223e4045583a669052a> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO003300> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/217af079-a0fc-43f2-911e-801027627957> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO003300".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/217af079-a0fc-43f2-911e-801027627957> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/a1d72f5d4763982035e10c5e071c114d2db743717af82a92da0b296cf8a02082> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO018769> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/aa8104ef-2d39-401f-8e65-71cec0d693df> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO018769".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/aa8104ef-2d39-401f-8e65-71cec0d693df> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/9805c75c20f76bbeae11240e0e51644d48a141a41d6ba2c2fe8a52eb8094894d> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO015130> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/801d1316-45f8-45f7-81d1-bbe165e35a75> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO015130".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/801d1316-45f8-45f7-81d1-bbe165e35a75> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/462c152b4e3f8c6b831e4d6ffb727c112797e3e927ca6ef361296f117d2eede9> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO003324> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/2895a50d-74c5-4f04-898b-8eeacfa0647b> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO003324".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/2895a50d-74c5-4f04-898b-8eeacfa0647b> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/6b7176c419ba01cb0e13fb6f03bc2b2b4807787781ec6ef4b53042cdca9c510d> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO003299> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/a2573b87-af08-484b-a46f-ebcb7a3f0944> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO003299".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/a2573b87-af08-484b-a46f-ebcb7a3f0944> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/6f55c7250419fd7b00aefa818665acb069243d95219be598a962ae19e463fe56> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO052350> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/382d2504-d954-4e5b-b469-5314a6ceb57a> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO052350".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/382d2504-d954-4e5b-b469-5314a6ceb57a> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/bestuurseenheden/edc85ae64bd6a8ed73aa98750904f14dcb7e9445d4003f9e970db7a65a2076f4> <http://www.w3.org/2002/07/owl#sameAs> <http://data.vlaanderen.be/id/organisatie/OVO003297> .
<http://data.lblod.info/id/gestructureerdeIdentificatoren/764c6929-70c5-440e-93be-48609959ecdb> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "OVO003297".
}
}
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
<http://data.lblod.info/id/gestructureerdeIdentificatoren/764c6929-70c5-440e-93be-48609959ecdb> <https://data.vlaanderen.be/ns/generiek#lokaleIdentificator> "" .
}
}

View File

@@ -0,0 +1,10 @@
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/public> {
<http://lblod.data.gift/concepts/7fec2e93-b585-43dc-88d3-04de5e055215>
rdf:type <http://lblod.data.gift/vocabularies/organisatie/Veranderingsgebeurtenis> ;
<http://mu.semte.ch/vocabularies/core/uuid> "7fec2e93-b585-43dc-88d3-04de5e055215" ;
skos:prefLabel "Wijziging werkingsgebied" ;
skos:inScheme <http://lblod.data.gift/concept-schemes/e1ff33ee76b5662ec8486f0e2abec384> , <http://lblod.data.gift/concept-schemes/10caf4a4-1ff5-4c05-917e-56489910d68b> ;
skos:topConceptOf <http://lblod.data.gift/concept-schemes/e1ff33ee76b5662ec8486f0e2abec384> .
}
}

View File

@@ -0,0 +1 @@
http://mu.semte.ch/graphs/administrative-unit

View File

@@ -0,0 +1 @@
http://mu.semte.ch/graphs/administrative-unit

View File

@@ -0,0 +1,10 @@
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/public> {
<http://lblod.data.gift/concepts/0ed15289-1f3d-4172-8c46-0506de5aa2a3> <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://lblod.data.gift/vocabularies/organisatie/TypeVestiging> .
<http://lblod.data.gift/concepts/0ed15289-1f3d-4172-8c46-0506de5aa2a3> <http://www.w3.org/2004/02/skos/core#prefLabel> "Hoofdcommissariaat" .
<http://lblod.data.gift/concepts/0ed15289-1f3d-4172-8c46-0506de5aa2a3> <http://mu.semte.ch/vocabularies/core/uuid> "0ed15289-1f3d-4172-8c46-0506de5aa2a3" .
<http://lblod.data.gift/concepts/0ed15289-1f3d-4172-8c46-0506de5aa2a3> <http://www.w3.org/2004/02/skos/core#topConceptOf> <http://lblod.data.gift/concept-schemes/f8319ccf40fc2a1697edc5cf7e03018f> .
<http://lblod.data.gift/concepts/0ed15289-1f3d-4172-8c46-0506de5aa2a3> <http://www.w3.org/2004/02/skos/core#inScheme> <http://lblod.data.gift/concept-schemes/f8319ccf40fc2a1697edc5cf7e03018f> .
<http://lblod.data.gift/concepts/0ed15289-1f3d-4172-8c46-0506de5aa2a3> <http://www.w3.org/2004/02/skos/core#inScheme> <http://lblod.data.gift/concept-schemes/10caf4a4-1ff5-4c05-917e-56489910d68b> .
}
}

View File

@@ -0,0 +1,23 @@
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?municipality <http://www.w3.org/ns/org#hasSubOrganization> ?bestuur .
}
} WHERE {
VALUES ?classificationIgs {
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/a3922c6d-425b-474f-9a02-ffb71a436bfc>
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/ea446861-2c51-45fa-afd3-4e4a37b71562>
}
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?bestuur a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
<http://www.w3.org/ns/org#classification> ?classificationIgs ;
<http://www.w3.org/ns/org#hasPrimarySite>/<https://data.vlaanderen.be/ns/organisatie#bestaatUit> ?address .
?address <https://data.vlaanderen.be/ns/adres#gemeentenaam> ?municipalityLabel .
}
GRAPH <http://mu.semte.ch/graphs/shared> {
?municipality a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
skos:prefLabel ?municipalityLabel ;
<http://www.w3.org/ns/org#classification> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001> .
}
}

View File

@@ -0,0 +1,26 @@
PREFIX org: <http://www.w3.org/ns/org#>
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?secondarySiteContact <http://schema.org/telephone> ?phone .
?secondarySiteContact <http://xmlns.com/foaf/0.1/page> ?website .
?secondarySiteContact <http://schema.org/email> ?email .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?adminUnit org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/a3922c6d-425b-474f-9a02-ffb71a436bfc> ;
<http://www.w3.org/ns/org#hasPrimarySite> ?primarySite ;
<http://www.w3.org/ns/org#hasSite> ?secondarySite .
?primarySite <http://www.w3.org/ns/org#siteAddress> ?primarySiteContact .
?primarySiteContact <http://schema.org/contactType> "Primary" .
?secondarySite <http://www.w3.org/ns/org#siteAddress> ?secondarySiteContact .
?secondarySiteContact <http://schema.org/contactType> "Primary" .
OPTIONAL { ?primarySiteContact <http://schema.org/telephone> ?phone . }
OPTIONAL { ?primarySiteContact <http://xmlns.com/foaf/0.1/page> ?website . }
OPTIONAL { ?primarySiteContact <http://schema.org/email> ?email . }
}
}

View File

@@ -0,0 +1,16 @@
DELETE {
GRAPH ?h {
?s ?p ?o .
}
} WHERE {
GRAPH ?g {
?s a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;
?p ?o .
FILTER NOT EXISTS {
?s ?np ?no .
FILTER (?np NOT IN (<http://www.w3.org/1999/02/22-rdf-syntax-ns#type>, <http://mu.semte.ch/vocabularies/core/uuid>) )
}
}
BIND(?g as ?h)
}

View File

@@ -0,0 +1,37 @@
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
insert data {
graph <http://mu.semte.ch/graphs/public> {
<http://data.vlaanderen.be/id/concept/RepresentatiefOrgaanClassificatieCode/89a00b5a-024f-4630-a722-65a5e68967e5>
rdf:type <http://mu.semte.ch/vocabularies/ext/RepresentatieveOrgaanClassificatieCode> , skos:Concept ;
<http://mu.semte.ch/vocabularies/core/uuid> "89a00b5a-024f-4630-a722-65a5e68967e5" ;
skos:topConceptOf <https://data.vlaanderen.be/id/conceptscheme/RepresentatiefOrgaanClassificatieCode> ;
skos:prefLabel "Representatief orgaan" ;
skos:inScheme <https://data.vlaanderen.be/id/conceptscheme/RepresentatiefOrgaanClassificatieCode> .
}
}
;
INSERT {
graph <http://mu.semte.ch/graphs/worship-service> {
?representativeBody org:classification <http://data.vlaanderen.be/id/concept/RepresentatiefOrgaanClassificatieCode/89a00b5a-024f-4630-a722-65a5e68967e5>.
}
}
WHERE {
graph <http://mu.semte.ch/graphs/worship-service> {
?representativeBody a ere:RepresentatiefOrgaan.
FILTER NOT EXISTS {
?representativeBody org:classification ?classification.
}
}
}

View File

@@ -0,0 +1,24 @@
prefix rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
prefix skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
INSERT {
graph ?g {
?code a <http://mu.semte.ch/vocabularies/ext/OrganizationClassificationCode>.
}
}
WHERE {
graph ?g {
?code a ?type.
filter (?type in (<http://mu.semte.ch/vocabularies/ext/RepresentatieveOrgaanClassificatieCode>,
<http://lblod.data.gift/vocabularies/organisatie/BestuurseenheidClassificatieCode>))
}
}

View File

@@ -0,0 +1,31 @@
INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/public> {
<http://data.vlaanderen.be/id/concept/BestuursorgaanClassificatieCode/5ab0e9b8a3b2ca7c5e000008>
<http://www.w3.org/2004/02/skos/core#inScheme> <http://lblod.data.gift/concept-schemes/10caf4a4-1ff5-4c05-917e-56489910d68b> ;
<http://www.w3.org/2004/02/skos/core#inScheme> <http://data.vlaanderen.be/id/conceptscheme/BestuursorgaanClassificatieCode> ;
<http://www.w3.org/2004/02/skos/core#topConceptOf> <http://data.vlaanderen.be/id/conceptscheme/BestuursorgaanClassificatieCode> ;
<http://mu.semte.ch/vocabularies/ext/appliesWithin> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000002> .
}
}
;
INSERT {
GRAPH <http://mu.semte.ch/graphs/public> {
?s ?p <http://data.vlaanderen.be/id/concept/BestuursorgaanClassificatieCode/5ab0e9b8a3b2ca7c5e000008> .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/public> {
?s ?p <http://data.vlaanderen.be/id/concept/BestuursorgaanClassificatieCode/55ab0e9b8a3b2ca7c5e000008> .
}
}
;
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/public> {
?s ?p <http://data.vlaanderen.be/id/concept/BestuursorgaanClassificatieCode/55ab0e9b8a3b2ca7c5e000008> .
}
}
;
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/public> {
<http://data.vlaanderen.be/id/concept/BestuursorgaanClassificatieCode/55ab0e9b8a3b2ca7c5e000008> ?p ?o .
}
}

View File

@@ -0,0 +1,202 @@
#fix nrs starting with 0032 in Administrative-unit
DELETE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s <http://schema.org/telephone> ?o .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s <http://schema.org/telephone> ?fixedTel .
}
}
WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s <http://schema.org/telephone> ?o .
}
FILTER(!regex(?o, ".*[a-zA-Z].*", "i")) .
BIND(REPLACE(STR(?o),"[. -/();:=+]","") AS ?removedSpaces) .
FILTER(STRSTARTS(?removedSpaces, "0032")) .
BIND(CONCAT("32", SUBSTR(?removedSpaces, 5)) as ?newTel ) .
FILTER(STRLEN(?newTel) > 9 and STRLEN(?newTel) < 12) .
BIND(CONCAT("+", ?newTel) AS ?fixedTel) .
}
;
#fix nrs starting with 0032 in worship-service
DELETE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?s <http://schema.org/telephone> ?o .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?s <http://schema.org/telephone> ?fixedTel .
}
}
WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?s <http://schema.org/telephone> ?o .
}
FILTER(!regex(?o, ".*[a-zA-Z].*", "i")) .
BIND(REPLACE(STR(?o),"[. -/();:=+]","") AS ?removedSpaces) .
FILTER(STRSTARTS(?removedSpaces, "0032")) .
BIND(CONCAT("32", SUBSTR(?removedSpaces, 5)) as ?newTel ) .
FILTER(STRLEN(?newTel) > 9 and STRLEN(?newTel) < 12) .
BIND(CONCAT("+", ?newTel) AS ?fixedTel) .
}
;
#fix nrs starting with 320 in administrative-unit
DELETE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s <http://schema.org/telephone> ?o .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s <http://schema.org/telephone> ?fixedTel .
}
}
WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s <http://schema.org/telephone> ?o .
}
FILTER(!regex(?o, ".*[a-zA-Z].*", "i")) .
BIND(REPLACE(STR(?o),"[. -/();:=+]","") AS ?removedSpaces) .
FILTER(STRSTARTS(?removedSpaces, "320")) .
BIND(CONCAT("32", SUBSTR(?removedSpaces, 4)) as ?newTel ) .
FILTER(STRLEN(?newTel) > 9 and STRLEN(?newTel) < 12) .
BIND(CONCAT("+", ?newTel) AS ?fixedTel) .
}
;
#fix nrs starting with 320 in worship-service
DELETE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?s <http://schema.org/telephone> ?o .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?s <http://schema.org/telephone> ?fixedTel .
}
}
WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?s <http://schema.org/telephone> ?o .
}
FILTER(!regex(?o, ".*[a-zA-Z].*", "i")) .
BIND(REPLACE(STR(?o),"[. -/();:=+]","") AS ?removedSpaces) .
FILTER(STRSTARTS(?removedSpaces, "0032")) .
BIND(CONCAT("+32", SUBSTR(?removedSpaces, 5)) as ?newTel ) .
FILTER(STRLEN(?newTel) > 9 and STRLEN(?newTel) < 12) .
BIND(CONCAT("+", ?newTel) AS ?fixedTel) .
}
;
#fix nrs starting with 0 in administrative-unit
DELETE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s <http://schema.org/telephone> ?o .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s <http://schema.org/telephone> ?fixedTel .
}
}
WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s <http://schema.org/telephone> ?o .
}
FILTER(!regex(?o, ".*[a-zA-Z].*", "i")) .
BIND(REPLACE(STR(?o),"[. -/();:=+]","") AS ?removedSpaces) .
FILTER(STRSTARTS(?removedSpaces, "0")) .
BIND(CONCAT("32", SUBSTR(?removedSpaces, 2)) as ?newTel ) .
FILTER(STRLEN(?newTel) > 9 and STRLEN(?newTel) < 12) .
BIND(CONCAT("+", ?newTel) AS ?fixedTel) .
}
;
#fix nrs starting with 03/04 in worship-service
DELETE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?s <http://schema.org/telephone> ?o .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?s <http://schema.org/telephone> ?fixedTel .
}
}
WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?s <http://schema.org/telephone> ?o .
}
FILTER(!regex(?o, ".*[a-zA-Z].*", "i")) .
BIND(REPLACE(STR(?o),"[. -/();:=+]","") AS ?removedSpaces) .
FILTER(STRSTARTS(?removedSpaces, "0")) .
BIND(CONCAT("32", SUBSTR(?removedSpaces, 2)) as ?newTel ) .
FILTER(STRLEN(?newTel) > 9 and STRLEN(?newTel) < 12) .
BIND(CONCAT("+", ?newTel) AS ?fixedTel) .
}
;
#convert all nrs starting with 32 in administrative-unit
DELETE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s <http://schema.org/telephone> ?o .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s <http://schema.org/telephone> ?convertedTel .
}
}
WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?s <http://schema.org/telephone> ?o .
}
FILTER(!regex(?o, ".*[a-zA-Z].*", "i")) .
BIND(REPLACE(STR(?o),"[. -/();:=+]","") AS ?removedSpaces) .
FILTER(STRSTARTS(?removedSpaces, "32") AND STRLEN(?removedSpaces) > 9 and STRLEN(?removedSpaces) < 12) .
BIND(CONCAT("tel:+", ?removedSpaces) as ?convertedTel) .
}
;
#convert all nrs starting with 32 in worship-service
DELETE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?s <http://schema.org/telephone> ?o .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?s <http://schema.org/telephone> ?convertedTel .
}
}
WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?s <http://schema.org/telephone> ?o .
}
FILTER(!regex(?o, ".*[a-zA-Z].*", "i")) .
BIND(REPLACE(STR(?o),"[. -/();:=+]","") AS ?removedSpaces) .
FILTER(STRSTARTS(?removedSpaces, "32") AND STRLEN(?removedSpaces) > 9 and STRLEN(?removedSpaces) < 12) .
BIND(CONCAT("tel:+", ?removedSpaces) as ?convertedTel) .
}
;

View File

@@ -0,0 +1,32 @@
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX dc_terms: <http://purl.org/dc/terms/>
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?org a dc_terms:Agent .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?org a org:Organization .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?org a dc_terms:Agent .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?org a org:Organization .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/shared> {
?org a dc_terms:Agent .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/shared> {
?org a org:Organization .
}
}

View File

@@ -0,0 +1,33 @@
PREFIX person: <http://www.w3.org/ns/person#>
PREFIX dc_terms: <http://purl.org/dc/terms/>
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?person a dc_terms:Agent .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?person a person:Person .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?person a dc_terms:Agent .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?person a person:Person .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/shared> {
?person a dc_terms:Agent .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/shared> {
?person a person:Person .
}
}

View File

@@ -0,0 +1,32 @@
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>
PREFIX dc_terms: <http://purl.org/dc/terms/>
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?agentInPosition a dc_terms:Agent .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?agentInPosition a ch:AgentInPositie .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?agentInPosition a dc_terms:Agent .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?agentInPosition a ch:AgentInPositie .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/shared> {
?agentInPosition a dc_terms:Agent .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/shared> {
?agentInPosition a ch:AgentInPositie .
}
}

View File

@@ -0,0 +1,36 @@
PREFIX lblodlg: <http://data.lblod.info/vocabularies/leidinggevenden/>
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>
PREFIX dc_terms: <http://purl.org/dc/terms/>
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?functionary a dc_terms:Agent .
?functionary a ch:AgentInPositie .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?functionary a lblodlg:Functionaris
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?functionary a dc_terms:Agent .
?functionary a ch:AgentInPositie .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?functionary a lblodlg:Functionaris
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/shared> {
?functionary a dc_terms:Agent .
?functionary a ch:AgentInPositie .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/shared> {
?functionary a lblodlg:Functionaris
}
}

View File

@@ -0,0 +1,39 @@
PREFIX mandaat: <http://data.vlaanderen.be/ns/mandaat#>
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>
PREFIX dc_terms: <http://purl.org/dc/terms/>
INSERT {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?mandatory a dc_terms:Agent .
?mandatory a ch:AgentInPositie .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/administrative-unit> {
?mandatory a mandaat:Mandataris
FILTER NOT EXISTS { ?mandatory a ch:AgentInPositie }
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?mandatory a dc_terms:Agent .
?mandatory a ch:AgentInPositie .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?mandatory a mandaat:Mandataris
FILTER NOT EXISTS { ?mandatory a ch:AgentInPositie }
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/shared> {
?mandatory a dc_terms:Agent .
?mandatory a ch:AgentInPositie .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/shared> {
?mandatory a mandaat:Mandataris
FILTER NOT EXISTS { ?mandatory a ch:AgentInPositie }
}
}

View File

@@ -0,0 +1,17 @@
DELETE {
graph <http://mu.semte.ch/graphs/public> {
?instance rdf:type ?oldClass
}
}
INSERT {
graph <http://mu.semte.ch/graphs/public>{
?instance rdf:type ?newClass
}
}
where {
graph <http://mu.semte.ch/graphs/public>{
BIND (<http://lblod.data.gift/vocabularies/organisatie/BedienaarFinanceringCode> as ?oldClass)
BIND (<http://lblod.data.gift/vocabularies/organisatie/BedienaarFinancieringCode> as ?newClass)
?instance rdf:type ?oldClass .
}
}

View File

@@ -0,0 +1,9 @@
DELETE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
<http://data.lblod.info/id/mandatarissen/fb8ce507f9dfc141e8353d33a7c0070f> ?p ?o .
}
} WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
<http://data.lblod.info/id/mandatarissen/fb8ce507f9dfc141e8353d33a7c0070f> ?p ?o .
}
}

View File

@@ -0,0 +1,21 @@
PREFIX core: <http://mu.semte.ch/vocabularies/core/>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX lblodorg: <http://lblod.data.gift/vocabularies/organisatie/>
PREFIX euro: <http://data.europa.eu/m8g/>
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?event a org:ChangeEvent ;
core:uuid "65699ADF6DEE214B7207D42F" ;
lblodorg:veranderingsgebeurtenisResultaat ?result ;
euro:hasFormalFramework ?decision ;
?ep ?eo .
?result a lblodorg:VeranderingsgebeurtenisResultaat ;
?rp ?ro .
?decision a besluit:Besluit ;
?de ?do .
}
}

View File

@@ -0,0 +1,24 @@
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>
PREFIX code: <http://lblod.data.gift/vocabularies/organisatie/>
INSERT {
graph ?g {
?ce org:resultingOrganization ?extResultingOrg.
?ce org:originalOrganization ?extResultingOrg
}
}
WHERE {
graph ?g {
?ce rdf:type org:ChangeEvent ;
code:veranderingsgebeurtenisResultaat ?resultaat.
?resultaat <http://lblod.data.gift/vocabularies/organisatie/resulterendeStatus> <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6>.
?resultaat ext:resultingOrganization ?extResultingOrg.
filter not exists {?ce org:resultingOrganization ?result }
}
}

View File

@@ -0,0 +1,90 @@
PREFIX core: <http://mu.semte.ch/vocabularies/core/>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX lblodorg: <http://lblod.data.gift/vocabularies/organisatie/>
PREFIX euro: <http://data.europa.eu/m8g/>
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
PREFIX eredienst: <http://data.lblod.info/id/besturenVanDeEredienst/>
PREFIX changeEventResult: <http://lblod.data.info/id/veranderingsgebeurtenis-resultaten/>
PREFIX changeEvent: <http://data.lblod.info/id/veranderingsgebeurtenissen/>
# Delete unnecessary merger change events
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?event a org:ChangeEvent ;
core:uuid "657AC8316DEE214B7207D455";
lblodorg:veranderingsgebeurtenisResultaat ?result ;
euro:hasFormalFramework ?decision ;
?ep ?eo .
?result a lblodorg:VeranderingsgebeurtenisResultaat ;
?rp ?ro .
?decision a besluit:Besluit ;
?de ?do .
}
}
;
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?event a org:ChangeEvent ;
core:uuid "657AC9676DEE214B7207D45F" ;
lblodorg:veranderingsgebeurtenisResultaat ?result ;
euro:hasFormalFramework ?decision ;
?ep ?eo .
?result a lblodorg:VeranderingsgebeurtenisResultaat ;
?rp ?ro .
?decision a besluit:Besluit ;
?de ?do .
}
}
;
DELETE WHERE {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
?event a org:ChangeEvent ;
core:uuid "657AC7246DEE214B7207D450" ;
lblodorg:veranderingsgebeurtenisResultaat ?result ;
euro:hasFormalFramework ?decision ;
?ep ?eo .
?result a lblodorg:VeranderingsgebeurtenisResultaat ;
?rp ?ro .
?decision a besluit:Besluit ;
?de ?do .
}
}
;
# Update correct merger change event
INSERT {
GRAPH <http://mu.semte.ch/graphs/worship-service> {
# Add additional original organisations
?changeEvent org:originalOrganization eredienst:441c4d0f38df06ce1319c64bdd89999c ,
eredienst:eff52265e7a466ab9920499d7fb2c5d5 ,
eredienst:e2767a25df8f412df71b785164828874 .
# Add additional change event results
?changeEvent lblodorg:veranderingsgebeurtenisResultaat changeEventResult:65BA04DCBB8AD42C21C8B2EE .
changeEventResult:65BA04DCBB8AD42C21C8B2EE a lblodorg:VeranderingsgebeurtenisResultaat ;
core:uuid "65BA04DCBB8AD42C21C8B2EE" ;
lblodorg:resulterendeStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> ;
ext:resultingOrganization eredienst:441c4d0f38df06ce1319c64bdd89999c .
?changeEvent lblodorg:veranderingsgebeurtenisResultaat changeEventResult:65BA04DCBB8AD42C21C8B2ED .
changeEventResult:65BA04DCBB8AD42C21C8B2ED a lblodorg:VeranderingsgebeurtenisResultaat ;
core:uuid "65BA04DCBB8AD42C21C8B2ED" ;
lblodorg:resulterendeStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> ;
ext:resultingOrganization eredienst:eff52265e7a466ab9920499d7fb2c5d5 .
?changeEvent lblodorg:veranderingsgebeurtenisResultaat changeEventResult:65BA04DCBB8AD42C21C8B2EC .
changeEventResult:65BA04DCBB8AD42C21C8B2EC a lblodorg:VeranderingsgebeurtenisResultaat ;
core:uuid "65BA04DCBB8AD42C21C8B2EC" ;
lblodorg:resulterendeStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> ;
ext:resultingOrganization eredienst:e2767a25df8f412df71b785164828874 .
}
} WHERE {
?changeEvent a org:ChangeEvent ;
core:uuid "657AC8BF6DEE214B7207D45A" .
}

View File

@@ -0,0 +1,253 @@
;
; virtuoso.ini
;
; Configuration file for the OpenLink Virtuoso VDBMS Server
;
; To learn more about this product, or any other product in our
; portfolio, please check out our web site at:
;
; http://virtuoso.openlinksw.com/
;
; or contact us at:
;
; general.information@openlinksw.com
;
; If you have any technical questions, please contact our support
; staff at:
;
; technical.support@openlinksw.com
;
;
; Database setup
;
[Database]
DatabaseFile = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso.db
ErrorLogFile = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso.log
LockFile = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso.lck
TransactionFile = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso.trx
xa_persistent_file = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso.pxa
ErrorLogLevel = 7
FileExtend = 200
MaxCheckpointRemap = 17000 ;;niels 1/4 of the number of buffers (assuming db uses most of the available buffers, you can check with `status()` in isql-v
Striping = 0
TempStorage = TempDatabase
Syslog = 1 ; write to syslog in case of failures where writing to log is not possible
[TempDatabase]
DatabaseFile = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso-temp.db
TransactionFile = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso-temp.trx
MaxCheckpointRemap = 2000
Striping = 0
;
; Server parameters
;
[Parameters]
ServerPort = 1111
LiteMode = 0
DisableUnixSocket = 1
DisableTcpSocket = 0
;SSLServerPort = 2111
;SSLCertificate = cert.pem
;SSLPrivateKey = pk.pem
;X509ClientVerify = 0
;X509ClientVerifyDepth = 0
;X509ClientVerifyCAFile = ca.pem
MaxClientConnections = 10
CheckpointInterval = 60
TraceOn = errors ; write traces
O_DIRECT = 0
CaseMode = 2
MaxStaticCursorRows = 5000
CheckpointAuditTrail = 0
AllowOSCalls = 0
SchedulerInterval = 10
DirsAllowed = ., /usr/local/virtuoso-opensource/share/virtuoso/vad
ThreadCleanupInterval = 10
ThreadThreshold = 10
ResourcesCleanupInterval = 10
FreeTextBatchSize = 100000
SingleCPU = 0
VADInstallDir = /usr/local/virtuoso-opensource/share/virtuoso/vad/
PrefixResultNames = 0
RdfFreeTextRulesSize = 100
IndexTreeMaps = 256
MaxMemPoolSize = 200000000
PrefixResultNames = 0
MacSpotlight = 0
MaxQueryMem = 4G ; memory allocated to query processor ;;Niels said to 4g
VectorSize = 1000 ; initial parallel query vector (array of query operations) size
MaxVectorSize = 1000000 ; query vector size threshold.
AdjustVectorSize = 0
ThreadsPerQuery = 4
AsyncQueueMaxThreads = 10
TransactionAfterImageLimit = 150000000 ; max 150MB transaction, total transient consumption is 450MB (roll forward + roll back)
;;
;; When running with large data sets, one should configure the Virtuoso
;; process to use between 2/3 to 3/5 of free system memory and to stripe
;; storage on all available disks.
;;
;; Uncomment next two lines if there is 2 GB system memory free
;;NumberOfBuffers = 170000
;;MaxDirtyBuffers = 130000
;; Uncomment next two lines if there is 4 GB system memory free
;;NumberOfBuffers = 340000
;;MaxDirtyBuffers = 250000
;; Uncomment next two lines if there is 8 GB system memory free
NumberOfBuffers = 680000
MaxDirtyBuffers = 500000
;; Uncomment next two lines if there is 16 GB system memory free
;NumberOfBuffers = 1360000
;MaxDirtyBuffers = 1000000
;; Uncomment next two lines if there is 32 GB system memory free
;NumberOfBuffers = 2720000
;MaxDirtyBuffers = 2000000
;; Uncomment next two lines if there is 48 GB system memory free
;NumberOfBuffers = 4000000
;MaxDirtyBuffers = 3000000
;; Uncomment next two lines if there is 64 GB system memory free
;NumberOfBuffers = 5450000
;MaxDirtyBuffers = 4000000
;;
;; Note the default settings will take very little memory
;; but will not result in very good performance
;;
;NumberOfBuffers = 10000
;MaxDirtyBuffers = 6000
;; Introduced after bug with export service
MaxSortedTopRows = 1000000 ; 1 million!
[HTTPServer]
ServerPort = 8890
ServerRoot = /usr/local/virtuoso-opensource/var/lib/virtuoso/vsp
MaxClientConnections = 10
DavRoot = DAV
EnabledDavVSP = 0
HTTPProxyEnabled = 0
TempASPXDir = 0
DefaultMailServer = localhost:25
ServerThreads = 10
MaxKeepAlives = 10
KeepAliveTimeout = 10
MaxCachedProxyConnections = 10
ProxyConnectionCacheTimeout = 15
HTTPThreadSize = 280000
HttpPrintWarningsInOutput = 0
Charset = UTF-8
;;HTTPLogFile = http.log
MaintenancePage = atomic.html
EnabledGzipContent = 1
[AutoRepair]
BadParentLinks = 0
[Client]
SQL_PREFETCH_ROWS = 100
SQL_PREFETCH_BYTES = 16000
SQL_QUERY_TIMEOUT = 0
SQL_TXN_TIMEOUT = 0
;SQL_NO_CHAR_C_ESCAPE = 1
;SQL_UTF8_EXECS = 0
;SQL_NO_SYSTEM_TABLES = 0
;SQL_BINARY_TIMESTAMP = 1
;SQL_ENCRYPTION_ON_PASSWORD = -1
[VDB]
ArrayOptimization = 0
NumArrayParameters = 10
VDBDisconnectTimeout = 1000
KeepConnectionOnFixedThread = 0
[Replication]
ServerName = db-D602566B774E
ServerEnable = 1
QueueMax = 50000
;
; Striping setup
;
; These parameters have only effect when Striping is set to 1 in the
; [Database] section, in which case the DatabaseFile parameter is ignored.
;
; With striping, the database is spawned across multiple segments
; where each segment can have multiple stripes.
;
; Format of the lines below:
; Segment<number> = <size>, <stripe file name> [, <stripe file name> .. ]
;
; <number> must be ordered from 1 up.
;
; The <size> is the total size of the segment which is equally divided
; across all stripes forming the segment. Its specification can be in
; gigabytes (g), megabytes (m), kilobytes (k) or in database blocks
; (b, the default)
;
; Note that the segment size must be a multiple of the database page size
; which is currently 8k. Also, the segment size must be divisible by the
; number of stripe files forming the segment.
;
; The example below creates a 200 meg database striped on two segments
; with two stripes of 50 meg and one of 100 meg.
;
; You can always add more segments to the configuration, but once
; added, do not change the setup.
;
[Striping]
Segment1 = 100M, db-seg1-1.db, db-seg1-2.db
Segment2 = 100M, db-seg2-1.db
;...
;[TempStriping]
;Segment1 = 100M, db-seg1-1.db, db-seg1-2.db
;Segment2 = 100M, db-seg2-1.db
;...
;[Ucms]
;UcmPath = <path>
;Ucm1 = <file>
;Ucm2 = <file>
;...
[Zero Config]
ServerName = virtuoso (D602566B774E)
;ServerDSN = ZDSN
;SSLServerName =
;SSLServerDSN =
[Mono]
;MONO_TRACE = Off
;MONO_PATH = <path_here>
;MONO_ROOT = <path_here>
;MONO_CFG_DIR = <path_here>
;virtclr.dll =
[URIQA]
DynamicLocal = 0
DefaultHost = localhost:8890
[SPARQL]
;ExternalQuerySource = 1
;ExternalXsltSource = 1
;DefaultGraph = http://localhost:8890/dataspace
;ImmutableGraphs = http://localhost:8890/dataspace
ResultSetMaxRows = 1000000 ; 1 million
;MaxQueryCostEstimationTime = 4000 ; in seconds
MaxQueryExecutionTime = 1200 ; in seconds
DefaultQuery = select distinct ?Concept where {[] a ?Concept} LIMIT 100
DeferInferenceRulesInit = 0 ; controls inference rules loading
;PingService = http://rpc.pingthesemanticweb.com/
[Plugins]
LoadPath = /usr/local/virtuoso-opensource/lib/virtuoso/hosting
;Load1 = plain, wikiv
;Load2 = plain, mediawiki
;Load3 = plain, creolewiki
;Load4 = plain, im
;Load5 = plain, wbxml2
;Load6 = plain, hslookup
;Load7 = attach, libphp5.so
;Load8 = Hosting, hosting_php.so
;Load9 = Hosting,hosting_perl.so
;Load10 = Hosting,hosting_python.so
;Load11 = Hosting,hosting_ruby.so
;Load12 = msdtc,msdtc_sample

View File

@@ -0,0 +1,253 @@
;
; virtuoso.ini
;
; Configuration file for the OpenLink Virtuoso VDBMS Server
;
; To learn more about this product, or any other product in our
; portfolio, please check out our web site at:
;
; http://virtuoso.openlinksw.com/
;
; or contact us at:
;
; general.information@openlinksw.com
;
; If you have any technical questions, please contact our support
; staff at:
;
; technical.support@openlinksw.com
;
;
; Database setup
;
[Database]
DatabaseFile = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso.db
ErrorLogFile = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso.log
LockFile = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso.lck
TransactionFile = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso.trx
xa_persistent_file = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso.pxa
ErrorLogLevel = 7
FileExtend = 200
MaxCheckpointRemap = 8500 ;;niels 1/4 of the number of buffers (assuming db uses most of the available buffers, you can check with `status()` in isql-v
Striping = 0
TempStorage = TempDatabase
Syslog = 1 ; write to syslog in case of failures where writing to log is not possible
[TempDatabase]
DatabaseFile = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso-temp.db
TransactionFile = /usr/local/virtuoso-opensource/var/lib/virtuoso/db/virtuoso-temp.trx
MaxCheckpointRemap = 2000
Striping = 0
;
; Server parameters
;
[Parameters]
ServerPort = 1111
LiteMode = 0
DisableUnixSocket = 1
DisableTcpSocket = 0
;SSLServerPort = 2111
;SSLCertificate = cert.pem
;SSLPrivateKey = pk.pem
;X509ClientVerify = 0
;X509ClientVerifyDepth = 0
;X509ClientVerifyCAFile = ca.pem
MaxClientConnections = 10
CheckpointInterval = 60
TraceOn = errors ; write traces
O_DIRECT = 0
CaseMode = 2
MaxStaticCursorRows = 5000
CheckpointAuditTrail = 0
AllowOSCalls = 0
SchedulerInterval = 10
DirsAllowed = ., /usr/local/virtuoso-opensource/share/virtuoso/vad
ThreadCleanupInterval = 10
ThreadThreshold = 10
ResourcesCleanupInterval = 10
FreeTextBatchSize = 100000
SingleCPU = 0
VADInstallDir = /usr/local/virtuoso-opensource/share/virtuoso/vad/
PrefixResultNames = 0
RdfFreeTextRulesSize = 100
IndexTreeMaps = 256
MaxMemPoolSize = 200000000
PrefixResultNames = 0
MacSpotlight = 0
MaxQueryMem = 2G
VectorSize = 1000 ; initial parallel query vector (array of query operations) size
MaxVectorSize = 1000000 ; query vector size threshold.
AdjustVectorSize = 0
ThreadsPerQuery = 4
AsyncQueueMaxThreads = 10
TransactionAfterImageLimit = 150000000 ; max 150MB transaction, total transient consumption is 450MB (roll forward + roll back)
;;
;; When running with large data sets, one should configure the Virtuoso
;; process to use between 2/3 to 3/5 of free system memory and to stripe
;; storage on all available disks.
;;
;; Uncomment next two lines if there is 2 GB system memory free
;;NumberOfBuffers = 170000
;;MaxDirtyBuffers = 130000
;; Uncomment next two lines if there is 4 GB system memory free
NumberOfBuffers = 340000
MaxDirtyBuffers = 250000
;; Uncomment next two lines if there is 8 GB system memory free
;NumberOfBuffers = 680000
;MaxDirtyBuffers = 500000
;; Uncomment next two lines if there is 16 GB system memory free
;NumberOfBuffers = 1360000
;MaxDirtyBuffers = 1000000
;; Uncomment next two lines if there is 32 GB system memory free
;NumberOfBuffers = 2720000
;MaxDirtyBuffers = 2000000
;; Uncomment next two lines if there is 48 GB system memory free
;NumberOfBuffers = 4000000
;MaxDirtyBuffers = 3000000
;; Uncomment next two lines if there is 64 GB system memory free
;NumberOfBuffers = 5450000
;MaxDirtyBuffers = 4000000
;;
;; Note the default settings will take very little memory
;; but will not result in very good performance
;;
;NumberOfBuffers = 10000
;MaxDirtyBuffers = 6000
;; Introduced after bug with export service
MaxSortedTopRows = 1000000 ; 1 million!
[HTTPServer]
ServerPort = 8890
ServerRoot = /usr/local/virtuoso-opensource/var/lib/virtuoso/vsp
MaxClientConnections = 10
DavRoot = DAV
EnabledDavVSP = 0
HTTPProxyEnabled = 0
TempASPXDir = 0
DefaultMailServer = localhost:25
ServerThreads = 10
MaxKeepAlives = 10
KeepAliveTimeout = 10
MaxCachedProxyConnections = 10
ProxyConnectionCacheTimeout = 15
HTTPThreadSize = 280000
HttpPrintWarningsInOutput = 0
Charset = UTF-8
;;HTTPLogFile = http.log
MaintenancePage = atomic.html
EnabledGzipContent = 1
[AutoRepair]
BadParentLinks = 0
[Client]
SQL_PREFETCH_ROWS = 100
SQL_PREFETCH_BYTES = 16000
SQL_QUERY_TIMEOUT = 0
SQL_TXN_TIMEOUT = 0
;SQL_NO_CHAR_C_ESCAPE = 1
;SQL_UTF8_EXECS = 0
;SQL_NO_SYSTEM_TABLES = 0
;SQL_BINARY_TIMESTAMP = 1
;SQL_ENCRYPTION_ON_PASSWORD = -1
[VDB]
ArrayOptimization = 0
NumArrayParameters = 10
VDBDisconnectTimeout = 1000
KeepConnectionOnFixedThread = 0
[Replication]
ServerName = db-D602566B774E
ServerEnable = 1
QueueMax = 50000
;
; Striping setup
;
; These parameters have only effect when Striping is set to 1 in the
; [Database] section, in which case the DatabaseFile parameter is ignored.
;
; With striping, the database is spawned across multiple segments
; where each segment can have multiple stripes.
;
; Format of the lines below:
; Segment<number> = <size>, <stripe file name> [, <stripe file name> .. ]
;
; <number> must be ordered from 1 up.
;
; The <size> is the total size of the segment which is equally divided
; across all stripes forming the segment. Its specification can be in
; gigabytes (g), megabytes (m), kilobytes (k) or in database blocks
; (b, the default)
;
; Note that the segment size must be a multiple of the database page size
; which is currently 8k. Also, the segment size must be divisible by the
; number of stripe files forming the segment.
;
; The example below creates a 200 meg database striped on two segments
; with two stripes of 50 meg and one of 100 meg.
;
; You can always add more segments to the configuration, but once
; added, do not change the setup.
;
[Striping]
Segment1 = 100M, db-seg1-1.db, db-seg1-2.db
Segment2 = 100M, db-seg2-1.db
;...
;[TempStriping]
;Segment1 = 100M, db-seg1-1.db, db-seg1-2.db
;Segment2 = 100M, db-seg2-1.db
;...
;[Ucms]
;UcmPath = <path>
;Ucm1 = <file>
;Ucm2 = <file>
;...
[Zero Config]
ServerName = virtuoso (D602566B774E)
;ServerDSN = ZDSN
;SSLServerName =
;SSLServerDSN =
[Mono]
;MONO_TRACE = Off
;MONO_PATH = <path_here>
;MONO_ROOT = <path_here>
;MONO_CFG_DIR = <path_here>
;virtclr.dll =
[URIQA]
DynamicLocal = 0
DefaultHost = localhost:8890
[SPARQL]
;ExternalQuerySource = 1
;ExternalXsltSource = 1
;DefaultGraph = http://localhost:8890/dataspace
;ImmutableGraphs = http://localhost:8890/dataspace
ResultSetMaxRows = 1000000 ; 1 million
;MaxQueryCostEstimationTime = 4000 ; in seconds
MaxQueryExecutionTime = 1200 ; in seconds
DefaultQuery = select distinct ?Concept where {[] a ?Concept} LIMIT 100
DeferInferenceRulesInit = 0 ; controls inference rules loading
;PingService = http://rpc.pingthesemanticweb.com/
[Plugins]
LoadPath = /usr/local/virtuoso-opensource/lib/virtuoso/hosting
;Load1 = plain, wikiv
;Load2 = plain, mediawiki
;Load3 = plain, creolewiki
;Load4 = plain, im
;Load5 = plain, wbxml2
;Load6 = plain, hslookup
;Load7 = attach, libphp5.so
;Load8 = Hosting, hosting_php.so
;Load9 = Hosting,hosting_perl.so
;Load10 = Hosting,hosting_python.so
;Load11 = Hosting,hosting_ruby.so
;Load12 = msdtc,msdtc_sample

View File

@@ -17,7 +17,11 @@ PREFIX persoon_loket: <http://data.vlaanderen.be/ns/persoon#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX string: <http://www.w3.org/2000/10/swap/string#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dc_terms: <http://purl.org/dc/terms/>
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>
PREFIX person: <http://www.w3.org/ns/person#>
PREFIX lblodlg: <http://data.lblod.info/vocabularies/leidinggevenden/>
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>
# DL and OP both use persoon:gebruikteVoornaam but with different semantics (!)
# Hence the mapping is in two steps.
@@ -148,3 +152,34 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
} => {
?s generiek:isTijdspecialisatieVan ?o.
}.
# In OP functionaris inherits from agents-in-position, which inherits from Agent
{
?s a lblodlg:Functionaris .
} => {
?s a ch:AgentInPositie ,
dc_terms:Agent .
} .
# In OP mandataris inherits from agents-in-position, which inherits from Agent
{
?s a mandaat:Mandataris .
} => {
?s a ch:AgentInPositie ,
dc_terms:Agent .
} .
# In OP minister inherits from agents-in-position, which inherits from Agent
{
?s a ere:RolBedienaar .
} => {
?s a ch:AgentInPositie ,
dc_terms:Agent .
} .
# In OP Person inherits from Agent
{
?s a person:Person .
} => {
?s a dc_terms:Agent .
} .

View File

@@ -0,0 +1,32 @@
PREFIX string: <http://www.w3.org/2000/10/swap/string#>
PREFIX e: <http://eulersharp.sourceforge.net/2003/03swap/log-rules#>
PREFIX schema: <http://schema.org/>
PREFIX : <#>
{
?s schema:telephone ?number.
# Remove all non digits
( ?number ("""[^+\\d]""") ("") ) string:replaceAll ?scrape_result.
# Replace leading 00 with +
( ?scrape_result """^00""" "+") string:replace ?replaced_zero_zero.
( ?replaced_zero_zero """^0""" "+32") string:replace ?default_be.
( ?default_be """\\+320""" "+32" ) string:replace ?replace_320.
( ?replace_320 """^320""" "+32" ) string:replace ?final_result.
?final_result string:matches """^\\+((32\\d{8})|(324\\d{8})|((?!32)\\d+))$""".
( "tel:" ?final_result ) string:concatenation ?parsed_result .
{
?s schema:telephone ?number.
} e:becomes {
?s schema:telephone ?parsed_result .
}.
} => {
?s schema:telephone ?parsed_result .
}.

View File

@@ -127,6 +127,18 @@
?s a <http://www.w3.org/ns/person#Person>
}.
{
?s a <http://purl.org/dc/terms/Agent>
} => {
?s a <http://purl.org/dc/terms/Agent>
}.
{
?s a <http://data.lblod.info/vocabularies/contacthub/AgentInPositie>
} => {
?s a <http://data.lblod.info/vocabularies/contacthub/AgentInPositie>
}.
{
?s a <http://www.w3.org/ns/prov#Location>
} => {

View File

@@ -17,6 +17,10 @@ PREFIX persoon_loket: <http://data.vlaanderen.be/ns/persoon#>
PREFIX skos:<http://www.w3.org/2004/02/skos/core#>
PREFIX string: <http://www.w3.org/2000/10/swap/string#>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX dc_terms: <http://purl.org/dc/terms/>
PREFIX ch: <http://data.lblod.info/vocabularies/contacthub/>
PREFIX person: <http://www.w3.org/ns/person#>
PREFIX lblodlg: <http://data.lblod.info/vocabularies/leidinggevenden/>
# DL and OP both use persoon:gebruikteVoornaam but with different semantics (!)
# Hence the mapping is in two steps.
@@ -171,4 +175,34 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
}
} => {
?s generiek:isTijdspecialisatieVan ?o.
}.
} .
# In OP functionaris inherits from agents-in-position, which inherits from Agent
{
?s a lblodlg:Functionaris .
} => {
?s a ch:AgentInPositie ,
dc_terms:Agent .
} .
# In OP mandataris inherits from agents-in-position, which inherits from Agent
{
?s a mandaat:Mandataris .
} => {
?s a ch:AgentInPositie ,
dc_terms:Agent .
} .
# In OP AgentInPositie inherits from Agent
{
?s a ch:AgentInPositie .
} => {
?s a dc_terms:Agent .
} .
# In OP Person inherits from Agent
{
?s a person:Person .
} => {
?s a dc_terms:Agent .
} .

View File

@@ -0,0 +1,32 @@
PREFIX string: <http://www.w3.org/2000/10/swap/string#>
PREFIX e: <http://eulersharp.sourceforge.net/2003/03swap/log-rules#>
PREFIX schema: <http://schema.org/>
PREFIX : <#>
{
?s schema:telephone ?number.
# Remove all non digits
( ?number ("""[^+\\d]""") ("") ) string:replaceAll ?scrape_result.
# Replace leading 00 with +
( ?scrape_result """^00""" "+") string:replace ?replaced_zero_zero.
( ?replaced_zero_zero """^0""" "+32") string:replace ?default_be.
( ?default_be """\\+320""" "+32" ) string:replace ?replace_320.
( ?replace_320 """^320""" "+32" ) string:replace ?final_result.
?final_result string:matches """^\\+((32\\d{8})|(324\\d{8})|((?!32)\\d+))$""".
( "tel:" ?final_result ) string:concatenation ?parsed_result .
{
?s schema:telephone ?number.
} e:becomes {
?s schema:telephone ?parsed_result .
}.
} => {
?s schema:telephone ?parsed_result .
}.

View File

@@ -26,7 +26,17 @@
?p ?o .
}.
# Functionarissen should be linked to a agb, apb, gemeente, district, provincie or ocmw only (FOR NOW)
# For functionarissen, the contact point is on the bestuursfunctie and not on the agent in position
{
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Bestuursfunctie> ;
<http://schema.org/contactPoint> ?o .
} => {
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Bestuursfunctie> ;
<http://schema.org/contactPoint> ?o .
}.
# Functionarissen should be linked to an igs, agb, apb, gemeente, district, provincie or ocmw only (FOR NOW)
{
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
@@ -111,6 +121,61 @@
?p ?o .
}.
{
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
<http://www.w3.org/ns/org#holds> ?bestuursfunctie ;
?p ?o .
?orgaanInTime <http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie> ?bestuursfunctie ;
<https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan> ?orgaan .
?orgaan <http://data.vlaanderen.be/ns/besluit#bestuurt> ?bestuur .
?bestuur <http://www.w3.org/ns/org#classification> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/b156b67f-c5f4-4584-9b30-4c090be02fdc> .
} => {
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
?p ?o .
}.
{
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
<http://www.w3.org/ns/org#holds> ?bestuursfunctie ;
?p ?o .
?orgaanInTime <http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie> ?bestuursfunctie ;
<https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan> ?orgaan .
?orgaan <http://data.vlaanderen.be/ns/besluit#bestuurt> ?bestuur .
?bestuur <http://www.w3.org/ns/org#classification> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/d01bb1f6-2439-4e33-9c25-1fc295de2e71> .
} => {
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
?p ?o .
}.
{
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
<http://www.w3.org/ns/org#holds> ?bestuursfunctie ;
?p ?o .
?orgaanInTime <http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie> ?bestuursfunctie ;
<https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan> ?orgaan .
?orgaan <http://data.vlaanderen.be/ns/besluit#bestuurt> ?bestuur .
?bestuur <http://www.w3.org/ns/org#classification> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/cd93f147-3ece-4308-acab-5c5ada3ec63d> .
} => {
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
?p ?o .
}.
{
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
<http://www.w3.org/ns/org#holds> ?bestuursfunctie ;
?p ?o .
?orgaanInTime <http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie> ?bestuursfunctie ;
<https://data.vlaanderen.be/ns/generiek#isTijdspecialisatieVan> ?orgaan .
?orgaan <http://data.vlaanderen.be/ns/besluit#bestuurt> ?bestuur .
?bestuur <http://www.w3.org/ns/org#classification> <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/4b8450cf-a326-4c66-9e63-b4ec10acc7f6> .
} => {
?s a <http://data.lblod.info/vocabularies/leidinggevenden/Functionaris> ;
?p ?o .
}.
# Mandatarissen should be linked to a gemeente, district, provincie or ocmw only (FOR NOW)
@@ -170,8 +235,6 @@
?p ?o .
}.
{
?s a <http://www.w3.org/ns/org#Membership> ;
?p ?o .

5
config/reports/index.js Normal file
View File

@@ -0,0 +1,5 @@
import OrganizationsReport from './organizations-report'
export default [
OrganizationsReport,
];

View File

@@ -0,0 +1,115 @@
import { generateReportFromData, batchedQuery } from '../helpers.js';
import { PREFIXES } from './utils'
export default {
cronPattern: '0 00 23 * * *',
name: 'organizations',
execute: async () => {
const reportData = {
title: 'organizations',
description: 'List of the Organizations',
filePrefix: 'exports/organizations'
};
console.log('Generating organizations report');
const queryStringPart1 = `
${PREFIXES}
SELECT DISTINCT ?bestuur ?label ?classification ?typeEredienst
WHERE {
VALUES ?type {
org:Organization
besluit:Bestuurseenheid
}
GRAPH ?g {
?bestuur a ?type .
OPTIONAL { ?bestuur skos:prefLabel ?label. }
}
OPTIONAL {
?bestuur org:classification ?classificationUri .
?classificationUri skos:prefLabel ?classification.
}
OPTIONAL {
?bestuur ere:typeEredienst ?typeEredienstUri.
?typeEredienstUri skos:prefLabel ?typeEredienst.
}
FILTER (?g IN ( <http://mu.semte.ch/graphs/administrative-unit>, <http://mu.semte.ch/graphs/worship-service>, <http://mu.semte.ch/graphs/shared>))
}
`;
const queryResponsePart1 = await batchedQuery(queryStringPart1);
const dataPart1 = queryResponsePart1.results.bindings.reduce( (acc, row) => {
acc[getSafeValue(row, 'bestuur')] = {
bestuur: getSafeValue(row, 'bestuur'),
label: getSafeValue(row, 'label'),
classification: getSafeValue(row, 'classification'),
typeEredienst: getSafeValue(row, 'typeEredienst'),
};
return acc;
}, {});
const queryStringPart2 = `
${PREFIXES}
SELECT DISTINCT ?bestuur ?provincie
WHERE {
VALUES ?type {
org:Organization
besluit:Bestuurseenheid
}
GRAPH ?g {
?bestuur a ?type .
}
GRAPH ?h {
OPTIONAL {
?bestuur org:hasPrimarySite ?primarySite.
OPTIONAL {
?primarySite organisatie:bestaatUit ?sa.
OPTIONAL { ?sa locn:adminUnitL2 ?provincie. }
}
}
}
FILTER (?g IN ( <http://mu.semte.ch/graphs/administrative-unit>, <http://mu.semte.ch/graphs/worship-service>, <http://mu.semte.ch/graphs/shared>))
FILTER (?h IN ( <http://mu.semte.ch/graphs/administrative-unit>, <http://mu.semte.ch/graphs/worship-service>, <http://mu.semte.ch/graphs/shared>))
}
`;
const queryResponsePart2 = await batchedQuery(queryStringPart2);
const dataPart2 = queryResponsePart2.results.bindings.reduce( (acc, row) => {
let dataPart = {
bestuur: getSafeValue(row, 'bestuur'),
provincie: getSafeValue(row, 'provincie')
};
acc[getSafeValue(row, 'bestuur')] = Object.assign(dataPart, dataPart1[getSafeValue(row, 'bestuur')]);
return acc;
}, {});
await generateReportFromData(Object.values(dataPart2), [
'bestuur',
'label',
'classification',
'typeEredienst',
'provincie'
], reportData);
}
};
function getSafeValue(entry, property){
return entry[property] ? wrapInQuote(entry[property].value) : null;
}
// Some values might contain commas; wrapping them in escapes quotes doesn't disrupt the columns.
function wrapInQuote(value) {
return `\"${value}\"`;
}

29
config/reports/utils.js Normal file
View File

@@ -0,0 +1,29 @@
export const PREFIXES = `
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#>
`;

View File

@@ -18,6 +18,8 @@
"mandaat": "http://data.vlaanderen.be/ns/mandaat#",
"besluit": "http://data.vlaanderen.be/ns/besluit#",
"lblodlg": "http://data.lblod.info/vocabularies/leidinggevenden/",
"lblodorg": "https://data.lblod.info/vocabularies/organisatie/",
"lblodgeneriek": "https://data.lblod.info/vocabularies/generiek/",
"dc_terms": "http://purl.org/dc/terms/",
"foaf": "http://xmlns.com/foaf/0.1/",
"skos": "http://www.w3.org/2004/02/skos/core#",
@@ -26,11 +28,29 @@
"ch": "http://data.lblod.info/vocabularies/contacthub/",
"code": "http://lblod.data.gift/vocabularies/organisatie/",
"ext": "http://mu.semte.ch/vocabularies/ext/",
"geo": "http://www.opengis.net/ont/geosparql#"
"geo": "http://www.opengis.net/ont/geosparql#",
"nacebel": "http://data.gift/vocabularies/nace-bel/"
},
"resources": {
"agents": {
"class": "dc_terms:Agent",
"relationships": {
"position": {
"predicate": "org:holds",
"target": "posts",
"cardinality": "many"
},
"contacts": {
"predicate": "schema:contactPoint",
"target": "contact-points",
"cardinality": "many"
}
},
"new-resource-base": "http://data.lblod.info/id/agenten/"
},
"people": {
"class": "person:Person",
"super": ["agents"],
"attributes": {
"given-name": {
"type": "string",
@@ -58,9 +78,9 @@
"cardinality": "many",
"inverse": true
},
"agents": {
"functionaries": {
"predicate": "mandaat:isBestuurlijkeAliasVan",
"target": "agents",
"target": "functionaries",
"cardinality": "many",
"inverse": true
}
@@ -69,6 +89,7 @@
},
"agents-in-position": {
"class": "ch:AgentInPositie",
"super": ["agents"],
"attributes": {
"agent-start-date": {
"type": "date",
@@ -80,11 +101,6 @@
}
},
"relationships": {
"position": {
"predicate": "org:holds",
"target": "posts",
"cardinality": "one"
},
"person": {
"predicate": "org:heldBy",
"target": "people",
@@ -111,20 +127,17 @@
"target": "organizations",
"cardinality": "one"
},
"agents-in-position": {
"predicate": "org:holds",
"target": "agents-in-position",
"cardinality": "many",
"inverse": true
"agent": {
"predicate": "org:heldBy",
"target": "agents",
"cardinality": "one"
}
},
"new-resource-base": "http://data.lblod.info/id/posities/"
},
"mandatories": {
"class": "mandaat:Mandataris",
"super": [
"agents-in-position"
],
"super": ["agents-in-position"],
"attributes": {
"start-date": {
"type": "date",
@@ -167,16 +180,12 @@
"predicate": "skos:prefLabel"
}
},
"features": [
"include-uri"
],
"features": ["include-uri"],
"new-resource-base": "http://data.vlaanderen.be/id/concept/MandatarisStatusCode/"
},
"worship-mandatories": {
"class": "ere:EredienstMandataris",
"super": [
"mandatories"
],
"super": ["mandatories"],
"attributes": {
"expected-end-date": {
"type": "date",
@@ -241,9 +250,7 @@
},
"mandates": {
"class": "mandaat:Mandaat",
"super": [
"posts"
],
"super": ["posts"],
"relationships": {
"role-board": {
"predicate": "org:role",
@@ -265,11 +272,9 @@
},
"new-resource-base": "http://data.lblod.info/id/mandaten/"
},
"agents": {
"functionaries": {
"class": "lblodlg:Functionaris",
"super": [
"agents-in-position"
],
"super": ["agents-in-position"],
"attributes": {
"start-date": {
"type": "datetime",
@@ -307,16 +312,12 @@
"predicate": "skos:prefLabel"
}
},
"features": [
"include-uri"
],
"features": ["include-uri"],
"new-resource-base": "http://data.vlaanderen.be/id/concept/functionarisStatusCode/"
},
"board-positions": {
"class": "lblodlg:Bestuursfunctie",
"super": [
"posts"
],
"super": ["posts"],
"relationships": {
"role-board": {
"predicate": "org:role",
@@ -366,6 +367,7 @@
},
"organizations": {
"class": "org:Organization",
"super": ["agents"],
"attributes": {
"name": {
"type": "string",
@@ -374,6 +376,14 @@
"alternative-name": {
"type": "string",
"predicate": "skos:altLabel"
},
"expected-end-date": {
"type": "date",
"predicate": "lblodgeneriek:geplandeEindDatum"
},
"purpose": {
"type": "string",
"predicate": "org:purpose"
}
},
"relationships": {
@@ -452,15 +462,34 @@
"target": "organizations",
"cardinality": "one",
"inverse": true
},
"sector": {
"predicate": "dc_terms:isPartOf",
"target": "sectors",
"cardinality": "many"
},
"activities": {
"predicate": "regorg:orgActivity",
"target": "nace-bel-codes",
"cardinality": "many"
},
"participates-in": {
"predicate": "org:memberOf",
"target": "organizations",
"cardinality": "many"
},
"has-participants": {
"predicate": "org:memberOf",
"target": "organizations",
"cardinality": "many",
"inverse": true
}
},
"new-resource-base": "http://data.lblod.info/id/organisaties/"
},
"administrative-units": {
"class": "besluit:Bestuurseenheid",
"super": [
"organizations"
],
"super": ["organizations"],
"relationships": {
"classification": {
"predicate": "org:classification",
@@ -496,21 +525,24 @@
},
"new-resource-base": "http://data.lblod.info/id/bestuurseenheden/"
},
"administrative-unit-classification-codes": {
"class": "code:BestuurseenheidClassificatieCode",
"organization-classification-codes": {
"class": "ext:OrganizationClassificationCode",
"attributes": {
"label": {
"type": "string",
"predicate": "skos:prefLabel"
}
},
"new-resource-base": "http://data.vlaanderen.be/id/concept/OrganizationClassificationCode/"
},
"administrative-unit-classification-codes": {
"class": "code:BestuurseenheidClassificatieCode",
"super": ["organization-classification-codes"],
"new-resource-base": "http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/"
},
"worship-administrative-units": {
"class": "ere:EredienstBestuurseenheid",
"super": [
"administrative-units"
],
"super": ["administrative-units"],
"relationships": {
"recognized-worship-type": {
"predicate": "ere:typeEredienst",
@@ -533,9 +565,7 @@
},
"worship-services": {
"class": "ere:BestuurVanDeEredienst",
"super": [
"worship-administrative-units"
],
"super": ["worship-administrative-units"],
"attributes": {
"denomination": {
"type": "string",
@@ -560,17 +590,18 @@
},
"central-worship-services": {
"class": "ere:CentraalBestuurVanDeEredienst",
"super": [
"worship-administrative-units"
],
"super": ["worship-administrative-units"],
"new-resource-base": "http://data.lblod.info/id/centraleBesturenVanDeEredienst/"
},
"representative-bodies": {
"class": "ere:RepresentatiefOrgaan",
"super": [
"organizations"
],
"super": ["organizations"],
"relationships": {
"classification": {
"predicate": "org:classification",
"target": "representative-body-classification-codes",
"cardinality": "one"
},
"recognized-worship-type": {
"predicate": "ere:typeEredienst",
"target": "recognized-worship-types",
@@ -585,6 +616,11 @@
},
"new-resource-base": "http://data.lblod.info/id/representatieveOrganen/"
},
"representative-body-classification-codes": {
"class": "ext:RepresentatiefOrgaanClassificatieCode",
"super": ["organization-classification-codes"],
"new-resource-base": "http://data.vlaanderen.be/id/concept/RepresentatiefOrgaanClassificatieCode/"
},
"governing-bodies": {
"class": "besluit:Bestuursorgaan",
"attributes": {
@@ -800,9 +836,7 @@
"predicate": "skos:prefLabel"
}
},
"features": [
"include-uri"
],
"features": ["include-uri"],
"new-resource-base": "http://lblod.data.gift/concepts/"
},
"locations": {
@@ -855,9 +889,7 @@
},
"ministers": {
"class": "ere:RolBedienaar",
"super": [
"agents-in-position"
],
"super": ["agents-in-position"],
"relationships": {
"minister-position": {
"predicate": "org:holds",
@@ -925,9 +957,7 @@
},
"minister-positions": {
"class": "ere:PositieBedienaar",
"super": [
"posts"
],
"super": ["posts"],
"relationships": {
"function": {
"predicate": "ere:functie",
@@ -965,7 +995,7 @@
"new-resource-base": "http://lblod.data.gift/concepts/"
},
"financing-codes": {
"class": "code:BedienaarFinanceringCode",
"class": "code:BedienaarFinancieringCode",
"attributes": {
"label": {
"type": "string",
@@ -1003,6 +1033,30 @@
}
},
"new-resource-base": "http://lblod.data.gift/concepts/"
},
"sectors": {
"class": "code:Sector",
"attributes": {
"label": {
"type": "string",
"predicate": "skos:prefLabel"
}
},
"new-resource-base": "http://lblod.data.gift/concepts/"
},
"nace-bel-codes": {
"class": "nacebel:NaceBelCode",
"attributes": {
"label": {
"type": "string",
"predicate": "skos:prefLabel"
},
"code": {
"type": "string",
"predicate": "skos:notation"
}
},
"new-resource-base": "http://data.relance.lblod.info/id/nace-bel/"
}
}
}

View File

@@ -66,11 +66,19 @@
"custom_sort_normalizer": {
"type": "custom",
"char_filter": [],
"filter": [
"lowercase",
"trim",
"asciifolding"
]
"filter": ["lowercase", "trim", "asciifolding"]
},
"identifier_normalizer": {
"type": "custom",
"char_filter": ["identifier_alphanumeric_filter"],
"filter": ["lowercase", "trim", "asciifolding"]
}
},
"char_filter": {
"identifier_alphanumeric_filter": {
"type": "pattern_replace",
"pattern": "[^a-zA-Z0-9]",
"replacement": ""
}
}
}
@@ -242,8 +250,8 @@
}
},
{
"type": "agent",
"on_path": "agents",
"type": "functionary",
"on_path": "functionaries",
"rdf_type": "http://data.lblod.info/vocabularies/leidinggevenden/Functionaris",
"properties": {
"given_name": [
@@ -560,18 +568,14 @@
},
{
"type": "person",
"composite_types": [
"minister",
"agent",
"mandatory"
],
"composite_types": ["minister", "functionary", "mandatory"],
"on_path": "people",
"properties": [
{
"name": "given_name",
"mappings": {
"minister": "given_name",
"agent": "given_name",
"functionary": "given_name",
"mandatory": "given_name"
}
},
@@ -579,7 +583,7 @@
"name": "person_id",
"mappings": {
"minister": "person_id",
"agent": "person_id",
"functionary": "person_id",
"mandatory": "person_id"
}
},
@@ -587,7 +591,7 @@
"name": "family_name",
"mappings": {
"minister": "family_name",
"agent": "family_name",
"functionary": "family_name",
"mandatory": "family_name"
}
},
@@ -595,7 +599,7 @@
"name": "first_name_used",
"mappings": {
"minister": "first_name_used",
"agent": "first_name_used",
"functionary": "first_name_used",
"mandatory": "first_name_used"
}
},
@@ -603,7 +607,7 @@
"name": "end_date",
"mappings": {
"minister": "end_date",
"agent": "end_date",
"functionary": "end_date",
"mandatory": "end_date"
}
},
@@ -611,7 +615,7 @@
"name": "organization_id",
"mappings": {
"minister": "organization_id",
"agent": "organization_id",
"functionary": "organization_id",
"mandatory": "organization_id"
}
},
@@ -619,7 +623,7 @@
"name": "organization_classification",
"mappings": {
"minister": "organization_classification",
"agent": "organization_classification",
"functionary": "organization_classification",
"mandatory": "organization_classification"
}
},
@@ -627,7 +631,7 @@
"name": "organization_name",
"mappings": {
"minister": "organization_name",
"agent": "organization_name",
"functionary": "organization_name",
"mandatory": "organization_name"
}
},
@@ -635,7 +639,7 @@
"name": "organization_municipality",
"mappings": {
"minister": "organization_municipality",
"agent": "organization_municipality",
"functionary": "organization_municipality",
"mandatory": "organization_municipality"
}
},
@@ -643,7 +647,7 @@
"name": "organization_province",
"mappings": {
"minister": "organization_province",
"agent": "organization_province",
"functionary": "organization_province",
"mandatory": "organization_province"
}
},
@@ -651,7 +655,7 @@
"name": "position_id",
"mappings": {
"minister": "position_id",
"agent": "position_id",
"functionary": "position_id",
"mandatory": "position_id"
}
},
@@ -659,7 +663,7 @@
"name": "position_name",
"mappings": {
"minister": "position_name",
"agent": "position_name",
"functionary": "position_name",
"mandatory": "position_name"
}
}
@@ -756,7 +760,8 @@
"http://data.vlaanderen.be/ns/besluit#Bestuurseenheid",
"http://data.lblod.info/vocabularies/erediensten/EredienstBestuurseenheid",
"http://data.lblod.info/vocabularies/erediensten/CentraalBestuurVanDeEredienst",
"http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst"
"http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst",
"http://data.lblod.info/vocabularies/erediensten/RepresentatiefOrgaan"
],
"properties": {
"name": "http://www.w3.org/2004/02/skos/core#prefLabel",
@@ -793,6 +798,11 @@
"http://www.w3.org/ns/org#hasPrimarySite",
"https://data.vlaanderen.be/ns/organisatie#bestaatUit",
"https://data.vlaanderen.be/ns/adres#gemeentenaam"
],
"identifier": [
"http://www.w3.org/ns/adms#identifier",
"https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator",
"https://data.vlaanderen.be/ns/generiek#lokaleIdentificator"
]
},
"mappings": {
@@ -856,6 +866,15 @@
"normalizer": "custom_sort_normalizer"
}
}
},
"identifier": {
"type": "text",
"fields": {
"index": {
"type": "keyword",
"normalizer": "identifier_normalizer"
}
}
}
}
}

View File

@@ -38,11 +38,19 @@
"custom_sort_normalizer": {
"type": "custom",
"char_filter": [],
"filter": [
"lowercase",
"trim",
"asciifolding"
]
"filter": ["lowercase", "trim", "asciifolding"]
},
"identifier_normalizer": {
"type": "custom",
"char_filter": ["identifier_alphanumeric_filter"],
"filter": ["lowercase", "trim", "asciifolding"]
}
},
"char_filter": {
"identifier_alphanumeric_filter": {
"type": "pattern_replace",
"pattern": "[^a-zA-Z0-9]",
"replacement": ""
}
}
}
@@ -214,8 +222,8 @@
}
},
{
"type": "agent",
"on_path": "agents",
"type": "functionary",
"on_path": "functionaries",
"rdf_type": "http://data.lblod.info/vocabularies/leidinggevenden/Functionaris",
"properties": {
"given_name": [
@@ -532,18 +540,14 @@
},
{
"type": "person",
"composite_types": [
"minister",
"agent",
"mandatory"
],
"composite_types": ["minister", "functionary", "mandatory"],
"on_path": "people",
"properties": [
{
"name": "given_name",
"mappings": {
"minister": "given_name",
"agent": "given_name",
"functionary": "given_name",
"mandatory": "given_name"
}
},
@@ -551,7 +555,7 @@
"name": "person_id",
"mappings": {
"minister": "person_id",
"agent": "person_id",
"functionary": "person_id",
"mandatory": "person_id"
}
},
@@ -559,7 +563,7 @@
"name": "family_name",
"mappings": {
"minister": "family_name",
"agent": "family_name",
"functionary": "family_name",
"mandatory": "family_name"
}
},
@@ -567,7 +571,7 @@
"name": "first_name_used",
"mappings": {
"minister": "first_name_used",
"agent": "first_name_used",
"functionary": "first_name_used",
"mandatory": "first_name_used"
}
},
@@ -575,7 +579,7 @@
"name": "end_date",
"mappings": {
"minister": "end_date",
"agent": "end_date",
"functionary": "end_date",
"mandatory": "end_date"
}
},
@@ -583,7 +587,7 @@
"name": "organization_id",
"mappings": {
"minister": "organization_id",
"agent": "organization_id",
"functionary": "organization_id",
"mandatory": "organization_id"
}
},
@@ -591,7 +595,7 @@
"name": "organization_classification",
"mappings": {
"minister": "organization_classification",
"agent": "organization_classification",
"functionary": "organization_classification",
"mandatory": "organization_classification"
}
},
@@ -599,7 +603,7 @@
"name": "organization_name",
"mappings": {
"minister": "organization_name",
"agent": "organization_name",
"functionary": "organization_name",
"mandatory": "organization_name"
}
},
@@ -607,7 +611,7 @@
"name": "organization_municipality",
"mappings": {
"minister": "organization_municipality",
"agent": "organization_municipality",
"functionary": "organization_municipality",
"mandatory": "organization_municipality"
}
},
@@ -615,7 +619,7 @@
"name": "organization_province",
"mappings": {
"minister": "organization_province",
"agent": "organization_province",
"functionary": "organization_province",
"mandatory": "organization_province"
}
},
@@ -623,7 +627,7 @@
"name": "position_id",
"mappings": {
"minister": "position_id",
"agent": "position_id",
"functionary": "position_id",
"mandatory": "position_id"
}
},
@@ -631,7 +635,7 @@
"name": "position_name",
"mappings": {
"minister": "position_name",
"agent": "position_name",
"functionary": "position_name",
"mandatory": "position_name"
}
}
@@ -729,7 +733,8 @@
"http://data.vlaanderen.be/ns/besluit#Bestuurseenheid",
"http://data.lblod.info/vocabularies/erediensten/EredienstBestuurseenheid",
"http://data.lblod.info/vocabularies/erediensten/CentraalBestuurVanDeEredienst",
"http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst"
"http://data.lblod.info/vocabularies/erediensten/BestuurVanDeEredienst",
"http://data.lblod.info/vocabularies/erediensten/RepresentatiefOrgaan"
],
"properties": {
"name": "http://www.w3.org/2004/02/skos/core#prefLabel",
@@ -766,6 +771,11 @@
"http://www.w3.org/ns/org#hasPrimarySite",
"https://data.vlaanderen.be/ns/organisatie#bestaatUit",
"https://data.vlaanderen.be/ns/adres#gemeentenaam"
],
"identifier": [
"http://www.w3.org/ns/adms#identifier",
"https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator",
"https://data.vlaanderen.be/ns/generiek#lokaleIdentificator"
]
},
"mappings": {
@@ -829,6 +839,15 @@
"normalizer": "custom_sort_normalizer"
}
}
},
"identifier": {
"type": "text",
"fields": {
"index": {
"type": "keyword",
"normalizer": "identifier_normalizer"
}
}
}
}
}

View File

@@ -0,0 +1,108 @@
{
"sourceGraphs": [
"http://mu.semte.ch/graphs/administrative-unit",
"http://mu.semte.ch/graphs/shared",
"http://mu.semte.ch/graphs/public"
],
"objects": [
{
"type": "http://data.vlaanderen.be/ns/besluit#Bestuurseenheid",
"mappings": [
{
"op": ["http://www.w3.org/2004/02/skos/core#prefLabel"],
"sl": "Title"
},
{
"op": ["http://www.w3.org/ns/org#classification", "http://www.w3.org/2004/02/skos/core#prefLabel"],
"sl": "OP_Type"
},
{
"op": ["http://www.w3.org/ns/regorg#orgStatus", "http://www.w3.org/2004/02/skos/core#prefLabel"],
"sl": "OP_Status"
},
{
"op": ["http://mu.semte.ch/vocabularies/core/uuid"],
"sl": "OP_Uuid"
},
{
"op": ["http://mu.semte.ch/vocabularies/core/uuid", "^http://mu.semte.ch/vocabularies/core/uuid"],
"sl": "OP_Uri",
"isMatchingField": "true"
},
{
"op": ["http://data.vlaanderen.be/ns/besluit#werkingsgebied", "http://www.w3.org/2004/02/skos/core#exactMatch", "http://www.w3.org/2004/02/skos/core#notation"],
"sl": "OP_NIScode"
}
],
"pathToMatchingUri": "?s a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> . BIND (?s as ?matchingUri)"
},
{
"type": "https://data.vlaanderen.be/ns/generiek#GestructureerdeIdentificator",
"mappings": [
{
"op": ["https://data.vlaanderen.be/ns/generiek#lokaleIdentificator"],
"sl": "OP_KBO"
}
],
"pathToMatchingUri": "?matchingUri a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;\n\t <http://www.w3.org/ns/adms#identifier> ?kboIdentifier .\n ?kboIdentifier <http://www.w3.org/2004/02/skos/core#notation> ?kboLabel ;\n\t <https://data.vlaanderen.be/ns/generiek#gestructureerdeIdentificator> ?s . FILTER (?kboLabel IN (\"KBO nummer\"@nl, \"KBO nummer\"))"
},
{
"type": "http://www.w3.org/ns/locn#Address",
"mappings": [
{
"op": ["http://www.w3.org/ns/locn#thoroughfare"],
"sl": "OP_Straat"
},
{
"op": ["https://data.vlaanderen.be/ns/adres#Adresvoorstelling.huisnummer"],
"sl": "OP_Huisnummer"
},
{
"op": ["https://data.vlaanderen.be/ns/adres#Adresvoorstelling.busnummer"],
"sl": "OP_Busnummer"
},
{
"op": ["http://www.w3.org/ns/locn#postCode"],
"sl": "OP_Postcode"
},
{
"op": ["https://data.vlaanderen.be/ns/adres#gemeentenaam"],
"sl": "OP_Gemeente"
},
{
"op": ["http://www.w3.org/ns/locn#adminUnitL2"],
"sl": "OP_Provincie"
}
],
"pathToMatchingUri": "?matchingUri a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;\n\t <http://www.w3.org/ns/org#hasPrimarySite>/<https://data.vlaanderen.be/ns/organisatie#bestaatUit> ?s ."
},
{
"type": "http://schema.org/ContactPoint",
"mappings": [
{
"op": ["http://schema.org/telephone"],
"sl": "OP_Primair_Telefoonnummer"
},
{
"op": ["http://xmlns.com/foaf/0.1/page"],
"sl": "OP_Website"
},
{
"op": ["http://schema.org/email"],
"sl": "OP_Email"
}
],
"pathToMatchingUri": "?matchingUri a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;\n\t <http://www.w3.org/ns/org#hasPrimarySite>/<http://www.w3.org/ns/org#siteAddress> ?s . ?s <http://schema.org/contactType> \"Primary\""
},
{
"type": "http://schema.org/ContactPoint",
"mappings": [
{
"op": ["http://schema.org/telephone"],
"sl": "OP_Secundair_Telefoonnummer"
}
],
"pathToMatchingUri": "?matchingUri a <http://data.vlaanderen.be/ns/besluit#Bestuurseenheid> ;\n\t <http://www.w3.org/ns/org#hasPrimarySite>/<http://www.w3.org/ns/org#siteAddress> ?s . ?s <http://schema.org/contactType> \"Secondary\""
}
]
}

View File

@@ -63,8 +63,16 @@ services:
restart: "no"
file:
restart: "no"
publication-triplestore:
restart: "no"
ports:
- "8891:8890"
delta-producer-dump-file-publisher:
restart: "no"
organizations-sync-with-sharepoint-jobs-initiator:
restart: "no"
organizations-sync-with-sharepoint:
restart: "no"
construct-administrative-unit-relationships:
restart: "no"
delta-producer-bg-jobs-initiator-worship-posts:
@@ -84,6 +92,8 @@ services:
ldes-backend:
environment:
BASE_URL: "http://localhost/ldes/"
sync-ovo-numbers:
restart: "no"
# use this to test acmidm
# tlsproxy:
# image: caddy:2

View File

@@ -8,7 +8,7 @@ x-logging: &default-logging
services:
identifier:
image: semtech/mu-identifier:1.9.1
image: semtech/mu-identifier:1.10.1
environment:
DEFAULT_MU_AUTH_ALLOWED_GROUPS_HEADER: '[{"variables":[],"name":"public"}]'
SESSION_COOKIE_SECURE: "on"
@@ -151,7 +151,7 @@ services:
restart: always
logging: *default-logging
privacy-worship:
image: lblod/privacy-centric-service:0.6.0
image: lblod/privacy-centric-service:0.6.1
labels:
- "logging=true"
environment:
@@ -163,7 +163,7 @@ services:
links:
- db:database
privacy-unit:
image: lblod/privacy-centric-service:0.6.0
image: lblod/privacy-centric-service:0.6.1
labels:
- "logging=true"
environment:
@@ -181,7 +181,7 @@ services:
restart: always
logging: *default-logging
frontend:
image: lblod/frontend-organization-portal:1.18.0
image: lblod/frontend-organization-portal:1.21.0
volumes:
- ./config/frontend/add-x-frame-options-header.conf:/config/add-x-frame-options.conf
environment:
@@ -218,8 +218,43 @@ services:
- db:database
volumes:
- ./config/jobs-controller/:/config/
labels:
- "logging=true"
restart: always
logging: *default-logging
organizations-sync-with-sharepoint-jobs-initiator:
image: lblod/delta-producer-background-jobs-initiator:0.4.3
environment:
JOBS_GRAPH: "http://mu.semte.ch/graphs/jobs"
INITIAL_PUBLICATION_GRAPH_SYNC_JOB_OPERATION: "http://redpencil.data.gift/id/jobs/concept/JobOperation/sp-sync/initialSyncing/organizations"
HEALING_JOB_OPERATION: "http://redpencil.data.gift/id/jobs/concept/JobOperation/sp-sync/healingOperation/organizations"
INITIAL_PUBLICATION_GRAPH_SYNC_TASK_OPERATION: "http://redpencil.data.gift/id/jobs/concept/TaskOperation/sp-sync/initialSyncing"
HEALING_TASK_OPERATION: "http://redpencil.data.gift/id/jobs/concept/TaskOperation/sp-sync/healing"
CRON_PATTERN_HEALING_JOB: "0 0 4 * * *" # everyday at 4 AM
START_INITIAL_SYNC: "false" # prefer to disable it now. We want to have feeling with how the DB acts.
ENABLE_DUMP_FILE_CREATION: "false"
links:
- db:database
labels:
- "logging=true"
restart: always
logging: *default-logging
organizations-sync-with-sharepoint:
image: lblod/op-sync-with-sharepoint-service:0.1.2
environment:
INITIAL_SYNC_JOB_OPERATION: "http://redpencil.data.gift/id/jobs/concept/JobOperation/sp-sync/initialSyncing/organizations"
HEALING_JOB_OPERATION: "http://redpencil.data.gift/id/jobs/concept/JobOperation/sp-sync/healingOperation/organizations"
USE_VIRTUOSO_FOR_EXPENSIVE_SELECTS: "true"
links:
- db:database
volumes:
- ./config/sharepoint/sync/organizations/:/config/
labels:
- "logging=true"
restart: always
logging: *default-logging
construct-administrative-unit-relationships:
image: lblod/construct-administrative-unit-relationships-service:0.1.3
image: lblod/construct-administrative-unit-relationships-service:0.1.6
environment:
START_DATE_WORSHIP_GOVERNING_BODY: "2023-04-01T00:00:00"
END_DATE_WORSHIP_GOVERNING_BODY: "2026-03-31T00:00:00"
@@ -228,14 +263,61 @@ services:
restart: always
logging: *default-logging
reasoner:
image: eyereasoner/reasoning-service:increased-stack-limit
image: eyereasoner/reasoning-service:1.0.4
volumes:
- ./config/reasoner:/config
labels:
- "logging=true"
restart: always
logging: *default-logging
report-generation:
image: lblod/loket-report-generation-service:0.7.0
environment:
DEFAULT_GRAPH: "http://mu.semte.ch/graphs/shared"
ONLY_KEEP_LATEST_REPORT: "true"
links:
- db:database
volumes:
- ./data/files:/share
- ./config/reports:/config
labels:
- "logging=true"
restart: always
logging: *default-logging
download-exports:
image: lblod/download-exports-service:0.1.0
links:
- db:database
volumes:
- ./data/files:/share
labels:
- "logging=true"
restart: always
logging: *default-logging
sync-ovo-numbers:
image: lblod/sync-ovo-numbers-service:0.1.0
links:
- db:database
labels:
- "logging=true"
restart: always
logging: *default-logging
################################################################################
# DELTA GENERAL
################################################################################
publication-triplestore:
image: redpencil/virtuoso:1.2.0-rc.1
environment:
SPARQL_UPDATE: "true"
DEFAULT_GRAPH: "http://mu.semte.ch/application"
volumes:
- ./data/publication-triplestore:/data
- ./config/publication-triplestore/virtuoso.ini:/data/virtuoso.ini
restart: always
logging: *default-logging
delta-producer-dump-file-publisher:
image: lblod/delta-producer-dump-file-publisher:0.9.1
image: lblod/delta-producer-dump-file-publisher:0.10.2
volumes:
- ./config/delta-producer/dump-file-publisher:/config
- ./data/files:/share
@@ -243,6 +325,7 @@ services:
- db:database
restart: always
logging: *default-logging
################################################################################
# DELTA ORGANIZATIONS: START
################################################################################
@@ -292,6 +375,57 @@ services:
# DELTA ORGANIZATIONS: END
################################################################################
################################################################################
# DELTA ORGANIZATIONS PUBLIC INFO: START
################################################################################
delta-producer-bg-jobs-initiator-organizations-public-info:
image: lblod/delta-producer-background-jobs-initiator:0.3.1
environment:
JOBS_GRAPH: "http://mu.semte.ch/graphs/jobs"
DUMP_FILE_CREATION_JOB_OPERATION: "http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/deltaDumpFileCreation/organizations-public-info"
INITIAL_PUBLICATION_GRAPH_SYNC_JOB_OPERATION: "http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/initialPublicationGraphSyncing/organizations-public-info"
HEALING_JOB_OPERATION: "http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/healingOperation/organizations-public-info"
CRON_PATTERN_DUMP_JOB: "27 */4 * * *" # At minute 27 every 4 hours
CRON_PATTERN_HEALING_JOB: "0 0 4 * * *" # everyday at 4 AM
START_INITIAL_SYNC: "false" # Enable in override when ready to initial sync
labels:
- "logging=true"
links:
- db:database
restart: always
logging: *default-logging
delta-producer-pub-graph-maintainer-organizations-public-info:
image: lblod/delta-producer-publication-graph-maintainer:0.15.4
environment:
MAX_BODY_SIZE: "50mb"
JOBS_GRAPH: "http://mu.semte.ch/graphs/jobs"
RELATIVE_FILE_PATH: "deltas/organizations-public-info"
PUBLICATION_GRAPH: "http://redpencil.data.gift/id/deltas/producer/organizations-public-info"
HEALING_JOB_OPERATION: "http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/healingOperation/organizations-public-info"
INITIAL_PUBLICATION_GRAPH_SYNC_JOB_OPERATION: "http://redpencil.data.gift/id/jobs/concept/JobOperation/deltas/initialPublicationGraphSyncing/organizations-public-info"
QUEUE_POLL_INTERVAL: 3000
USE_VIRTUOSO_FOR_EXPENSIVE_SELECTS: "true" # some queries are just too expensive
SKIP_MU_AUTH_INITIAL_SYNC: "true"
HEALING_PATCH_GRAPH_BATCH_SIZE: 500
SERVE_DELTA_FILES: "true"
PUBLISHER_URI: "http://data.lblod.info/services/delta-production-json-diff-file-manager/organizations-public-info"
DELTA_INTERVAL_MS: 10000
PRETTY_PRINT_DIFF_JSON: "true"
PUBLICATION_VIRTUOSO_ENDPOINT: "http://publication-triplestore:8890/sparql"
PUBLICATION_MU_AUTH_ENDPOINT: "http://publication-triplestore:8890/sparql"
ERROR_GRAPH: "http://mu.semte.ch/graphs/jobs"
volumes:
- ./config/delta-producer/organizations-public-info:/config
- ./data/files/:/share
links:
- db:database
- triplestore:virtuoso
restart: always
logging: *default-logging
################################################################################
# DELTA ORGANIZATIONS PUBLIC INFO: END
################################################################################
################################################################################
# DELTA PUBLIC INFORMATION: START
################################################################################
@@ -503,6 +637,7 @@ services:
- ./config/ldes-delta-pusher/:/config/
links:
- db:database
restart: always
ldes-backend:
image: redpencil/fragmentation-producer:0.4.0
@@ -523,7 +658,7 @@ services:
# MU SEARCH
################################################################################
search:
image: semtech/mu-search:0.9.0-beta.7
image: semtech/mu-search:0.9.1
links:
- db:database
restart: always
@@ -541,6 +676,10 @@ services:
image: lblod/error-report-service:0.1.0
links:
- db:database
labels:
- "logging=true"
restart: always
logging: *default-logging
roles:
image: lblod/select-role-service:0.1.0