Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vendor to OLV Temse #619

Open
wants to merge 6 commits into
base: development
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 17 additions & 6 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,23 @@
# Changelog

## Unreleased

### General
- Adjust anomalies in names [DL-6278]
- Submissions cross referencing [DL-5814]
- Add kerkenbeleidsplan form [DL-6235]

- Adjust anomalies in names [DL-6278]
- Submissions cross referencing [DL-5814]
- Add kerkenbeleidsplan form [DL-6235]
- Erediensten Dispatching from harvester, for OLV Temse [DL-6280]
- Includes 3 migrations and perform a restart such that dispatching is automatically started.

### Deploy notes

#### docker-compose.override.yml

##### worship-decisions-cross-reference

Ensure the environment variables are correctly set for `worship-decisions-cross-reference`, e.g. :

```
worship-decisions-cross-reference:
environment;
Expand All @@ -20,9 +29,11 @@ The following links;
- PROD: "https://databankerediensten.lokaalbestuur.vlaanderen.be/search/submissions/"

#### Docker Commands
- `drc restart migrations && drc logs -ft --tail=200 migrations`
- `drc restart dispatcher resource cache vendor-data-distribution delta-producer-publication-graph-maintainer`
- `drc up -d`

- `drc restart migrations && drc logs -ft --tail=200 migrations`
- `drc restart dispatcher resource cache vendor-data-distribution delta-producer-publication-graph-maintainer`
- `drc restart dispatcher-worship-mandates` # For "healing" erediensten positions after migrations
- `drc up -d`

## 1.106.0 (2024-11-18)
### General
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
PREFIX account: <http://mu.semte.ch/vocabularies/account/>

INSERT DATA {
GRAPH <http://mu.semte.ch/graphs/automatic-submission> {
<http://data.lblod.info/vendors/b1e41693-639a-4f61-92a9-5b9a3e0b924e>
account:canActOnBehalfOf <http://data.lblod.info/id/besturenVanDeEredienst/567a1bd8a4e2be8817ff8af27c93efbd> .
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
DELETE {
GRAPH <http://eredienst-mandatarissen-consumer/temp-discards> {
?s ?p ?o .
}
}
INSERT {
GRAPH <http://eredienst-mandatarissen-consumer/temp-inserts> {
?s ?p ?o .
}
}
WHERE {
GRAPH <http://eredienst-mandatarissen-consumer/temp-discards> {
?s ?p ?o .
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
PREFIX locn: <http://www.w3.org/ns/locn#>
PREFIX schema: <http://schema.org/>
PREFIX persoon: <http://data.vlaanderen.be/ns/persoon#>
PREFIX foaf: <http://xmlns.com/foaf/0.1/>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX org: <http://www.w3.org/ns/org#>
PREFIX prov: <http://www.w3.org/ns/prov#>
PREFIX ere: <http://data.lblod.info/vocabularies/erediensten/>

DELETE {
GRAPH ?g {
?rolbedienaar ?rp ?ro .
?contact ?cp ?co .
?address ?ap ?ao .
?persoon ?pp ?po .
?geboorte ?gp ?go .
}
}
WHERE {
VALUES ?positie {
<http://data.lblod.info/id/positiesBedienaar/583e4d61115ba9981f8bc1725e2567e5>
<http://data.lblod.info/id/positiesBedienaar/5998f47210c3ced12e48d84eae65939b>
<http://data.lblod.info/id/positiesBedienaar/66a6d5e5c12dcd00acf32142ce27d336>
<http://data.lblod.info/id/positiesBedienaar/e444dd456bcaec5e7166ca95fd1c7967>
}
VALUES ?g {
<http://mu.semte.ch/graphs/organizations/567a1bd8a4e2be8817ff8af27c93efbd/LoketLB-eredienstBedienaarGebruiker>
<http://mu.semte.ch/graphs/organizations/567a1bd8a4e2be8817ff8af27c93efbd/LoketLB-eredienstMandaatGebruiker>
}
GRAPH ?g {
?rolbedienaar org:holds ?positie .
FILTER NOT EXISTS {
?rolbedienaar prov:wasGeneratedBy <http://lblod.data.gift/id/app/lblod-harvesting> .
}
?rolbedienaar ?rp ?ro .

?rolbedienaar schema:contactPoint ?contact .
?contact ?cp ?co .

?contact locn:address ?address .
?address ?ap ?ao .

?rolbedienaar org:heldBy ?persoon .
?persoon ?pp ?po .

?persoon persoon:heeftGeboorte ?geboorte .
?geboorte ?gp ?go .
}
}