> ## 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.

# Export RDF from a world



## OpenAPI

````yaml /openapi.yaml post /namespaces/{namespace}/worlds/{slug}/export
openapi: 3.0.0
info:
  title: Worlds API
  version: 1.0.0
  description: >
    API for managing and querying RDF-based worlds.


    **Namespaces:** Routes under `/namespaces/{namespace}/...` target a specific
    tenant namespace.

    The path segment `_` is reserved: it expands to the authenticated tenant
    default namespace

    (or the platform namespace when no tenant applies). Shorthand routes under
    `/worlds/...`

    use the default namespace and omit the `/namespaces/...` prefix.
servers:
  - url: https://api.wazoo.dev
    description: API
security:
  - bearerAuth: []
paths:
  /namespaces/{namespace}/worlds/{slug}/export:
    post:
      summary: Export RDF from a world
      operationId: exportWorldNamespaced
      parameters:
        - name: namespace
          in: path
          required: true
          schema:
            type: string
        - name: slug
          in: path
          required: true
          schema:
            type: string
      requestBody:
        required: false
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ExportPostBody'
      responses:
        '200':
          description: Exported RDF
          content:
            text/turtle:
              schema:
                type: string
                format: binary
            application/n-quads:
              schema:
                type: string
                format: binary
            application/n-triples:
              schema:
                type: string
                format: binary
            text/n3:
              schema:
                type: string
                format: binary
            application/trig:
              schema:
                type: string
                format: binary
            application/ld+json:
              schema:
                type: string
                format: binary
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
components:
  schemas:
    ExportPostBody:
      type: object
      properties:
        contentType:
          type: string
          description: >-
            RDF serialization MIME type. If omitted, the server negotiates from
            `Accept` (default `application/n-quads`).
        source:
          $ref: '#/components/schemas/WorldSource'
          description: Optional; defaults to the world identified by the URL path.
    WorldSource:
      description: >
        Target world: a qualified string (`namespace/slug`), `{ slug, namespace?
        }`, or `{ name }`

        (same qualified form as `name`).
      oneOf:
        - type: string
        - type: object
          required:
            - slug
          properties:
            slug:
              type: string
            namespace:
              type: string
            write:
              type: boolean
            schema:
              type: boolean
        - type: object
          required:
            - name
          properties:
            name:
              type: string
            write:
              type: boolean
            schema:
              type: boolean
    Error:
      type: object
      properties:
        error:
          type: object
          properties:
            message:
              type: string
      required:
        - error
  responses:
    BadRequest:
      description: Bad Request
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: Unauthorized
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: Forbidden
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````