Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Directly add a link to the full query in addition to the endpoint only #20

Open
Adafede opened this issue Oct 22, 2024 · 1 comment
Open

Comments

@Adafede
Copy link

Adafede commented Oct 22, 2024

When landing on a query page, it would be nice to be one click away from running it directly on the correct endpoint

rq.add("");
rq.add("## Use at ");
streamOf(ex, queryId, SchemaDotOrg.TARGET, null).map(Statement::getObject).map(Value::stringValue)
.map(v -> " * " + v).forEach(rq::add);

Example:

- "Use at https://query.wikidata.org/"
+ "Use at https://query.wikidata.org/#DESCRIBE%20wd%3AQ56888653"
@JervenBolleman
Copy link
Collaborator

JervenBolleman commented Nov 21, 2024

This is unfortunately not standardized in any way :( so all we can do is a link to executing the query. Which might not be on a nice UI page.

For the wikidata examples the endpoint query is actually at 'https://query.wikidata.org/sparql' not 'https://query.wikidata.org/'.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants