prefix: PREFIX

View source: R/prefix.R

prefixR Documentation

PREFIX

Description

PREFIX

Usage

prefix(.data, ...)

prefix_(.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.

...

(logical) named prefixes

.dots

Used to work around non-standard evaluation

Examples

## Not run: 
### PREFIX cito: <http://purl.org/spar/cito/>
x <- sparql_dsl("http://dbpedia.org/sparql")
x %>% prefix(cito = "http://purl.org/spar/cito/") %>% inspect
x %>% select() %>% prefix(dcterms = "http://purl.org/dc/terms/") %>% inspect
x %>% prefix(cito = "http://purl.org/spar/cito/", dcterms = "http://purl.org/dc/terms/") %>% inspect

## End(Not run)

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