SPARQL Package is a function for R statistical software to enable to analyze Linked Data.
Authors: Willem Robert van Hage and Tomi Kauppinen, with contributions from Christopher Davis.
How to get started:
- First , go through a tutorial on SPARQL Package for R that contains an annotated script to access Linked Data about the Brazilian Amazon Rainforest statistics.
- 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.