Menu

Techniques
how to use DOACC data in your own application / web site.

Querying

DOACC and SPARQL

As an alternative to programmed retrieval and manipulation, facts from the DOACC dataset can be retrieved interactively via queries expressed in the SPARQL query language (an intended analogue of SQL). The following in-browser example uses a trivial dataset and a trivial but serves to illustrate the basic principles:

Result

SPARQL Devops

Setting up a SPARQL endpoint

For production purposes, Joseki offers a reliable and capable solution. Deployment with Vagrant and Ansible is straightforward. The DOACC github offers a pre-scripted Ansible playbook that will install, configure and run a Fuseki server:

Install Vagrant.

$ dkpg install https://dl.bintray.com/mitchellh/vagrant/vagrant_1.7.2_x86_64.deb

Install Ansible.

$ git clone https://github.com/ansible/ansible.git $ cd ansible $ git submodule update --init --recursive $ sudo make install

Get the ansible playbook, run it to create a standalone Fuseki server

$ git clone https://github.com/DOACC/va-fuseki.git $ cd va-fuseki $ vagrant init ubuntu/trusty64 $ vagrant up