Skip to contents

Fetch information about known relational information from a sparql endpoint.

Usage

map_endpoint(endpoint_url, strip.blank = TRUE, return.table = FALSE)

Arguments

endpoint_url

Character scalar sparql endpoint url.

strip.blank

Boolean. Whether to remove blank nodes from the result. (Default: TRUE)

return.table

Boolean. Whether to return the raw output table. For development and debugging. (Default: FALSE).

Value

a data frame with ?domain ?property ?range columns.

Examples

# Don't query endpoints unintentionally.
if(FALSE) {

x <- map_endpoint(endpoint_url = "https://sparql.uniprot.org/")
x |>
    where_clause(C.Enzyme(?a)) |>
    where_clause(P.alternativeName(g:h ~ ?j)) |>
    where_clause(P.activity(?d ~ e:f),
                 C.Cluster(b:c))

}