From d54faad96be89cfcd6c7ec31aaa0689d7255660c Mon Sep 17 00:00:00 2001 From: Sven Valenberghs Date: Mon, 7 Oct 2024 12:24:18 +0200 Subject: [PATCH] use correct URI base from config for creating mandatees --- scripts/generate-mandatees/config.py | 1 + scripts/generate-mandatees/mandatees.py | 5 +++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/scripts/generate-mandatees/config.py b/scripts/generate-mandatees/config.py index 12531e5..9b41111 100644 --- a/scripts/generate-mandatees/config.py +++ b/scripts/generate-mandatees/config.py @@ -41,6 +41,7 @@ REGERINGSSAMENSTELLING_BASE_URI = "http://themis.vlaanderen.be/id/bestuursorgaan/" LEGISLATUUR_BASE_URI = "http://themis.vlaanderen.be/id/bestuursorgaan/" MANDAAT_BASE_URI = "http://themis.vlaanderen.be/id/mandaat/" +MANDATEE_BASE_URI = "http://themis.vlaanderen.be/id/mandataris/" INVALIDATION_BASE_URI = "http://themis.vlaanderen.be/id/opheffing/" GENERATION_BASE_URI = "http://themis.vlaanderen.be/id/creatie/" diff --git a/scripts/generate-mandatees/mandatees.py b/scripts/generate-mandatees/mandatees.py index 144a270..b0b9d02 100755 --- a/scripts/generate-mandatees/mandatees.py +++ b/scripts/generate-mandatees/mandatees.py @@ -5,7 +5,8 @@ from rdflib import Graph, Literal, URIRef from validation import DateValidator, NumberValidator from namespaces import * -from config import BRUSSELS_TZ +from config import BRUSSELS_TZ,\ + MANDATEE_BASE_URI MANDATEE_QUESTIONS = [ { @@ -51,7 +52,7 @@ def generate_mandatee(title, person, start_date, end_date, rank, mandate, regeringssamenstelling): g = Graph() uuid = generate_uuid() - m = g.resource("{}id/mandatee/{}".format(THEMIS_BASE, uuid)) + m = g.resource(MANDATEE_BASE_URI + Literal(uuid)) m.set(RDF.type, MANDAAT.Mandataris) m.set(MU.uuid, Literal(uuid)) if title: