refactor: renamed job migrations to include "insert" in the filename
Added comments to make it easier to understand query executed by each job.
This commit is contained in:
committed by
Alexander van den Berghe
parent
70e09cf995
commit
2ed45e3a5e
@@ -2,6 +2,14 @@
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
# Insert triples of the form:
|
||||
# <Representative Body> <http://www.w3.org/ns/org#linkedTo> <Worship Service>
|
||||
# <Representative Body> <http://www.w3.org/ns/org#linkedTo> <Central Worship Service>
|
||||
# matching memberships for which no such triple exists.
|
||||
|
||||
# Worship Service: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/66ec74fd-8cfc-4e16-99c6-350b35012e86>
|
||||
# Central Worship Service: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/f9cac08a-13c1-49da-9bcb-f650b0604054>
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/f0f7a304-34e9-4986-bf27-8434bb6f8111> a cleanup:Job ;
|
||||
mu:uuid "f0f7a304-34e9-4986-bf27-8434bb6f8111" ;
|
||||
dcterms:title "Insert missing `org:linkedTo` triples for Representative Bodies and [Central] Worship Services." ;
|
||||
@@ -2,6 +2,13 @@
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
# Insert triples of the form:
|
||||
# <Central Worship Service> <http://www.w3.org/ns/org#hasSubOrganization> <Worship Service>
|
||||
# matching memberships for which no such triple exists.
|
||||
|
||||
# Central Worship Service: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/f9cac08a-13c1-49da-9bcb-f650b0604054>
|
||||
# Worship Service: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/66ec74fd-8cfc-4e16-99c6-350b35012e86>
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/1352f2c5-0207-435b-9737-26d29769cde6> a cleanup:Job ;
|
||||
mu:uuid "1352f2c5-0207-435b-9737-26d29769cde6" ;
|
||||
dcterms:title "Insert missing `org:hasSubOrganization` triples for Central Worship Services and Worship Services." ;
|
||||
@@ -19,8 +26,8 @@
|
||||
org:member ?member ;
|
||||
org:role <http://data.lblod.info/id/rollen/4ec7d5c39bdc4e84b4174379b9e22ad8> .
|
||||
|
||||
?member org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/66ec74fd-8cfc-4e16-99c6-350b35012e86> .
|
||||
?organization org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/f9cac08a-13c1-49da-9bcb-f650b0604054> .
|
||||
?member org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/66ec74fd-8cfc-4e16-99c6-350b35012e86> .
|
||||
|
||||
FILTER NOT EXISTS { ?organization org:hasSubOrganization ?member . }
|
||||
}
|
||||
@@ -2,6 +2,19 @@
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
# Insert triples of the form
|
||||
# <Province> <http://www.w3.org/ns/org#hasSubOrganization> <subOrg>
|
||||
# matching memberships for which no such triple exists.
|
||||
|
||||
# Province: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000000>
|
||||
#
|
||||
# Municipality: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001>
|
||||
# OCMW: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000002>
|
||||
# AGB: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36a82ba0-7ff1-4697-a9dd-2e94df73b721>
|
||||
# APB: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/80310756-ce0a-4a1b-9b8e-7c01b6cc7a2d>
|
||||
# PEVA municipality: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/2ad46df5-5c79-4d67-84d5-604c1377231e>
|
||||
# PEVA province: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/088784b6-e188-48bf-b94f-94665f9e1f53>
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/434b8b52-b695-4358-a927-ddaceb22e7e3> a cleanup:Job ;
|
||||
mu:uuid "434b8b52-b695-4358-a927-ddaceb22e7e3" ;
|
||||
dcterms:title "Insert missing `org:hasSubOrganization` triples for Provinces." ;
|
||||
@@ -2,6 +2,21 @@
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
# Insert triples of the form
|
||||
# <Municipality> <http://www.w3.org/ns/org#hasSubOrganization> <subOrg>
|
||||
# matching memberships for which no such triple exists.
|
||||
|
||||
# Municipality: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001>
|
||||
#
|
||||
# AGB: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36a82ba0-7ff1-4697-a9dd-2e94df73b721>
|
||||
# Projectvereniging: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/b156b67f-c5f4-4584-9b30-4c090be02fdc>
|
||||
# Dientsverlenende vereniging <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/d01bb1f6-2439-4e33-9c25-1fc295de2e71>
|
||||
# Opdrachthoudende vereniging: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/cd93f147-3ece-4308-acab-5c5ada3ec63d>
|
||||
# Opdrachthoudende vereniging met private deelname: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/4b8450cf-a326-4c66-9e63-b4ec10acc7f6>
|
||||
# HVZ: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/ea446861-2c51-45fa-afd3-4e4a37b71562>
|
||||
# PZ: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/a3922c6d-425b-474f-9a02-ffb71a436bfc>
|
||||
# PEVA municipality: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/2ad46df5-5c79-4d67-84d5-604c1377231e>
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/3b7f8739-aa56-4a6c-af56-eb9d80022379> a cleanup:Job ;
|
||||
mu:uuid "3b7f8739-aa56-4a6c-af56-eb9d80022379" ;
|
||||
dcterms:title "Insert missing `org:hasSubOrganization` triples for Municipalities." ;
|
||||
@@ -2,6 +2,15 @@
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
# Insert triples of the form:
|
||||
# <Municipality> <http://www.w3.org/ns/org#linkedTo> <subOrg>
|
||||
# matching memberships for which no such triple exists.
|
||||
|
||||
# Municipality: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001>
|
||||
#
|
||||
# OCMW: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000002>
|
||||
# APB: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/80310756-ce0a-4a1b-9b8e-7c01b6cc7a2d>
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/a99bcd5c-9781-425d-8a34-fb11a6e3e262> a cleanup:Job ;
|
||||
mu:uuid "a99bcd5c-9781-425d-8a34-fb11a6e3e262" ;
|
||||
dcterms:title "Insert missing `org:linkedTo` triples for Municipalities." ;
|
||||
@@ -24,8 +33,8 @@
|
||||
?member org:classification ?memberClass .
|
||||
FILTER ( ?memberClass
|
||||
IN (
|
||||
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/80310756-ce0a-4a1b-9b8e-7c01b6cc7a2d> ,
|
||||
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000002>
|
||||
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000002> ,
|
||||
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/80310756-ce0a-4a1b-9b8e-7c01b6cc7a2d>
|
||||
)
|
||||
)
|
||||
}
|
||||
@@ -2,6 +2,14 @@
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
# Delete triples of the form:
|
||||
# <Representative Body> <http://www.w3.org/ns/org#linkedTo> <Worship Service>
|
||||
# <Representative Body> <http://www.w3.org/ns/org#linkedTo> <Central Worship Service>
|
||||
# for which no matching membership exists.
|
||||
|
||||
# Worship Service: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/66ec74fd-8cfc-4e16-99c6-350b35012e86>
|
||||
# Central Worship Service: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/f9cac08a-13c1-49da-9bcb-f650b0604054>
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/679eec55-0f69-4d45-84c1-9f73df966983> a cleanup:Job ;
|
||||
mu:uuid "679eec55-0f69-4d45-84c1-9f73df966983" ;
|
||||
dcterms:title "Delete leftover `org:linkedTo` triples for Representative Bodies and [Central] Worship Services." ;
|
||||
|
||||
@@ -2,6 +2,13 @@
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
# Delete triples of the form
|
||||
# <Central Worship Service> <http://www.w3.org/ns/org#hasSubOrganization> <Worship Service>
|
||||
# for which no matching membership exists.
|
||||
|
||||
# Central Worship Service <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/f9cac08a-13c1-49da-9bcb-f650b0604054>
|
||||
# Worship Service <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/66ec74fd-8cfc-4e16-99c6-350b35012e86>
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/50cee254-37e4-410e-936a-d974047bdd4b> a cleanup:Job ;
|
||||
mu:uuid "50cee254-37e4-410e-936a-d974047bdd4b" ;
|
||||
dcterms:title "Delete leftover `org:hasSubOrganization` triples for Central Worship Services and Worship Services." ;
|
||||
|
||||
@@ -2,6 +2,15 @@
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
# Delete triples of the form:
|
||||
# <Municipality> <http://www.w3.org/ns/org#linkedTo> <subOrg>
|
||||
# for which no matching membership exists.
|
||||
|
||||
# Municipality: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001>
|
||||
#
|
||||
# OCMW: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000002>
|
||||
# APB: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/80310756-ce0a-4a1b-9b8e-7c01b6cc7a2d>
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/14cfd05c-7047-43a1-97e4-42d3dd6b048d> a cleanup:Job ;
|
||||
mu:uuid "14cfd05c-7047-43a1-97e4-42d3dd6b048d" ;
|
||||
dcterms:title "Delete leftover `org:linkedTo` triples for Municipalities." ;
|
||||
@@ -21,6 +30,18 @@
|
||||
org:member ?member ;
|
||||
org:role <http://data.lblod.info/id/rollen/4ec7d5c39bdc4e84b4174379b9e22ad8> .
|
||||
}
|
||||
|
||||
?member org:classification ?memberClass .
|
||||
FILTER ( ?memberClass
|
||||
IN (
|
||||
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000002> ,
|
||||
<http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/80310756-ce0a-4a1b-9b8e-7c01b6cc7a2d>
|
||||
|
||||
)
|
||||
)
|
||||
}
|
||||
GRAPH <http://mu.semte.ch/graphs/shared> {
|
||||
?municipality org:classification <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001> .
|
||||
}
|
||||
}
|
||||
""" .
|
||||
|
||||
@@ -2,6 +2,21 @@
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
# Delete triples of the form
|
||||
# <Municipality> <http://www.w3.org/ns/org#hasSubOrganization> <subOrg>
|
||||
# for which no matching membership exists.
|
||||
|
||||
# Municipality: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001>
|
||||
#
|
||||
# AGB: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36a82ba0-7ff1-4697-a9dd-2e94df73b721>
|
||||
# Projectvereniging: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/b156b67f-c5f4-4584-9b30-4c090be02fdc>
|
||||
# Dientsverlenende vereniging <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/d01bb1f6-2439-4e33-9c25-1fc295de2e71>
|
||||
# Opdrachthoudende vereniging: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/cd93f147-3ece-4308-acab-5c5ada3ec63d>
|
||||
# Opdrachthoudende vereniging met private deelname: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/4b8450cf-a326-4c66-9e63-b4ec10acc7f6>
|
||||
# HVZ: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/ea446861-2c51-45fa-afd3-4e4a37b71562>
|
||||
# PZ: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/a3922c6d-425b-474f-9a02-ffb71a436bfc>
|
||||
# PEVA municipality: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/2ad46df5-5c79-4d67-84d5-604c1377231e>
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/141a5f1c-39d5-431a-99e2-9085252654a3> a cleanup:Job ;
|
||||
mu:uuid "141a5f1c-39d5-431a-99e2-9085252654a3" ;
|
||||
dcterms:title "Delete leftover `org:hasSubOrganization` triples for Municipalities." ;
|
||||
|
||||
@@ -2,6 +2,19 @@
|
||||
@prefix mu: <http://mu.semte.ch/vocabularies/core/> .
|
||||
@prefix dcterms: <http://purl.org/dc/terms/> .
|
||||
|
||||
# Delete triples of the form
|
||||
# <Province> <http://www.w3.org/ns/org#hasSubOrganization> <subOrg>
|
||||
# for which no matching membership exists.
|
||||
|
||||
# Province: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000000>
|
||||
#
|
||||
# Municipality: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000001>
|
||||
# OCMW: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/5ab0e9b8a3b2ca7c5e000002>
|
||||
# AGB: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/36a82ba0-7ff1-4697-a9dd-2e94df73b721>
|
||||
# APB: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/80310756-ce0a-4a1b-9b8e-7c01b6cc7a2d>
|
||||
# PEVA municipality: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/2ad46df5-5c79-4d67-84d5-604c1377231e>
|
||||
# PEVA province: <http://data.vlaanderen.be/id/concept/BestuurseenheidClassificatieCode/088784b6-e188-48bf-b94f-94665f9e1f53>
|
||||
|
||||
<http://data.lblod.info/id/cleanup-job/7b2f66c8-1433-47f4-b730-62316f288631> a cleanup:Job ;
|
||||
mu:uuid "7b2f66c8-1433-47f4-b730-62316f288631" ;
|
||||
dcterms:title "Delete leftover `org:hasSubOrganization` triples for Provinces." ;
|
||||
|
||||
Reference in New Issue
Block a user