script to convert an ontology collection for solr