I want to update a vocabulary I'm creating with the latest version of classes and properties. It seems some old ones are still in there. I tried deleting the namespace via RDF settings but when I import the vocabulary it still says foo:#Class already exists in the system. How can I completely purge a vocabulary to get a clean slate?

Comments

fereira’s picture

It would be nice if there was a UI for this but you can remove vocabularies using SQL directly. For example, if you wanted to delete the sioc vocabulary connect to the database and execute the following:

DELETE FROM evoc_rdf_properties where prefix='sioc';
DELETE FROM evoc_rdf_classes where prefix='sioc';

As the module exists now there isn't a way to determine what vocabularies have been imported with out querying the database directly. It would be nice if instead of a evoc/import menu item for importing vocabularies it was implemented as admin/settings/evoc and provided a list of vocabularies that it has imported, and be able to select a vocabulary for deletion, as well as the ability to add a new vocabulary.