sparna-git / Sparnatural

Sparnatural : visual SPARQL query builder for knowledge graphs in the browser, configurable with SHACL
http://sparnatural.eu
GNU Lesser General Public License v3.0
219 stars 41 forks source link

When there is a single value selected, and we want to see the corresponding object in the result set (by clicking on the eye), it does not work #458

Closed tfrancart closed 1 year ago

tfrancart commented 1 year ago

In the generated SPARQL, we have

  SELECT ?x ?Concept_4
  WHERE {
    ...
    ?x ex:myProperty <http://value>
  }

The expected query should be

  SELECT ?x ?Concept_4
  WHERE {
    ...
    ?x ex:myProperty ?Concept_4 .
    VALUES ?Concept_4 { <http://values> }
  }