From a6571eefa523e6157a1d4e345c149a8ca6a711d1 Mon Sep 17 00:00:00 2001 From: felix Date: Fri, 17 Jan 2025 12:09:07 +0100 Subject: [PATCH] Current consumer is VERY picky on how you write the mapping-query See: https://github.com/lblod/delta-consumer/blob/v0.0.27/lib/delta-sparql-mapping.js#L267 make sure you write first the graph or "triple"-pattern and filter after that. For now. --- .../leidinggevenden/mapping/queries/dl2op/inheritance/Agent.rq | 3 ++- .../mapping/queries/dl2op/inheritance/AgentInPositie.rq | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/config/loket-consumer/leidinggevenden/mapping/queries/dl2op/inheritance/Agent.rq b/config/loket-consumer/leidinggevenden/mapping/queries/dl2op/inheritance/Agent.rq index 8252a85..66d5eb2 100644 --- a/config/loket-consumer/leidinggevenden/mapping/queries/dl2op/inheritance/Agent.rq +++ b/config/loket-consumer/leidinggevenden/mapping/queries/dl2op/inheritance/Agent.rq @@ -5,10 +5,11 @@ PREFIX person: CONSTRUCT { ?s a dc_terms:Agent . } WHERE { + ?s a ?type . + VALUES ?type { lblodlg:Functionaris person:Person } - ?s a ?type . } diff --git a/config/loket-consumer/leidinggevenden/mapping/queries/dl2op/inheritance/AgentInPositie.rq b/config/loket-consumer/leidinggevenden/mapping/queries/dl2op/inheritance/AgentInPositie.rq index 2505191..e3a97b3 100644 --- a/config/loket-consumer/leidinggevenden/mapping/queries/dl2op/inheritance/AgentInPositie.rq +++ b/config/loket-consumer/leidinggevenden/mapping/queries/dl2op/inheritance/AgentInPositie.rq @@ -4,9 +4,8 @@ PREFIX lblodlg: CONSTRUCT { ?s a ch:AgentInPositie . } WHERE { + ?s a ?type . VALUES ?type { lblodlg:Functionaris } - - ?s a ?type . }