Fix CKB status (#151)

This commit is contained in:
Claire Lovisa
2022-05-18 13:22:38 +02:00
committed by GitHub
parent 61b5efc0df
commit f918541fc9

View File

@@ -0,0 +1,41 @@
PREFIX regorg: <http://www.w3.org/ns/regorg#>
DELETE {
GRAPH ?g {
<http://data.lblod.info/id/centraleBesturenVanDeEredienst/44e123c39fb439274be6727eca6e1880>
regorg:orgStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> . # Actief
}
} INSERT {
GRAPH ?g {
<http://data.lblod.info/id/centraleBesturenVanDeEredienst/44e123c39fb439274be6727eca6e1880>
regorg:orgStatus <http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311> . # Niet Actief
}
} WHERE {
GRAPH ?g {
<http://data.lblod.info/id/centraleBesturenVanDeEredienst/44e123c39fb439274be6727eca6e1880>
regorg:orgStatus <http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6> .
}
}
# The associated call to trigger a reindex is :
# curl --location --request POST '<ip-of-mu-search>/update' \
# --header 'Content-Type: application/vnd.api+json' \
# --data-raw ' [
# {
# "deletes": [
# {
# "subject": { "type": "uri", "value": "http://data.lblod.info/id/centraleBesturenVanDeEredienst/44e123c39fb439274be6727eca6e1880" },
# "predicate": { "type": "uri", "value": "http://www.w3.org/ns/regorg#orgStatus" },
# "object": { "type": "uri", "value": "http://lblod.data.gift/concepts/63cc561de9188d64ba5840a42ae8f0d6" }
# }
# ],
# "inserts": [
# {
# "subject": { "type": "uri", "value": "http://data.lblod.info/id/centraleBesturenVanDeEredienst/44e123c39fb439274be6727eca6e1880" },
# "predicate": { "type": "uri", "value": "http://www.w3.org/ns/regorg#orgStatus" },
# "object": { "type": "uri", "value": "http://lblod.data.gift/concepts/d02c4e12bf88d2fdf5123b07f29c9311" }
# }
# ]
# }
# ]'