oxigraph
oxigraph copied to clipboard
SPARQL parser: allow to set default prefixes
Currently the SPARQL parser only allows to set a default base IRI. It should also allow to set some default prefixes
I can give this a try. I guess the easiest solution is to allow a set of default prefixes as additional parameter
Query::parse(query: &str, base_iri: Option<&str>, default_prefixes: Option<HashMap<String, String>>) and to use the default_prefixes as default when ParserState is instantiated.
However this would create compatibility issues.
Done in #1315
Released in 0.5.0-beta.1