def install(path_to_source_data_dir=None): setup.truncate_db() setup.delete_index(index='concept_labels') setup.delete_index(index='term') Resource().prepare_term_index(create=True) setup.load_resource_graphs() setup.load_authority_files(path_to_source_data_dir) setup.load_map_layers() build_groups() setup.resource_remover.truncate_resources() setup.delete_index(index='resource') setup.delete_index(index='entity') setup.delete_index(index='maplayers') setup.delete_index(index='resource_relations') create_indices() setup.load_resources()
def install(path_to_source_data_dir=None): setup.truncate_db() setup.delete_index(index='concept_labels') setup.delete_index(index='term') Resource().prepare_term_index(create=True) setup.load_resource_graphs() setup.load_authority_files(path_to_source_data_dir) setup.load_map_layers() build_auth_system() setup.resource_remover.truncate_resources() setup.delete_index(index='resource') setup.delete_index(index='entity') setup.delete_index(index='maplayers') setup.delete_index(index='resource_relations') create_indexes() setup.load_resources()
def load_resources(external_file=None): setup.load_resources(external_file)