sparna-git / Sparnatural

Sparnatural : visual knowledge graph explorer with SPARQL, in the browser, configurable with SHACL
http://sparnatural.eu
GNU Lesser General Public License v3.0
225 stars 41 forks source link

Why isn't the query bound to prefixes with such config #637

Open ch-sander opened 1 month ago

ch-sander commented 1 month ago

Why isn't the query bound to prefixes with such config

<spar-natural 
            src="/static/sparnatural/config.ttl"           
            endpoint="https://g17dev.dhi-roma.it/sparql"
            lang="en"
            defaultLang="en"
            distinct="true"
            limit="10000"
            debug="true"
            prefixes="grace:http://www.graceful17.org/ontology/ g17:http://www.graceful17.org/resources/ "
        ></spar-natural>

The sparql will still be rendered like

PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
SELECT DISTINCT ?archive_1 ?archive_1_label ?GIS_2 ?GIS_2_label WHERE {
  ?archive_1 rdf:type <http://www.graceful17.org/ontology/archive>;
    <http://www.graceful17.org/ontology/called> ?archive_1_label;
    <http://www.graceful17.org/ontology/wkt> ?GIS_2.
}
LIMIT 10000

I must be missing something here...sorry!

Originally posted by @ch-sander in https://github.com/sparna-git/Sparnatural/issues/620#issuecomment-2399235368

ch-sander commented 1 month ago

Any idea why that is? Not really an issue, but for didactic purposes, this would be great!