Deleting Terms - OregonDigital/ControlledVocabularyManager GitHub Wiki

Deleting terms should be done with extreme caution, especially if it's likely that a URI has been used. But if Deprecation is not an option, and if there is some other encoding error or duplicate entries, it can be done.

1. Delete .nt file from git repository

Log in to the CVM server, find the corresponding .nt file. Remove it from Git and commit. Push the changes to GitHub.

2. Update Blazegraph

Visit the Blazegraph Workbench, select the 'Query' tab, confirm that you have the exact URI you want to delete:

SELECT * WHERE {
  <http://opaquenamespace.org/ns/osuAcademicUnits/TALPtSDu> ?p ?o .
}

Change to the 'Update' tab, then enter this DELETE command, changing the sparql subject. This will delete all predicates with that subject.

DELETE WHERE {
  <http://opaquenamespace.org/ns/osuAcademicUnits/TALPtSDu> ?p ?o
};

3. Clear out cached views and formats

Log in to the CVM server, go to /shared/public/ns then find the cached views and formats.

  1. Remove Vocabulary level files, example: osuAcademicUnits.html, osuAcademicUnits.jsonld, osuAcademicUnits.nt
  2. Remove Term files, example: osuAcademicUnits/TALPtSDu.html, osuAcademicUnits/TALPtSDu.jsonld, osuAcademicUnits/TALPtSDu.nt

Then these will return when requested with updated statements from Blazegraph.