-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloadGraph.py
More file actions
29 lines (22 loc) · 789 Bytes
/
loadGraph.py
File metadata and controls
29 lines (22 loc) · 789 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
from RegistryImporter import RegistryImporter
class App:
def __init__(self):
self.importer = RegistryImporter()
def processRegistry(self):
self.importer.import_all()
def load_datasource(self, datasource_id):
self.importer.import_datasource(datasource_id)
def import_single(self, ro_id):
self.importer.import_single(ro_id)
if __name__ == "__main__":
app = App()
# 20 is ARC
# 117 is Southern Cross University
# 149 is Victoria University
# 162 Department of Sustainability, Environment, Population and Community
# 161 ANDS - National Collections Data Source
# 25 Federation University Australia
datasource_id = 162
app.load_datasource(datasource_id)
#ro_id = 68038
#app.import_single(ro_id)