Software created for the ESIP Drone Cluster
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


Currently this project contains some initial data processing scripts and some sample Drone CO2Meter profile logs (manifested as CSV).



Use the src/ script to make plots, see example/README for a HOWTO and or run

$ python src/ -h

Serializing the Sample CSV Data as RDF

It has become a topic of interest to experiment with mapping Drone data into linked data manifestations in order to provide an environment where applications can query the data, draw inferences using vocabularies, etc.

Apache Any23 is a Java library, a web service and a command line tool that extracts structured data in RDF format from a variety of Web documents. Users can easily use the Any23 CSV Extraction Algorithm to serialize the CSV data as one of a number of Semantic Web formats such as json, nquads, ntriples, rdfxml, trix, turtle and uri's. The guide below displays exactly how you can do this,


First download the Any23 source and install it

$ cd cd ~/.local/
$ git clone && cd any23
$ mvn clean install -DskipTests
$ sudo cd ../ && mv any23 /usr/local/

The run the Any23 Command Line Interface tooling. The following assumes that you have the ESIPDroneClusterSoftware directory located at /usr/local/ESIPDroneClusterSoftware

$ ./cli/target/appassembler/bin/any23 rover -s -l any23.log -o morning1.ttl -f turtle /usr/local/ESIPDroneClusterSoftware/example/morning1.csv

The above commands are explained as follows

    rover      Any23 Command Line Tool.
      Usage: rover [options] input IRIs {<url>|<file>}+
          -d, --defaultns
             Override the default namespace used to produce statements.
          -e, --extractors
             a comma-separated list of extractors, e.g. rdf-xml,rdf-turtle
             Default: []
          -f, --format
             the output format
             Default: json
          -l, --log
             Produce log within a file.
          -n, --nesting
             Disable production of nesting triples.
             Default: false
          -t, --notrivial
             Filter trivial statements (e.g. CSS related ones).
             Default: false
          -o, --output
             Specify Output file (defaults to standard output)
          -p, --pedantic
             Validate and fixes HTML content detecting commons issues.
             Default: false
          -s, --stats
             Print out extraction statistics.
             Default: false

If you take a look in morning1.ttl, you will now see a Turtle manifestation of the morning1.csv file.

Querying the Turtle Drone Data

Say we are interested in querying the above drone data we've serialized as Turtle. One way this can be achieved is to use the ESIP Community Ontology Repository which hosts the Turtle data.

Using the SPARQL Search functionality, we can submit the following query

PREFIX rdf: <>
PREFIX rdfs: <>
PREFIX morning1: <file:/usr/local/ESIPDroneClusterSoftware/example/morning1.csv>

  ?sub morning1:Co2Ppm ?value .
  FILTER (?value > 500) .

The simple sample query below gives us the first ten results from the dataset which have CO2 Concentrations (parts-per-million) of greater than 500 ppm.