ropensci / redland-bindings

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

parseFileIntoModel ignores baseUri #94

Open josephguillaume opened 3 years ago

josephguillaume commented 3 years ago

baseUri is used to create a librdf_new_uri but this is not used in the rest of the function parseFileIntoModel https://github.com/ropensci/redland-bindings/blob/e487922513ab48a85f2da63b0b009dc53f7205d5/R/redland/R/Parser.R#L110

As I understand it, the baseUri should be the third argument of librdf_parser_parse_into_model, which is currently set to NULL. https://github.com/ropensci/redland-bindings/blob/e487922513ab48a85f2da63b0b009dc53f7205d5/R/redland/R/Parser.R#L123

https://librdf.org/docs/api/redland-parser.html#librdf-parser-parse-into-model

It looks like replacing NULL with librdf_uri works, i.e. the baseUri is then used