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

Prune leidingevenden producer to stop producing what OP produces #644

Draft
wants to merge 5 commits into
base: development
Choose a base branch
from
Draft
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
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
- Repair old cross referencing submissions from CKB's. These predate the cross referencing feature. [DL-6415]
- Add migration that removes three older, broken EredienstMandatarissen pointing to non-existing people and contact points [DL-5662]
- Update mandatarissen producer to stop producing what OP produces [DL-6210]
- Update leidinggevenden producer to stop producing what OP produces [DL-6449]

### Deploy instructions

Expand Down Expand Up @@ -54,7 +55,7 @@ drc logs --tail 1000 -f prepare-submissions-for-export

- `drc restart report-generation`

**For the updated mandatarissen producer configuration**
**For the updated mandatarissen and leidinggevenden producer configuration**

- `drc restart migrations-publication-triplestore delta-producer-publication-graph-maintainer`

Expand Down
87 changes: 1 addition & 86 deletions config/delta-producer/leidinggevenden/export.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,51 +20,6 @@
"locn": "http://www.w3.org/ns/locn#"
},
"export": [
{
"type": "http://mu.semte.ch/vocabularies/ext/BestuurseenheidClassificatieCode",
"graphsFilter": [ "http://mu.semte.ch/graphs/public" ],
"hasRegexGraphsFilter": false,
"pathToConceptScheme": [
"http://www.w3.org/2004/02/skos/core#inScheme"
],
"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#scopeNote"
]
},
{
"type": "http://data.vlaanderen.be/ns/besluit#Bestuurseenheid",
"graphsFilter": [ "http://mu.semte.ch/graphs/public" ],
"hasRegexGraphsFilter": false,
"pathToConceptScheme": [
"http://data.vlaanderen.be/ns/besluit#classificatie",
"http://www.w3.org/2004/02/skos/core#inScheme"
],
"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://data.vlaanderen.be/ns/besluit#werkingsgebied",
"http://data.vlaanderen.be/ns/besluit#classificatie"
]
},
{
"type": "http://data.vlaanderen.be/ns/besluit#Bestuursorgaan",
"graphsFilter": [ "http://mu.semte.ch/graphs/public" ],
"hasRegexGraphsFilter": false,
"pathToConceptScheme": [
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://data.vlaanderen.be/ns/besluit#classificatie",
"http://www.w3.org/2004/02/skos/core#inScheme"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/2004/02/skos/core#prefLabel",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://data.vlaanderen.be/ns/besluit#classificatie"
]
},
{
"type": "http://data.vlaanderen.be/ns/besluit#Bestuursorgaan",
"graphsFilter": [ "http://mu.semte.ch/graphs/public" ],
Expand All @@ -76,46 +31,9 @@
"http://www.w3.org/2004/02/skos/core#inScheme"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://data.vlaanderen.be/ns/mandaat#bindingEinde",
"http://data.vlaanderen.be/ns/mandaat#bindingStart",
"http://data.vlaanderen.be/ns/mandaat#isTijdspecialisatieVan",
"http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie"
]
},
{
"type": "http://mu.semte.ch/vocabularies/ext/BestuursorgaanClassificatieCode",
"graphsFilter": [ "http://mu.semte.ch/graphs/public" ],
"hasRegexGraphsFilter": false,
"pathToConceptScheme": [
"^http://data.vlaanderen.be/ns/besluit#classificatie",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://data.vlaanderen.be/ns/besluit#classificatie",
"http://www.w3.org/2004/02/skos/core#inScheme"
],
"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#scopeNote"
]
},
{
"type": "http://mu.semte.ch/vocabularies/ext/BestuursorgaanClassificatieCode",
"graphsFilter": [ "http://mu.semte.ch/graphs/public" ],
"hasRegexGraphsFilter": false,
"pathToConceptScheme": [
"^http://data.vlaanderen.be/ns/besluit#classificatie",
"http://data.vlaanderen.be/ns/mandaat#isTijdspecialisatieVan",
"http://data.vlaanderen.be/ns/besluit#bestuurt",
"http://data.vlaanderen.be/ns/besluit#classificatie",
"http://www.w3.org/2004/02/skos/core#inScheme"
],
"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#scopeNote"
]
},
{
"type": "http://schema.org/ContactPoint",
"graphsFilter": [ "http://mu.semte.ch/graphs/organizations/.*/LoketLB-leidinggevendenGebruiker" ],
Expand Down Expand Up @@ -179,10 +97,7 @@
"http://www.w3.org/2004/02/skos/core#inScheme"
],
"properties": [
"http://mu.semte.ch/vocabularies/core/uuid",
"http://www.w3.org/ns/org#role",
"http://schema.org/contactPoint",
"http://www.w3.org/2004/02/skos/core#prefLabel"
"http://schema.org/contactPoint"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>

DELETE {
GRAPH <http://redpencil.data.gift/id/deltas/producer/loket-leidinggevenden-producer> {
?s ?p ?o .
}
}
WHERE {
GRAPH <http://redpencil.data.gift/id/deltas/producer/loket-leidinggevenden-producer> {
VALUES ?type {
<http://mu.semte.ch/vocabularies/ext/BestuursorgaanClassificatieCode>
<http://data.vlaanderen.be/ns/besluit#Bestuurseenheid>
<http://mu.semte.ch/vocabularies/ext/BestuurseenheidClassificatieCode>
}
?s
rdf:type ?type ;
?p ?o .
}
}

;

DELETE {
GRAPH <http://redpencil.data.gift/id/deltas/producer/loket-leidinggevenden-producer> {
?s ?p ?o .
}
}
WHERE {
GRAPH <http://redpencil.data.gift/id/deltas/producer/loket-leidinggevenden-producer> {
?s
rdf:type <http://data.vlaanderen.be/ns/besluit#Bestuursorgaan> ;
?p ?o .

FILTER (?p NOT IN (
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ,
<http://data.lblod.info/vocabularies/leidinggevenden/heeftBestuursfunctie>
))
}
}

;

DELETE {
GRAPH <http://redpencil.data.gift/id/deltas/producer/loket-leidinggevenden-producer> {
?s ?p ?o .
}
}
WHERE {
GRAPH <http://redpencil.data.gift/id/deltas/producer/loket-leidinggevenden-producer> {
?s
rdf:type <http://data.lblod.info/vocabularies/leidinggevenden/Bestuursfunctie> ;
?p ?o .

FILTER (?p NOT IN (
<http://www.w3.org/1999/02/22-rdf-syntax-ns#type> ,
<http://schema.org/contactPoint>
))
}
}