optional: OPTIONAL

View source: R/optional.R

optionalR Documentation

OPTIONAL

Description

OPTIONAL

Usage

optional(.data, ...)

optional_(.data, ..., .dots)

Arguments

.data

input. This can be JSON input, or an object of class sparql_dsl that has JSON and query params combined, which is passed from function to function when using the sparqldsl DSL.

...

Comma separated list of unquoted variable names

.dots

Used to work around non-standard evaluation

dots

dots

Examples

## Not run: 
### OPTIONAL { ?s ?p ?o }
conn <- sparql_dsl("http://dbpedia.org/sparql")
conn %>% optional(x, y) %>% inspect
sparql_dsl("http://dbpedia.org/sparql") %>% where(s, p, o, )

## End(Not run)

ropenscilabs/sparqldsl documentation built on May 18, 2022, 8:32 p.m.