You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Commands to download the DBpedia Knowledge Graphs generated by Live Fusion.
5
+
DBpedia Live Fusion publishes two different kinds of KGs:
6
+
7
+
1. Open Core Knowledge Graphs under CC-BY-SA license, open with copyleft/share-alike, no registration needed
8
+
2. Industry Knowledge Graphs under BUSL 1.1 license, unrestricted for research and experimentation, commercial license for productive use, free registration needed.
9
+
10
+
11
+
### Registration (Access Token)
12
+
13
+
1. If you do not have a DBpedia Account yet (Forum/Databus), please register at https://account.dbpedia.org
14
+
2. Login at https://account.dbpedia.org and create your token.
15
+
3. Save the token to a file `vault-token.dat`.
16
+
17
+
### Docker vs. Python
18
+
The databus-python-client comes as **docker** or **python** with these patterns.
19
+
`$DOWNLOADTARGET` can be any Databus URI including collections OR SPARQL query (or several thereof). Details are documented below.
4
20
```bash
21
+
# Docker
22
+
docker run --rm -v $(pwd):/data dbpedia/databus-python-client download $DOWNLOADTARGET --token vault-token.dat
docker run --rm -v $(pwd):/data dbpedia/databus-python-client download https://databus.dbpedia.org/dbpedia-enterprise/dbpedia-wikipedia-kg-enriched-snapshot --token vault-token.dat
41
+
```
42
+
**DBpedia Wikidata Extraction Enriched**
43
+
TODO One slogan sentence and link
44
+
45
+
```bash
46
+
docker run --rm -v $(pwd):/data dbpedia/databus-python-client download https://databus.dbpedia.org/dbpedia-enterprise/dbpedia-wikidata-kg-enriched-snapshot --token vault-token.dat
47
+
```
48
+
49
+
### Download DBpedia Wikipedia Knowledge Graphs (CC-BY-SA, no registration needed)
50
+
TODO One slogan sentence and link
51
+
52
+
```bash
53
+
docker run --rm -v $(pwd):/data dbpedia/databus-python-client download https://databus.dbpedia.org/dbpedia/dbpedia-wikipedia-kg-snapshot
54
+
```
55
+
### Download DBpedia Wikidata Knowledge Graphs (CC-BY-SA, no registration needed)
56
+
TODO One slogan sentence and link
57
+
58
+
```bash
59
+
docker run --rm -v $(pwd):/data dbpedia/databus-python-client download https://databus.dbpedia.org/dbpedia/dbpedia-wikidata-kg-snapshot
6
60
```
7
61
62
+
## Docker Image Usage
63
+
64
+
A docker image is available at [dbpedia/databus-python-client](https://hub.docker.com/r/dbpedia/databus-python-client). See [download section](#usage-of-docker-image) for details.
65
+
66
+
8
67
## Deploy to Databus
9
68
Please add databus API_KEY to .env file
10
69
Use metadata.json file to list all files which should be added to the databus
If no `--localdir` is provided, the current working directory is used as base directory. The downloaded files will be stored in the working directory in a folder structure according to the databus structure, i.e. `./$ACCOUNT/$GROUP/$ARTIFACT/$VERSION/`.
192
+
193
+
**Collection**: download of all files within a collection
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'
232
+
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'
102
233
```
103
234
104
235
A few more notes for CLI usage:
@@ -107,6 +238,31 @@ A few more notes for CLI usage:
107
238
* For complete inferred: Just use the URL with `https://raw.githubusercontent.com/dbpedia/databus/master/server/app/api/swagger.yml`
108
239
* If other parameters are used, you need to leave them empty like `https://raw.githubusercontent.com/dbpedia/databus/master/server/app/api/swagger.yml||yml|7a751b6dd5eb8d73d97793c3c564c71ab7b565fa4ba619e4a8fd05a6f80ff653:367116`
109
240
241
+
242
+
243
+
#### Authentication with vault
244
+
245
+
For downloading files from the vault, you need to provide a vault token. See [getting-the-access-refresh-token](https://github.com/dbpedia/databus-vault-access?tab=readme-ov-file#step-1-getting-the-access-refresh-token) for details. You can come back here once you have a `vault-token.dat` file. To use it, just provide the path to the file with `--token /path/to/vault-token.dat`.
If vault authentication is required for downloading a file, the client will use the token. If no vault authentication is required, the token will not be used.
253
+
254
+
#### Usage of docker image
255
+
256
+
A docker image is available at [dbpedia/databus-python-client](https://hub.docker.com/r/dbpedia/databus-python-client). You can use it like this:
257
+
258
+
```
259
+
docker run --rm -v $(pwd):/data dbpedia/databus-python-client download https://databus.dbpedia.org/dbpedia/mappings/mappingbased-literals/2022.12.01
260
+
```
261
+
If using vault authentication, make sure the token file is available in the container, e.g. by placing it in the current working directory.
262
+
```
263
+
docker run --rm -v $(pwd):/data dbpedia/databus-python-client download https://databus.dbpedia.org/dbpedia-enterprise/live-fusion-snapshots/fusion/2025-08-23/fusion_props=all_subjectns=commons-wikimedia-org_vocab=all.ttl.gz --token vault-token.dat
264
+
```
265
+
110
266
## Module Usage
111
267
112
268
### Step 1: Create lists of distributions for the dataset
0 commit comments