-
If deploying remotely, connect to the remote machine using the command, replacing
remote_name
with your remote name.ssh remote_name
-
Create a mapping file using the Arches UI
2.1. Go to Arches Designer in the UI and navigate to the relevant resource model(s)
2.2. Click
Manage...
and selectExport Mapping File
2.3. Unzip the file
2.3. Once the file is extracted, go into the
file_name.mapping
file, and check that replace all"export":true
options are set totrue
-
Create a folder called
mapping_files
mkdir mapping_files
-
Copy the unzipped mapping files to the
mapping_files
folder. If copying to the remote machine use the following command:scp -r /path/to/mapping remote_user@ip /path/to/mapping_files
-
Create a new directory called
business_data
.mkdir business_data
-
Get UUID of the resource model by clicking on the model in Arches Designer and copying it from url, e.g.
graph_designer/copy_this_string
-
To export the business data from the Resource Model, run the following command for each mapping file, replacing the path to the business folder, the path to the mapping file, and resource model's UUID
`python manage.py packages -o export_business_data -d './path/to/business_data' -f 'csv' -c 'path/to/mapping_file' -g 'resource_model_UUID'
-
Once the business data is exported. Create a new dicrectory called
packages
usingmkdir packages
-
Then run the following command to create a new package in this folder.
python manage.py packages -o create_package -d '/path/to/packages/package_name'
-
Once the package is created its time to move the files from the
business_data
folder you've created to the one created in the package:10.1. Remove all files in
bussiness_data
containing the wordgroup
using this command once in the directoryfind -type f -name '*group*' -delete
10.2. Copy all .csv files from
business_data
topackages/business_data
using the commandcp /path/to/business_data/data_name/*.csv /path/to/packages/business_data
10.3. Copy all .relations files from
business_data
topackages/business_data/relations
using the commandcp /path/to/business_data/data_name/*.relations /path/to/packages/business_data/relations
10.4. Copy all .mapping files to
packages/business_data
using the command:cp /path/to/mapping_files/model_name/file.mapping /path/to/packages/package_name/business_data
10.5 Rename the
business_data.csv
file inpackages/business_data
to the same name as your corresponding mapping files (mapping_file.mapping
), to end up withmapping_file_name.csv
, using the command:mv business_data.csv mapping_file_name.csv
10.6 If relevant, copy all files from
uploadedfiles
directory topackages/business_data/files
using the commandcp /path/to/uploadedfiles /path/to/packages/package_name/business_data/files
-
Go to Reference Data Manager in Arches UI click
Tools
and export each thesauri one by one. You may need to right click and save these from the browser if they open in a new tab.11.2. Once downloaded, move the thesauri to the remote machine's
packages/package_name/reference_data/concepts
using the commandscp -r /path/to/thesauri remote_user@ip /path/to/packages/package_name/reference_data/concepts
-
Go to Refernece Data Manger in Arches UI click
Tools
and export all collections12.1. Once downloaded move the collections to the remote machines
packages/package_name/reference_data/collections
using the commandscp -r /path/to/collections remote_user@ip /path/to/packges/package_name/reference_data/collections
-
In
packages
create a new folder calledontologies
usingmkdir ontolgoies
and within that folder create another directory calledcidoc_crm
and finally movecidoc
files in there donwloaded from https://arches.readthedocs.io/en/stable/administering/ontologies-in-arches/ toontologies/cidoc_crm/