dracor_sparql: Submit SPARQL queries to DraCor API

View source: R/core.R

dracor_sparqlR Documentation

Submit SPARQL queries to DraCor API

Description

dracor_sparql() submits SPARQL queries and parses the result.

Usage

dracor_sparql(sparql_query = NULL, parse = TRUE, ...)

Arguments

sparql_query

Character, SPARQL query.

parse

Logical, if TRUE the result is parsed by xml2::read_xml(), otherwise character value is returned. Default value is TRUE.

...

Additional arguments passed to dracor_api.

Value

SPARQL xml parsed.

See Also

get_dracor

Examples

dracor_sparql("SELECT * WHERE {?s ?p ?o} LIMIT 10")
# If you want to avoid parsing by xml2::read_xml():
dracor_sparql("SELECT * WHERE {?s ?p ?o} LIMIT 10", parse = FALSE)

Pozdniakov/rdracor documentation built on April 9, 2024, 1:20 a.m.