Compare commits

..

7 Commits

Author SHA1 Message Date
Nordine Bittich
4eb497d494 merge development 2021-11-26 14:58:56 +01:00
Nordine Bittich
819c434f3d bump frontend (#72) 2021-11-25 13:49:52 +01:00
Sam Van Campenhout
b5a7351189 Merge pull request #71 from lblod/chore/remove-privacy-centric-config
Remove config related to the sensitive data feature
2021-11-23 16:38:55 +01:00
Nordine Bittich
3dc9b1a0b4 sparql endpoint for prod 2021-11-23 16:37:18 +01:00
Sam Van Campenhout
929dc59ee5 Remove config related to the sensitive data feature
We no longer use mu-cl-resources to manage this data so we can remove it from the configuration.
2021-11-23 16:33:40 +01:00
Sam Van Campenhout
b6e1458d8a Add a new /request-reasons endpoint (#70)
This can be used to retrieve all the possible options.
2021-11-23 15:45:42 +01:00
Nordine Bittich
8c7ba7afec migrate private data (#69)
* migrate private data

* bind subject before optional

Co-authored-by: Boris De Vloed <boris.de.vloed@gmail.com>
2021-11-23 10:36:41 +01:00
7 changed files with 95 additions and 38 deletions

View File

@@ -148,10 +148,6 @@ defmodule Dispatcher do
Proxy.forward conn, path, "http://cache/minister-conditions/"
end
match "/dates-of-birth/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://cache/dates-of-birth/"
end
match "/nationalities/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://cache/nationalities/"
end
@@ -187,6 +183,9 @@ defmodule Dispatcher do
Proxy.forward conn, path, "http://cache/site-types/"
end
match "/request-reasons/*path", %{ accept: [:json], layer: :api} do
Proxy.forward conn, path, "http://cache/request-reasons/"
end
###############
# LOGIN
@@ -272,7 +271,7 @@ defmodule Dispatcher do
# sparql endpoint
###############################################################
post "/sparql/*path", %{ layer: :api_services, host: "*.abb.lblod.info", accept: %{ sparql_json: true } } do
post "/sparql/*path", %{ layer: :api_services, accept: %{ sparql_json: true } } do
forward conn, path, "http://db:8890/sparql/"
end

View File

@@ -0,0 +1,14 @@
DELETE {
GRAPH <http://mu.semte.ch/application> {
?s ?p ?o
}
} INSERT {
GRAPH <http://mu.semte.ch/graphs/contacthub/141d9d6b-54af-4d17-b313-8d1c30bc3f5b/ChAdmin> {
?s ?p ?o
}
} WHERE {
GRAPH <http://mu.semte.ch/application> {
?s a <http://mu.semte.ch/vocabularies/ext/ReasonCode>;
?p ?o.
}
}

View File

@@ -0,0 +1,53 @@
PREFIX ext: <http://mu.semte.ch/vocabularies/ext/>
PREFIX xsd: <http://www.w3.org/2001/XMLSchema#>
PREFIX mu: <http://mu.semte.ch/vocabularies/core/>
PREFIX generiek: <https://data.vlaanderen.be/ns/generiek#>
PREFIX persoon: <https://data.vlaanderen.be/ns/persoon#>
PREFIX person: <http://www.w3.org/ns/person#>
DELETE {
GRAPH <http://mu.semte.ch/graphs/contacthub/141d9d6b-54af-4d17-b313-8d1c30bc3f5b/ChAdmin> {
?s persoon:heeftGeboorte ?heeftGeboorte .
?s persoon:registratie ?registration .
?registration generiek:gestructureerdeIdentificator ?identificator .
?identificator ?x ?y .
?registration ?t ?j .
?s persoon:geslacht ?geslacht .
?s persoon:heeftNationaliteit ?nationaliteit .
}
}
INSERT {
GRAPH <http://mu.semte.ch/graphs/privacy-centric-graph> {
?s persoon:heeftGeboorte ?heeftGeboorte .
?s persoon:registratie ?registration .
?registration generiek:gestructureerdeIdentificator ?identificator .
?identificator ?x ?y .
?registration ?t ?j .
?s persoon:geslacht ?geslacht .
?s persoon:heeftNationaliteit ?nationaliteit .
}
}
WHERE
{ GRAPH <http://mu.semte.ch/graphs/contacthub/141d9d6b-54af-4d17-b313-8d1c30bc3f5b/ChAdmin>
{
?s a person:Person.
OPTIONAL
{ ?s persoon:heeftGeboorte ?heeftGeboorte .
?heeftGeboorte
?p ?o
}
OPTIONAL
{ ?s persoon:registratie ?registration .
?registration
generiek:gestructureerdeIdentificator ?identificator .
?identificator
?x ?y .
?registration
?t ?j
}
OPTIONAL
{ ?s persoon:geslacht ?geslacht }
OPTIONAL
{ ?s persoon:heeftNationaliteit ?nationaliteit }
}
}

View File

@@ -55,26 +55,6 @@
"target": "agents-in-position",
"cardinality": "many",
"inverse": true
},
"registration": {
"predicate": "persoon:registratie",
"target": "identifiers",
"cardinality": "one"
},
"date-of-birth": {
"predicate": "persoon:heeftGeboorte",
"target": "dates-of-birth",
"cardinality": "one"
},
"nationalities": {
"predicate": "persoon:heeftNationaliteit",
"target": "nationalities",
"cardinality": "many"
},
"gender": {
"predicate": "persoon:geslacht",
"target": "gender-codes",
"cardinality": "one"
}
},
"new-resource-base": "http://data.lblod.info/id/personen/"
@@ -792,16 +772,6 @@
},
"new-resource-base": "http://data.lblod.info/id/voorwaardenBedienaar/"
},
"dates-of-birth": {
"class": "persoon:Geboorte",
"attributes": {
"date": {
"type": "datetime",
"predicate": "persoon:datum"
}
},
"new-resource-base": "http://data.lblod.info/id/geboortes/"
},
"nationalities": {
"class": "euvoc:Country",
"attributes": {

View File

@@ -12,4 +12,5 @@
(defparameter *supply-cache-headers-p* t)
(read-domain-file "domain.json")
(read-domain-file "auth.json")
(read-domain-file "auth.json")
(read-domain-file "privacy-centric-service.json")

View File

@@ -0,0 +1,20 @@
{
"version": "0.1",
"prefixes": {
"skos": "http://www.w3.org/2004/02/skos/core#",
"ext": "http://mu.semte.ch/vocabularies/ext/"
},
"resources": {
"request-reasons": {
"name": "request-reason",
"class": "ext:ReasonCode",
"attributes": {
"label": {
"type": "string",
"predicate": "skos:prefLabel"
}
},
"new-resource-base": "http://data.lblod.info/id/information-request-reason/"
}
}
}

View File

@@ -136,7 +136,7 @@ services:
restart: always
logging: *default-logging
privacy:
image: lblod/privacy-centric-service:0.0.1
image: lblod/privacy-centric-service:0.1.1
labels:
- "logging=true"
environment:
@@ -156,7 +156,7 @@ services:
restart: always
logging: *default-logging
frontend:
image: lblod/frontend-contact-hub:1.2.0
image: lblod/frontend-contact-hub:1.3.0
volumes:
- ./config/frontend/add-x-frame-options-header.conf:/config/add-x-frame-options.conf
environment: