query: Execute SPARQL select query and parse results

View source: R/pmd.r

queryR Documentation

Execute SPARQL select query and parse results

Description

Execute SPARQL select query and parse results

Usage

query(query_string, endpoint = default_endpoint(), format = "csv")

Arguments

query_string

A string with the select query

endpoint

A string defining the endpoint

format

A string defining the format, either "csv" or "json"

Value

A data frame with a column for each variable binding, and a row per result

Examples

## Not run: 
query("SELECT * WHERE { ?s ?p ?o } LIMIT 10", "https://statistics.data.gov.uk/sparql")

## End(Not run)

Swirrl/linked-data-frames documentation built on Sept. 14, 2022, 6:15 p.m.