Skip to main content
POST
/
worlds
/
{slug}
/
sparql
SPARQL scoped to one world (default namespace)
curl --request POST \
  --url https://api.wazoo.dev/worlds/{slug}/sparql \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "query": "<string>",
  "sources": [
    "<string>"
  ],
  "namespace": "<string>",
  "defaultGraphUris": [
    "<string>"
  ],
  "namedGraphUris": [
    "<string>"
  ]
}
'
{
  "head": {
    "vars": [
      "<string>"
    ],
    "link": [
      "<string>"
    ]
  },
  "results": {
    "bindings": [
      {}
    ]
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

slug
string
required

Body

application/json
query
string

SPARQL 1.1 query or update string. If omitted or empty, the server returns a SPARQL 1.1 service description (RDF), with serialization negotiated from Accept.

sources
string · object · object[]

Target world: a qualified string (namespace/slug), { slug, namespace? }, or { name } (same qualified form as name).

namespace
string
defaultGraphUris
string[]
namedGraphUris
string[]

Response

SPARQL JSON results, or RDF service description when query is absent

head
object
required
results
object
required