diff --git a/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/persoon-http-to-https/gebruikteVoornaam.rq b/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/persoon-http-to-https/gebruikteVoornaam.rq deleted file mode 100644 index 16f40cf..0000000 --- a/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/persoon-http-to-https/gebruikteVoornaam.rq +++ /dev/null @@ -1,10 +0,0 @@ -PREFIX persoon: -PREFIX persoon_loket: - -# Map from http persoon to https persoon namespace - -CONSTRUCT { - ?s persoon:gebruikteVoornaam ?o . -} WHERE { - ?s persoon_loket:gebruikteVoornaam ?o . -} diff --git a/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/predicate/gebruikte-voornaam.rq b/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/predicate/gebruikte-voornaam.rq new file mode 100644 index 0000000..5a21395 --- /dev/null +++ b/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/predicate/gebruikte-voornaam.rq @@ -0,0 +1,14 @@ +PREFIX foaf: +PREFIX persoon: +PREFIX person: + +# DL and OP both use persoon:gebruikteVoornaam but with different semantics (!) + +# Alternatieve voornaam: foaf:name => persoon:gebruikteVoornaam + +CONSTRUCT { + ?s persoon:gebruikteVoornaam ?name . +} WHERE { + ?s a person:Person ; + foaf:name ?name . +} diff --git a/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/predicate/given-name.rq b/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/predicate/given-name.rq new file mode 100644 index 0000000..7b00b14 --- /dev/null +++ b/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/predicate/given-name.rq @@ -0,0 +1,14 @@ +PREFIX foaf: +PREFIX persoon_loket: +PREFIX person: + +# DL and OP both use persoon:gebruikteVoornaam but with different semantics (!) + +# First name: persoon:gebruikteVoornaam => foaf:givenName + +CONSTRUCT { + ?s foaf:givenName ?gebruikteVoornaam . +} WHERE { + ?s a person:Person ; + persoon_loket:gebruikteVoornaam ?gebruikteVoornaam . +} diff --git a/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/predicate/names.rq b/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/predicate/names.rq deleted file mode 100644 index cd33077..0000000 --- a/config/loket-consumer/worship-services-main-info/mapping/queries/dl2op/predicate/names.rq +++ /dev/null @@ -1,22 +0,0 @@ -PREFIX foaf: -PREFIX persoon: -PREFIX persoon_loket: -PREFIX person: - -# DL and OP both use persoon:gebruikteVoornaam but with different semantics (!) - -# First name: persoon:gebruikteVoornaam => foaf:givenName -# Alternatieve voornaam: foaf:name => persoon:gebruikteVoornaam - -# We do both in one query with an OPTIONAL because they need to happen simultaneously -# not to end up in a loop - -CONSTRUCT { - ?s foaf:givenName ?gebruikteVoornaam . - ?s persoon:gebruikteVoornaam ?name . -} WHERE { - ?s a person:Person . - - OPTIONAL { ?s persoon_loket:gebruikteVoornaam ?gebruikteVoornaam . } - OPTIONAL { ?s foaf:name ?name . } -}