Stardog Graph QL API

GraphQL Queries

Operations 10

GET /{db}/graphql/schemas List schemas #
DELETE /{db}/graphql/schemas Clear schemas #
GET /{db}/graphql/{schema} Perform GraphQL query with schema #
POST /{db}/graphql/{schema} Perform GraphQL query with schema #
GET /{db}/graphql Perform GraphQL query #
POST /{db}/graphql Perform GraphQL query #
GET /{db}/graphql/schemas/{schema} Get schema #
PUT /{db}/graphql/schemas/{schema} Update schema #
POST /{db}/graphql/schemas/{schema} Add schema #
DELETE /{db}/graphql/schemas/{schema} Remove schema #

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-graph-ql-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-graph-ql-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Stardog HTTP Graph QL 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: Graph QL
  description: GraphQL Queries
paths:
  /{db}/graphql/schemas:
    get:
      tags:
      - Graph QL
      summary: List schemas
      operationId: listGraphQLSchemas
      parameters:
      - name: db
        $ref: '#/components/parameters/db'
      responses:
        '200':
          description: List of schemas
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GRAPHQL_SCHEMAS'
        '404':
          description: Database does not exist
          content:
            application/json:
              schema:
                required:
                - message
                - code
                properties:
                  message:
                    type: string
                    example: Database does not exist
                  code:
                    type: string
                    example: 0D0DU2
    delete:
      tags:
      - Graph QL
      summary: Clear schemas
      operationId: clearGraphQLSchemas
      parameters:
      - name: db
        $ref: '#/components/parameters/db'
      responses:
        '204':
          description: Schemas cleared
        '404':
          description: Database does not exist
          content:
            application/json:
              schema:
                required:
                - message
                - code
                properties:
                  message:
                    type: string
                    example: Database does not exist
                  code:
                    type: string
                    example: 0D0DU2
  /{db}/graphql/{schema}:
    get:
      tags:
      - Graph QL
      summary: Perform GraphQL query with schema
      operationId: graphQLQueryGetWithSchema
      parameters:
      - name: db
        $ref: '#/components/parameters/db'
      - name: schema
        $ref: '#/components/parameters/schema'
      - name: query
        in: query
        required: true
        schema:
          $ref: '#/components/schemas/GRAPHQL_QUERY'
      - $ref: '#/components/parameters/name_schema'
      responses:
        '200':
          $ref: '#/components/responses/GRAPHQL_QUERY_RESULT'
        '404':
          description: Database/Schema does not exist
          content:
            application/json:
              schema:
                required:
                - message
                - code
                properties:
                  message:
                    type: string
                    example: Database does not exist
                  code:
                    type: string
                    example: 0D0DU2
    post:
      tags:
      - Graph QL
      summary: Perform GraphQL query with schema
      operationId: graphQLQueryPostWithSchema
      parameters:
      - name: db
        $ref: '#/components/parameters/db'
      - name: schema
        $ref: '#/components/parameters/schema'
      - $ref: '#/components/parameters/name_schema'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GRAPHQL_QUERY_POST'
        required: true
      responses:
        '200':
          $ref: '#/components/responses/GRAPHQL_QUERY_RESULT'
        '404':
          description: Database/Schema does not exist
          content:
            application/json:
              schema:
                required:
                - message
                - code
                properties:
                  message:
                    type: string
                    example: Database does not exist
                  code:
                    type: string
                    example: 0D0DU2
  /{db}/graphql:
    get:
      tags:
      - Graph QL
      summary: Perform GraphQL query
      operationId: graphQLQueryGet
      parameters:
      - name: db
        $ref: '#/components/parameters/db'
      - name: query
        in: query
        required: true
        schema:
          $ref: '#/components/schemas/GRAPHQL_QUERY'
      responses:
        '200':
          $ref: '#/components/responses/GRAPHQL_QUERY_RESULT'
        '404':
          description: Database does not exist
          content:
            application/json:
              schema:
                required:
                - message
                - code
                properties:
                  message:
                    type: string
                    example: Database does not exist
                  code:
                    type: string
                    example: 0D0DU2
    post:
      tags:
      - Graph QL
      summary: Perform GraphQL query
      operationId: graphQLQueryPost
      parameters:
      - name: db
        $ref: '#/components/parameters/db'
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/GRAPHQL_QUERY_POST'
        required: true
      responses:
        '200':
          $ref: '#/components/responses/GRAPHQL_QUERY_RESULT'
        '404':
          description: Database does not exist
          content:
            application/json:
              schema:
                required:
                - message
                - code
                properties:
                  message:
                    type: string
                    example: Database does not exist
                  code:
                    type: string
                    example: 0D0DU2
  /{db}/graphql/schemas/{schema}:
    get:
      tags:
      - Graph QL
      summary: Get schema
      operationId: getGraphQLSchema
      parameters:
      - name: db
        $ref: '#/components/parameters/db'
      - name: schema
        $ref: '#/components/parameters/schema'
      - $ref: '#/components/parameters/name_schema'
      responses:
        '200':
          description: Operation successful
          content:
            application/graphql:
              examples:
                GRAPHQL_SCHEMA:
                  description: GRAPHQL_SCHEMA
                  value: null
                  $ref: '#/components/examples/GRAPHQL_SCHEMA'
        '404':
          description: Database/Schema does not exist
          content:
            application/json:
              schema:
                required:
                - message
                - code
                properties:
                  message:
                    type: string
                    example: Database does not exist
                  code:
                    type: string
                    example: 0D0DU2
    put:
      tags:
      - Graph QL
      summary: Update schema
      operationId: updateGraphQLSchema
      parameters:
      - name: db
        $ref: '#/components/parameters/db'
      - name: schema
        $ref: '#/components/parameters/schema'
      - $ref: '#/components/parameters/name_schema'
      requestBody:
        $ref: '#/components/requestBodies/GRAPHQL_SCHEMA'
      responses:
        '200':
          description: Schema updated
        '404':
          description: Database/Schema does not exist
          content:
            application/json:
              schema:
                required:
                - message
                - code
                properties:
                  message:
                    type: string
                    example: Database does not exist
                  code:
                    type: string
                    example: 0D0DU2
    post:
      tags:
      - Graph QL
      summary: Add schema
      operationId: addGraphQLSchema
      parameters:
      - name: db
        $ref: '#/components/parameters/db'
      - name: schema
        $ref: '#/components/parameters/schema'
      - $ref: '#/components/parameters/name_schema'
      requestBody:
        $ref: '#/components/requestBodies/GRAPHQL_SCHEMA'
      responses:
        '201':
          description: Schema added
        '404':
          description: Database/Schema does not exist
          content:
            application/json:
              schema:
                required:
                - message
                - code
                properties:
                  message:
                    type: string
                    example: Database does not exist
                  code:
                    type: string
                    example: 0D0DU2
    delete:
      tags:
      - Graph QL
      summary: Remove schema
      operationId: removeGraphQLSchema
      parameters:
      - name: db
        $ref: '#/components/parameters/db'
      - name: schema
        $ref: '#/components/parameters/schema'
      - $ref: '#/components/parameters/name_schema'
      responses:
        '204':
          description: Schema removed
        '404':
          description: Database/Schema does not exist
          content:
            application/json:
              schema:
                required:
                - message
                - code
                properties:
                  message:
                    type: string
                    example: Database does not exist
                  code:
                    type: string
                    example: 0D0DU2
