lvaudor / glitter

an R package which writes SPARQL queries
https://lvaudor.github.io/glitter
44 stars 5 forks source link

pb with replacing prefixes #206

Closed lvaudor closed 10 months ago

lvaudor commented 12 months ago

spq_perform(replace_prefixes=TRUE) does not work in that example:

tib=spq_init() %>% 
  spq_set(river="wd:Q602") %>% 
  spq_add("?river ?p ?o") %>%
  spq_label(p,o) %>% 
  spq_perform(replace_prefixes=TRUE)

It's probably because the only prefix registered as being used here is "rdfs". I think we should add all usual_prefixes associated with a given endpoint to prefixes_used in the call to replace_prefix()

lvaudor commented 12 months ago

I'll try and make the change to ascertain I am able to change things to the package myself 😅