From 118c78ce97f66dfa7627a9e3a0865795c1592b63 Mon Sep 17 00:00:00 2001 From: mirdono Date: Mon, 20 Nov 2023 10:24:47 +0100 Subject: [PATCH] Added migrations to introduce Agent type for people, organisations, and agents-in-position --- .../20231117161502-organisations.sparql | 32 ++++++++++++++++++ .../20231117161517-people.sparql | 33 +++++++++++++++++++ .../20231117161530-agents-in-position.sparql | 32 ++++++++++++++++++ 3 files changed, 97 insertions(+) create mode 100644 config/migrations/2023/20231117161347-add-agent-type/20231117161502-organisations.sparql create mode 100644 config/migrations/2023/20231117161347-add-agent-type/20231117161517-people.sparql create mode 100644 config/migrations/2023/20231117161347-add-agent-type/20231117161530-agents-in-position.sparql diff --git a/config/migrations/2023/20231117161347-add-agent-type/20231117161502-organisations.sparql b/config/migrations/2023/20231117161347-add-agent-type/20231117161502-organisations.sparql new file mode 100644 index 0000000..cf5d261 --- /dev/null +++ b/config/migrations/2023/20231117161347-add-agent-type/20231117161502-organisations.sparql @@ -0,0 +1,32 @@ +PREFIX org: +PREFIX dc_terms: + +INSERT { + GRAPH { + ?org a dc_terms:Agent . + } +} WHERE { + GRAPH { + ?org a org:Organization . + } +} + +INSERT { + GRAPH { + ?org a dc_terms:Agent . + } +} WHERE { + GRAPH { + ?org a org:Organization . + } +} + +INSERT { + GRAPH { + ?org a dc_terms:Agent . + } +} WHERE { + GRAPH { + ?org a org:Organization . + } +} diff --git a/config/migrations/2023/20231117161347-add-agent-type/20231117161517-people.sparql b/config/migrations/2023/20231117161347-add-agent-type/20231117161517-people.sparql new file mode 100644 index 0000000..d164754 --- /dev/null +++ b/config/migrations/2023/20231117161347-add-agent-type/20231117161517-people.sparql @@ -0,0 +1,33 @@ + +PREFIX person: +PREFIX dc_terms: + +INSERT { + GRAPH { + ?person a dc_terms:Agent . + } +} WHERE { + GRAPH { + ?person a person:Person . + } +} + +INSERT { + GRAPH { + ?person a dc_terms:Agent . + } +} WHERE { + GRAPH { + ?person a person:Person . + } +} + +INSERT { + GRAPH { + ?person a dc_terms:Agent . + } +} WHERE { + GRAPH { + ?person a person:Person . + } +} diff --git a/config/migrations/2023/20231117161347-add-agent-type/20231117161530-agents-in-position.sparql b/config/migrations/2023/20231117161347-add-agent-type/20231117161530-agents-in-position.sparql new file mode 100644 index 0000000..5baa48f --- /dev/null +++ b/config/migrations/2023/20231117161347-add-agent-type/20231117161530-agents-in-position.sparql @@ -0,0 +1,32 @@ +PREFIX ch: +PREFIX dc_terms: + +INSERT { + GRAPH { + ?agentInPosition a dc_terms:Agent . + } +} WHERE { + GRAPH { + ?agentInPosition a ch:AgentInPositie . + } +} + +INSERT { + GRAPH { + ?agentInPosition a dc_terms:Agent . + } +} WHERE { + GRAPH { + ?agentInPosition a ch:AgentInPositie . + } +} + +INSERT { + GRAPH { + ?agentInPosition a dc_terms:Agent . + } +} WHERE { + GRAPH { + ?agentInPosition a ch:AgentInPositie . + } +}