caosadvancedtools.export_related module#
This file allows to create an xml representation of a complete dataset. Using the given entity all related entities are collected and saved in a way that the data can be imported in another LinkAhead instance.
Files that are smaller than 1MB are saved in a downloads folder and can be imported along with the entities themselves.
- caosadvancedtools.export_related.defineParser()#
- caosadvancedtools.export_related.export(cont, directory='.')#
- caosadvancedtools.export_related.export_related_to(rec_id, directory='.')#
- caosadvancedtools.export_related.get_ids_of_related_entities(entity)#
returns a list of ids of entities that related to the given one.
Related means in this context, that it is kind of necessary for the representation of this entity: ids of properties and parents as well as the ids of referenced entities.
- caosadvancedtools.export_related.invert_ids(entities)#
- caosadvancedtools.export_related.main()#
- caosadvancedtools.export_related.recursively_collect_related(entity)#
collects all related entities. Starting from a single entity the related entities are retrieved (see get_ids_of_related_entities) and then the related entities of those are retrieved and so forth. This is usefull to create a collection of kind of related dataset