-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/master'
- Loading branch information
Showing
4 changed files
with
163 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Docker | ||
|
||
We also provide a dockerized version of the databus client in our [DockerHub repository](https://hub.docker.com/r/dbpedia/databus-client). | ||
|
||
You can pass all the variables as Environment Variables (**-e**), that are shown in [#databus-client-parameters](../../docs/usage/#databus-client-parameters "mention") (except `target`), but you have to write the Environment Variables in Capital Letters. | ||
|
||
### Requirements | ||
|
||
* **Docker:** `^3.5` | ||
|
||
### Installation | ||
|
||
Pull a docker image of our [DockerHub repository](https://hub.docker.com/r/dbpedia/databus-client). | ||
|
||
``` | ||
docker pull dbpedia/databus-client:latest | ||
``` | ||
|
||
## Example | ||
|
||
#### Select Data | ||
|
||
``` | ||
echo "PREFIX dcat: <http://www.w3.org/ns/dcat#> | ||
PREFIX databus: <https://dataid.dbpedia.org/databus#> | ||
SELECT ?file WHERE | ||
{ | ||
GRAPH ?g | ||
{ | ||
?dataset databus:artifact <https://dev.databus.dbpedia.org/tester/testgroup/testartifact> . | ||
{ ?distribution <http://purl.org/dc/terms/hasVersion> '2023-06-23' . } | ||
?dataset dcat:distribution ?distribution . | ||
?distribution databus:file ?file . | ||
} | ||
}" > myQuery.sparql | ||
``` | ||
|
||
``` | ||
docker run --name databus-client \ | ||
-v $(pwd)/myQuery.sparql:/databus-client/query.sparql \ | ||
-v $(pwd)/repo:/var/repo \ | ||
-e ENDPOINT="https://dev.databus.dbpedia.org/sparql" \ | ||
-e SOURCE="/databus-client/query.sparql" \ | ||
-e FORMAT="ttl" \ | ||
-e COMPRESSION="bz2" \ | ||
dbpedia/databus-client | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# Docker Compose | ||
|
||
Whether you prefer to use docker or docker compose is a matter of taste. We provide both options. | ||
|
||
### Requirements | ||
|
||
* **Docker:** `^3.5` | ||
|
||
## Example | ||
|
||
#### Installation | ||
|
||
get the [docker-compose.yml](../../docker/databus-client-compose/docker-compose.yml) file of the Databus Client Repository | ||
|
||
#### Select Data | ||
|
||
``` | ||
echo "PREFIX dcat: <http://www.w3.org/ns/dcat#> | ||
PREFIX databus: <https://dataid.dbpedia.org/databus#> | ||
SELECT ?file WHERE | ||
{ | ||
GRAPH ?g | ||
{ | ||
?dataset databus:artifact <https://dev.databus.dbpedia.org/tester/testgroup/testartifact> . | ||
{ ?distribution <http://purl.org/dc/terms/hasVersion> '2023-06-23' . } | ||
?dataset dcat:distribution ?distribution . | ||
?distribution databus:file ?file . | ||
} | ||
}" > myQuery.sparql | ||
``` | ||
|
||
#### Execute | ||
|
||
``` | ||
docker compose up | ||
``` | ||
|
||
\-> the resulting files can be found in the `toLoad` Volume |