home » dokk/data.git
ID: 80c9351e49f24032a8b614a30acab34d5d392229
18 lines — 766B — View raw

This document contains some useful commands for creating a database of the DOKK
data, that can be queried with SPARQL.

Note: the tools used here are available for download at
      Just download "apache-jena-<version>.tar.gz" and "apache-jena-fuseki-<version>.tar.gz"

Create a database:

    tdb2.tdbloader --loc=database dokk/data/*.ttl

Query from command line:

    tdb2.tdbquery --loc=database "select distinct ?s where { ?s ?p ?o } order by ?s limit 10"

It's also possible to start a standalone server (Fuseki) that is queryable via
HTTP. All you have to do is create the database first (with the above commands),
and then start Fuseki. For an example see the "fuseki.service" file.