Querying a Sesame triplestore using JavaScript [cl

2019-09-08 08:35发布

问题:

I am trying to find out if one can query a graph in Sesame triplestore using JavaScript and extract the result as SPARQL/JSON. I want to extract Lat/Long values and plot on a map using leaflet.js.

The follow up question is at Querying Sesame triplestore using JavaScript

回答1:

Yes, this is possible. Sesame has a REST API which you can access from JavaScript, and you can request results in multiple formats (including SPARQL/JSON).