44
55The following paragraphs gives you an overview of how to install and use dsp-tools.
66
7+
8+
9+
710## Installation
811
912To install the latest version run:
@@ -18,6 +21,9 @@ To update to the latest version run:
1821pip3 install --upgrade dsp-tools
1922```
2023
24+
25+
26+
2127## Create a data model on a DSP server
2228
2329``` bash
@@ -45,6 +51,9 @@ dsp-tools create -s https://api.dsl.server.org -u root@example.com -p test data_
4551
4652The description of the expected JSON format can be found [ here] ( ./dsp-tools-create.md ) .
4753
54+
55+
56+
4857## Get a data model from a DSP server
4958
5059``` bash
@@ -69,6 +78,11 @@ the password `test` are used. The data model is saved into the output file `outp
6978dsp-tools get -s https://api.test.dasch.swiss -u root@example.com -p test -P my_project output_file.json
7079```
7180
81+ The description of the JSON format can be found [ here] ( ./dsp-tools-create.md ) .
82+
83+
84+
85+
7286## Upload data to a DSP server
7387
7488``` bash
@@ -98,13 +112,16 @@ dsp-tools xmlupload -s https://api.dsl.server.org -u root@example.com -p test -S
98112
99113The description of the expected XML format can be found [ here] ( ./dsp-tools-xmlupload.md ) .
100114
101- An internal ID is used in the ` <resptr> ` tag of an XML file used for ` xmlupload ` to reference resources inside the same
102- XML file. Once data is uploaded to DSP it cannot be referenced by this internal ID anymore. Instead, the resource's IRI
103- has to be used. The mapping of internal IDs to their respective IRIs is written to a file
104- called ` id2iri_mapping_[timstamp].json ` after a successful ` xmlupload ` .
115+ An internal ID is used in the ` <resptr> ` tag of an XML file to reference resources inside the same XML file. Once data
116+ is uploaded to DSP, it cannot be referenced by this internal ID anymore. Instead, the resource's IRI has to be used.
117+ After a successful ` xmlupload ` , the mapping of internal IDs to their respective IRIs is written to a file
118+ called ` id2iri_mapping_[timstamp].json ` .
105119See [ ` dsp-tools id2iri ` ] ( ./dsp-tools-usage.md#replace-internal-ids-with-iris-in-xml-file ) for more information about how
106120to use this file to replace internal IDs in an existing XML file to reference existing resources.
107121
122+
123+
124+
108125## Create a JSON list file from one or several Excel files
109126
110127``` bash
@@ -131,6 +148,9 @@ The description of the expected Excel format can be found [here](./dsp-tools-cre
131148information about the usage of this command can be
132149found [ here] ( ./dsp-tools-excel.md#create-a-list-from-one-or-several-excel-files ) .
133150
151+
152+
153+
134154## Create resources from an Excel file
135155
136156``` bash
@@ -148,8 +168,10 @@ dsp-tools excel2resources Resources.xlsx resources.json
148168```
149169
150170More information about the usage of this command can be
151- found [ here] ( ./dsp-tools-excel.md#create-the-resources-for-a-data-model-from-an-excel-file )
152- .
171+ found [ here] ( ./dsp-tools-excel.md#create-the-resources-for-a-data-model-from-an-excel-file ) .
172+
173+
174+
153175
154176## Create properties from an Excel file
155177
@@ -168,8 +190,10 @@ dsp-tools excel2properties Properties.xlsx properties.json
168190```
169191
170192More information about the usage of this command can be found
171- [ here] ( ./dsp-tools-excel.md#create-the-properties-for-a-data-model-from-an-excel-file )
172- .
193+ [ here] ( ./dsp-tools-excel.md#create-the-properties-for-a-data-model-from-an-excel-file ) .
194+
195+
196+
173197
174198## Replace internal IDs with IRIs in XML file
175199
0 commit comments