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

Feature: Detect Query Kind #28

Closed
BenjaminHofstetter opened this issue Nov 9, 2022 · 1 comment · Fixed by #57
Closed

Feature: Detect Query Kind #28

BenjaminHofstetter opened this issue Nov 9, 2022 · 1 comment · Fixed by #57
Assignees

Comments

@BenjaminHofstetter
Copy link
Collaborator

Low Level Feature

At the moment SPARQL notebook does not detect what kind of query (select, construct, and insert) is sent.

The query kind is important for a few cases:

  • Detect "insert" queries to use the Update Query Endpoint (right now we cannot update)
  • Send and ACCEPT HEADER to get TTL, JSON-LD / CSV, TSV ...

And this query (Virtuoso) returns JSON-SPARQL-RESULT...

# [endpoint=https://fedlex.data.admin.ch/sparqlendpoint]
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX rdfs: <http://www.w3.org/2000/01/rdf-schema#>
PREFIX jolux: <http://data.legilux.public.lu/resource/ontology/jolux#>
PREFIX skos: <http://www.w3.org/2004/02/skos/core#>

CONSTRUCT {
	?s ?p ?o .
} WHERE {
  SELECT * WHERE {
	?s ?p ?o .
  } LIMIT 1
}
@BenjaminHofstetter
Copy link
Collaborator Author

Related to #21 and #20

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

Successfully merging a pull request may close this issue.

1 participant