Stardog Data Caching API

Operations for working with cached data

Operations 9

POST /admin/cache/refresh/{name} Refresh cache #
POST /admin/cache Create cache #
GET /admin/cache/graphs Get cached graphs #
DELETE /admin/cache/target/{name}/orphan Orphan cache target #
DELETE /admin/cache/{name} Drop cache #
DELETE /admin/cache/target/{name} Remove cache target #
GET /admin/cache/target List cache targets #
POST /admin/cache/target Add cache target #
POST /admin/cache/status Get cache status #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/stardog-data-caching-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

stardog-data-caching-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stardog HTTP Data Caching API
  description: '# Overview

    Stardog supports the standard SPARQL Protocol HTTP bindings, as well as additional functionality via HTTP.'
  contact:
    url: https://stardog.com
  license:
    name: Apache 2.0
    url: http://www.apache.org/licenses/LICENSE-2.0
  version: 12.0.3
  x-logo:
    url: https://d33wubrfki0l68.cloudfront.net/66e9dcff51317cfc11b9f3d4ce2917a11ba81681/543c1/img/stardog-logo-optimized.svg
servers:
- url: http://localhost:5820
tags:
- name: Data Caching
  description: Operations for working with cached data
paths:
  /admin/cache/refresh/{name}:
    post:
      tags:
      - Data Caching
      summary: Refresh cache
      operationId: refreshCache
      parameters:
      - name: name
        in: path
        description: The name of the cache
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Operation successful
          content:
            text/plain:
              example: Refreshed query with 42 solutions
  /admin/cache:
    post:
      tags:
      - Data Caching
      summary: Create cache
      description: Create a new cached dataset from a virtual graph
      operationId: createCache
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CACHE_OBJ'
        required: true
      responses:
        '200':
          description: Operation successful
          content:
            text/plain:
              example: Cached query with 42 solutions
  /admin/cache/graphs:
    get:
      tags:
      - Data Caching
      summary: Get cached graphs
      operationId: getCachedGraphs
      responses:
        '200':
          description: Operation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CACHE_GRAPH_LIST'
  /admin/cache/target/{name}/orphan:
    delete:
      tags:
      - Data Caching
      summary: Orphan cache target
      description: Orphan a cache target but do not destroy the contents
      operationId: orphanCacheTarget
      parameters:
      - name: name
        in: path
        description: The name of the target
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Target orphaned
  /admin/cache/{name}:
    delete:
      tags:
      - Data Caching
      summary: Drop cache
      operationId: dropCache
      parameters:
      - name: name
        in: path
        description: The name of the cache
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Cache dropped
  /admin/cache/target/{name}:
    delete:
      tags:
      - Data Caching
      summary: Remove cache target
      description: Remove a cache target and destroy its contents
      operationId: removeCacheTarget
      parameters:
      - name: name
        in: path
        description: The name of the target
        required: true
        schema:
          type: string
      responses:
        '200':
          description: Target removed
  /admin/cache/target:
    get:
      tags:
      - Data Caching
      summary: List cache targets
      operationId: listCacheTargets
      responses:
        '200':
          description: List of cache targets
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CACHE_TARGET_LIST'
    post:
      tags:
      - Data Caching
      summary: Add cache target
      operationId: addCacheTarget
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CACHE_TARGET'
        required: true
      responses:
        '201':
          description: Cache target added
  /admin/cache/status:
    post:
      tags:
      - Data Caching
      summary: Get cache status
      description: Retrieve the status of one or more cached graphs or queries
      operationId: cachedDatasetStatus
      requestBody:
        content:
          application/json:
            schema:
              type: array
              items:
                $ref: '#/components/schemas/URI'
        required: true
      responses:
        '200':
          description: Operation successful
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CACHE_STATUS_LIST'
components:
  schemas:
    CACHE_TARGET:
      required:
      - name
      - hostname
      - port
      - username
      - password
      properties:
        name:
          type: string
        hostname:
          type: string
        port:
          type: integer
          format: int32
        username:
          type: string
        password:
          type: string
        useExistingDb:
          type: boolean
          description: If true, check for an existing cache database to use before creating a new one
          default: false
    CACHE_OBJ:
      required:
      - name
      - target
      properties:
        name:
          type: string
          format: URI
        target:
          type: string
        database:
          type: string
        refreshScript:
          type: string
          description: An optional SPARQL Insert query to run when refreshing the cache
        query:
          type: string
          description: Query to cache. Mutually exclusive with "graph"
        graph:
          type: string
          description: Graph to cache. Mutually exclusive with "query"
        registerOnly:
          type: boolean
          description: If true, register a cached dataset without loading data from the source graph or query into the cache target's databases
          default: false
    CACHE_GRAPH_LIST:
      type: array
      items:
        properties:
          name:
            type: string
            format: URI
          target:
            $ref: '#/components/schemas/CACHE_TARGET'
          database:
            type: string
          refreshScript:
            type: string
            description: An optional SPARQL Insert query to run when refreshing the cache
          graph:
            type: string
    CACHE_TARGET_LIST:
      type: array
      items:
        $ref: '#/components/schemas/CACHE_TARGET'
    CACHE_STATUS_LIST:
      type: array
      items:
        properties:
          name:
            type: string
            format: URI
          type:
            type: string
            enum:
            - graph
            - query
          target:
            type: string
          size:
            type: integer
            format: int64
            example: 42
          lastRefresh:
            type: string
            format: date
    URI:
      type: string
      format: URI
externalDocs:
  url: https://docs.stardog.com
x-tagGroups:
- name: Data Unification
  tags:
  - Data Sources
  - Virtual Graphs
- name: Virtual Graphs External Compute
  tags:
  - Virtual Graphs External Compute
- name: Server
  tags:
  - Monitoring
  - Stored Functions
  - Server Status/Metrics
  - Server Admin
  - Queries
  - Cluster Admin
- name: Database
  tags:
  - Checkpoints
  - DB Admin
  - Integrity Constraints / SHACL
  - Data Caching
  - Graph Store Protocol
  - Matcher, aligning schemas from various data sources
  - Reasoning
  - Transactions
  - GraphQL
  - SPARQL
  - EntityResolution
- name: Security
  tags:
  - Roles
  - Permissions
  - Users
- name: Knowledge Catalog
  tags:
  - Knowledge Catalog