Compare commits

..

5 Commits

Author SHA1 Message Date
Sam Van Campenhout
f8a5935004 Add a type attribute to the contact-points model (#95) 2022-02-10 14:23:10 +01:00
Nordine Bittich
cdf4417ca5 bump frontend 2022-02-10 14:09:45 +01:00
Boris De Vloed
5a318a99fe add contact types (#88)
* add contact types

* move migration to 2022 directory

Co-authored-by: Nordine Bittich <nordine@bittich.be>
2022-02-10 13:53:48 +01:00
Nordine Bittich
f36e2ba706 bump frontend 2022-02-01 18:05:20 +01:00
Nordine Bittich
f41430b699 bump frontend 2022-01-26 15:43:11 +01:00
4 changed files with 51 additions and 1 deletions

View File

@@ -0,0 +1,22 @@
# cf 20220110100000-secondary-contacts.sparql for context.
# In case it's not a secondary contactpoint (a contactpoint without an address if multiple contact points exist for one entity/mandataris)
PREFIX locn: <http://www.w3.org/ns/locn#>
PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
INSERT {
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
?contactPoint
schema:contactType "Primary"
}
}
WHERE {
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
?contactPoint
a schema:ContactPoint.
FILTER NOT EXISTS {
?contactPoint
schema:contactType "Secondary"
}
}
}

View File

@@ -0,0 +1,24 @@
PREFIX locn: <http://www.w3.org/ns/locn#>
PREFIX schema: <http://schema.org/>
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
INSERT {
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
?secondary
schema:contactType "Secondary"
}
}
WHERE {
GRAPH <http://mu.semte.ch/graphs/organisatieportaal> {
?primary
a schema:ContactPoint;
locn:address ?a1;
schema:telephone ?t1.
?mandataris schema:contactPoint ?primary, ?secondary.
?secondary
schema:telephone ?t2.
FILTER NOT EXISTS {
?secondary locn:address ?a2.
}
}
}

View File

@@ -210,6 +210,10 @@
"website": {
"type": "uri",
"predicate": "foaf:page"
},
"type": {
"type": "string",
"predicate": "schema:contactType"
}
},
"relationships": {

View File

@@ -158,7 +158,7 @@ services:
restart: always
logging: *default-logging
frontend:
image: lblod/frontend-contact-hub:1.5.1
image: lblod/frontend-contact-hub:1.5.4
volumes:
- ./config/frontend/add-x-frame-options-header.conf:/config/add-x-frame-options.conf
environment: