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

# List a namespace's ontology versions

> The list is not filtered by what the caller can view; the content of each version is.



## OpenAPI

````yaml /api-reference/openapi.yml get /rdf/{username}/{namespace}/ontology/versions
openapi: 3.0.3
info:
  title: DataLinks
  version: 3.20.0
servers:
  - url: https://api.datalinks.com/api/v1
    description: production server
security:
  - bearerAuth: []
  - openId:
      - implicit
paths:
  /rdf/{username}/{namespace}/ontology/versions:
    get:
      tags:
        - rdf
      summary: List a namespace's ontology versions
      description: >-
        The list is not filtered by what the caller can view; the content of
        each version is.
      operationId: getRdfOntologyVersions
      parameters:
        - name: username
          in: path
          description: The username associated with the request.
          required: true
          schema:
            type: string
        - name: namespace
          in: path
          description: Namespace for the dataset.
          required: true
          schema:
            type: string
          example: cinematography
        - name: limit
          in: query
          required: false
          schema:
            maximum: 100
            minimum: 1
            type: integer
            default: 20
        - name: before
          in: query
          description: List only versions with a lower number.
          required: false
          schema:
            minimum: 1
            type: integer
      responses:
        '200':
          description: The versions.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RdfOntologyVersions'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '404':
          $ref: '#/components/responses/NotFound'
components:
  schemas:
    RdfOntologyVersions:
      required:
        - versions
      type: object
      properties:
        versions:
          type: array
          description: Newest first.
          items:
            $ref: '#/components/schemas/RdfOntologyVersion'
    RdfOntologyVersion:
      required:
        - createdAt
        - exportChanged
        - number
        - requestedBy
        - trigger
      type: object
      properties:
        number:
          type: integer
          description: The version's number in its namespace, from 1.
          format: int32
          example: 3
        createdAt:
          type: string
          format: date-time
        trigger:
          type: string
          enum:
            - export
        requestedBy:
          type: string
          description: The requester's user name.
          example: alice
        exportChanged:
          type: boolean
          description: >-
            True when a release changed how the ontology is written since the
            version before, so a difference from it need not be an edit.
    ErrorResponse:
      required:
        - error_code
        - message
      type: object
      properties:
        error_code:
          type: string
          example: UNAUTHORIZED
        error_message:
          type: string
          example: ''
        message:
          type: string
          example: Missing authentication token
        sub_errors:
          type: array
          items:
            required:
              - code
              - message
            type: object
            properties:
              code:
                type: string
              message:
                type: string
  responses:
    BadRequest:
      description: Bad request. The request was malformed or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    Unauthorized:
      description: >-
        Unauthorized. This error occurs if the authentication token is missing
        or invalid.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
    NotFound:
      description: The requested resource was not found.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
  securitySchemes:
    bearerAuth:
      type: http
      description: >
        Use a Bearer token for authentication. Submit the token using the
        `Authorization`

        header: `Authorization: Bearer <token>`.
      scheme: bearer
    openId:
      type: oauth2
      flows:
        implicit:
          authorizationUrl: >-
            https://login.datalinks.com/realms/datalinks-realm/protocol/openid-connect/auth
          scopes:
            openid: openid

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.