From a308f269f3a21913a6cad09742bddc5060d56b60 Mon Sep 17 00:00:00 2001 From: Bogdan Kostov Date: Fri, 9 Aug 2024 12:02:49 +0200 Subject: [PATCH] [Fix #365] Fix username to uri mapping model contexts --- src/models/eventModel.tsx | 2 +- src/models/userModel.tsx | 2 +- src/utils/VocabularyUtils.tsx | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/models/eventModel.tsx b/src/models/eventModel.tsx index e9a1e82e..7d8cad4d 100644 --- a/src/models/eventModel.tsx +++ b/src/models/eventModel.tsx @@ -55,7 +55,7 @@ const ctx = { }, fhaBasedFailureRate: VocabularyUtils.PREFIX + "fha-based-failure-rate", editor: VocabularyUtils.PREFIX + "editor", - username: VocabularyUtils.PREFIX + "username", + username: VocabularyUtils.USERNAME, estimate: VocabularyUtils.PREFIX + "has-estimate", schematicDesignation: VocabularyUtils.PREFIX + "schematic-designation", selectedEstimate: VocabularyUtils.PREFIX + "has-selected-estimation", diff --git a/src/models/userModel.tsx b/src/models/userModel.tsx index cc0f4c62..e4741754 100644 --- a/src/models/userModel.tsx +++ b/src/models/userModel.tsx @@ -2,7 +2,7 @@ import VocabularyUtils from "@utils/VocabularyUtils"; import { AbstractModel, CONTEXT as ABSTRACT_CONTEXT } from "@models/abstractModel"; const ctx = { - username: VocabularyUtils.PREFIX + "username", + username: VocabularyUtils.USERNAME, password: VocabularyUtils.PREFIX + "password", }; diff --git a/src/utils/VocabularyUtils.tsx b/src/utils/VocabularyUtils.tsx index 8c18178b..9fbba32d 100644 --- a/src/utils/VocabularyUtils.tsx +++ b/src/utils/VocabularyUtils.tsx @@ -6,6 +6,7 @@ export default { PREFIX: _NS_FTA_FMEA, DC_TERMS: DC_TERMS, USER: _NS_FOAF + "Person", + USERNAME: _NS_FOAF + "accountName", COMPONENT: _NS_FTA_FMEA + "component", MITIGATION: _NS_FTA_FMEA + "mitigation", FUNCTION: _NS_FTA_FMEA + "function",