zazuko / vscode-sparql-notebook

Visual Studio Code SPARQL Notebook Extension
https://marketplace.visualstudio.com/items?itemName=Zazuko.sparql-notebook
Other
26 stars 8 forks source link

Feature: Detect Query Kind #28

Closed BenjaminHofstetter closed 1 year ago

BenjaminHofstetter commented 2 years ago

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:

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 commented 2 years ago

Related to #21 and #20