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

Named graph in configuration #466

Closed ethieblin closed 1 year ago

ethieblin commented 1 year ago

Hello,

I would like to query only a named graph in a SPARQL endpoint. I did not find such an option in the documentation, is it possible to do so ?

Thanks :)

tfrancart commented 1 year ago

Hello @ethieblin

This is possible by passing the named graph URI as the default-graph-uri parameter to the SPARQL endpoint URL, as per https://www.w3.org/TR/2013/REC-sparql11-protocol-20130321/#dataset

You can use something similar to this as the value of the endpoint parameter of spar-natural : https://smt.esante.gouv.fr/api/sparql?default-graph-uri=http%3A%2F%2Fdata.esante.gouv.fr%2Fgraph%2Fterminologie-ref_interop_med

tfrancart commented 1 year ago

See updated documentation for the endpoint parameter at http://docs.sparnatural.eu/Javascript-integration#html-attributes-reference