> ## Documentation Index
> Fetch the complete documentation index at: https://docs.wazoo.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# sparql

> Execute raw SPARQL queries

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.

<ParamField path="--world" type="string" required>
  The unique system identifier of the target world. *Alias:* `-w`
</ParamField>

<ParamField path="--query" type="string" required>
  The raw SPARQL string, or a relative/absolute path to a file containing a
  SPARQL query. *Alias:* `-q`
</ParamField>

### Usage

```bash theme={null}
# Executing an inline string
worlds sparql --world my-world --query "SELECT * WHERE { ?s ?p ?o } LIMIT 10"

# Executing from a file
worlds sparql --world my-world --query ./queries/get_users.rq
```
