musicog/rcalma
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
Example R script showing
* SPARQL query to identify individual etree tracks (etreeTrackQuery)
* Retrieval of those tracks' CALMA metadata + blobs
* SPARQL query on retrieved CALMA data to identify relevant feature files (calmaFileQuery)
* SPARQL query on those files to identify relevant feature outputs (calmaFeatureQuery)
* Basic plotting of the resulting information using ggplot2
Before running for the first time, you will need to install some packages.
Run the following in your R session:
# ONLY NEED TO DO THIS BEFORE THE FIRST USE OF THE SCRIPT
install.packages(c("RCurl", "SPARQL", "ggplot2", "rJava", "devtools"))
library("devtools")
install_github("egonw/rrdf", subdir="rrdflibs")
install_github("egonw/rrdf", subdir="rrdf", build_vignettes=FALSE)