@@ -90,6 +90,8 @@ Options:
9090Commands:
9191 deploy
9292 download
93+ mkdist
94+ completion
9395```
9496
9597
@@ -183,7 +185,7 @@ Arguments:
183185 - Metdata mode: None
184186
185187Options:
186- --version-id TEXT Target databus version/dataset identifier of the form <h
188+ --versionid TEXT Target databus version/dataset identifier of the form <h
187189 ttps://databus.dbpedia.org/$ACCOUNT/$GROUP/$ARTIFACT/$VE
188190 RSION> [required]
189191 --title TEXT Dataset title [required]
@@ -202,11 +204,11 @@ Options:
202204#### Examples of using deploy command
203205##### Mode 1: Classic Deploy (Distributions)
204206```
205- databusclient deploy --version-id https://databus.dbpedia.org/user1/group1/artifact1/2022-05-18 --title title1 --abstract abstract1 --description description1 --license http://dalicc.net/licenselibrary/AdaptivePublicLicense10 --apikey MYSTERIOUS 'https://raw.githubusercontent.com/dbpedia/databus/master/server/app/api/swagger.yml|type=swagger'
207+ databusclient deploy --versionid https://databus.dbpedia.org/user1/group1/artifact1/2022-05-18 --title title1 --abstract abstract1 --description description1 --license http://dalicc.net/licenselibrary/AdaptivePublicLicense10 --apikey MYSTERIOUS 'https://raw.githubusercontent.com/dbpedia/databus/master/server/app/api/swagger.yml|type=swagger'
206208```
207209
208210```
209- databusclient deploy --version-id https://dev.databus.dbpedia.org/denis/group1/artifact1/2022-05-18 --title "Client Testing" --abstract "Testing the client...." --description "Testing the client...." --license http://dalicc.net/licenselibrary/AdaptivePublicLicense10 --apikey MYSTERIOUS 'https://raw.githubusercontent.com/dbpedia/databus/master/server/app/api/swagger.yml|type=swagger'
211+ databusclient deploy --versionid https://dev.databus.dbpedia.org/denis/group1/artifact1/2022-05-18 --title "Client Testing" --abstract "Testing the client...." --description "Testing the client...." --license http://dalicc.net/licenselibrary/AdaptivePublicLicense10 --apikey MYSTERIOUS 'https://raw.githubusercontent.com/dbpedia/databus/master/server/app/api/swagger.yml|type=swagger'
210212```
211213A few more notes for CLI usage:
212214
@@ -223,7 +225,7 @@ All files referenced there will be registered on the Databus.
223225``` bash
224226databusclient deploy \
225227 --metadata /home/metadata.json \
226- --version-id https://databus.org/user/dataset/version/1.0 \
228+ --versionid https://databus.org/user/dataset/version/1.0 \
227229 --title " Metadata Deploy Example" \
228230 --abstract " This is a short abstract of the dataset." \
229231 --description " This dataset was uploaded using metadata.json." \
@@ -261,7 +263,7 @@ databusclient deploy \
261263 --webdav-url https://cloud.example.com/remote.php/webdav \
262264 --remote nextcloud \
263265 --path datasets/mydataset \
264- --version-id https://databus.org/user/dataset/version/1.0 \
266+ --versionid https://databus.org/user/dataset/version/1.0 \
265267 --title " Test Dataset" \
266268 --abstract " Short abstract of dataset" \
267269 --description " This dataset was uploaded for testing the Nextcloud → Databus pipeline." \
@@ -296,6 +298,48 @@ docker run --rm -v $(pwd):/data dbpedia/databus-python-client download https://d
296298```
297299
298300
301+ ### mkdist command
302+
303+ Create a distribution string from components.
304+
305+ Usage:
306+ ```
307+ databusclient mkdist URL --cv key=value --cv key2=value2 --format ttl --compression gz --sha-length <sha256hex>:<length>
308+ ```
309+
310+ Example:
311+ ```
312+ python -m databusclient mkdist "https://example.org/file.ttl" --cv lang=en --cv part=sorted --format ttl --compression gz --sha-length aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:12345
313+ ```
314+
315+ ## Completion
316+
317+ Enable shell completion (bash example):
318+ ```
319+ eval "$(_DATABUSCLIENT_COMPLETE=source_bash python -m databusclient)"
320+ ```
321+
322+ ### mkdist command
323+
324+ Create a distribution string from components.
325+
326+ Usage:
327+ ```
328+ databusclient mkdist URL --cv key=value --cv key2=value2 --format ttl --compression gz --sha-length <sha256hex>:<length>
329+ ```
330+
331+ Example:
332+ ```
333+ python -m databusclient mkdist "https://example.org/file.ttl" --cv lang=en --cv part=sorted --format ttl --compression gz --sha-length aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa:12345
334+ ```
335+
336+ ## Completion
337+
338+ Enable shell completion (bash example):
339+ ```
340+ eval "$(_DATABUSCLIENT_COMPLETE=source_bash python -m databusclient)"
341+ ```
342+
299343## Module Usage
300344### Step 1: Create lists of distributions for the dataset
301345
0 commit comments