SPARQL Package is a function for R statistical software to enable to analyze Linked Data.
Author: Willem Robert van Hage, with contributions from Tomi Kauppinen, Benedikt Graeler, Christopher Davis, Jesper Hoeksema, Alan Rut- tenberg, and Daniel Bahls.
.
How to get started:
- First , go through one of the following tutorials:
- Tomi Kauppinen and Benedikt Gräler: The Brazilian Amazon Rainforest deforestation tutorial on SPARQL Package for R.
- Tomi Kauppinen and Miika Alonen: Analyzing and Visualizing Linked Data from the Aalto University with R.
- Willem Robert van Hage: The Linked Open Piracy tutorial on semantic/statistical analysis of maritime piracy with the SPARQL Package for R.
- Willem Robert van Hage: The Hollywood movie star tutorial on Social Network Analysis with the SPARQL Package for R.
- Benedikt Gräler and Jim Jones: The Brazillian Amazon Rainforest deforestation data set linked with health data on number of deaths and their causes.
- See also the manual for more information or download the package.
Short technical description:
- SPARQL Package enables to connect to a SPARQL end-point over HTTP, pose a SELECT query or an update query (LOAD, INSERT, DELETE).
- If given a SELECT query it returns the results as a data frame with a named column for each variable from the SELECT query, a list of prefixes and namespaces that were shortened to qnames is also returned.
- If given an update query nothing is returned. If the parameter “query” is given, it is assumed the given query is a SELECT query and a GET request will be done to get the results from the URL of the end point.
- Otherwise, if the parameter “update” is given, it is assumed the given query is an update query and a POST request will be done to send the request to the URL of the end point.
