@comunica/runner-cli

Run Comunica SPARQL queries and linked data operations from CLI

npmmacoslinuxwindows
Try with needOr install directly
Source

About

A comunica runner that sends an 'init' event from a commandline process.

Commands

comunica

Examples

query a SPARQL endpoint from command line$ comunica 'SELECT * WHERE { ?s ?p ?o }' http://example.org/sparql
search linked data across multiple sources$ comunica 'SELECT ?name WHERE { ?person foaf:name ?name }' http://example.org/data1 http://example.org/data2
count results from a semantic web query$ comunica 'SELECT (COUNT(*) as ?count) WHERE { ?s rdf:type foaf:Person }' http://dbpedia.org/sparql
fetch and filter RDF data by property$ comunica 'SELECT ?resource ?label WHERE { ?resource rdfs:label ?label }' http://example.org/rdf
join data across multiple linked data sources$ comunica 'SELECT * WHERE { ?person foaf:knows ?friend . ?friend foaf:name ?name }' http://source1.org http://source2.org