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
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.
108
+
109
+
50
110
## CLI Usage
111
+
112
+
**Installation**
113
+
```bash
114
+
python3 -m pip install databusclient
115
+
```
116
+
117
+
**Running**
51
118
```bash
52
119
databusclient --help
53
120
```
@@ -68,47 +135,7 @@ Commands:
68
135
download
69
136
```
70
137
71
-
## Docker Image Usage
72
-
73
-
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.
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'
105
-
```
106
138
107
-
A few more notes for CLI usage:
108
-
109
-
* The content variants can be left out ONLY IF there is just one distribution
110
-
* For complete inferred: Just use the URL with `https://raw.githubusercontent.com/dbpedia/databus/master/server/app/api/swagger.yml`
111
-
* 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`
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'
234
+
```
235
+
236
+
A few more notes for CLI usage:
237
+
238
+
* The content variants can be left out ONLY IF there is just one distribution
239
+
* For complete inferred: Just use the URL with `https://raw.githubusercontent.com/dbpedia/databus/master/server/app/api/swagger.yml`
240
+
* 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`
241
+
242
+
243
+
177
244
#### Authentication with vault
178
245
179
246
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`.
0 commit comments