components:
  schemas:
    GRAPHQL_SCHEMAS:
      required:
      - schemas
      properties:
        schemas:
          type: array
          items:
            type: string
    GRAPHQL_QUERY:
      type: string
      example: '{ Human { name } }'
    GRAPHQL_QUERY_RESULT:
      required:
      - data
      properties:
        data:
          type: array
          items:
            type: object
            additionalProperties:
              type: string
    GRAPHQL_QUERY_POST:
      required:
      - query
      properties:
        query:
          $ref: '#/components/schemas/GRAPHQL_QUERY'
        operationName:
          type: string
        variables:
          type: object
  parameters:
    name_schema:
      name: schema
      in: path
      description: The name of the schema
      required: true
      schema:
        type: string
    schema:
      name: schema
      in: query
      description: The name of the schema
      schema:
        type: string
    db:
      name: db
      in: path
      description: Database name
      required: true
      schema:
        type: string
      example: myDb
  requestBodies:
    GRAPHQL_SCHEMA:
      content:
        application/graphql:
          schema:
            type: string
          examples:
            GRAPHQL_SCHEMA:
              value: null
              $ref: '#/components/examples/GRAPHQL_SCHEMA'
  responses:
    GRAPHQL_QUERY_RESULT:
      description: Result of GraphQL query
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/GRAPHQL_QUERY_RESULT'
  examples:
    GRAPHQL_SCHEMA:
      value: "type Author {\n  id: Int!\n  firstName: String\n  lastName: String\n  posts: [Post]\n}type Post {\n  id: Int!\n  title: String\n  author: Author\n  votes: Int\n}type Query {\n  posts: [Post]\n  author(id: Int!): Author\n}\n"
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