ropensci / redland-bindings

Redland librdf language bindings
http://librdf.org/bindings/
Other
17 stars 3 forks source link

Add 'mimeType' parameter to getResults() #81

Open gothub opened 5 years ago

gothub commented 5 years ago

Currently the getResults() function has this parameter signature:

queryString <- 'SELECT ?s ?p ?o WHERE { ?s ?p ?o . }'
query <- new("Query", x@world, queryString, base_uri=NULL, query_language="sparql",query_uri=NULL)
results <- getResults(x, model, "rdfxml")

Adding an additional 'mimeType' parameter would allow the results to be delivered with different MIME types and character sets, for example:

results <- getResults(x, model, "csv", "text/csv; charset=utf-8")