Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting ontologies #71

Open
bhelou opened this issue Jul 2, 2018 · 1 comment
Open

Deleting ontologies #71

bhelou opened this issue Jul 2, 2018 · 1 comment
Assignees

Comments

@bhelou
Copy link

bhelou commented Jul 2, 2018

Hi,

Is there an easy way to remove an uploaded ontology?

Right now, I am following these steps:

  1. Go to /etc/opensemanticsearch/facets and remove the config['facets'] line corresponding to the uploaded ontology's facets.
  2. Empty /etc/opensemanticsearch/ocr/dictionary.txt
  3. Remove the ontology from /var/opensemanticsearch/ontologies
  4. Remove all files in /var/solr/data/opensemanticsearch-entities/data/ and then restart solr with service solr restart (the opensemanticsearch-delete --empty command doesn't empty the opensemanticsearch-entities core).

However, this doesn't completely delete the ontology. On the web interface, if I go to "Manage structure" then use the "interface for ontologies and lists" , the uploaded ontology still appears on the list of "All Ontologies (Lists, Vocabularies, Dictionaries or Thesauri)". Do you have any advice on how to eliminate it?

Best regards,
Bassam

@bhelou
Copy link
Author

bhelou commented Jul 5, 2018

I just realized that on the Django administration page, I can delete ontologies. I am not sure what it does exactly, but the uploaded ontology no longer appears on the list of "All Ontologies (Lists, Vocabularies, Dictionaries or Thesauri)" :)

Also, I've noticed that when I try to delete the plain text dictionaries from /var/solr/data/opensemanticsearch-entities/conf/entities, I get the following error:

org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: Could not load conf for core opensemanticsearch-entities: Can't load schema /var/solr/data/opensemanticsearch-entities/conf/managed-schema: org.apache.solr.core.SolrResourceNotFoundException: Can't find resource 'entities/human_disease_ontology_xrdf_ss.txt' in classpath or '/var/solr/data/opensemanticsearch-entities'

So, I won't touch the entities folder hehe It's probably harmless to keep everything in it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants