oxigraph icon indicating copy to clipboard operation
oxigraph copied to clipboard

SPARQL parser: allow to set default prefixes

Open Tpt opened this issue 1 year ago • 2 comments

Currently the SPARQL parser only allows to set a default base IRI. It should also allow to set some default prefixes

Tpt avatar Feb 04 '25 17:02 Tpt

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.

Laschoking avatar Mar 17 '25 10:03 Laschoking

Done in #1315

Tpt avatar Jun 15 '25 19:06 Tpt

Released in 0.5.0-beta.1

Tpt avatar Jul 23 '25 19:07 Tpt