From 5d1d1899008641c8e5cfd86e45a0dc27790c28d8 Mon Sep 17 00:00:00 2001 From: felix Date: Wed, 18 Dec 2024 16:29:57 +0100 Subject: [PATCH] Workaround: adding the prefix xsd when returning the form and meta. This is a similar strategy as what has been done in `getHistoryInstance`. I am currently not sure what is to blame here, i.e. who is not respecting a standard (js-template or rdfLib?) --- services/form-definitions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/form-definitions.ts b/services/form-definitions.ts index 2c7f487..ce71e64 100644 --- a/services/form-definitions.ts +++ b/services/form-definitions.ts @@ -8,8 +8,8 @@ export const fetchFormDefinition = async (id: string) => { formDefinition.formTtl, ); return { - formTtl: formDefinition.formTtl, - metaTtl: formDefinition.metaTtl, + formTtl: `@prefix xsd: .\n${formDefinition.formTtl}`, + metaTtl: `@prefix xsd: .\n${formDefinition.metaTtl}`, prefix, withHistory, };