Databus Gitbook
Databus Client
Databus Client
  • Overview
    • Features
  • Usage
    • JAR
    • CLI
    • Docker
      • Docker Compose
    • Scala/Java API
  • Examples
    • Loading data into Virtuoso (Docker)
    • Download data using Collection Uri
Powered by GitBook
On this page
  • Requirements
  • Execution example
  • Select Data
  • Download and Convert Data
  1. Usage

JAR

PreviousUsageNextCLI

Last updated 1 year ago

Instead of cloning the whole repository, you can only download the databus-client.jar of the latest .

The parameter options are shown in

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
Databus Client release
Databus Client Parameters