tinysparql

Lightweight RDF triple store with SPARQL 1.1 query support

brewmacoslinux
Try with needOr install directly
Source

About

Low-footprint RDF triple store with SPARQL 1.1 interface

Commands

tinysparql

Examples

create a new RDF database and load triples$ tinysparql create mydb.db && tinysparql load mydb.db data.rdf
query RDF data using SPARQL$ tinysparql query mydb.db 'SELECT ?s ?p ?o WHERE { ?s ?p ?o } LIMIT 10'
search for specific resources by URI in triple store$ tinysparql query mydb.db 'SELECT ?p ?o WHERE { <http://example.org/resource> ?p ?o }'
export query results to different formats$ tinysparql query mydb.db --format json 'SELECT * WHERE { ?s ?p ?o }'
check RDF database statistics and metadata$ tinysparql info mydb.db