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

OP has implemented RO code. using this one in Loket instead #472

Open
wants to merge 2 commits into
base: master
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
1 change: 1 addition & 0 deletions config/authorization/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ defmodule Acl.UserGroups.Config do
"http://mu.semte.ch/vocabularies/ext/supervision/RegulationType",
"http://www.w3.org/ns/prov#Location",
"http://mu.semte.ch/vocabularies/ext/BestuurseenheidClassificatieCode",
"http://mu.semte.ch/vocabularies/ext/RepresentatieveOrgaanClassificatieCode",
"http://data.vlaanderen.be/ns/besluit#Bestuursorgaan",
"http://mu.semte.ch/vocabularies/ext/BestuursorgaanClassificatieCode",
"http://mu.semte.ch/vocabularies/ext/Fractietype",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
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/>
PREFIX besluit: <http://data.vlaanderen.be/ns/besluit#>

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> .
}
}

;

delete {
graph ?g {

?s <http://lblod.data.gift/vocabularies/besluit/decidableBy> ?o.
}
}
insert {
graph ?g {

?s <http://lblod.data.gift/vocabularies/besluit/decidableBy> <http://data.vlaanderen.be/id/concept/RepresentatiefOrgaanClassificatieCode/89a00b5a-024f-4630-a722-65a5e68967e5>.
}
}
where {
graph ?g {

?s <http://lblod.data.gift/vocabularies/besluit/decidableBy> ?o.
filter(?o = <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36372fad-0358-499c-a4e3-f412d2eae213>).
}
}
;
delete {
graph ?g {

?s besluit:classificatie ?o.
}
}
insert {
graph ?g {

?s besluit:classificatie <http://data.vlaanderen.be/id/concept/RepresentatiefOrgaanClassificatieCode/89a00b5a-024f-4630-a722-65a5e68967e5>.
}
}
where {
graph ?g {

?s besluit:classificatie ?o.
filter(?o = <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36372fad-0358-499c-a4e3-f412d2eae213>).
}
}
;

delete where {
graph ?g {
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36372fad-0358-499c-a4e3-f412d2eae213> ?p ?o.
}
}
4 changes: 2 additions & 2 deletions config/mock-login/rules.json
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@
{
"sessionRole": "LoketLB-databankEredienstenGebruiker",
"restrictToClassifications": [
"http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36372fad-0358-499c-a4e3-f412d2eae213",
"http://data.vlaanderen.be/id/concept/RepresentatiefOrgaanClassificatieCode/89a00b5a-024f-4630-a722-65a5e68967e5",
"http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/66ec74fd-8cfc-4e16-99c6-350b35012e86",
"http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/f9cac08a-13c1-49da-9bcb-f650b0604054",
"http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001",
Expand All @@ -139,7 +139,7 @@
{
"sessionRole": "LoketLB-eredienstOrganisatiesGebruiker",
"restrictToClassifications": [
"http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36372fad-0358-499c-a4e3-f412d2eae213",
"http://data.vlaanderen.be/id/concept/RepresentatiefOrgaanClassificatieCode/89a00b5a-024f-4630-a722-65a5e68967e5",
"http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/66ec74fd-8cfc-4e16-99c6-350b35012e86",
"http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/f9cac08a-13c1-49da-9bcb-f650b0604054",
"http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001",
Expand Down
6 changes: 4 additions & 2 deletions config/reasoner/op2dl/main/mapping.n3
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,14 @@ PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
?s a besluit:Bestuurseenheid
}.


{
?s a ere:RepresentatiefOrgaan
}=> {
?s
a besluit:Bestuurseenheid;
besluit:classificatie <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36372fad-0358-499c-a4e3-f412d2eae213>.
a besluit:Bestuurseenheid.
# this rule should no longer be needed as OP has a classification for RO now
# besluit:classificatie <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36372fad-0358-499c-a4e3-f412d2eae213>.
}.


Expand Down