vsbl2sparql
This package allows to parse JSONs created by the Visual SPARQL Builder and translate them to SPARQL. It is available as angular module via bower and as node module/standalone via npm.
Example
translates to
Select Distinct ?person {?person <http://www.w3.org/1999/02/22-rdf-syntax-ns#type> <http://dbpedia.org/ontology/Person>}
standalone usage
npm install -g vsbl2sparqlcat example.json | vsbl2sparql # Read from stdin, write to stdout cat example.json | vsbl2sparql -o example.sparql # Read from stdin, write to example.sparql vsbl2sparql example.json # Read from file, write to stdout vsbl2sparql example.json -o example.sparql # Read from file, write to example.sparql #Alternative reading from file: vsbl2sparql < example.json > example.sparql
npm usage
npm install vsbl2sparql
var vsbl2sparql = ; var json = JSON; console;
angular usage
bower install vsbl2sparql