# JAR

Instead of cloning the whole repository, you can only download the `databus-client.jar` of the latest [Databus Client release](https://github.com/dbpedia/databus-client/releases/latest).

The parameter options are shown in [Usage](/databus/download-client/usage.md#databus-client-parameters)

### Requirements

* **Java:** `JDK 11`

## Execution example

### Select Data

First we need to specify, the data we want to download.

**Note:** *It is best practice to write a query to a file and pass this file as source, instead of passing the query directly as a string.*

```
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 .
        }
}" > query.sparql
```

### Download and Convert Data

Then we can download the selected data, and convert it to ntriple files.

```
java -jar databus-client.jar \
-s "query.sparql" \
-e "https://dev.databus.dbpedia.org/sparql" \
-f nt
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://dbpedia.gitbook.io/databus/download-client/usage/jar.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
