Skip to content

mischat/sparql2json

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

This is a hacked version of the sparql2html.xslt file taken from the DAWG tests put together by the W3C. I hope I am not breaking any copyrights. I have kept their copyright as a whole in my hacked version. 

The scripts I mention are linked from the below document:

http://www.w3.org/2001/sw/DataAccess/rf1/

Example: 

This example query should return something when pointed to a sparql endpoint with foaf data in it which speaks sparql protocol at the following URI: 
http://localhost:8888/sparql/

xsltproc sparql2json.xslt 'http://localhost:8888/sparql/?query=SELECT%20%3Fname%20%20%3Fs%20WHERE%20%7B%20%3Fs%20%3Chttp%3A%2F%2Fwww.w3.org%2F1999%2F02%2F22-rdf-syntax-ns%23type%3E%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2FPerson%3E%20.%3Fs%20%3Chttp%3A%2F%2Fxmlns.com%2Ffoaf%2F0.1%2Fname%3E%20%3Fname%7D'

-------
Mischa Tuffield 2011

About

XSLT script to output JSON from SPARQL SELECT queries

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors