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
6
47
```
7
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
60
+
```
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
## CLI Usage
68
+
69
+
**Installation**
70
+
```bash
71
+
python3 -m pip install databusclient
72
+
```
73
+
74
+
**Running**
9
75
```bash
10
76
databusclient --help
11
77
```
@@ -26,47 +92,7 @@ Commands:
26
92
download
27
93
```
28
94
29
-
## Docker Image Usage
30
-
31
-
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'
63
-
```
64
-
65
-
A few more notes for CLI usage:
66
-
67
-
* The content variants can be left out ONLY IF there is just one distribution
68
-
* For complete inferred: Just use the URL with `https://raw.githubusercontent.com/dbpedia/databus/master/server/app/api/swagger.yml`
69
-
* 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'
191
+
```
192
+
193
+
A few more notes for CLI usage:
194
+
195
+
* The content variants can be left out ONLY IF there is just one distribution
196
+
* For complete inferred: Just use the URL with `https://raw.githubusercontent.com/dbpedia/databus/master/server/app/api/swagger.yml`
197
+
* 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`
198
+
199
+
200
+
135
201
#### Authentication with vault
136
202
137
203
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