Page MenuHomePhabricator

[NEEDS GROOMING] Update Query Builder to comply with SPARQL 1.1
Open, Needs TriagePublic

Description

As part of the migration away from Blazegraph, we adopting the SPARQL 1.1 standard and no longer supporting Blazegraph-specific syntax. Subsequently, the Query Builder tool needs to be updated to adopt the same standard. Specifically the code generating the SPARQL query from the user input needs to be updated to generate queries that are compatible with the new backend.

Event Timeline

Which Blazegraph-specific syntax does the query builder use? I tried out an example query and the result is standard SPARQL syntax AFAICT. (It uses the label service, which is a custom feature, but syntactically that’s just a ServiceGraphPattern like for federated queries.)

AFAIK the Query Builder uses sparqljs to build the query, which only supports standard syntax. (It’s also apparently deprecated now, but that’s beside the point here ^^)

That's good to know. Thanks! Then maybe this is considerably less work than I feared.
And I guess the label service will depend on what happens to that in general.

And I guess the label service will depend on what happens to that in general.

Label service queries can be rewritten to standard SPARQL 1.1. We have some tooling that can help automate that rewrite. It would be great if we could deprecate all internal use of wikibase:label in internal queries by the time we start migrating in July.

cc / @AWesterinen-WMF