예제 #1
0
    def export_all(self, data_dir, graphids, resourceids, conceptids):
        """
		Creates arches json export of resource graphs, concepts, and business data.
		"""
        data = {}
        data['graph'] = []
        data['reference_data'] = []
        data['business_data'] = []

        if graphids != False:
            graphs_for_export = resourceGraphExporter(graphids)['graph']
            data['graph'] = graphs_for_export

        if conceptids != False:
            reference_data_for_export = referenceDataExporter(
                conceptids)['reference_data']
            data['reference_data'] = reference_data_for_export

        if resourceids != False:
            resource_exporter = resourceDataExporter('json')
            resource_data_for_export = resource_exporter.get_resources_for_export(
                resourceids)['business_data']
            data['business_data'] = resource_data_for_export

        self.write_to_file(data, data_dir)
예제 #2
0
	def export_all(self, data_dir, graphids, resourceids):
		"""
		Creates arches json export of resource graphs, concepts, and business data.
		"""
		data = {}
		data['graph'] = []
		data['business_data'] = []

		if graphids != False:
			graphs_for_export = resourceGraphExporter(graphids)['graph']
			data['graph'] = graphs_for_export

		if resourceids != False:
			resource_exporter = resourceDataExporter('json')
			resource_data_for_export = resource_exporter.get_resources_for_export(resourceids)['business_data']
			data['business_data'] = resource_data_for_export

		self.write_to_file(data, data_dir)
예제 #3
0
	def export_graphs(self, data_dir, graphids):
		"""
		Wrapper around arches.app.utils.data_management.resource_graphs.exporter method
		"""
		graph_data = resourceGraphExporter(graphids)
		self.write_to_file(graph_data, data_dir)
예제 #4
0
	def export_graphs(self, data_dir):
		"""
		Wrapper around arches.app.utils.data_management.resource_graphs.exporter method
		"""
		resourceGraphExporter(data_dir)