- Wikidata Query Service UI
As a user of the Wikidata Query Service,
I want to share complex queries via a short URL
in order to share my work with others (e.g. via Twitter).
- Currently the maximum size for the URL to be shortened on the URL shortener is 2000 characters. This is not enough for complex Wikidata queries. It gets even worse if Unicode characters are involved.
- Ideally, we would want to encourage well-documented queries. A limit in query length is discouraging this.
- A suggested T220703: Increase the max length of URL to be shortened was declined for security reasons. We need to find a different solution for this.
Ideas for solutions:
- The current URL-encoded strings have high redundancy. This means that a compression algorithm that is optimized for WDQS / the SPARQL Unicode syntax (e.g. based on Unishox or Brotli) might enable users to create complex scripts that still fit into the 2000 character limit of the URL shortener.
- Alternative mechanism for shortening URLs (e.g. T220703#7499438)
- investigation for now
- What other solutions could you think of?
- What compression algorithm would be best suited for this purpose?