Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
37ed1af60a | ||
|
|
c8134e2372 | ||
|
|
3256fe6b88 | ||
|
|
7364d1190d | ||
|
|
63d41ef127 | ||
|
|
1e516c58ac | ||
|
|
1cdc2e9c46 | ||
|
|
85dc993b24 | ||
|
|
532b2c9851 | ||
|
|
ee06c53fe4 | ||
|
|
27b29ff3eb | ||
|
|
19d52a3a73 | ||
|
|
96c384bf91 | ||
|
|
b13fced72a | ||
|
|
1e0d646cd9 | ||
|
|
38074e9bc8 | ||
|
|
3a81077fc8 |
@@ -7,6 +7,11 @@ alias Acl.GroupSpec, as: GroupSpec
|
|||||||
alias Acl.GroupSpec.GraphCleanup, as: GraphCleanup
|
alias Acl.GroupSpec.GraphCleanup, as: GraphCleanup
|
||||||
|
|
||||||
defmodule Acl.UserGroups.Config do
|
defmodule Acl.UserGroups.Config do
|
||||||
|
|
||||||
|
@error_type [
|
||||||
|
"https://docs.oasis-open-projects.org/oslc-op/core/v3.0/os/core-vocab.html#Error"
|
||||||
|
]
|
||||||
|
|
||||||
@protected_resource_type [
|
@protected_resource_type [
|
||||||
"http://www.w3.org/ns/org#Organization",
|
"http://www.w3.org/ns/org#Organization",
|
||||||
"http://data.vlaanderen.be/ns/besluit#Besluit",
|
"http://data.vlaanderen.be/ns/besluit#Besluit",
|
||||||
@@ -99,7 +104,7 @@ defmodule Acl.UserGroups.Config do
|
|||||||
%GraphSpec{
|
%GraphSpec{
|
||||||
graph: "http://mu.semte.ch/graphs/organisatieportaal",
|
graph: "http://mu.semte.ch/graphs/organisatieportaal",
|
||||||
constraint: %ResourceConstraint{
|
constraint: %ResourceConstraint{
|
||||||
resource_types: @protected_resource_type
|
resource_types: @protected_resource_type ++ @error_type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@@ -112,7 +117,7 @@ defmodule Acl.UserGroups.Config do
|
|||||||
%GraphSpec{
|
%GraphSpec{
|
||||||
graph: "http://mu.semte.ch/graphs/organisatieportaal",
|
graph: "http://mu.semte.ch/graphs/organisatieportaal",
|
||||||
constraint: %ResourceConstraint{
|
constraint: %ResourceConstraint{
|
||||||
resource_types: @protected_resource_type
|
resource_types: @protected_resource_type ++ @error_type
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|||||||
@@ -267,6 +267,14 @@ defmodule Dispatcher do
|
|||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
#################################################################
|
||||||
|
# ERROR REPORT
|
||||||
|
#################################################################
|
||||||
|
|
||||||
|
match "/error-reports/*path", %{ layer: :api_services, accept: %{ json: true } } do
|
||||||
|
forward conn, path, "http://error-report-service/error-reports/"
|
||||||
|
end
|
||||||
|
|
||||||
#################################################################
|
#################################################################
|
||||||
# FILES
|
# FILES
|
||||||
#################################################################
|
#################################################################
|
||||||
|
|||||||
1509
config/migrations/2022/20220524152541-clear-wrong-addresses.sparql
Normal file
1509
config/migrations/2022/20220524152541-clear-wrong-addresses.sparql
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1 @@
|
|||||||
|
http://mu.semte.ch/graphs/organisatieportaal
|
||||||
10337
config/migrations/2022/20220524152932-fix-addresses.ttl
Normal file
10337
config/migrations/2022/20220524152932-fix-addresses.ttl
Normal file
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,11 @@
|
|||||||
|
DELETE DATA {
|
||||||
|
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||||
|
<http://lblod.data.gift/concepts/fa4191f9d7050fe62ec3fc0e16541711> <http://www.w3.org/2004/02/skos/core#prefLabel> "Kapelaan van de kerken te Antwerpen en te Elsene (Geünifieerde anglikaanse kerk)" .
|
||||||
|
}
|
||||||
|
}
|
||||||
|
;
|
||||||
|
INSERT DATA {
|
||||||
|
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||||
|
<http://lblod.data.gift/concepts/fa4191f9d7050fe62ec3fc0e16541711> <http://www.w3.org/2004/02/skos/core#prefLabel> "Kapelaan van de kerken te Antwerpen en te Elsene (Geünifieerde anglicaanse kerk)" .
|
||||||
|
}
|
||||||
|
}
|
||||||
20
config/migrations/2022/202206131O4623-normalize-space.sparql
Normal file
20
config/migrations/2022/202206131O4623-normalize-space.sparql
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
DELETE {
|
||||||
|
graph <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||||
|
?s ?p ?o.
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
INSERT {
|
||||||
|
graph <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||||
|
?s ?p ?normalize.
|
||||||
|
}
|
||||||
|
}
|
||||||
|
WHERE {
|
||||||
|
graph <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||||
|
?s ?p ?o.
|
||||||
|
BIND(replace(?o, "\\s+|\\t", " ") AS ?single_space)
|
||||||
|
BIND(replace(?single_space, "^(\\s+)|(\\s+)$|(\\t)$|(\\t)", "") AS ?normalize)
|
||||||
|
|
||||||
|
FILTER ( isLiteral(?o) && ( regex(?o, "\\s+|\\t") || regex(?o, "^(\\s+)|(\\s+)$|(\\t)$|(\\t)") ) )
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,32 @@
|
|||||||
|
|
||||||
|
# OP-1520 & OP-1529 - OP-1519 & OP-1518
|
||||||
|
|
||||||
|
prefix org: <http://www.w3.org/ns/org#>
|
||||||
|
prefix ere: <http://data.lblod.info/vocabularies/erediensten/>
|
||||||
|
prefix skos: <http://www.w3.org/2004/02/skos/core#>
|
||||||
|
|
||||||
|
delete where {
|
||||||
|
|
||||||
|
graph <http://mu.semte.ch/graphs/organisatieportaal> {
|
||||||
|
|
||||||
|
?involvement a ere:BetrokkenLokaleBesturen;
|
||||||
|
org:organization ?worshipService;
|
||||||
|
ere:typebetrokkenheid ?typebetrokkenheid.
|
||||||
|
|
||||||
|
?betrokkenBestuur ere:betrokkenBestuur ?involvement.
|
||||||
|
?involvement ?p ?o.
|
||||||
|
|
||||||
|
filter (?typebetrokkenheid = <http://lblod.data.gift/concepts/86fcbbbff764f1cba4c7e10dbbae578e> &&
|
||||||
|
(?worshipService = <http://data.lblod.info/id/besturenVanDeEredienst/1f3b446da13c8ebd75ee52ac7746c53a>
|
||||||
|
|| ?worshipService = <http://data.lblod.info/id/besturenVanDeEredienst/f99035f2eca9a50996e719c445d2cfd2>
|
||||||
|
|| ?worshipService = <http://data.lblod.info/id/besturenVanDeEredienst/0277a5125962d8d5f0f00606d200be9a>
|
||||||
|
|| ?worshipService = <http://data.lblod.info/id/besturenVanDeEredienst/9222f5c5557cb2ca0c07873fbaf02da7>
|
||||||
|
|| ?worshipService = <http://data.lblod.info/id/besturenVanDeEredienst/8d4c1066736ac9be7886d273b86751b8>
|
||||||
|
|
||||||
|
))
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -158,7 +158,7 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
logging: *default-logging
|
logging: *default-logging
|
||||||
frontend:
|
frontend:
|
||||||
image: lblod/frontend-organization-portal:1.9.1
|
image: lblod/frontend-organization-portal:1.10.0
|
||||||
volumes:
|
volumes:
|
||||||
- ./config/frontend/add-x-frame-options-header.conf:/config/add-x-frame-options.conf
|
- ./config/frontend/add-x-frame-options-header.conf:/config/add-x-frame-options.conf
|
||||||
environment:
|
environment:
|
||||||
@@ -414,3 +414,8 @@ services:
|
|||||||
environment:
|
environment:
|
||||||
- discovery.type=single-node
|
- discovery.type=single-node
|
||||||
restart: always
|
restart: always
|
||||||
|
|
||||||
|
error-report-service:
|
||||||
|
image: lblod/error-report-service:0.1.0
|
||||||
|
links:
|
||||||
|
- db:database
|
||||||
|
|||||||
Reference in New Issue
Block a user