Skip to main content
Issues a SPARQL 1.1 query or update against your target world. The CLI intelligently determines if the input is a raw query string or a local filepath to a .rq file.
worldId
string
required
The unique system identifier of the target world.
query_or_file_path
string
required
The raw SPARQL string, or a relative/absolute path to a file containing a SPARQL query.

Usage

# Executing an inline string
worlds sparql <worldId> "SELECT * WHERE { ?s ?p ?o } LIMIT 10"

# Executing from a file
worlds sparql <worldId> ./queries/get_users.rq