https://phabricator.wikimedia.org/T320934 was opened last year to note that sparql was no longer building on more recent versions of notebook. A patch submitted to the upstream to fix the issue has not been noted or merged. Indeed the upstream has not been updated since 2020.
https://phabricator.wikimedia.org/T121478 meanwhile has been unblocked upstream with a new version of notebook. That sparql integration with jupyterlab appears to lack support it will be removed to unblock notebook upgrades.