From 5aec5c87573f00b62bddbec53d34ac41bb6f21ea Mon Sep 17 00:00:00 2001 From: sahalali Date: Mon, 14 Oct 2024 18:00:49 +0530 Subject: [PATCH] Added support to reconcile with dbo:Agent --- .env | 1 + src/config/graphdb-indexes.config.ts | 1 + src/constant/manifest.constant.json | 4 ++++ src/dto/manifest.dto.ts | 4 ++++ src/helper/reconciliation-service.helper.ts | 2 ++ 5 files changed, 12 insertions(+) diff --git a/.env b/.env index 8cd05c2..fcfcc0a 100644 --- a/.env +++ b/.env @@ -9,6 +9,7 @@ EVENT="event-index" PLACE="place-index" ORGANIZATION="organization-index" PERSON="person-index" +AGENT="agent-index" CONCEPT="concept-index" EVENT_TYPE="event-type-index" DEFAULT="resource-index" diff --git a/src/config/graphdb-indexes.config.ts b/src/config/graphdb-indexes.config.ts index 5f8d7e6..0940568 100644 --- a/src/config/graphdb-indexes.config.ts +++ b/src/config/graphdb-indexes.config.ts @@ -8,6 +8,7 @@ export const GRAPHDB_INDEX = { PLACE: env.PLACE || "place-index", ORGANIZATION: env.ORGANIZATION || "organization-index", PERSON: env.PERSON || "person-index", + AGENT: env.AGENT || "agent-index", CONCEPT: env.CONCEPT || "concept-index", EVENT_TYPE: env.EVENT_TYPE || "event-type-index", DEFAULT: env.DEFAULT || "resource-index", diff --git a/src/constant/manifest.constant.json b/src/constant/manifest.constant.json index 251ec8f..5abb056 100644 --- a/src/constant/manifest.constant.json +++ b/src/constant/manifest.constant.json @@ -18,6 +18,10 @@ "id": "schema:Place", "name": "Place" }, + { + "id": "dbo:Agent", + "name": "Agent" + }, { "id": "schema:Organization", "name": "Organization" diff --git a/src/dto/manifest.dto.ts b/src/dto/manifest.dto.ts index 8ec7de9..016e3a9 100644 --- a/src/dto/manifest.dto.ts +++ b/src/dto/manifest.dto.ts @@ -52,6 +52,10 @@ export class ServiceManifestResponse { "id": "schema:Person", "name": "Person" }, + { + "id": "dbo:Agent", + "name": "Agent" + }, { "id": "schema:Place", "name": "Place" diff --git a/src/helper/reconciliation-service.helper.ts b/src/helper/reconciliation-service.helper.ts index bda1f5b..71e51fd 100644 --- a/src/helper/reconciliation-service.helper.ts +++ b/src/helper/reconciliation-service.helper.ts @@ -86,6 +86,8 @@ export class ReconciliationServiceHelper { return GRAPHDB_INDEX.ORGANIZATION; case "schema:Person": return GRAPHDB_INDEX.PERSON; + case "dbo:Agent": + return GRAPHDB_INDEX.AGENT; case "skos:Concept": return GRAPHDB_INDEX.CONCEPT; case "ado:EventType":